Class AwsEcsServiceDeploymentConfigurationDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AwsEcsServiceDeploymentConfigurationDetails.Builder,
AwsEcsServiceDeploymentConfigurationDetails>
Optional deployment parameters for the service.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Determines whether a service deployment fails if a service cannot reach a steady state.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
For a service that uses the rolling update (ECS
) deployment type, the maximum number of tasks in a service that are allowed in theRUNNING
orPENDING
state during a deployment, and for tasks that use the EC2 launch type, when any container instances are in theDRAINING
state.final Integer
For a service that uses the rolling update (ECS
) deployment type, the minimum number of tasks in a service that must remain in theRUNNING
state during a deployment, and while any container instances are in theDRAINING
state if the service contains tasks using the EC2 launch type.static Class
<? extends AwsEcsServiceDeploymentConfigurationDetails.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
deploymentCircuitBreaker
public final AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails deploymentCircuitBreaker()Determines whether a service deployment fails if a service cannot reach a steady state.
- Returns:
- Determines whether a service deployment fails if a service cannot reach a steady state.
-
maximumPercent
For a service that uses the rolling update (
ECS
) deployment type, the maximum number of tasks in a service that are allowed in theRUNNING
orPENDING
state during a deployment, and for tasks that use the EC2 launch type, when any container instances are in theDRAINING
state. Provided as a percentage of the desired number of tasks. The default value is 200%.For a service that uses the blue/green (
CODE_DEPLOY
) orEXTERNAL
deployment types, and tasks that use the EC2 launch type, the maximum number of tasks in the service that remain in theRUNNING
state while the container instances are in theDRAINING
state.For the Fargate launch type, the maximum percent value is not used.
- Returns:
- For a service that uses the rolling update (
ECS
) deployment type, the maximum number of tasks in a service that are allowed in theRUNNING
orPENDING
state during a deployment, and for tasks that use the EC2 launch type, when any container instances are in theDRAINING
state. Provided as a percentage of the desired number of tasks. The default value is 200%.For a service that uses the blue/green (
CODE_DEPLOY
) orEXTERNAL
deployment types, and tasks that use the EC2 launch type, the maximum number of tasks in the service that remain in theRUNNING
state while the container instances are in theDRAINING
state.For the Fargate launch type, the maximum percent value is not used.
-
minimumHealthyPercent
For a service that uses the rolling update (
ECS
) deployment type, the minimum number of tasks in a service that must remain in theRUNNING
state during a deployment, and while any container instances are in theDRAINING
state if the service contains tasks using the EC2 launch type. Expressed as a percentage of the desired number of tasks. The default value is 100%.For a service that uses the blue/green (
CODE_DEPLOY
) orEXTERNAL
deployment types and tasks that use the EC2 launch type, the minimum number of the tasks in the service that remain in theRUNNING
state while the container instances are in theDRAINING
state.For the Fargate launch type, the minimum healthy percent value is not used.
- Returns:
- For a service that uses the rolling update (
ECS
) deployment type, the minimum number of tasks in a service that must remain in theRUNNING
state during a deployment, and while any container instances are in theDRAINING
state if the service contains tasks using the EC2 launch type. Expressed as a percentage of the desired number of tasks. The default value is 100%.For a service that uses the blue/green (
CODE_DEPLOY
) orEXTERNAL
deployment types and tasks that use the EC2 launch type, the minimum number of the tasks in the service that remain in theRUNNING
state while the container instances are in theDRAINING
state.For the Fargate launch type, the minimum healthy percent value is not used.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AwsEcsServiceDeploymentConfigurationDetails.Builder,
AwsEcsServiceDeploymentConfigurationDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends AwsEcsServiceDeploymentConfigurationDetails.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-