# DeploymentStrategyId

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

- Source: [`aws-appconfig/lib/deployment-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appconfig/lib/deployment-strategy.ts#L218)
- Type last changed: v2.130.0 · 23 Feb 2024

## Example

```ts
appconfig.DeploymentStrategy.fromDeploymentStrategyId(this, 'MyImportedDeploymentStrategy', appconfig.DeploymentStrategyId.fromString('abc123'));
```

## Initializer

```ts
new DeploymentStrategyId()
```

## Properties

- `ALL_AT_ONCE`: [DeploymentStrategyId](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeploymentStrategyId.html) (static) — **Quick**.

  This strategy deploys the configuration to all targets immediately.

- `CANARY_10_PERCENT_20_MINUTES`: [DeploymentStrategyId](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeploymentStrategyId.html) (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.

- `id`: string — The deployment strategy ID.

- `LINEAR_20_PERCENT_EVERY_6_MINUTES`: [DeploymentStrategyId](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeploymentStrategyId.html) (static) — **AWS Recommended**.

  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_SECONDS`: [DeploymentStrategyId](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeploymentStrategyId.html) (static) — **Testing/Demonstration**.

  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` (static) — Builds a deployment strategy ID from a string.

  **Parameters**

  - `deploymentStrategyId` — The deployment strategy ID.
