1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. SmnTopicV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.SmnTopicV2

Explore with Pulumi AI

Manages a SMN topic resource within FlexibleEngine.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const topic1 = new flexibleengine.SmnTopicV2("topic1", {displayName: "The display name of topic_1"});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

topic1 = flexibleengine.SmnTopicV2("topic1", display_name="The display name of topic_1")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.NewSmnTopicV2(ctx, "topic1", &flexibleengine.SmnTopicV2Args{
			DisplayName: pulumi.String("The display name of topic_1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var topic1 = new Flexibleengine.SmnTopicV2("topic1", new()
    {
        DisplayName = "The display name of topic_1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.SmnTopicV2;
import com.pulumi.flexibleengine.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")
            .build());

    }
}
Copy
resources:
  topic1:
    type: flexibleengine:SmnTopicV2
    properties:
      displayName: The display name of topic_1
Copy

Topic with policies

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const topic1 = new flexibleengine.SmnTopicV2("topic1", {
    displayName: "The display name of topic_1",
    introduction: "created by terraform",
    servicesPublishAllowed: "obs,vod,cce",
    usersPublishAllowed: "urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

topic1 = flexibleengine.SmnTopicV2("topic1",
    display_name="The display name of topic_1",
    introduction="created by terraform",
    services_publish_allowed="obs,vod,cce",
    users_publish_allowed="urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.NewSmnTopicV2(ctx, "topic1", &flexibleengine.SmnTopicV2Args{
			DisplayName:            pulumi.String("The display name of topic_1"),
			Introduction:           pulumi.String("created by terraform"),
			ServicesPublishAllowed: pulumi.String("obs,vod,cce"),
			UsersPublishAllowed:    pulumi.String("urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var topic1 = new Flexibleengine.SmnTopicV2("topic1", new()
    {
        DisplayName = "The display name of topic_1",
        Introduction = "created by terraform",
        ServicesPublishAllowed = "obs,vod,cce",
        UsersPublishAllowed = "urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.SmnTopicV2;
import com.pulumi.flexibleengine.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")
            .introduction("created by terraform")
            .servicesPublishAllowed("obs,vod,cce")
            .usersPublishAllowed("urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root")
            .build());

    }
}
Copy
resources:
  topic1:
    type: flexibleengine:SmnTopicV2
    properties:
      displayName: The display name of topic_1
      introduction: created by terraform
      servicesPublishAllowed: obs,vod,cce
      usersPublishAllowed: urn:csp:iam::0970d7b7d400f2470fbec00316a03560:root,urn:csp:iam::0970d7b7d400f2470fbec00316a03561:root
Copy

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,
               access_policy: Optional[str] = None,
               display_name: Optional[str] = None,
               enterprise_project_id: Optional[str] = None,
               introduction: Optional[str] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               services_publish_allowed: Optional[str] = None,
               smn_topic_v2_id: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               users_publish_allowed: Optional[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: flexibleengine:SmnTopicV2
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 SmnTopicV2Args
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 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 Flexibleengine.SmnTopicV2("smnTopicV2Resource", new()
{
    AccessPolicy = "string",
    DisplayName = "string",
    EnterpriseProjectId = "string",
    Introduction = "string",
    Name = "string",
    Region = "string",
    ServicesPublishAllowed = "string",
    SmnTopicV2Id = "string",
    Tags = 
    {
        { "string", "string" },
    },
    UsersPublishAllowed = "string",
});
Copy
example, err := flexibleengine.NewSmnTopicV2(ctx, "smnTopicV2Resource", &flexibleengine.SmnTopicV2Args{
AccessPolicy: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Introduction: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
ServicesPublishAllowed: pulumi.String("string"),
SmnTopicV2Id: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UsersPublishAllowed: pulumi.String("string"),
})
Copy
var smnTopicV2Resource = new SmnTopicV2("smnTopicV2Resource", SmnTopicV2Args.builder()
    .accessPolicy("string")
    .displayName("string")
    .enterpriseProjectId("string")
    .introduction("string")
    .name("string")
    .region("string")
    .servicesPublishAllowed("string")
    .smnTopicV2Id("string")
    .tags(Map.of("string", "string"))
    .usersPublishAllowed("string")
    .build());
Copy
smn_topic_v2_resource = flexibleengine.SmnTopicV2("smnTopicV2Resource",
    access_policy="string",
    display_name="string",
    enterprise_project_id="string",
    introduction="string",
    name="string",
    region="string",
    services_publish_allowed="string",
    smn_topic_v2_id="string",
    tags={
        "string": "string",
    },
    users_publish_allowed="string")
Copy
const smnTopicV2Resource = new flexibleengine.SmnTopicV2("smnTopicV2Resource", {
    accessPolicy: "string",
    displayName: "string",
    enterpriseProjectId: "string",
    introduction: "string",
    name: "string",
    region: "string",
    servicesPublishAllowed: "string",
    smnTopicV2Id: "string",
    tags: {
        string: "string",
    },
    usersPublishAllowed: "string",
});
Copy
type: flexibleengine:SmnTopicV2
properties:
    accessPolicy: string
    displayName: string
    enterpriseProjectId: string
    introduction: string
    name: string
    region: string
    servicesPublishAllowed: string
    smnTopicV2Id: string
    tags:
        string: string
    usersPublishAllowed: string
Copy

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:

AccessPolicy string
schema: Internal
DisplayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
EnterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
Introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
Name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
Region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ServicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
SmnTopicV2Id string
The resource ID. The value is the topic urn.
Tags Dictionary<string, string>
UsersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
AccessPolicy string
schema: Internal
DisplayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
EnterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
Introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
Name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
Region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ServicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
SmnTopicV2Id string
The resource ID. The value is the topic urn.
Tags map[string]string
UsersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy String
schema: Internal
displayName String
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId String
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction String
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name String
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
region String
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed String
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id String
The resource ID. The value is the topic urn.
tags Map<String,String>
usersPublishAllowed String
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy string
schema: Internal
displayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id string
The resource ID. The value is the topic urn.
tags {[key: string]: string}
usersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
access_policy str
schema: Internal
display_name str
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterprise_project_id str
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction str
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name str
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
region str
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
services_publish_allowed str
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smn_topic_v2_id str
The resource ID. The value is the topic urn.
tags Mapping[str, str]
users_publish_allowed str
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy String
schema: Internal
displayName String
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId String
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction String
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name String
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new resource.
region String
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed String
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id String
The resource ID. The value is the topic urn.
tags Map<String>
usersPublishAllowed String
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.

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,
        access_policy: Optional[str] = None,
        create_time: Optional[str] = None,
        display_name: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        introduction: Optional[str] = None,
        name: Optional[str] = None,
        push_policy: Optional[float] = None,
        region: Optional[str] = None,
        services_publish_allowed: Optional[str] = None,
        smn_topic_v2_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        topic_urn: Optional[str] = None,
        update_time: Optional[str] = None,
        users_publish_allowed: 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: flexibleengine:SmnTopicV2    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.
The following state arguments are supported:
AccessPolicy string
schema: Internal
CreateTime string
Time when the topic was created.
DisplayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
EnterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
Introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
Name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
Region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ServicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
SmnTopicV2Id string
The resource ID. The value is the topic urn.
Tags Dictionary<string, string>
TopicUrn string
Resource identifier of a topic, which is unique.
UpdateTime string
Time when the topic was updated.
UsersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
AccessPolicy string
schema: Internal
CreateTime string
Time when the topic was created.
DisplayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
EnterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
Introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
Name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
Region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
ServicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
SmnTopicV2Id string
The resource ID. The value is the topic urn.
Tags map[string]string
TopicUrn string
Resource identifier of a topic, which is unique.
UpdateTime string
Time when the topic was updated.
UsersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy String
schema: Internal
createTime String
Time when the topic was created.
displayName String
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId String
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction String
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name String
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
region String
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed String
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id String
The resource ID. The value is the topic urn.
tags Map<String,String>
topicUrn String
Resource identifier of a topic, which is unique.
updateTime String
Time when the topic was updated.
usersPublishAllowed String
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy string
schema: Internal
createTime string
Time when the topic was created.
displayName string
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId string
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction string
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name string
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
region string
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed string
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id string
The resource ID. The value is the topic urn.
tags {[key: string]: string}
topicUrn string
Resource identifier of a topic, which is unique.
updateTime string
Time when the topic was updated.
usersPublishAllowed string
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
access_policy str
schema: Internal
create_time str
Time when the topic was created.
display_name str
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterprise_project_id str
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction str
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name str
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
region str
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
services_publish_allowed str
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smn_topic_v2_id str
The resource ID. The value is the topic urn.
tags Mapping[str, str]
topic_urn str
Resource identifier of a topic, which is unique.
update_time str
Time when the topic was updated.
users_publish_allowed str
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.
accessPolicy String
schema: Internal
createTime String
Time when the topic was created.
displayName String
Specifies the topic display name, which is presented as the name of the email sender in an email message. The name can contain of 0 to 192 characters.
enterpriseProjectId String
Specifies the enterprise project id of the SMN Topic, Value 0 indicates the default enterprise project. Changing this parameter will create a new resource.
introduction String
Specifies the introduction of the topic, this will be contained in the subscription invitation.
name String
Specifies the name of the topic to be created. The name can contains of 1 to 255 characters and must start with a letter or digit, and can only contain letters, digits, underscores (_), and hyphens (-). Changing this parameter will create a new 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.
region String
The region in which to create the SMN topic resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
servicesPublishAllowed String
Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
smnTopicV2Id String
The resource ID. The value is the topic urn.
tags Map<String>
topicUrn String
Resource identifier of a topic, which is unique.
updateTime String
Time when the topic was updated.
usersPublishAllowed String
Specifies the users who can publish messages to this topic. The value can be * which indicates all users or user account URNs separated by comma(,). The format of user account URN is urn:csp:iam::domainId:root. domainId indicates the account ID of another user. If left empty, that means only the topic creator can publish messages.

Import

SMN topic can be imported using the id (topic urn), e.g.

bash

$ pulumi import flexibleengine:index/smnTopicV2:SmnTopicV2 topic_1 urn:smn:eu-west-0:0970dd7a1300f5672ff2c003c60ae115:topic_1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.