Class CfnServicePropsMixin.ForceNewDeploymentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.ForceNewDeploymentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.ForceNewDeploymentProperty>
- Enclosing interface:
CfnServicePropsMixin.ForceNewDeploymentProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.ForceNewDeploymentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.ForceNewDeploymentProperty>
A builder for
CfnServicePropsMixin.ForceNewDeploymentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableForceNewDeployment(Boolean enableForceNewDeployment) enableForceNewDeployment(IResolvable enableForceNewDeployment) forceNewDeploymentNonce(String forceNewDeploymentNonce)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableForceNewDeployment
@Stability(Stable) public CfnServicePropsMixin.ForceNewDeploymentProperty.Builder enableForceNewDeployment(Boolean enableForceNewDeployment) - Parameters:
enableForceNewDeployment- Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (my_image:latest) or to roll Fargate tasks onto a newer platform version.- Returns:
this
-
enableForceNewDeployment
@Stability(Stable) public CfnServicePropsMixin.ForceNewDeploymentProperty.Builder enableForceNewDeployment(IResolvable enableForceNewDeployment) - Parameters:
enableForceNewDeployment- Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (my_image:latest) or to roll Fargate tasks onto a newer platform version.- Returns:
this
-
forceNewDeploymentNonce
@Stability(Stable) public CfnServicePropsMixin.ForceNewDeploymentProperty.Builder forceNewDeploymentNonce(String forceNewDeploymentNonce) - Parameters:
forceNewDeploymentNonce- When you change theForceNewDeploymentNoncevalue in your template, it signals Amazon ECS to start a new deployment even though no other service parameters have changed. The value must be a unique, time- varying value like a timestamp, random string, or sequence number. Use this property when you want to ensure your tasks pick up the latest version of a Docker image that uses the same tag but has been updated in the registry.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.ForceNewDeploymentProperty>- Returns:
- a new instance of
CfnServicePropsMixin.ForceNewDeploymentProperty - Throws:
NullPointerException- if any required attribute was not provided
-