Skip to content

Swap Environment Cnam Es

elasticbeanstalk_swap_environment_cnam_es R Documentation

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.

Value

An empty list.

Request syntax

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

Examples

## Not run: 
# The following operation swaps the assigned subdomains of two
# environments:
svc$swap_environment_cnam_es(
  DestinationEnvironmentName = "my-env-green",
  SourceEnvironmentName = "my-env-blue"
)

## End(Not run)