update_application ( $application_name, $opt )

Updates the specified application to have the specified properties.

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

Access

public

Parameters

Parameter

Type

Required

Description

$application_name

string

Required

The name of the application to update. If no such application is found, 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 the application. Default: If not specified, AWS Elastic Beanstalk does not update the description.
  • 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.

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

$response = $bean->update_application('my-application', array(
	'Description' => 'This is an updated description of the app.'
));

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

Related Methods

Source

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

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback