1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. SmnTopicV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.SmnTopicV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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:

    DisplayName 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.
    ProjectName string
    The project name for the topic.
    SmnTopicV2Id string
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the instance.
    DisplayName 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.
    ProjectName string
    The project name for the topic.
    SmnTopicV2Id string
    Tags map[string]string
    Tags key/value pairs to associate with the instance.
    displayName 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.
    projectName String
    The project name for the topic.
    smnTopicV2Id String
    tags Map<String,String>
    Tags key/value pairs to associate with the instance.
    displayName 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.
    projectName string
    The project name for the topic.
    smnTopicV2Id string
    tags {[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_v2_id str
    tags Mapping[str, str]
    Tags key/value pairs to associate with the instance.
    displayName 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.
    projectName String
    The project name for the topic.
    smnTopicV2Id String
    tags 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:

    CreateTime string
    Time when the topic was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    PushPolicy 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.
    TopicUrn string
    Resource identifier of a topic, which is unique.
    UpdateTime string
    Time when the topic was updated.
    CreateTime string
    Time when the topic was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    PushPolicy 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.
    TopicUrn string
    Resource identifier of a topic, which is unique.
    UpdateTime string
    Time when the topic was updated.
    createTime String
    Time when the topic was created.
    id String
    The provider-assigned unique ID for this managed resource.
    pushPolicy 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.
    topicUrn String
    Resource identifier of a topic, which is unique.
    updateTime String
    Time when the topic was updated.
    createTime string
    Time when the topic was created.
    id string
    The provider-assigned unique ID for this managed resource.
    pushPolicy 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.
    topicUrn string
    Resource identifier of a topic, which is unique.
    updateTime 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.
    createTime String
    Time when the topic was created.
    id String
    The provider-assigned unique ID for this managed resource.
    pushPolicy 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.
    topicUrn String
    Resource identifier of a topic, which is unique.
    updateTime 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.
    The following state arguments are supported:
    CreateTime string
    Time when the topic was created.
    DisplayName 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.
    ProjectName string
    The project name for the topic.
    PushPolicy 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.
    SmnTopicV2Id string
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the instance.
    TopicUrn string
    Resource identifier of a topic, which is unique.
    UpdateTime string
    Time when the topic was updated.
    CreateTime string
    Time when the topic was created.
    DisplayName 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.
    ProjectName string
    The project name for the topic.
    PushPolicy 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.
    SmnTopicV2Id string
    Tags map[string]string
    Tags key/value pairs to associate with the instance.
    TopicUrn string
    Resource identifier of a topic, which is unique.
    UpdateTime string
    Time when the topic was updated.
    createTime String
    Time when the topic was created.
    displayName 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.
    projectName String
    The project name for the topic.
    pushPolicy 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.
    smnTopicV2Id String
    tags Map<String,String>
    Tags key/value pairs to associate with the instance.
    topicUrn String
    Resource identifier of a topic, which is unique.
    updateTime String
    Time when the topic was updated.
    createTime string
    Time when the topic was created.
    displayName 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.
    projectName string
    The project name for the topic.
    pushPolicy 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.
    smnTopicV2Id string
    tags {[key: string]: string}
    Tags key/value pairs to associate with the instance.
    topicUrn string
    Resource identifier of a topic, which is unique.
    updateTime 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_v2_id str
    tags 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.
    createTime String
    Time when the topic was created.
    displayName 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.
    projectName String
    The project name for the topic.
    pushPolicy 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.
    smnTopicV2Id String
    tags Map<String>
    Tags key/value pairs to associate with the instance.
    topicUrn String
    Resource identifier of a topic, which is unique.
    updateTime 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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud