1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. MscSubSubscription
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.MscSubSubscription

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Msc Sub Subscription resource.

    NOTE: Available since v1.135.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.MscSubSubscription("example", {
        itemName: "Notifications of Product Expiration",
        smsStatus: 1,
        emailStatus: 1,
        pmsgStatus: 1,
        ttsStatus: 1,
        webhookStatus: 0,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.MscSubSubscription("example",
        item_name="Notifications of Product Expiration",
        sms_status=1,
        email_status=1,
        pmsg_status=1,
        tts_status=1,
        webhook_status=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alicloud.NewMscSubSubscription(ctx, "example", &alicloud.MscSubSubscriptionArgs{
    			ItemName:      pulumi.String("Notifications of Product Expiration"),
    			SmsStatus:     pulumi.Int(1),
    			EmailStatus:   pulumi.Int(1),
    			PmsgStatus:    pulumi.Int(1),
    			TtsStatus:     pulumi.Int(1),
    			WebhookStatus: pulumi.Int(0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.MscSubSubscription("example", new()
        {
            ItemName = "Notifications of Product Expiration",
            SmsStatus = 1,
            EmailStatus = 1,
            PmsgStatus = 1,
            TtsStatus = 1,
            WebhookStatus = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.MscSubSubscription;
    import com.pulumi.alicloud.MscSubSubscriptionArgs;
    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 example = new MscSubSubscription("example", MscSubSubscriptionArgs.builder()
                .itemName("Notifications of Product Expiration")
                .smsStatus("1")
                .emailStatus("1")
                .pmsgStatus("1")
                .ttsStatus("1")
                .webhookStatus("0")
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:MscSubSubscription
        properties:
          itemName: Notifications of Product Expiration
          smsStatus: '1'
          emailStatus: '1'
          pmsgStatus: '1'
          ttsStatus: '1'
          webhookStatus: '0'
    

    Create MscSubSubscription Resource

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

    Constructor syntax

    new MscSubSubscription(name: string, args: MscSubSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def MscSubSubscription(resource_name: str,
                           args: MscSubSubscriptionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def MscSubSubscription(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           item_name: Optional[str] = None,
                           contact_ids: Optional[Sequence[str]] = None,
                           email_status: Optional[int] = None,
                           pmsg_status: Optional[int] = None,
                           sms_status: Optional[int] = None,
                           tts_status: Optional[int] = None,
                           webhook_ids: Optional[Sequence[str]] = None,
                           webhook_status: Optional[int] = None)
    func NewMscSubSubscription(ctx *Context, name string, args MscSubSubscriptionArgs, opts ...ResourceOption) (*MscSubSubscription, error)
    public MscSubSubscription(string name, MscSubSubscriptionArgs args, CustomResourceOptions? opts = null)
    public MscSubSubscription(String name, MscSubSubscriptionArgs args)
    public MscSubSubscription(String name, MscSubSubscriptionArgs args, CustomResourceOptions options)
    
    type: alicloud:MscSubSubscription
    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 MscSubSubscriptionArgs
    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 MscSubSubscriptionArgs
    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 MscSubSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MscSubSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MscSubSubscriptionArgs
    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 mscSubSubscriptionResource = new AliCloud.MscSubSubscription("mscSubSubscriptionResource", new()
    {
        ItemName = "string",
        ContactIds = new[]
        {
            "string",
        },
        EmailStatus = 0,
        PmsgStatus = 0,
        SmsStatus = 0,
        TtsStatus = 0,
        WebhookIds = new[]
        {
            "string",
        },
        WebhookStatus = 0,
    });
    
    example, err := alicloud.NewMscSubSubscription(ctx, "mscSubSubscriptionResource", &alicloud.MscSubSubscriptionArgs{
    	ItemName: pulumi.String("string"),
    	ContactIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	EmailStatus: pulumi.Int(0),
    	PmsgStatus:  pulumi.Int(0),
    	SmsStatus:   pulumi.Int(0),
    	TtsStatus:   pulumi.Int(0),
    	WebhookIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WebhookStatus: pulumi.Int(0),
    })
    
    var mscSubSubscriptionResource = new MscSubSubscription("mscSubSubscriptionResource", MscSubSubscriptionArgs.builder()
        .itemName("string")
        .contactIds("string")
        .emailStatus(0)
        .pmsgStatus(0)
        .smsStatus(0)
        .ttsStatus(0)
        .webhookIds("string")
        .webhookStatus(0)
        .build());
    
    msc_sub_subscription_resource = alicloud.MscSubSubscription("mscSubSubscriptionResource",
        item_name="string",
        contact_ids=["string"],
        email_status=0,
        pmsg_status=0,
        sms_status=0,
        tts_status=0,
        webhook_ids=["string"],
        webhook_status=0)
    
    const mscSubSubscriptionResource = new alicloud.MscSubSubscription("mscSubSubscriptionResource", {
        itemName: "string",
        contactIds: ["string"],
        emailStatus: 0,
        pmsgStatus: 0,
        smsStatus: 0,
        ttsStatus: 0,
        webhookIds: ["string"],
        webhookStatus: 0,
    });
    
    type: alicloud:MscSubSubscription
    properties:
        contactIds:
            - string
        emailStatus: 0
        itemName: string
        pmsgStatus: 0
        smsStatus: 0
        ttsStatus: 0
        webhookIds:
            - string
        webhookStatus: 0
    

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

    ItemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    ContactIds List<string>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    EmailStatus int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    PmsgStatus int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    SmsStatus int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    TtsStatus int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    WebhookIds List<string>
    The ids of subscribed webhooks.
    WebhookStatus int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ItemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    ContactIds []string
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    EmailStatus int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    PmsgStatus int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    SmsStatus int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    TtsStatus int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    WebhookIds []string
    The ids of subscribed webhooks.
    WebhookStatus int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName String
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    contactIds List<String>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    emailStatus Integer
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    pmsgStatus Integer
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus Integer
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus Integer
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds List<String>
    The ids of subscribed webhooks.
    webhookStatus Integer
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    contactIds string[]
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    emailStatus number
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    pmsgStatus number
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus number
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus number
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds string[]
    The ids of subscribed webhooks.
    webhookStatus number
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    item_name str
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    contact_ids Sequence[str]
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    email_status int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    pmsg_status int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    sms_status int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    tts_status int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhook_ids Sequence[str]
    The ids of subscribed webhooks.
    webhook_status int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName String
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    contactIds List<String>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    emailStatus Number
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    pmsgStatus Number
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus Number
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus Number
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds List<String>
    The ids of subscribed webhooks.
    webhookStatus Number
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.

    Outputs

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

    Channel string
    The channel the Subscription.
    Description string
    The description of the Subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    Channel string
    The channel the Subscription.
    Description string
    The description of the Subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    channel String
    The channel the Subscription.
    description String
    The description of the Subscription.
    id String
    The provider-assigned unique ID for this managed resource.
    channel string
    The channel the Subscription.
    description string
    The description of the Subscription.
    id string
    The provider-assigned unique ID for this managed resource.
    channel str
    The channel the Subscription.
    description str
    The description of the Subscription.
    id str
    The provider-assigned unique ID for this managed resource.
    channel String
    The channel the Subscription.
    description String
    The description of the Subscription.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MscSubSubscription Resource

    Get an existing MscSubSubscription 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?: MscSubSubscriptionState, opts?: CustomResourceOptions): MscSubSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel: Optional[str] = None,
            contact_ids: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            email_status: Optional[int] = None,
            item_name: Optional[str] = None,
            pmsg_status: Optional[int] = None,
            sms_status: Optional[int] = None,
            tts_status: Optional[int] = None,
            webhook_ids: Optional[Sequence[str]] = None,
            webhook_status: Optional[int] = None) -> MscSubSubscription
    func GetMscSubSubscription(ctx *Context, name string, id IDInput, state *MscSubSubscriptionState, opts ...ResourceOption) (*MscSubSubscription, error)
    public static MscSubSubscription Get(string name, Input<string> id, MscSubSubscriptionState? state, CustomResourceOptions? opts = null)
    public static MscSubSubscription get(String name, Output<String> id, MscSubSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Channel string
    The channel the Subscription.
    ContactIds List<string>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    Description string
    The description of the Subscription.
    EmailStatus int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ItemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    PmsgStatus int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    SmsStatus int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    TtsStatus int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    WebhookIds List<string>
    The ids of subscribed webhooks.
    WebhookStatus int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    Channel string
    The channel the Subscription.
    ContactIds []string
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    Description string
    The description of the Subscription.
    EmailStatus int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ItemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    PmsgStatus int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    SmsStatus int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    TtsStatus int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    WebhookIds []string
    The ids of subscribed webhooks.
    WebhookStatus int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    channel String
    The channel the Subscription.
    contactIds List<String>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    description String
    The description of the Subscription.
    emailStatus Integer
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName String
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    pmsgStatus Integer
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus Integer
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus Integer
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds List<String>
    The ids of subscribed webhooks.
    webhookStatus Integer
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    channel string
    The channel the Subscription.
    contactIds string[]
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    description string
    The description of the Subscription.
    emailStatus number
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName string
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    pmsgStatus number
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus number
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus number
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds string[]
    The ids of subscribed webhooks.
    webhookStatus number
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    channel str
    The channel the Subscription.
    contact_ids Sequence[str]
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    description str
    The description of the Subscription.
    email_status int
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    item_name str
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    pmsg_status int
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    sms_status int
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    tts_status int
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhook_ids Sequence[str]
    The ids of subscribed webhooks.
    webhook_status int
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    channel String
    The channel the Subscription.
    contactIds List<String>
    The ids of subscribed contacts. NOTE: There is a potential diff error because of the order of contact_ids values indefinite. So, from version 1.161.0, contact_ids type has been updated as set from list, and you can use tolist to convert it to a list.
    description String
    The description of the Subscription.
    emailStatus Number
    The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    itemName String
    The name of the Subscription. NOTE: You should use the alicloud.getMscSubSubscriptions to query the available subscription item name.
    pmsgStatus Number
    The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    smsStatus Number
    The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    ttsStatus Number
    The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
    webhookIds List<String>
    The ids of subscribed webhooks.
    webhookStatus Number
    The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.

    Import

    Msc Sub Subscription can be imported using the id, e.g.

    $ pulumi import alicloud:index/mscSubSubscription:MscSubSubscription example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi