AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::ECS::Types::AutoScalingGroupProvider

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass AutoScalingGroupProvider data as a hash:

{
  auto_scaling_group_arn: "String", # required
  managed_scaling: {
    status: "ENABLED", # accepts ENABLED, DISABLED
    target_capacity: 1,
    minimum_scaling_step_size: 1,
    maximum_scaling_step_size: 1,
    instance_warmup_period: 1,
  },
  managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
}

The details of the Auto Scaling group for the capacity provider.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_group_arnString

The Amazon Resource Name (ARN) that identifies the Auto Scaling group.

Returns:

  • (String)


198
199
200
201
202
203
204
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 198

class AutoScalingGroupProvider < Struct.new(
  :auto_scaling_group_arn,
  :managed_scaling,
  :managed_termination_protection)
  SENSITIVE = []
  include Aws::Structure
end

#managed_scalingTypes::ManagedScaling

The managed scaling settings for the Auto Scaling group capacity provider.



198
199
200
201
202
203
204
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 198

class AutoScalingGroupProvider < Struct.new(
  :auto_scaling_group_arn,
  :managed_scaling,
  :managed_termination_protection)
  SENSITIVE = []
  include Aws::Structure
end

#managed_termination_protectionString

The managed termination protection setting to use for the Auto Scaling group capacity provider. This determines whether the Auto Scaling group has managed termination protection.

When using managed termination protection, managed scaling must also be used otherwise managed termination protection will not work.

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

When managed termination protection is disabled, your Amazon EC2 instances are not protected from termination when the Auto Scaling group scales in.

Returns:

  • (String)


198
199
200
201
202
203
204
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 198

class AutoScalingGroupProvider < Struct.new(
  :auto_scaling_group_arn,
  :managed_scaling,
  :managed_termination_protection)
  SENSITIVE = []
  include Aws::Structure
end