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.

DeploymentReadyOption

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

type DeploymentReadyOption struct { ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` }

Information about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.

ActionOnTimeout

Type: *string

Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.

  • STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using ContinueDeployment. If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.

WaitTimeInMinutes

Type: *int64

The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for actionOnTimeout

Method

GoString

func (s DeploymentReadyOption) GoString() string

GoString returns the string representation

SetActionOnTimeout

func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption

SetActionOnTimeout sets the ActionOnTimeout field's value.

SetWaitTimeInMinutes

func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption

SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value.

String

func (s DeploymentReadyOption) String() string

String returns the string representation

On this page: