swap_environment_cnames ( $opt )

Swaps the CNAMEs of two environments.

Access

public

Parameters

Parameter

Type

Required

Description

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • SourceEnvironmentId - string - Optional - 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 - string - Optional - 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 - string - Optional - 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 - string - Optional - 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.
  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/elasticbeanstalk.class.php | Toggle source view (6 lines) | View on GitHub

public function swap_environment_cnames($opt = null)
{
    if (!$opt) $opt = array();
            
    return $this->authenticate('SwapEnvironmentCNAMEs', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback