tencentcloud.ClbLogTopic
Explore with Pulumi AI
Provides a resource to create a CLB instance topic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const topic = new tencentcloud.ClbLogTopic("topic", {
logSetId: tencentcloud_clb_log_set.set.id,
topicName: "clb-topic",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
topic = tencentcloud.ClbLogTopic("topic",
log_set_id=tencentcloud_clb_log_set["set"]["id"],
topic_name="clb-topic")
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, "topic", &tencentcloud.ClbLogTopicArgs{
LogSetId: pulumi.Any(tencentcloud_clb_log_set.Set.Id),
TopicName: pulumi.String("clb-topic"),
})
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 topic = new Tencentcloud.ClbLogTopic("topic", new()
{
LogSetId = tencentcloud_clb_log_set.Set.Id,
TopicName = "clb-topic",
});
});
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 topic = new ClbLogTopic("topic", ClbLogTopicArgs.builder()
.logSetId(tencentcloud_clb_log_set.set().id())
.topicName("clb-topic")
.build());
}
}
resources:
topic:
type: tencentcloud:ClbLogTopic
properties:
logSetId: ${tencentcloud_clb_log_set.set.id}
topicName: clb-topic
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)
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.
- Log
Set stringId - Log topic of CLB instance.
- Topic
Name string - Log topic of CLB instance.
- Clb
Log stringTopic Id - ID of the resource.
- log
Set StringId - Log topic of CLB instance.
- topic
Name String - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
- log
Set stringId - Log topic of CLB instance.
- topic
Name string - Log topic of CLB instance.
- clb
Log stringTopic Id - ID of the resource.
- log_
set_ strid - Log topic of CLB instance.
- topic_
name str - Log topic of CLB instance.
- clb_
log_ strtopic_ id - ID of the resource.
- log
Set StringId - Log topic of CLB instance.
- topic
Name String - Log topic of CLB instance.
- clb
Log StringTopic Id - ID of the resource.
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.
- Status bool
- The status of log topic.
- Create
Time string - Log topic creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status bool
- The status of log topic.
- create
Time String - Log topic creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- status Boolean
- The status of log topic.
- create
Time string - Log topic creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- status boolean
- The status of log topic.
- create_
time str - Log topic creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- status bool
- The status of log topic.
- create
Time String - Log topic creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- status Boolean
- The status of log topic.
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) -> ClbLogTopic
func 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 topic lb-7a0t6zqb
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
tencentcloud
Terraform Provider.