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

flexibleengine.SmnSubscriptionV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a SMN subscription resource within FlexibleEngine.

    Example 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"});
    const subscription1 = new flexibleengine.SmnSubscriptionV2("subscription1", {
        topicUrn: topic1.smnTopicV2Id,
        endpoint: "mailtest@gmail.com",
        protocol: "email",
        remark: "O&M",
    });
    const subscription2 = new flexibleengine.SmnSubscriptionV2("subscription2", {
        topicUrn: topic1.smnTopicV2Id,
        endpoint: "13600000000",
        protocol: "sms",
        remark: "O&M",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    topic1 = flexibleengine.SmnTopicV2("topic1", display_name="The display name of topic_1")
    subscription1 = flexibleengine.SmnSubscriptionV2("subscription1",
        topic_urn=topic1.smn_topic_v2_id,
        endpoint="mailtest@gmail.com",
        protocol="email",
        remark="O&M")
    subscription2 = flexibleengine.SmnSubscriptionV2("subscription2",
        topic_urn=topic1.smn_topic_v2_id,
        endpoint="13600000000",
        protocol="sms",
        remark="O&M")
    
    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 {
    		topic1, err := flexibleengine.NewSmnTopicV2(ctx, "topic1", &flexibleengine.SmnTopicV2Args{
    			DisplayName: pulumi.String("The display name of topic_1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewSmnSubscriptionV2(ctx, "subscription1", &flexibleengine.SmnSubscriptionV2Args{
    			TopicUrn: topic1.SmnTopicV2Id,
    			Endpoint: pulumi.String("mailtest@gmail.com"),
    			Protocol: pulumi.String("email"),
    			Remark:   pulumi.String("O&M"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewSmnSubscriptionV2(ctx, "subscription2", &flexibleengine.SmnSubscriptionV2Args{
    			TopicUrn: topic1.SmnTopicV2Id,
    			Endpoint: pulumi.String("13600000000"),
    			Protocol: pulumi.String("sms"),
    			Remark:   pulumi.String("O&M"),
    		})
    		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",
        });
    
        var subscription1 = new Flexibleengine.SmnSubscriptionV2("subscription1", new()
        {
            TopicUrn = topic1.SmnTopicV2Id,
            Endpoint = "mailtest@gmail.com",
            Protocol = "email",
            Remark = "O&M",
        });
    
        var subscription2 = new Flexibleengine.SmnSubscriptionV2("subscription2", new()
        {
            TopicUrn = topic1.SmnTopicV2Id,
            Endpoint = "13600000000",
            Protocol = "sms",
            Remark = "O&M",
        });
    
    });
    
    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 com.pulumi.flexibleengine.SmnSubscriptionV2;
    import com.pulumi.flexibleengine.SmnSubscriptionV2Args;
    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());
    
            var subscription1 = new SmnSubscriptionV2("subscription1", SmnSubscriptionV2Args.builder()
                .topicUrn(topic1.smnTopicV2Id())
                .endpoint("mailtest@gmail.com")
                .protocol("email")
                .remark("O&M")
                .build());
    
            var subscription2 = new SmnSubscriptionV2("subscription2", SmnSubscriptionV2Args.builder()
                .topicUrn(topic1.smnTopicV2Id())
                .endpoint("13600000000")
                .protocol("sms")
                .remark("O&M")
                .build());
    
        }
    }
    
    resources:
      topic1:
        type: flexibleengine:SmnTopicV2
        properties:
          displayName: The display name of topic_1
      subscription1:
        type: flexibleengine:SmnSubscriptionV2
        properties:
          topicUrn: ${topic1.smnTopicV2Id}
          endpoint: mailtest@gmail.com
          protocol: email
          remark: O&M
      subscription2:
        type: flexibleengine:SmnSubscriptionV2
        properties:
          topicUrn: ${topic1.smnTopicV2Id}
          endpoint: '13600000000'
          protocol: sms
          remark: O&M
    

    Create SmnSubscriptionV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SmnSubscriptionV2(name: string, args: SmnSubscriptionV2Args, opts?: CustomResourceOptions);
    @overload
    def SmnSubscriptionV2(resource_name: str,
                          args: SmnSubscriptionV2Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SmnSubscriptionV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          endpoint: Optional[str] = None,
                          protocol: Optional[str] = None,
                          topic_urn: Optional[str] = None,
                          extension: Optional[SmnSubscriptionV2ExtensionArgs] = None,
                          region: Optional[str] = None,
                          remark: Optional[str] = None,
                          smn_subscription_v2_id: Optional[str] = None)
    func NewSmnSubscriptionV2(ctx *Context, name string, args SmnSubscriptionV2Args, opts ...ResourceOption) (*SmnSubscriptionV2, error)
    public SmnSubscriptionV2(string name, SmnSubscriptionV2Args args, CustomResourceOptions? opts = null)
    public SmnSubscriptionV2(String name, SmnSubscriptionV2Args args)
    public SmnSubscriptionV2(String name, SmnSubscriptionV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:SmnSubscriptionV2
    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 SmnSubscriptionV2Args
    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 SmnSubscriptionV2Args
    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 SmnSubscriptionV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmnSubscriptionV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SmnSubscriptionV2Args
    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 smnSubscriptionV2Resource = new Flexibleengine.SmnSubscriptionV2("smnSubscriptionV2Resource", new()
    {
        Endpoint = "string",
        Protocol = "string",
        TopicUrn = "string",
        Extension = new Flexibleengine.Inputs.SmnSubscriptionV2ExtensionArgs
        {
            ClientId = "string",
            ClientSecret = "string",
            Keyword = "string",
            SignSecret = "string",
        },
        Region = "string",
        Remark = "string",
        SmnSubscriptionV2Id = "string",
    });
    
    example, err := flexibleengine.NewSmnSubscriptionV2(ctx, "smnSubscriptionV2Resource", &flexibleengine.SmnSubscriptionV2Args{
    	Endpoint: pulumi.String("string"),
    	Protocol: pulumi.String("string"),
    	TopicUrn: pulumi.String("string"),
    	Extension: &flexibleengine.SmnSubscriptionV2ExtensionArgs{
    		ClientId:     pulumi.String("string"),
    		ClientSecret: pulumi.String("string"),
    		Keyword:      pulumi.String("string"),
    		SignSecret:   pulumi.String("string"),
    	},
    	Region:              pulumi.String("string"),
    	Remark:              pulumi.String("string"),
    	SmnSubscriptionV2Id: pulumi.String("string"),
    })
    
    var smnSubscriptionV2Resource = new SmnSubscriptionV2("smnSubscriptionV2Resource", SmnSubscriptionV2Args.builder()
        .endpoint("string")
        .protocol("string")
        .topicUrn("string")
        .extension(SmnSubscriptionV2ExtensionArgs.builder()
            .clientId("string")
            .clientSecret("string")
            .keyword("string")
            .signSecret("string")
            .build())
        .region("string")
        .remark("string")
        .smnSubscriptionV2Id("string")
        .build());
    
    smn_subscription_v2_resource = flexibleengine.SmnSubscriptionV2("smnSubscriptionV2Resource",
        endpoint="string",
        protocol="string",
        topic_urn="string",
        extension={
            "client_id": "string",
            "client_secret": "string",
            "keyword": "string",
            "sign_secret": "string",
        },
        region="string",
        remark="string",
        smn_subscription_v2_id="string")
    
    const smnSubscriptionV2Resource = new flexibleengine.SmnSubscriptionV2("smnSubscriptionV2Resource", {
        endpoint: "string",
        protocol: "string",
        topicUrn: "string",
        extension: {
            clientId: "string",
            clientSecret: "string",
            keyword: "string",
            signSecret: "string",
        },
        region: "string",
        remark: "string",
        smnSubscriptionV2Id: "string",
    });
    
    type: flexibleengine:SmnSubscriptionV2
    properties:
        endpoint: string
        extension:
            clientId: string
            clientSecret: string
            keyword: string
            signSecret: string
        protocol: string
        region: string
        remark: string
        smnSubscriptionV2Id: string
        topicUrn: string
    

    SmnSubscriptionV2 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 SmnSubscriptionV2 resource accepts the following input properties:

    Endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    Protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    TopicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    Extension SmnSubscriptionV2Extension
    Region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    SmnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    Endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    Protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    TopicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    Extension SmnSubscriptionV2ExtensionArgs
    Region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    SmnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    endpoint String
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    protocol String
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    topicUrn String
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    extension SmnSubscriptionV2Extension
    region String
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark String
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id String
    The resource ID. The value is the subscription urn.
    endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    topicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    extension SmnSubscriptionV2Extension
    region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    endpoint str
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    protocol str
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    topic_urn str
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    extension SmnSubscriptionV2ExtensionArgs
    region str
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark str
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smn_subscription_v2_id str
    The resource ID. The value is the subscription urn.
    endpoint String
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    protocol String
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    topicUrn String
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    extension Property Map
    region String
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark String
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id String
    The resource ID. The value is the subscription urn.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SmnSubscriptionV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Project ID of the topic creator.
    Status double
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    SubscriptionUrn string
    Resource identifier of a subscription, which is unique.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Project ID of the topic creator.
    Status float64
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    SubscriptionUrn string
    Resource identifier of a subscription, which is unique.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Project ID of the topic creator.
    status Double
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn String
    Resource identifier of a subscription, which is unique.
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    Project ID of the topic creator.
    status number
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn string
    Resource identifier of a subscription, which is unique.
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    Project ID of the topic creator.
    status float
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscription_urn str
    Resource identifier of a subscription, which is unique.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Project ID of the topic creator.
    status Number
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn String
    Resource identifier of a subscription, which is unique.

    Look up Existing SmnSubscriptionV2 Resource

    Get an existing SmnSubscriptionV2 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?: SmnSubscriptionV2State, opts?: CustomResourceOptions): SmnSubscriptionV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint: Optional[str] = None,
            extension: Optional[SmnSubscriptionV2ExtensionArgs] = None,
            owner: Optional[str] = None,
            protocol: Optional[str] = None,
            region: Optional[str] = None,
            remark: Optional[str] = None,
            smn_subscription_v2_id: Optional[str] = None,
            status: Optional[float] = None,
            subscription_urn: Optional[str] = None,
            topic_urn: Optional[str] = None) -> SmnSubscriptionV2
    func GetSmnSubscriptionV2(ctx *Context, name string, id IDInput, state *SmnSubscriptionV2State, opts ...ResourceOption) (*SmnSubscriptionV2, error)
    public static SmnSubscriptionV2 Get(string name, Input<string> id, SmnSubscriptionV2State? state, CustomResourceOptions? opts = null)
    public static SmnSubscriptionV2 get(String name, Output<String> id, SmnSubscriptionV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:SmnSubscriptionV2    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:
    Endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    Extension SmnSubscriptionV2Extension
    Owner string
    Project ID of the topic creator.
    Protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    Region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    SmnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    Status double
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    SubscriptionUrn string
    Resource identifier of a subscription, which is unique.
    TopicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    Endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    Extension SmnSubscriptionV2ExtensionArgs
    Owner string
    Project ID of the topic creator.
    Protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    Region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    SmnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    Status float64
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    SubscriptionUrn string
    Resource identifier of a subscription, which is unique.
    TopicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    endpoint String
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    extension SmnSubscriptionV2Extension
    owner String
    Project ID of the topic creator.
    protocol String
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    region String
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark String
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id String
    The resource ID. The value is the subscription urn.
    status Double
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn String
    Resource identifier of a subscription, which is unique.
    topicUrn String
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    endpoint string
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    extension SmnSubscriptionV2Extension
    owner string
    Project ID of the topic creator.
    protocol string
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    region string
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark string
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id string
    The resource ID. The value is the subscription urn.
    status number
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn string
    Resource identifier of a subscription, which is unique.
    topicUrn string
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    endpoint str
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    extension SmnSubscriptionV2ExtensionArgs
    owner str
    Project ID of the topic creator.
    protocol str
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    region str
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark str
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smn_subscription_v2_id str
    The resource ID. The value is the subscription urn.
    status float
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscription_urn str
    Resource identifier of a subscription, which is unique.
    topic_urn str
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.
    endpoint String
    Message endpoint. Changing this parameter will create a new resource.

    • For an HTTP subscription, the endpoint starts with http://.
    • For an HTTPS subscription, the endpoint starts with https://.
    • For an email subscription, the endpoint is an mail address.
    • For an SMS message subscription, the endpoint is a phone number, the format is [+][country code][phone number], e.g. +86185xxxx0000.
    • For a functionstage subscription, the endpoint is a function urn.
    • For a functiongraph subscription, the endpoint is a workflow ID.
    extension Property Map
    owner String
    Project ID of the topic creator.
    protocol String
    Specifies the protocol of the message endpoint. Currently, email, sms, http, https, functionstage and functiongraph are supported. Changing this parameter will create a new resource.
    region String
    The region in which to create the SMN subscription resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    remark String
    Remark information. The remarks must be a UTF-8-coded character string containing 128 bytes. Changing this parameter will create a new resource.
    smnSubscriptionV2Id String
    The resource ID. The value is the subscription urn.
    status Number
    Subscription status.

    • 0: indicates that the subscription is not confirmed.
    • 1: indicates that the subscription is confirmed.
    • 3: indicates that the subscription is canceled.
    subscriptionUrn String
    Resource identifier of a subscription, which is unique.
    topicUrn String
    Specifies the resource identifier of a topic, which is unique. Changing this parameter will create a new resource.

    Supporting Types

    SmnSubscriptionV2Extension, SmnSubscriptionV2ExtensionArgs

    ClientId string
    ClientSecret string
    Keyword string
    SignSecret string
    ClientId string
    ClientSecret string
    Keyword string
    SignSecret string
    clientId String
    clientSecret String
    keyword String
    signSecret String
    clientId string
    clientSecret string
    keyword string
    signSecret string
    clientId String
    clientSecret String
    keyword String
    signSecret String

    Import

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

    bash

    $ pulumi import flexibleengine:index/smnSubscriptionV2:SmnSubscriptionV2 subscription_1 urn:smn:eu-west-0:0970dd7a1300f5672ff2c003c60ae115:topic_1:a2aa5a1f66df494184f4e108398de1a6
    

    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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud