Skip to content
v2.278.0

DeploymentStrategyId Class ​

Defines the deployment strategy ID's of AWS AppConfig deployment strategies.

Example ​

ts
appconfig.DeploymentStrategy.fromDeploymentStrategyId(this, 'MyImportedDeploymentStrategy', appconfig.DeploymentStrategyId.fromString('abc123'));
python
appconfig.DeploymentStrategy.from_deployment_strategy_id(self, "MyImportedDeploymentStrategy", appconfig.DeploymentStrategyId.from_string("abc123"))
java
DeploymentStrategy.fromDeploymentStrategyId(this, "MyImportedDeploymentStrategy", DeploymentStrategyId.fromString("abc123"));
csharp
// Install: dotnet add package Amazon.CDK.Lib
DeploymentStrategy.FromDeploymentStrategyId(this, "MyImportedDeploymentStrategy", DeploymentStrategyId.FromString("abc123"));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
appconfig.DeploymentStrategy_FromDeploymentStrategyId(this, jsii.String("MyImportedDeploymentStrategy"), appconfig.DeploymentStrategyId_FromString(jsii.String("abc123")))

Initializer ​

ts
new DeploymentStrategyId()
python
DeploymentStrategyId()
java
new DeploymentStrategyId()
csharp
new DeploymentStrategyId()
go
NewDeploymentStrategyId()

Properties ​

**Quick**.

This strategy deploys the configuration to all targets immediately.

CANARY_10_PERCENT_20_MINUTESDeploymentStrategyIdCANARY_10_PERCENT_20_MINUTESDeploymentStrategyIdCANARY_10_PERCENT_20_MINUTESDeploymentStrategyIdCANARY_10_PERCENT_20_MINUTESDeploymentStrategyIdCANARY_10_PERCENT_20_MINUTESDeploymentStrategyId static #
**AWS Recommended**.

This strategy processes the deployment exponentially using a 10% growth factor over 20 minutes. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

idstringidstridStringIdstringId*string #
The deployment strategy ID.
LINEAR_20_PERCENT_EVERY_6_MINUTESDeploymentStrategyIdLINEAR_20_PERCENT_EVERY_6_MINUTESDeploymentStrategyIdLINEAR_20_PERCENT_EVERY_6_MINUTESDeploymentStrategyIdLINEAR_20_PERCENT_EVERY_6_MINUTESDeploymentStrategyIdLINEAR_20_PERCENT_EVERY_6_MINUTESDeploymentStrategyId static #
**AWS Recommended**.
notes

This strategy deploys the configuration to 20% of all targets every six minutes for a 30 minute deployment. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

LINEAR_50_PERCENT_EVERY_30_SECONDSDeploymentStrategyIdLINEAR_50_PERCENT_EVERY_30_SECONDSDeploymentStrategyIdLINEAR_50_PERCENT_EVERY_30_SECONDSDeploymentStrategyIdLINEAR_50_PERCENT_EVERY_30_SECONDSDeploymentStrategyIdLINEAR_50_PERCENT_EVERY_30_SECONDSDeploymentStrategyId static #
**Testing/Demonstration**.
notes

This strategy deploys the configuration to half of all targets every 30 seconds for a one-minute deployment. AWS AppConfig recommends using this strategy only for testing or demonstration purposes because it has a short duration and bake time.

Methods ​

fromString(deploymentStrategyId: string): DeploymentStrategyId // chainable@staticmethod def from_string(deployment_strategy_id: str) -> DeploymentStrategyIdpublic static DeploymentStrategyId fromString(String deploymentStrategyId)public static DeploymentStrategyId FromString(string deploymentStrategyId)func FromString(DeploymentStrategyId *string) DeploymentStrategyId static #
Builds a deployment strategy ID from a string.
1 parameter

Parameters

  • deploymentStrategyIddeployment_strategy_iddeploymentStrategyIddeploymentStrategyIdDeploymentStrategyId — The deployment strategy ID.