alicloud.MscSubSubscription
Explore with Pulumi AI
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:
- Item
Name string - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - Contact
Ids 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 asset
fromlist
, 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 List<string> - 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.
- Item
Name string - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - Contact
Ids []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 asset
fromlist
, 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 []string - 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.
- item
Name String - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - email
Status 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. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<String> - The ids of subscribed webhooks.
- webhook
Status 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.
- item
Name string - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - email
Status 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. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids string[] - The ids of subscribed webhooks.
- webhook
Status 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 asset
fromlist
, 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.
- item
Name String - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - email
Status 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. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<String> - The ids of subscribed webhooks.
- webhook
Status 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.
- Channel string
- The channel the Subscription.
- Contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - Description string
- 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 string - 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 List<string> - 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.
- Contact
Ids []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 asset
fromlist
, and you can use tolist to convert it to a list. - Description string
- 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 string - 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 []string - 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.
- contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - description String
- The description of the Subscription.
- email
Status 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. - item
Name String - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<String> - The ids of subscribed webhooks.
- webhook
Status 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.
- contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - description string
- The description of the Subscription.
- email
Status 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. - item
Name string - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids string[] - The ids of subscribed webhooks.
- webhook
Status 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 asset
fromlist
, 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.
- contact
Ids 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 asset
fromlist
, and you can use tolist to convert it to a list. - description String
- The description of the Subscription.
- email
Status 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. - item
Name String - The name of the Subscription. NOTE: You should use the
alicloud.getMscSubSubscriptions
to query the available subscription item name. - pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<String> - The ids of subscribed webhooks.
- webhook
Status 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.