alicloud.ess.Notification
Provides a ESS notification resource. More about Ess notification, see Autoscaling Notification.
NOTE: Available in 1.55.0+
Example Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testAccEssNotification-%d";
var defaultRegions = AliCloud.GetRegions.Invoke(new()
{
Current = true,
});
var defaultAccount = AliCloud.GetAccount.Invoke();
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("defaultScalingGroup", new()
{
MinSize = 1,
MaxSize = 1,
ScalingGroupName = name,
RemovalPolicies = new[]
{
"OldestInstance",
"NewestInstance",
},
VswitchIds = new[]
{
defaultSwitch.Id,
},
});
var defaultQueue = new AliCloud.Mns.Queue("defaultQueue");
var defaultNotification = new AliCloud.Ess.Notification("defaultNotification", new()
{
ScalingGroupId = defaultScalingGroup.Id,
NotificationTypes = new[]
{
"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.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)}:{defaultAccount.Apply(getAccountResult => getAccountResult.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("tf-testAccEssNotification-%vd", "%")
if param := cfg.Get("name"); param != "" {
name = param
}
defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.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, &alicloud.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("acs:ess:%v:%v:queue/%v", defaultRegions.Regions[0].Id, defaultAccount.Id, name), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ess.ScalingGroup;
import com.pulumi.alicloud.ess.ScalingGroupArgs;
import com.pulumi.alicloud.mns.Queue;
import com.pulumi.alicloud.ess.Notification;
import com.pulumi.alicloud.ess.NotificationArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testAccEssNotification-%d");
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
final var defaultAccount = AlicloudFunctions.getAccount();
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultScalingGroup = new ScalingGroup("defaultScalingGroup", ScalingGroupArgs.builder()
.minSize(1)
.maxSize(1)
.scalingGroupName(name)
.removalPolicies(
"OldestInstance",
"NewestInstance")
.vswitchIds(defaultSwitch.id())
.build());
var defaultQueue = new Queue("defaultQueue");
var defaultNotification = new Notification("defaultNotification", NotificationArgs.builder()
.scalingGroupId(defaultScalingGroup.id())
.notificationTypes(
"AUTOSCALING:SCALE_OUT_SUCCESS",
"AUTOSCALING:SCALE_OUT_ERROR")
.notificationArn(defaultQueue.name().applyValue(name -> String.format("acs:ess:%s:%s:queue/%s", defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()),defaultAccount.applyValue(getAccountResult -> getAccountResult.id()),name)))
.build());
}
}
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}`),
});
configuration:
name:
type: string
default: tf-testAccEssNotification-%d
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${defaultZones.zones[0].id}
vswitchName: ${name}
defaultScalingGroup:
type: alicloud:ess:ScalingGroup
properties:
minSize: 1
maxSize: 1
scalingGroupName: ${name}
removalPolicies:
- OldestInstance
- NewestInstance
vswitchIds:
- ${defaultSwitch.id}
defaultQueue:
type: alicloud:mns:Queue
defaultNotification:
type: alicloud:ess:Notification
properties:
scalingGroupId: ${defaultScalingGroup.id}
notificationTypes:
- AUTOSCALING:SCALE_OUT_SUCCESS
- AUTOSCALING:SCALE_OUT_ERROR
notificationArn: acs:ess:${defaultRegions.regions[0].id}:${defaultAccount.id}:queue/${defaultQueue.name}
variables:
defaultRegions:
fn::invoke:
Function: alicloud:getRegions
Arguments:
current: true
defaultAccount:
fn::invoke:
Function: alicloud:getAccount
Arguments: {}
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableDiskCategory: cloud_efficiency
availableResourceCreation: VSwitch
Create 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 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.