Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SwapEnvironmentCNAMEs - AWS Elastic Beanstalk

SwapEnvironmentCNAMEs

Swaps the CNAMEs of two environments.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

DestinationEnvironmentId

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.

Type: String

Required: No

DestinationEnvironmentName

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.

Type: String

Length Constraints: Minimum length of 4. Maximum length of 40.

Required: No

SourceEnvironmentId

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.

Type: String

Required: No

SourceEnvironmentName

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.

Type: String

Length Constraints: Minimum length of 4. Maximum length of 40.

Required: No

Errors

For information about the errors that are common to all actions, see Common Errors.

Examples

Example

This example illustrates one usage of SwapEnvironmentCNAMEs.

Sample Request

https://elasticbeanstalk.us-west-2.amazonaws.com/?SourceEnvironmentName=SampleApp &DestinationEnvironmentName=SampleApp2 &Operation=SwapEnvironmentCNAMEs &AuthParams

Sample Response

<SwapEnvironmentCNAMEsResponse xmlns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/"> <ResponseMetadata> <RequestId>f4e1b145-9080-11e0-8e5a-a558e0ce1fc4</RequestId> </ResponseMetadata> </SwapEnvironmentCNAMEsResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.