AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DeploymentCanarySettings

import "github.com/aws/aws-sdk-go/service/apigateway"

type DeploymentCanarySettings struct { PercentTraffic *float64 `locationName:"percentTraffic" type:"double"` StageVariableOverrides map[string]*string `locationName:"stageVariableOverrides" type:"map"` UseStageCache *bool `locationName:"useStageCache" type:"boolean"` }

The input configuration for a canary deployment.

PercentTraffic

Type: *float64

The percentage (0.0-100.0) of traffic routed to the canary deployment.

StageVariableOverrides

Type: map[string]*string

A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

UseStageCache

Type: *bool

A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

Method

GoString

func (s DeploymentCanarySettings) GoString() string

GoString returns the string representation

SetPercentTraffic

func (s *DeploymentCanarySettings) SetPercentTraffic(v float64) *DeploymentCanarySettings

SetPercentTraffic sets the PercentTraffic field's value.

SetStageVariableOverrides

func (s *DeploymentCanarySettings) SetStageVariableOverrides(v map[string]*string) *DeploymentCanarySettings

SetStageVariableOverrides sets the StageVariableOverrides field's value.

SetUseStageCache

func (s *DeploymentCanarySettings) SetUseStageCache(v bool) *DeploymentCanarySettings

SetUseStageCache sets the UseStageCache field's value.

String

func (s DeploymentCanarySettings) String() string

String returns the string representation

On this page: