Class AsgCapacityProviderProps.Jsii$Proxy
- All Implemented Interfaces:
AddAutoScalingGroupCapacityOptions,AsgCapacityProviderProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
AsgCapacityProviderProps
AsgCapacityProviderProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.AsgCapacityProviderProps
AsgCapacityProviderProps.Builder, AsgCapacityProviderProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theAsgCapacityProviderProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal IAutoScalingGroupThe autoscaling group to add as a Capacity Provider.final Boolean(deprecated) Specifies whether the containers can access the container instance role.final StringThe name of the capacity provider.final BooleanManaged instance draining facilitates graceful termination of Amazon ECS instances.final BooleanWhen enabled the scale-in and scale-out actions of the cluster's Auto Scaling Group will be managed for you.final BooleanWhen enabled the Auto Scaling Group will only terminate EC2 instances that no longer have running non-daemon tasks.final NumberThe period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group.final MachineImageTypeWhat type of machine image this is.final NumberMaximum scaling step size.final NumberMinimum scaling step size.final BooleanSpecify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.final NumberTarget capacity percent.final IKeyIfAddAutoScalingGroupCapacityOptions.taskDrainTimeis non-zero, then the ECS cluster creates an SNS Topic to as part of a system to drain instances of tasks when the instance is being shut down.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theAsgCapacityProviderProps.Builder.
-
-
Method Details
-
getAutoScalingGroup
Description copied from interface:AsgCapacityProviderPropsThe autoscaling group to add as a Capacity Provider.Warning: When passing an imported resource using
AutoScalingGroup.fromAutoScalingGroupNamealong withenableManagedTerminationProtection: true, theAsgCapacityProviderconstruct will not be able to enforce the optionnewInstancesProtectedFromScaleInof theAutoScalingGroup. In this case the constructor ofAsgCapacityProviderwill throw an exception.- Specified by:
getAutoScalingGroupin interfaceAsgCapacityProviderProps
-
getCapacityProviderName
Description copied from interface:AsgCapacityProviderPropsThe name of the capacity provider.If a name is specified, it cannot start with
aws,ecs, orfargate. If no name is specified, a default name in the CFNStackName-CFNResourceName-RandomString format is used. If the stack name starts withaws,ecs, orfargate, a unique resource name is generated that starts withcp-.Default: CloudFormation-generated name
- Specified by:
getCapacityProviderNamein interfaceAsgCapacityProviderProps
-
getEnableManagedDraining
Description copied from interface:AsgCapacityProviderPropsManaged instance draining facilitates graceful termination of Amazon ECS instances.This allows your service workloads to stop safely and be rescheduled to non-terminating instances. Infrastructure maintenance and updates are preformed without disruptions to workloads. To use managed instance draining, set enableManagedDraining to true.
Default: true
- Specified by:
getEnableManagedDrainingin interfaceAsgCapacityProviderProps
-
getEnableManagedScaling
Description copied from interface:AsgCapacityProviderPropsWhen enabled the scale-in and scale-out actions of the cluster's Auto Scaling Group will be managed for you.This means your cluster will automatically scale instances based on the load your tasks put on the cluster. For more information, see Using Managed Scaling in the ECS Developer Guide.
Default: true
- Specified by:
getEnableManagedScalingin interfaceAsgCapacityProviderProps
-
getEnableManagedTerminationProtection
Description copied from interface:AsgCapacityProviderPropsWhen enabled the Auto Scaling Group will only terminate EC2 instances that no longer have running non-daemon tasks.Scale-in protection will be automatically enabled on instances. When all non-daemon tasks are stopped on an instance, ECS initiates the scale-in process and turns off scale-in protection for the instance. The Auto Scaling Group can then terminate the instance. For more information see Managed termination protection in the ECS Developer Guide.
Managed scaling must also be enabled.
Default: true
- Specified by:
getEnableManagedTerminationProtectionin interfaceAsgCapacityProviderProps
-
getInstanceWarmupPeriod
Description copied from interface:AsgCapacityProviderPropsThe period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group.Must be between 0 and 10000.
Default: 300
- Specified by:
getInstanceWarmupPeriodin interfaceAsgCapacityProviderProps
-
getMaximumScalingStepSize
Description copied from interface:AsgCapacityProviderPropsMaximum scaling step size.In most cases this should be left alone.
Default: 1000
- Specified by:
getMaximumScalingStepSizein interfaceAsgCapacityProviderProps
-
getMinimumScalingStepSize
Description copied from interface:AsgCapacityProviderPropsMinimum scaling step size.In most cases this should be left alone.
Default: 1
- Specified by:
getMinimumScalingStepSizein interfaceAsgCapacityProviderProps
-
getTargetCapacityPercent
Description copied from interface:AsgCapacityProviderPropsTarget capacity percent.In most cases this should be left alone.
Default: 100
- Specified by:
getTargetCapacityPercentin interfaceAsgCapacityProviderProps
-
getCanContainersAccessInstanceRole
Description copied from interface:AddAutoScalingGroupCapacityOptions(deprecated) Specifies whether the containers can access the container instance role.Default: true if
- Specified by:
getCanContainersAccessInstanceRolein interfaceAddAutoScalingGroupCapacityOptions
-
getMachineImageType
Description copied from interface:AddAutoScalingGroupCapacityOptionsWhat type of machine image this is.Depending on the setting, different UserData will automatically be added to the
AutoScalingGroupto configure it properly for use with ECS.If you create an
AutoScalingGroupyourself and are adding it viaaddAutoScalingGroup(), you must specify this value. If you are adding anautoScalingGroupviaaddCapacity, this value will be determined from themachineImageyou pass.Default: - Automatically determined from `machineImage`, if available, otherwise `MachineImageType.AMAZON_LINUX_2`.
- Specified by:
getMachineImageTypein interfaceAddAutoScalingGroupCapacityOptions
-
getSpotInstanceDraining
Description copied from interface:AddAutoScalingGroupCapacityOptionsSpecify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.For more information, see Using Spot Instances.
Default: false
- Specified by:
getSpotInstanceDrainingin interfaceAddAutoScalingGroupCapacityOptions
-
getTopicEncryptionKey
Description copied from interface:AddAutoScalingGroupCapacityOptionsIfAddAutoScalingGroupCapacityOptions.taskDrainTimeis non-zero, then the ECS cluster creates an SNS Topic to as part of a system to drain instances of tasks when the instance is being shut down. If this property is provided, then this key will be used to encrypt the contents of that SNS Topic. See SNS Data Encryption for more information.Default: The SNS Topic will not be encrypted.
- Specified by:
getTopicEncryptionKeyin interfaceAddAutoScalingGroupCapacityOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-