@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.168Z") @Stability(value=Experimental) public class AsgCapacityProvider extends software.constructs.Construct
This allows an ECS cluster to target a specific EC2 Auto Scaling Group for the placement of tasks. Optionally (and recommended), ECS can manage the number of instances in the ASG to fit the tasks, and can ensure that instances are not prematurely terminated while there are still tasks running on them.
| Modifier and Type | Class and Description |
|---|---|
static class |
AsgCapacityProvider.Builder
(experimental) A fluent builder for
AsgCapacityProvider. |
| Modifier | Constructor and Description |
|---|---|
|
AsgCapacityProvider(software.constructs.Construct scope,
String id,
AsgCapacityProviderProps props) |
protected |
AsgCapacityProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AsgCapacityProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
AutoScalingGroup |
getAutoScalingGroup()
(experimental) Auto Scaling Group.
|
String |
getCapacityProviderName()
(experimental) Capacity provider name.
|
Boolean |
getEnableManagedTerminationProtection()
(experimental) Whether managed termination protection is enabled.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AsgCapacityProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected AsgCapacityProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AsgCapacityProvider(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AsgCapacityProviderProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public AutoScalingGroup getAutoScalingGroup()
@Stability(value=Experimental) @NotNull public String getCapacityProviderName()
Default: Chosen by CloudFormation
@Stability(value=Experimental) @Nullable public Boolean getEnableManagedTerminationProtection()
Copyright © 2021. All rights reserved.