tencentcloud.ClbLogTopic
Provides a resource to create a CLB log topic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ClbLogTopic("example", {
logSetId: "2ed70190-bf06-4777-980d-2d8a327a2554",
topicName: "tf-example",
status: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ClbLogTopic("example",
log_set_id="2ed70190-bf06-4777-980d-2d8a327a2554",
topic_name="tf-example",
status=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewClbLogTopic(ctx, "example", &tencentcloud.ClbLogTopicArgs{
LogSetId: pulumi.String("2ed70190-bf06-4777-980d-2d8a327a2554"),
TopicName: pulumi.String("tf-example"),
Status: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.ClbLogTopic("example", new()
{
LogSetId = "2ed70190-bf06-4777-980d-2d8a327a2554",
TopicName = "tf-example",
Status = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbLogTopic;
import com.pulumi.tencentcloud.ClbLogTopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ClbLogTopic("example", ClbLogTopicArgs.builder()
.logSetId("2ed70190-bf06-4777-980d-2d8a327a2554")
.topicName("tf-example")
.status(true)
.build());
}
}
resources:
example:
type: tencentcloud:ClbLogTopic
properties:
logSetId: 2ed70190-bf06-4777-980d-2d8a327a2554
topicName: tf-example
status: true
Create ClbLogTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClbLogTopic(name: string, args: ClbLogTopicArgs, opts?: CustomResourceOptions);@overload
def ClbLogTopic(resource_name: str,
args: ClbLogTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClbLogTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_set_id: Optional[str] = None,
topic_name: Optional[str] = None,
clb_log_topic_id: Optional[str] = None,
status: Optional[bool] = None)func NewClbLogTopic(ctx *Context, name string, args ClbLogTopicArgs, opts ...ResourceOption) (*ClbLogTopic, error)public ClbLogTopic(string name, ClbLogTopicArgs args, CustomResourceOptions? opts = null)
public ClbLogTopic(String name, ClbLogTopicArgs args)
public ClbLogTopic(String name, ClbLogTopicArgs args, CustomResourceOptions options)
type: tencentcloud:ClbLogTopic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClbLogTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClbLogTopicArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClbLogTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbLogTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbLogTopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClbLogTopic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClbLogTopic resource accepts the following input properties:
- Log
Set stringId - Log topic of CLB instance.
- Topic
Name string - Log topic of CLB instance.
- Clb
Log stringTopic Id - ID of the resource.
- Status bool
- The status of log topic. true: enable; false: disable. Default is true.
- Log
Set stringId - Log topic of CLB instance.
- Topic
Name string - Log topic of CLB instance.
- Clb
Log stringTopic Id - ID of the resource.
- Status bool
- The status of log topic. true: enable; false: disable. Default is true.
- log
Set StringId - Log topic of CLB instance.
- topic
Name String - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
- status Boolean
- The status of log topic. true: enable; false: disable. Default is true.
- log
Set stringId - Log topic of CLB instance.
- topic
Name string - Log topic of CLB instance.
- clb
Log stringTopic Id - ID of the resource.
- status boolean
- The status of log topic. true: enable; false: disable. Default is true.
- log_
set_ strid - Log topic of CLB instance.
- topic_
name str - Log topic of CLB instance.
- clb_
log_ strtopic_ id - ID of the resource.
- status bool
- The status of log topic. true: enable; false: disable. Default is true.
- log
Set StringId - Log topic of CLB instance.
- topic
Name String - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
- status Boolean
- The status of log topic. true: enable; false: disable. Default is true.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClbLogTopic resource produces the following output properties:
- Create
Time string - Log topic creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Log topic creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - Log topic creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - Log topic creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - Log topic creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - Log topic creation time.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ClbLogTopic Resource
Get an existing ClbLogTopic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClbLogTopicState, opts?: CustomResourceOptions): ClbLogTopic@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clb_log_topic_id: Optional[str] = None,
create_time: Optional[str] = None,
log_set_id: Optional[str] = None,
status: Optional[bool] = None,
topic_name: Optional[str] = None) -> ClbLogTopicfunc GetClbLogTopic(ctx *Context, name string, id IDInput, state *ClbLogTopicState, opts ...ResourceOption) (*ClbLogTopic, error)public static ClbLogTopic Get(string name, Input<string> id, ClbLogTopicState? state, CustomResourceOptions? opts = null)public static ClbLogTopic get(String name, Output<String> id, ClbLogTopicState state, CustomResourceOptions options)resources: _: type: tencentcloud:ClbLogTopic get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Clb
Log stringTopic Id - ID of the resource.
- Create
Time string - Log topic creation time.
- Log
Set stringId - Log topic of CLB instance.
- Status bool
- The status of log topic. true: enable; false: disable. Default is true.
- Topic
Name string - Log topic of CLB instance.
- Clb
Log stringTopic Id - ID of the resource.
- Create
Time string - Log topic creation time.
- Log
Set stringId - Log topic of CLB instance.
- Status bool
- The status of log topic. true: enable; false: disable. Default is true.
- Topic
Name string - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
- create
Time String - Log topic creation time.
- log
Set StringId - Log topic of CLB instance.
- status Boolean
- The status of log topic. true: enable; false: disable. Default is true.
- topic
Name String - Log topic of CLB instance.
- clb
Log stringTopic Id - ID of the resource.
- create
Time string - Log topic creation time.
- log
Set stringId - Log topic of CLB instance.
- status boolean
- The status of log topic. true: enable; false: disable. Default is true.
- topic
Name string - Log topic of CLB instance.
- clb_
log_ strtopic_ id - ID of the resource.
- create_
time str - Log topic creation time.
- log_
set_ strid - Log topic of CLB instance.
- status bool
- The status of log topic. true: enable; false: disable. Default is true.
- topic_
name str - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
- create
Time String - Log topic creation time.
- log
Set StringId - Log topic of CLB instance.
- status Boolean
- The status of log topic. true: enable; false: disable. Default is true.
- topic
Name String - Log topic of CLB instance.
Import
CLB log topic can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clbLogTopic:ClbLogTopic example be1a83dd-04b4-4807-89bf-8daddce0df71
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
