package awsapigateway // The `CanarySetting` property type specifies settings for the canary deployment in this stage. // // `CanarySetting` is a property of the [StageDescription](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html) property type. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // canarySettingProperty := &CanarySettingProperty{ // PercentTraffic: jsii.Number(123), // StageVariableOverrides: map[string]*string{ // "stageVariableOverridesKey": jsii.String("stageVariableOverrides"), // }, // UseStageCache: jsii.Boolean(false), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html // type CfnDeployment_CanarySettingProperty struct { // The percent (0-100) of traffic diverted to a canary deployment. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-percenttraffic // PercentTraffic *float64 `field:"optional" json:"percentTraffic" yaml:"percentTraffic"` // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-stagevariableoverrides // StageVariableOverrides interface{} `field:"optional" json:"stageVariableOverrides" yaml:"stageVariableOverrides"` // A Boolean flag to indicate whether the canary deployment uses the stage cache or not. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-usestagecache // UseStageCache interface{} `field:"optional" json:"useStageCache" yaml:"useStageCache"` }