Class CfnService.ForceNewDeploymentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.ForceNewDeploymentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ForceNewDeploymentProperty>
- Enclosing interface:
CfnService.ForceNewDeploymentProperty
@Stability(Stable)
public static final class CfnService.ForceNewDeploymentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ForceNewDeploymentProperty>
A builder for
CfnService.ForceNewDeploymentProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enableForceNewDeployment
(Boolean enableForceNewDeployment) Sets the value ofCfnService.ForceNewDeploymentProperty.getEnableForceNewDeployment()
enableForceNewDeployment
(IResolvable enableForceNewDeployment) Sets the value ofCfnService.ForceNewDeploymentProperty.getEnableForceNewDeployment()
forceNewDeploymentNonce
(String forceNewDeploymentNonce) Sets the value ofCfnService.ForceNewDeploymentProperty.getForceNewDeploymentNonce()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableForceNewDeployment
@Stability(Stable) public CfnService.ForceNewDeploymentProperty.Builder enableForceNewDeployment(Boolean enableForceNewDeployment) Sets the value ofCfnService.ForceNewDeploymentProperty.getEnableForceNewDeployment()
- Parameters:
enableForceNewDeployment
- Determines whether to force a new deployment of the service. This parameter is required. 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 CfnService.ForceNewDeploymentProperty.Builder enableForceNewDeployment(IResolvable enableForceNewDeployment) Sets the value ofCfnService.ForceNewDeploymentProperty.getEnableForceNewDeployment()
- Parameters:
enableForceNewDeployment
- Determines whether to force a new deployment of the service. This parameter is required. 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 CfnService.ForceNewDeploymentProperty.Builder forceNewDeploymentNonce(String forceNewDeploymentNonce) Sets the value ofCfnService.ForceNewDeploymentProperty.getForceNewDeploymentNonce()
- Parameters:
forceNewDeploymentNonce
- When you change theForceNewDeploymentNonce
value 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.ForceNewDeploymentProperty>
- Returns:
- a new instance of
CfnService.ForceNewDeploymentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-