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.

SwapEnvironmentCNAMEsInput

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

type SwapEnvironmentCNAMEsInput struct { DestinationEnvironmentId *string `type:"string"` DestinationEnvironmentName *string `min:"4" type:"string"` SourceEnvironmentId *string `type:"string"` SourceEnvironmentName *string `min:"4" type:"string"` }

Swaps the CNAMEs of two environments.

DestinationEnvironmentId

Type: *string

The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

DestinationEnvironmentName

Type: *string

The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

SourceEnvironmentId

Type: *string

The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

SourceEnvironmentName

Type: *string

The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

Method

GoString

func (s SwapEnvironmentCNAMEsInput) GoString() string

GoString returns the string representation

SetDestinationEnvironmentId

func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentId(v string) *SwapEnvironmentCNAMEsInput

SetDestinationEnvironmentId sets the DestinationEnvironmentId field's value.

SetDestinationEnvironmentName

func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentName(v string) *SwapEnvironmentCNAMEsInput

SetDestinationEnvironmentName sets the DestinationEnvironmentName field's value.

SetSourceEnvironmentId

func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentId(v string) *SwapEnvironmentCNAMEsInput

SetSourceEnvironmentId sets the SourceEnvironmentId field's value.

SetSourceEnvironmentName

func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentName(v string) *SwapEnvironmentCNAMEsInput

SetSourceEnvironmentName sets the SourceEnvironmentName field's value.

String

func (s SwapEnvironmentCNAMEsInput) String() string

String returns the string representation

Validate

func (s *SwapEnvironmentCNAMEsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: