Show / Hide Table of Contents

Class ScalingGroup

Inheritance
System.Object
Resource
CustomResource
ScalingGroup
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public class ScalingGroup : CustomResource

Constructors

View Source

ScalingGroup(String, ScalingGroupArgs, CustomResourceOptions)

Create a ScalingGroup resource with the given unique name, arguments, and options.

Declaration
public ScalingGroup(string name, ScalingGroupArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ScalingGroupArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DbInstanceIds

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
Declaration
public Output<ImmutableArray<string>> DbInstanceIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

DefaultCooldown

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

Declaration
public Output<int?> DefaultCooldown { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

DesiredCapacity

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

Declaration
public Output<int?> DesiredCapacity { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

LoadbalancerIds

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
Declaration
public Output<ImmutableArray<string>> LoadbalancerIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

MaxSize

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

Declaration
public Output<int> MaxSize { get; }
Property Value
Type Description
Output<System.Int32>
View Source

MinSize

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

Declaration
public Output<int> MinSize { get; }
Property Value
Type Description
Output<System.Int32>
View Source

MultiAzPolicy

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

Declaration
public Output<string> MultiAzPolicy { get; }
Property Value
Type Description
Output<System.String>
View Source

OnDemandBaseCapacity

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

Declaration
public Output<int> OnDemandBaseCapacity { get; }
Property Value
Type Description
Output<System.Int32>
View Source

OnDemandPercentageAboveBaseCapacity

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

Declaration
public Output<int> OnDemandPercentageAboveBaseCapacity { get; }
Property Value
Type Description
Output<System.Int32>
View Source

RemovalPolicies

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the first ECS instance attached to the scaling group.
  • NewestInstance: removes the first ECS instance attached to the scaling group.
  • OldestScalingConfiguration: removes the ECS instance with the oldest scaling configuration.
  • Default values: OldestScalingConfiguration and OldestInstance. You can enter up to two removal policies.
Declaration
public Output<ImmutableArray<string>> RemovalPolicies { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

ScalingGroupName

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

Declaration
public Output<string> ScalingGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SpotInstancePools

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

Declaration
public Output<int> SpotInstancePools { get; }
Property Value
Type Description
Output<System.Int32>
View Source

SpotInstanceRemedy

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

Declaration
public Output<bool> SpotInstanceRemedy { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

VswitchId

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Declaration
public Output<string> VswitchId { get; }
Property Value
Type Description
Output<System.String>
View Source

VswitchIds

List of virtual switch IDs in which the ecs instances to be launched.

Declaration
public Output<ImmutableArray<string>> VswitchIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, ScalingGroupState, CustomResourceOptions)

Get an existing ScalingGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ScalingGroup Get(string name, Input<string> id, ScalingGroupState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ScalingGroupState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ScalingGroup
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.