# DeploymentStrategyId

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

Obtainable from: DeploymentStrategyId.ALL_AT_ONCE, DeploymentStrategyId.CANARY_10_PERCENT_20_MINUTES, DeploymentStrategyId.LINEAR_20_PERCENT_EVERY_6_MINUTES, DeploymentStrategyId.LINEAR_50_PERCENT_EVERY_30_SECONDS, DeploymentStrategyId.fromString
Used as argument in: [DeploymentStrategy.fromDeploymentStrategyId](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeploymentStrategy.html#fromdeploymentstrategyid)

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

## Example

TypeScript:

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

Python:

```python
appconfig.DeploymentStrategy.from_deployment_strategy_id(self, "MyImportedDeploymentStrategy", appconfig.DeploymentStrategyId.from_string("abc123"))
```

Java:

```java
DeploymentStrategy.fromDeploymentStrategyId(this, "MyImportedDeploymentStrategy", DeploymentStrategyId.fromString("abc123"));
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
DeploymentStrategy.FromDeploymentStrategyId(this, "MyImportedDeploymentStrategy", DeploymentStrategyId.FromString("abc123"));
```

Golang:

```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

TypeScript:

```ts
new DeploymentStrategyId()
```

Python:

```python
DeploymentStrategyId()
```

Java:

```java
new DeploymentStrategyId()
```

C# / .NET:

```csharp
new DeploymentStrategyId()
```

Golang:

```go
NewDeploymentStrategyId()
```

## Properties

- `ALL_AT_ONCE`: [DeploymentStrategyId](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/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.
