delete_application_version ( $application_name, $version_label, $opt )

Deletes the specified version from the specified application.

You cannot delete an application version that is associated with a running environment.

Access

public

Parameters

Parameter

Type

Required

Description

$application_name

string

Required

The name of the application to delete releases from.

$version_label

string

Required

The label of the version to delete.

$opt

array

Optional

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

  • DeleteSourceBundle - boolean - Optional - Indicates whether to delete the associated source bundle from Amazon S3:
    • true: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation.
    • false: No action is taken on the Amazon S3 source bundle specified at time of creation.
    Valid Values: true | false
  • 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

Deletes an application version.

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

$response = $bean->delete_application_version('my-application', '1.0', array(
	'DeleteSourceBundle' => 'true'
));

// 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 delete_application_version($application_name, $version_label, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ApplicationName'] = $application_name;
    $opt['VersionLabel'] = $version_label;
    
    return $this->authenticate('DeleteApplicationVersion', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback