paws.compute (version 0.1.0)

elasticbeanstalk_swap_environment_cnam_es: Swaps the CNAMEs of two environments

Description

Swaps the CNAMEs of two environments.

Usage

elasticbeanstalk_swap_environment_cnam_es(SourceEnvironmentId,
  SourceEnvironmentName, DestinationEnvironmentId,
  DestinationEnvironmentName)

Arguments

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.

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.

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.

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.

Request syntax

svc$swap_environment_cnam_es(
  SourceEnvironmentId = "string",
  SourceEnvironmentName = "string",
  DestinationEnvironmentId = "string",
  DestinationEnvironmentName = "string"
)

Examples

Run this code
# NOT RUN {
# The following operation swaps the assigned subdomains of two
# environments:
# }
# NOT RUN {
svc$swap_environment_cnam_es(
  DestinationEnvironmentName = "my-env-green",
  SourceEnvironmentName = "my-env-blue"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace