Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
List all stacks.
$stack = new AmazonCloudFormation(); $response = $stack->list_stacks(); // Success? var_dump($response->isOK());Result:
bool(true)
List specific stacks.
$stack = new AmazonCloudFormation(); // Get a list of stacks that match a particular stack status $response = $stack->list_stacks(array( 'StackStatusFilter' => array('CREATE_COMPLETE') )); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/cloudformation.class.php | Toggle source view (15 lines) | View on GitHub