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"});
import pulumi
import pulumi_flexibleengine as flexibleengine
topic1 = flexibleengine.SmnTopicV2("topic1", display_name="The display name of topic_1")
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
})
}
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",
});
});
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());
}
}
resources:
topic1:
type: flexibleengine:SmnTopicV2
properties:
displayName: The display name of topic_1
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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 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 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Access
Policy string - schema: Internal
- Display
Name 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.
- Enterprise
Project stringId - 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.
- Services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- Smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- Dictionary<string, string>
- Users
Publish stringAllowed - 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 string - schema: Internal
- Display
Name 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.
- Enterprise
Project stringId - 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.
- Services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- Smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- map[string]string
- Users
Publish stringAllowed - 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 String - schema: Internal
- display
Name 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.
- enterprise
Project StringId - 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.
- services
Publish StringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic StringV2Id - The resource ID. The value is the topic urn.
- Map<String,String>
- users
Publish StringAllowed - 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 string - schema: Internal
- display
Name 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.
- enterprise
Project stringId - 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.
- services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- {[key: string]: string}
- users
Publish stringAllowed - 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_ strid - 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_ strallowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn_
topic_ strv2_ id - The resource ID. The value is the topic urn.
- Mapping[str, str]
- users_
publish_ strallowed - 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 String - schema: Internal
- display
Name 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.
- enterprise
Project StringId - 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.
- services
Publish StringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic StringV2Id - The resource ID. The value is the topic urn.
- Map<String>
- users
Publish StringAllowed - 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:
- 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,
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
- 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.
- Access
Policy string - schema: Internal
- Create
Time string - Time when the topic was created.
- Display
Name 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.
- Enterprise
Project stringId - 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.
- 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.
- 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.
- Services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- Smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- Dictionary<string, string>
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- Users
Publish stringAllowed - 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 string - schema: Internal
- Create
Time string - Time when the topic was created.
- Display
Name 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.
- Enterprise
Project stringId - 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.
- 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.
- 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.
- Services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- Smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- map[string]string
- Topic
Urn string - Resource identifier of a topic, which is unique.
- Update
Time string - Time when the topic was updated.
- Users
Publish stringAllowed - 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 String - schema: Internal
- create
Time String - Time when the topic was created.
- display
Name 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.
- enterprise
Project StringId - 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.
- 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.
- 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.
- services
Publish StringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic StringV2Id - The resource ID. The value is the topic urn.
- Map<String,String>
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
- users
Publish StringAllowed - 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 string - schema: Internal
- create
Time string - Time when the topic was created.
- display
Name 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.
- enterprise
Project stringId - 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.
- 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.
- 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.
- services
Publish stringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic stringV2Id - The resource ID. The value is the topic urn.
- {[key: string]: string}
- topic
Urn string - Resource identifier of a topic, which is unique.
- update
Time string - Time when the topic was updated.
- users
Publish stringAllowed - 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_ strid - 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_ strallowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn_
topic_ strv2_ id - The resource ID. The value is the topic urn.
- 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_ strallowed - 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 String - schema: Internal
- create
Time String - Time when the topic was created.
- display
Name 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.
- enterprise
Project StringId - 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.
- 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.
- 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.
- services
Publish StringAllowed - Specifies the services that can publish messages to this topic separated by comma(,). If left empty, that means no service allowed.
- smn
Topic StringV2Id - The resource ID. The value is the topic urn.
- Map<String>
- topic
Urn String - Resource identifier of a topic, which is unique.
- update
Time String - Time when the topic was updated.
- users
Publish StringAllowed - 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
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.