Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

MscSubSubscription

Provides a Msc Sub Subscription resource.

NOTE: Available in v1.135.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.MscSubSubscription("example", new AliCloud.MscSubSubscriptionArgs
        {
            EmailStatus = 1,
            ItemName = "Notifications of Product Expiration",
            PmsgStatus = 1,
            SmsStatus = 1,
            TtsStatus = 1,
            WebhookStatus = 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{
			EmailStatus:   pulumi.Int(1),
			ItemName:      pulumi.String("Notifications of Product Expiration"),
			PmsgStatus:    pulumi.Int(1),
			SmsStatus:     pulumi.Int(1),
			TtsStatus:     pulumi.Int(1),
			WebhookStatus: pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.MscSubSubscription("example",
    email_status=1,
    item_name="Notifications of Product Expiration",
    pmsg_status=1,
    sms_status=1,
    tts_status=1,
    webhook_status=0)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.MscSubSubscription("example", {
    emailStatus: 1,
    itemName: "Notifications of Product Expiration",
    pmsgStatus: 1,
    smsStatus: 1,
    ttsStatus: 1,
    webhookStatus: 0,
});

Coming soon!

Create a MscSubSubscription Resource

new MscSubSubscription(name: string, args: MscSubSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def MscSubSubscription(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       contact_ids: Optional[Sequence[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)
@overload
def MscSubSubscription(resource_name: str,
                       args: MscSubSubscriptionArgs,
                       opts: Optional[ResourceOptions] = 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.

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.

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

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>
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
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>
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[]
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]
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>
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 an 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>
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
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>
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[]
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]
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>
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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.