@Stability(value=Stable) @Internal public static final class CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Builder, CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getBase()
The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
String |
getCapacityProvider()
The short name of the capacity provider.
|
Number |
getWeight()
The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Builder builder)
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.Builder.public final String getCapacityProvider()
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyPropertygetCapacityProvider in interface CfnClusterCapacityProviderAssociations.CapacityProviderStrategyPropertypublic final Number getBase()
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty
Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
getBase in interface CfnClusterCapacityProviderAssociations.CapacityProviderStrategyPropertypublic final Number getWeight()
CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty
The weight value is taken into consideration after the base value, if defined, is satisfied.
If no weight value is specified, the default value of 0 is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of 0 will not be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of 0 , any RunTask or CreateService actions using the capacity provider strategy will fail.
An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of 1 , then when the base is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of 1 for capacityProviderA and a weight of 4 for capacityProviderB , then for every one task that is run using capacityProviderA , four tasks would use capacityProviderB .
getWeight in interface CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.