class RolloutStrategy
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppConfig.Alpha.RolloutStrategy |
Go | github.com/aws/aws-cdk-go/awscdkappconfigalpha/v2#RolloutStrategy |
Java | software.amazon.awscdk.services.appconfig.alpha.RolloutStrategy |
Python | aws_cdk.aws_appconfig_alpha.RolloutStrategy |
TypeScript (source) | @aws-cdk/aws-appconfig-alpha » RolloutStrategy |
⚠️ Deprecated: undefined
Defines the rollout strategy for a deployment strategy and includes the growth factor, deployment duration, growth type, and optionally final bake time.
See also: https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appconfig_alpha from '@aws-cdk/aws-appconfig-alpha';
const rolloutStrategy = appconfig_alpha.RolloutStrategy.ALL_AT_ONCE;
Initializer
new RolloutStrategy()
⚠️ Deprecated: undefined
Properties
Name | Type | Description |
---|---|---|
deployment | Duration | The deployment duration of the rollout strategy. |
growth | number | The growth factor of the rollout strategy. |
final | Duration | The final bake time of the deployment strategy. |
growth | Growth | The growth type of the rollout strategy. |
static ALL_AT_ONCE | Rollout | Quick. |
static CANARY_10_PERCENT_20_MINUTES | Rollout | AWS Recommended. |
static LINEAR_20_PERCENT_EVERY_6_MINUTES | Rollout | AWS Recommended. |
static LINEAR_50_PERCENT_EVERY_30_SECONDS | Rollout | Testing/Demonstration. |
deploymentDuration
⚠️ Deprecated: undefined
Type:
Duration
The deployment duration of the rollout strategy.
growthFactor
⚠️ Deprecated: undefined
Type:
number
The growth factor of the rollout strategy.
finalBakeTime?
⚠️ Deprecated: undefined
Type:
Duration
(optional)
The final bake time of the deployment strategy.
growthType?
⚠️ Deprecated: undefined
Type:
Growth
(optional)
The growth type of the rollout strategy.
static ALL_AT_ONCE
⚠️ Deprecated: undefined
Type:
Rollout
Quick.
This strategy deploys the configuration to all targets immediately.
static CANARY_10_PERCENT_20_MINUTES
⚠️ Deprecated: undefined
Type:
Rollout
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.
static LINEAR_20_PERCENT_EVERY_6_MINUTES
⚠️ Deprecated: undefined
Type:
Rollout
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.
static LINEAR_50_PERCENT_EVERY_30_SECONDS
⚠️ Deprecated: undefined
Type:
Rollout
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
Name | Description |
---|---|
static exponential(props) | Build your own exponential rollout strategy. |
static linear(props) | Build your own linear rollout strategy. |
static exponential(props)
public static exponential(props: RolloutStrategyProps): RolloutStrategy
⚠️ Deprecated: undefined
Parameters
- props
Rollout
Strategy Props
Returns
Build your own exponential rollout strategy.
static linear(props)
public static linear(props: RolloutStrategyProps): RolloutStrategy
⚠️ Deprecated: undefined
Parameters
- props
Rollout
Strategy Props
Returns
Build your own linear rollout strategy.