interface ForceNewDeploymentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.CfnServicePropsMixin.ForceNewDeploymentProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#CfnServicePropsMixin_ForceNewDeploymentProperty |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnServicePropsMixin.ForceNewDeploymentProperty |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.CfnServicePropsMixin.ForceNewDeploymentProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ecs » mixins » CfnServicePropsMixin » ForceNewDeploymentProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ecs_mixins } from '@aws-cdk/mixins-preview/aws-ecs';
const forceNewDeploymentProperty: ecs_mixins.CfnServicePropsMixin.ForceNewDeploymentProperty = {
enableForceNewDeployment: false,
forceNewDeploymentNonce: 'forceNewDeploymentNonce',
};
Properties
| Name | Type | Description |
|---|---|---|
| enable | boolean | IResolvable | Determines whether to force a new deployment of the service. |
| force | string | 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. |
enableForceNewDeployment?
Type:
boolean | IResolvable
(optional)
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.
forceNewDeploymentNonce?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript