interface CfnTrafficRoutingConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnTrafficRoutingConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnTrafficRoutingConfig |
Java | software.amazon.awscdk.CfnTrafficRoutingConfig |
Python | aws_cdk.CfnTrafficRoutingConfig |
TypeScript (source) | aws-cdk-lib » CfnTrafficRoutingConfig |
Traffic routing configuration settings.
The type of the CfnCodeDeployBlueGreenHookProps.trafficRoutingConfig
property.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnTrafficRoutingConfig: cdk.CfnTrafficRoutingConfig = {
type: cdk.CfnTrafficRoutingType.ALL_AT_ONCE,
// the properties below are optional
timeBasedCanary: {
bakeTimeMins: 123,
stepPercentage: 123,
},
timeBasedLinear: {
bakeTimeMins: 123,
stepPercentage: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
type | Cfn | The type of traffic shifting used by the blue-green deployment configuration. |
time | Cfn | The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_CANARY . |
time | Cfn | The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_LINEAR . |
type
Type:
Cfn
The type of traffic shifting used by the blue-green deployment configuration.
timeBasedCanary?
Type:
Cfn
(optional, default: none)
The configuration for traffic routing when type
is CfnTrafficRoutingType.TIME_BASED_CANARY
.
timeBasedLinear?
Type:
Cfn
(optional, default: none)
The configuration for traffic routing when type
is CfnTrafficRoutingType.TIME_BASED_LINEAR
.