AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the SwapEnvironmentCNAMEs operation. Swaps the CNAMEs of two environments.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticBeanstalk.AmazonElasticBeanstalkRequest
      Amazon.ElasticBeanstalk.Model.SwapEnvironmentCNAMEsRequest

Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z

Syntax

C#
public class SwapEnvironmentCNAMEsRequest : AmazonElasticBeanstalkRequest
         IAmazonWebServiceRequest

The SwapEnvironmentCNAMEsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DestinationEnvironmentId System.String

Gets and sets the property 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.

Public Property DestinationEnvironmentName System.String

Gets and sets the property 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.

Public Property SourceEnvironmentId System.String

Gets and sets the property 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.

Public Property SourceEnvironmentName System.String

Gets and sets the property 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.

Examples

The following operation swaps the assigned subdomains of two environments:

To swap environment CNAMES


var response = client.SwapEnvironmentCNAMEs(new SwapEnvironmentCNAMEsRequest 
{
    DestinationEnvironmentName = "my-env-green",
    SourceEnvironmentName = "my-env-blue"
});


            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms