opentelekomcloud.LogtankTopicV2
Explore with Pulumi AI
Create LogtankTopicV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogtankTopicV2(name: string, args: LogtankTopicV2Args, opts?: CustomResourceOptions);
@overload
def LogtankTopicV2(resource_name: str,
args: LogtankTopicV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def LogtankTopicV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
topic_name: Optional[str] = None,
logtank_topic_v2_id: Optional[str] = None)
func NewLogtankTopicV2(ctx *Context, name string, args LogtankTopicV2Args, opts ...ResourceOption) (*LogtankTopicV2, error)
public LogtankTopicV2(string name, LogtankTopicV2Args args, CustomResourceOptions? opts = null)
public LogtankTopicV2(String name, LogtankTopicV2Args args)
public LogtankTopicV2(String name, LogtankTopicV2Args args, CustomResourceOptions options)
type: opentelekomcloud:LogtankTopicV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LogtankTopicV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. LogtankTopicV2Args - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LogtankTopicV2Args - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LogtankTopicV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. LogtankTopicV2Args - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logtankTopicV2Resource = new Opentelekomcloud.LogtankTopicV2("logtankTopicV2Resource", new()
{
GroupId = "string",
TopicName = "string",
LogtankTopicV2Id = "string",
});
example, err := opentelekomcloud.NewLogtankTopicV2(ctx, "logtankTopicV2Resource", &opentelekomcloud.LogtankTopicV2Args{
GroupId: pulumi.String("string"),
TopicName: pulumi.String("string"),
LogtankTopicV2Id: pulumi.String("string"),
})
var logtankTopicV2Resource = new LogtankTopicV2("logtankTopicV2Resource", LogtankTopicV2Args.builder()
.groupId("string")
.topicName("string")
.logtankTopicV2Id("string")
.build());
logtank_topic_v2_resource = opentelekomcloud.LogtankTopicV2("logtankTopicV2Resource",
group_id="string",
topic_name="string",
logtank_topic_v2_id="string")
const logtankTopicV2Resource = new opentelekomcloud.LogtankTopicV2("logtankTopicV2Resource", {
groupId: "string",
topicName: "string",
logtankTopicV2Id: "string",
});
type: opentelekomcloud:LogtankTopicV2
properties:
groupId: string
logtankTopicV2Id: string
topicName: string
LogtankTopicV2 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 LogtankTopicV2 resource accepts the following input properties:
- Group
Id This property is required. string - Topic
Name This property is required. string - Logtank
Topic stringV2Id
- Group
Id This property is required. string - Topic
Name This property is required. string - Logtank
Topic stringV2Id
- group
Id This property is required. String - topic
Name This property is required. String - logtank
Topic StringV2Id
- group
Id This property is required. string - topic
Name This property is required. string - logtank
Topic stringV2Id
- group_
id This property is required. str - topic_
name This property is required. str - logtank_
topic_ strv2_ id
- group
Id This property is required. String - topic
Name This property is required. String - logtank
Topic StringV2Id
Outputs
All input properties are implicitly available as output properties. Additionally, the LogtankTopicV2 resource produces the following output properties:
- Creation
Time double - Id string
- The provider-assigned unique ID for this managed resource.
- Creation
Time float64 - Id string
- The provider-assigned unique ID for this managed resource.
- creation
Time Double - id String
- The provider-assigned unique ID for this managed resource.
- creation
Time number - id string
- The provider-assigned unique ID for this managed resource.
- creation_
time float - id str
- The provider-assigned unique ID for this managed resource.
- creation
Time Number - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogtankTopicV2 Resource
Get an existing LogtankTopicV2 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?: LogtankTopicV2State, opts?: CustomResourceOptions): LogtankTopicV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_time: Optional[float] = None,
group_id: Optional[str] = None,
logtank_topic_v2_id: Optional[str] = None,
topic_name: Optional[str] = None) -> LogtankTopicV2
func GetLogtankTopicV2(ctx *Context, name string, id IDInput, state *LogtankTopicV2State, opts ...ResourceOption) (*LogtankTopicV2, error)
public static LogtankTopicV2 Get(string name, Input<string> id, LogtankTopicV2State? state, CustomResourceOptions? opts = null)
public static LogtankTopicV2 get(String name, Output<String> id, LogtankTopicV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LogtankTopicV2 get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Creation
Time double - Group
Id string - Logtank
Topic stringV2Id - Topic
Name string
- Creation
Time float64 - Group
Id string - Logtank
Topic stringV2Id - Topic
Name string
- creation
Time Double - group
Id String - logtank
Topic StringV2Id - topic
Name String
- creation
Time number - group
Id string - logtank
Topic stringV2Id - topic
Name string
- creation_
time float - group_
id str - logtank_
topic_ strv2_ id - topic_
name str
- creation
Time Number - group
Id String - logtank
Topic StringV2Id - topic
Name String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.