ElasticBeanstalk / Client / swap_environment_cnames
swap_environment_cnames#
- ElasticBeanstalk.Client.swap_environment_cnames(**kwargs)#
Swaps the CNAMEs of two environments.
See also: AWS API Documentation
Request Syntax
response = client.swap_environment_cnames( SourceEnvironmentId='string', SourceEnvironmentName='string', DestinationEnvironmentId='string', DestinationEnvironmentName='string' )
- Parameters:
SourceEnvironmentId (string) –
The ID of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentId, you must specify theDestinationEnvironmentId.SourceEnvironmentName (string) –
The name of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentName, you must specify theDestinationEnvironmentName.DestinationEnvironmentId (string) –
The ID of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentIdwith theDestinationEnvironmentId.DestinationEnvironmentName (string) –
The name of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentNamewith theDestinationEnvironmentName.
- Returns:
None
Examples
The following operation swaps the assigned subdomains of two environments:
response = client.swap_environment_cnames( DestinationEnvironmentName='my-env-green', SourceEnvironmentName='my-env-blue', ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }