opentelekomcloud.SmnTopicV2
Explore with Pulumi AI
Up-to-date reference of API arguments for SMN topic you can get at documentation portal
Manages a V2 topic resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const topic1 = new opentelekomcloud.SmnTopicV2("topic1", {
displayName: "The display name of topic_1",
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
topic1 = opentelekomcloud.SmnTopicV2("topic1",
display_name="The display name of topic_1",
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewSmnTopicV2(ctx, "topic1", &opentelekomcloud.SmnTopicV2Args{
DisplayName: pulumi.String("The display name of topic_1"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var topic1 = new Opentelekomcloud.SmnTopicV2("topic1", new()
{
DisplayName = "The display name of topic_1",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.SmnTopicV2;
import com.pulumi.opentelekomcloud.SmnTopicV2Args;
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 topic1 = new SmnTopicV2("topic1", SmnTopicV2Args.builder()
.displayName("The display name of topic_1")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
resources:
topic1:
type: opentelekomcloud:SmnTopicV2
properties:
displayName: The display name of topic_1
tags:
foo: bar
key: value
Create SmnTopicV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmnTopicV2(name: string, args?: SmnTopicV2Args, opts?: CustomResourceOptions);
@overload
def SmnTopicV2(resource_name: str,
args: Optional[SmnTopicV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SmnTopicV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
project_name: Optional[str] = None,
smn_topic_v2_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSmnTopicV2(ctx *Context, name string, args *SmnTopicV2Args, opts ...ResourceOption) (*SmnTopicV2, error)
public SmnTopicV2(string name, SmnTopicV2Args? args = null, CustomResourceOptions? opts = null)
public SmnTopicV2(String name, SmnTopicV2Args args)
public SmnTopicV2(String name, SmnTopicV2Args args, CustomResourceOptions options)
type: opentelekomcloud:SmnTopicV2
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 SmnTopicV2Args
- 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 SmnTopicV2Args
- 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 SmnTopicV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmnTopicV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmnTopicV2Args
- 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 smnTopicV2Resource = new Opentelekomcloud.SmnTopicV2("smnTopicV2Resource", new()
{
DisplayName = "string",
Name = "string",
ProjectName = "string",
SmnTopicV2Id = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := opentelekomcloud.NewSmnTopicV2(ctx, "smnTopicV2Resource", &opentelekomcloud.SmnTopicV2Args{
DisplayName: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectName: pulumi.String("string"),
SmnTopicV2Id: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var smnTopicV2Resource = new SmnTopicV2("smnTopicV2Resource", SmnTopicV2Args.builder()
.displayName("string")
.name("string")
.projectName("string")
.smnTopicV2Id("string")
.tags(Map.of("string", "string"))
.build());
smn_topic_v2_resource = opentelekomcloud.SmnTopicV2("smnTopicV2Resource",
display_name="string",
name="string",
project_name="string",
smn_topic_v2_id="string",
tags={
"string": "string",
})
const smnTopicV2Resource = new opentelekomcloud.SmnTopicV2("smnTopicV2Resource", {
displayName: "string",
name: "string",
projectName: "string",
smnTopicV2Id: "string",
tags: {
string: "string",
},
});
type: opentelekomcloud:SmnTopicV2
properties:
displayName: string
name: string
projectName: string
smnTopicV2Id: string
tags:
string: string
SmnTopicV2 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 SmnTopicV2 resource accepts the following input properties:
- Display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- Name string
- The name of the topic to be created.
- Project
Name string - The project name for the topic.
- Smn
Topic stringV2Id - Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- Name string
- The name of the topic to be created.
- Project
Name string - The project name for the topic.
- Smn
Topic stringV2Id - map[string]string
- Tags key/value pairs to associate with the instance.
- display
Name String - Topic display name, which is presented as the name of the email sender in an email message.
- name String
- The name of the topic to be created.
- project
Name String - The project name for the topic.
- smn
Topic StringV2Id - Map<String,String>
- Tags key/value pairs to associate with the instance.
- display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- name string
- The name of the topic to be created.
- project
Name string - The project name for the topic.
- smn
Topic stringV2Id - {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- display_
name str - Topic display name, which is presented as the name of the email sender in an email message.
- name str
- The name of the topic to be created.
- project_
name str - The project name for the topic.
- smn_
topic_ strv2_ id - Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- display
Name String - Topic display name, which is presented as the name of the email sender in an email message.
- name String
- The name of the topic to be created.
- project
Name String - The project name for the topic.
- smn
Topic StringV2Id - Map<String>
- Tags key/value pairs to associate with the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmnTopicV2 resource produces the following output properties:
- Create
Time string - Time when the topic was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Push
Policy double - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- Create
Time string - Time when the topic was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Push
Policy float64 - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- create
Time String - Time when the topic was created.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Policy Double - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
- create
Time string - Time when the topic was created.
- id string
- The provider-assigned unique ID for this managed resource.
- push
Policy number - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- topic
Urn string - Resource identifier of a topic, which is unique.
- update
Time string - Time when the topic was updated.
- create_
time str - Time when the topic was created.
- id str
- The provider-assigned unique ID for this managed resource.
- push_
policy float - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- topic_
urn str - Resource identifier of a topic, which is unique.
- update_
time str - Time when the topic was updated.
- create
Time String - Time when the topic was created.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Policy Number - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
Look up Existing SmnTopicV2 Resource
Get an existing SmnTopicV2 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?: SmnTopicV2State, opts?: CustomResourceOptions): SmnTopicV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
project_name: Optional[str] = None,
push_policy: Optional[float] = None,
smn_topic_v2_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
topic_urn: Optional[str] = None,
update_time: Optional[str] = None) -> SmnTopicV2
func GetSmnTopicV2(ctx *Context, name string, id IDInput, state *SmnTopicV2State, opts ...ResourceOption) (*SmnTopicV2, error)
public static SmnTopicV2 Get(string name, Input<string> id, SmnTopicV2State? state, CustomResourceOptions? opts = null)
public static SmnTopicV2 get(String name, Output<String> id, SmnTopicV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:SmnTopicV2 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.
- Create
Time string - Time when the topic was created.
- Display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- Name string
- The name of the topic to be created.
- Project
Name string - The project name for the topic.
- Push
Policy double - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- Smn
Topic stringV2Id - Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- Create
Time string - Time when the topic was created.
- Display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- Name string
- The name of the topic to be created.
- Project
Name string - The project name for the topic.
- Push
Policy float64 - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- Smn
Topic stringV2Id - map[string]string
- Tags key/value pairs to associate with the instance.
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- create
Time String - Time when the topic was created.
- display
Name String - Topic display name, which is presented as the name of the email sender in an email message.
- name String
- The name of the topic to be created.
- project
Name String - The project name for the topic.
- push
Policy Double - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- smn
Topic StringV2Id - Map<String,String>
- Tags key/value pairs to associate with the instance.
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
- create
Time string - Time when the topic was created.
- display
Name string - Topic display name, which is presented as the name of the email sender in an email message.
- name string
- The name of the topic to be created.
- project
Name string - The project name for the topic.
- push
Policy number - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- smn
Topic stringV2Id - {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- topic
Urn string - Resource identifier of a topic, which is unique.
- update
Time string - Time when the topic was updated.
- create_
time str - Time when the topic was created.
- display_
name str - Topic display name, which is presented as the name of the email sender in an email message.
- name str
- The name of the topic to be created.
- project_
name str - The project name for the topic.
- push_
policy float - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- smn_
topic_ strv2_ id - Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- topic_
urn str - Resource identifier of a topic, which is unique.
- update_
time str - Time when the topic was updated.
- create
Time String - Time when the topic was created.
- display
Name String - Topic display name, which is presented as the name of the email sender in an email message.
- name String
- The name of the topic to be created.
- project
Name String - The project name for the topic.
- push
Policy Number - Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
- smn
Topic StringV2Id - Map<String>
- Tags key/value pairs to associate with the instance.
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.