interface CanarySettingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApiGateway.Mixins.CfnStagePropsMixin.CanarySettingProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapigateway/mixins#CfnStagePropsMixin_CanarySettingProperty |
Java | software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnStagePropsMixin.CanarySettingProperty |
Python | aws_cdk.mixins_preview.aws_apigateway.mixins.CfnStagePropsMixin.CanarySettingProperty |
TypeScript | @aws-cdk/mixins-preview » aws_apigateway » mixins » CfnStagePropsMixin » CanarySettingProperty |
Configuration settings of a canary deployment.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as apigateway_mixins } from '@aws-cdk/mixins-preview/aws-apigateway';
const canarySettingProperty: apigateway_mixins.CfnStagePropsMixin.CanarySettingProperty = {
deploymentId: 'deploymentId',
percentTraffic: 123,
stageVariableOverrides: {
stageVariableOverridesKey: 'stageVariableOverrides',
},
useStageCache: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| deployment | string | The ID of the canary deployment. |
| percent | number | The percent (0-100) of traffic diverted to a canary deployment. |
| stage | { [string]: string } | IResolvable | Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. |
| use | boolean | IResolvable | A Boolean flag to indicate whether the canary deployment uses the stage cache or not. |
deploymentId?
Type:
string
(optional)
The ID of the canary deployment.
percentTraffic?
Type:
number
(optional)
The percent (0-100) of traffic diverted to a canary deployment.
stageVariableOverrides?
Type:
{ [string]: string } | IResolvable
(optional)
Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary.
These stage variables are represented as a string-to-string map between stage variable names and their values.
useStageCache?
Type:
boolean | IResolvable
(optional)
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

.NET
Go
Java
Python
TypeScript