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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • enableForceNewDeployment

      @Stability(Stable) public CfnService.ForceNewDeploymentProperty.Builder enableForceNewDeployment(Boolean enableForceNewDeployment)
      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)
      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)
      Parameters:
      forceNewDeploymentNonce - When you change the ForceNewDeploymentNonce 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

      @Stability(Stable) public CfnService.ForceNewDeploymentProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnService.ForceNewDeploymentProperty>
      Returns:
      a new instance of CfnService.ForceNewDeploymentProperty
      Throws:
      NullPointerException - if any required attribute was not provided