update_application_version ( $application_name, $version_label, $opt )

Updates the specified application version to have the specified properties.

If a property (for example, description) is not provided, the value remains unchanged. To clear properties, specify an empty string.

Access

public

Parameters

Parameter

Type

Required

Description

$application_name

string

Required

The name of the application associated with this version. If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.

$version_label

string

Required

The name of the version to update. If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.

$opt

array

Optional

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

  • Description - string - Optional - A new description for this release.
  • 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.

Examples

Update an application version.

// Instantiate the class
$bean = new AmazonElasticBeanstalk();

$response = $bean->update_application_version('my-application', '1.0', array(
	'Description' => 'This is an updated application version description.'
));

// Success?
var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

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

public function update_application_version($application_name, $version_label, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ApplicationName'] = $application_name;
    $opt['VersionLabel'] = $version_label;
    
    return $this->authenticate('UpdateApplicationVersion', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback