Returns a full description of the launch configurations, or the specified launch configurations, if they exist.
If no name is specified, then the full details of all launch configurations are returned.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Describe all launch configurations.
// Instantiate the class $as = new AmazonAS(); $response = $as->describe_launch_configurations(); // Success? var_dump($response->isOK());Result:
bool(true)
Describe specific launch configurations.
This is a fairly contrived example where we look up a list of launch configuration names, then pass that array back into a new call.
// Instantiate the class $as = new AmazonAS(); // Fetch list of all LaunchConfigurationName that contain the word "Test". $response = $as->describe_launch_configurations(); $list_of_launch_configurations = $response->body->query('//LaunchConfigurationName[contains(., "Test")]')->map_string(); // Pass the list (array) into a new request. $response = $as->describe_launch_configurations(array( 'LaunchConfigurationNames' => $list_of_launch_configurations )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (15 lines) | View on GitHub