Alibaba Cloud
Notification
Provides a ESS notification resource. More about Ess notification, see Autoscaling Notification.
NOTE: Available in 1.55.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var name = config.Get("name") ?? "tf-testAccEssNotification-%d";
var defaultRegions = Output.Create(AliCloud.GetRegions.InvokeAsync(new AliCloud.GetRegionsArgs
{
Current = true,
}));
var defaultAccount = Output.Create(AliCloud.GetAccount.InvokeAsync());
var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
}));
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = defaultZones.Apply(defaultZones => defaultZones.Zones?[0]?.Id),
VswitchName = name,
});
var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("defaultScalingGroup", new AliCloud.Ess.ScalingGroupArgs
{
MinSize = 1,
MaxSize = 1,
ScalingGroupName = name,
RemovalPolicies =
{
"OldestInstance",
"NewestInstance",
},
VswitchIds =
{
defaultSwitch.Id,
},
});
var defaultQueue = new AliCloud.Mns.Queue("defaultQueue", new AliCloud.Mns.QueueArgs
{
});
var defaultNotification = new AliCloud.Ess.Notification("defaultNotification", new AliCloud.Ess.NotificationArgs
{
ScalingGroupId = defaultScalingGroup.Id,
NotificationTypes =
{
"AUTOSCALING:SCALE_OUT_SUCCESS",
"AUTOSCALING:SCALE_OUT_ERROR",
},
NotificationArn = Output.Tuple(defaultRegions, defaultAccount, defaultQueue.Name).Apply(values =>
{
var defaultRegions = values.Item1;
var defaultAccount = values.Item2;
var name = values.Item3;
return $"acs:ess:{defaultRegions.Regions?[0]?.Id}:{defaultAccount.Id}:queue/{name}";
}),
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mns"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := fmt.Sprintf("%v%v%v", "tf-testAccEssNotification-", "%", "d")
if param := cfg.Get("name"); param != "" {
name = param
}
defaultRegions, err := alicloud.GetRegions(ctx, &GetRegionsArgs{
Current: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
defaultAccount, err := alicloud.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
AvailableDiskCategory: pulumi.StringRef("cloud_efficiency"),
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultScalingGroup, err := ess.NewScalingGroup(ctx, "defaultScalingGroup", &ess.ScalingGroupArgs{
MinSize: pulumi.Int(1),
MaxSize: pulumi.Int(1),
ScalingGroupName: pulumi.String(name),
RemovalPolicies: pulumi.StringArray{
pulumi.String("OldestInstance"),
pulumi.String("NewestInstance"),
},
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
})
if err != nil {
return err
}
defaultQueue, err := mns.NewQueue(ctx, "defaultQueue", nil)
if err != nil {
return err
}
_, err = ess.NewNotification(ctx, "defaultNotification", &ess.NotificationArgs{
ScalingGroupId: defaultScalingGroup.ID(),
NotificationTypes: pulumi.StringArray{
pulumi.String("AUTOSCALING:SCALE_OUT_SUCCESS"),
pulumi.String("AUTOSCALING:SCALE_OUT_ERROR"),
},
NotificationArn: defaultQueue.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("%v%v%v%v%v%v", "acs:ess:", defaultRegions.Regions[0].Id, ":", defaultAccount.Id, ":queue/", name), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testAccEssNotification-%d"
default_regions = alicloud.get_regions(current=True)
default_account = alicloud.get_account()
default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
default_scaling_group = alicloud.ess.ScalingGroup("defaultScalingGroup",
min_size=1,
max_size=1,
scaling_group_name=name,
removal_policies=[
"OldestInstance",
"NewestInstance",
],
vswitch_ids=[default_switch.id])
default_queue = alicloud.mns.Queue("defaultQueue")
default_notification = alicloud.ess.Notification("defaultNotification",
scaling_group_id=default_scaling_group.id,
notification_types=[
"AUTOSCALING:SCALE_OUT_SUCCESS",
"AUTOSCALING:SCALE_OUT_ERROR",
],
notification_arn=default_queue.name.apply(lambda name: f"acs:ess:{default_regions.regions[0].id}:{default_account.id}:queue/{name}"))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || `tf-testAccEssNotification-%d`;
const defaultRegions = alicloud.getRegions({
current: true,
});
const defaultAccount = alicloud.getAccount({});
const defaultZones = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?[0]?.id),
vswitchName: name,
});
const defaultScalingGroup = new alicloud.ess.ScalingGroup("defaultScalingGroup", {
minSize: 1,
maxSize: 1,
scalingGroupName: name,
removalPolicies: [
"OldestInstance",
"NewestInstance",
],
vswitchIds: [defaultSwitch.id],
});
const defaultQueue = new alicloud.mns.Queue("defaultQueue", {});
const defaultNotification = new alicloud.ess.Notification("defaultNotification", {
scalingGroupId: defaultScalingGroup.id,
notificationTypes: [
"AUTOSCALING:SCALE_OUT_SUCCESS",
"AUTOSCALING:SCALE_OUT_ERROR",
],
notificationArn: pulumi.all([defaultRegions, defaultAccount, defaultQueue.name]).apply(([defaultRegions, defaultAccount, name]) => `acs:ess:${defaultRegions.regions?[0]?.id}:${defaultAccount.id}:queue/${name}`),
});
Coming soon!
Create a Notification Resource
new Notification(name: string, args: NotificationArgs, opts?: CustomResourceOptions);
@overload
def Notification(resource_name: str,
opts: Optional[ResourceOptions] = None,
notification_arn: Optional[str] = None,
notification_types: Optional[Sequence[str]] = None,
scaling_group_id: Optional[str] = None)
@overload
def Notification(resource_name: str,
args: NotificationArgs,
opts: Optional[ResourceOptions] = None)
func NewNotification(ctx *Context, name string, args NotificationArgs, opts ...ResourceOption) (*Notification, error)
public Notification(string name, NotificationArgs args, CustomResourceOptions? opts = null)
public Notification(String name, NotificationArgs args)
public Notification(String name, NotificationArgs args, CustomResourceOptions options)
type: alicloud:ess:Notification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationArgs
- 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 NotificationArgs
- 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 NotificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Notification 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 Notification resource accepts the following input properties:
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- Notification
Types List<string> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- Scaling
Group stringId The ID of the Auto Scaling group.
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- Notification
Types []string The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- Scaling
Group stringId The ID of the Auto Scaling group.
- notification
Arn String The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types List<String> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group StringId The ID of the Auto Scaling group.
- notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types string[] The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group stringId The ID of the Auto Scaling group.
- notification_
arn str The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification_
types Sequence[str] The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling_
group_ strid The ID of the Auto Scaling group.
- notification
Arn String The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types List<String> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group StringId The ID of the Auto Scaling group.
Outputs
All input properties are implicitly available as output properties. Additionally, the Notification resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing Notification Resource
Get an existing Notification 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?: NotificationState, opts?: CustomResourceOptions): Notification
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
notification_arn: Optional[str] = None,
notification_types: Optional[Sequence[str]] = None,
scaling_group_id: Optional[str] = None) -> Notification
func GetNotification(ctx *Context, name string, id IDInput, state *NotificationState, opts ...ResourceOption) (*Notification, error)
public static Notification Get(string name, Input<string> id, NotificationState? state, CustomResourceOptions? opts = null)
public static Notification get(String name, Output<String> id, NotificationState 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.
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- Notification
Types List<string> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- Scaling
Group stringId The ID of the Auto Scaling group.
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- Notification
Types []string The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- Scaling
Group stringId The ID of the Auto Scaling group.
- notification
Arn String The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types List<String> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group StringId The ID of the Auto Scaling group.
- notification
Arn string The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types string[] The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group stringId The ID of the Auto Scaling group.
- notification_
arn str The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification_
types Sequence[str] The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling_
group_ strid The ID of the Auto Scaling group.
- notification
Arn String The Alibaba Cloud Resource Name (ARN) of the notification object, The value must be in
acs:ess:{region}:{account-id}:{resource-relative-id}
format.- region: the region ID of the scaling group. For more information, see
Regions and zones
- account-id: the ID of your account.
- resource-relative-id: the notification method. Valid values :
cloudmonitor
, MNS queue:queue/{queuename}
, Replace the queuename with the specific MNS queue name, MNS topic:topic/{topicname}
, Replace the topicname with the specific MNS topic name.
- region: the region ID of the scaling group. For more information, see
- notification
Types List<String> The notification types of Auto Scaling events and resource changes. Supported notification types: 'AUTOSCALING:SCALE_OUT_SUCCESS', 'AUTOSCALING:SCALE_IN_SUCCESS', 'AUTOSCALING:SCALE_OUT_ERROR', 'AUTOSCALING:SCALE_IN_ERROR', 'AUTOSCALING:SCALE_REJECT', 'AUTOSCALING:SCALE_OUT_START', 'AUTOSCALING:SCALE_IN_START', 'AUTOSCALING:SCHEDULE_TASK_EXPIRING'.
- scaling
Group StringId The ID of the Auto Scaling group.
Import
Ess notification can be imported using the id, e.g.
$ pulumi import alicloud:ess/notification:Notification example 'scaling_group_id:notification_arn'
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.