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 theDestinationEnvironmentName
. You may also specify both. You must specify theSourceEnvironmentId
with theDestinationEnvironmentId
.Type: String
Required: No
- DestinationEnvironmentName
-
The name of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentID
or theDestinationEnvironmentName
. You may also specify both. You must specify theSourceEnvironmentName
with theDestinationEnvironmentName
.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 theSourceEnvironmentName
. You may also specify both. If you specify theSourceEnvironmentId
, you must specify theDestinationEnvironmentId
.Type: String
Required: No
- SourceEnvironmentName
-
The name of the source environment.
Condition: You must specify at least the
SourceEnvironmentID
or theSourceEnvironmentName
. You may also specify both. If you specify theSourceEnvironmentName
, you must specify theDestinationEnvironmentName
.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: