CloudFormationClient.describe_stacks
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide . If the stack doesn't exist, a ValidationError is returned.
Install and imports
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
DescribeStacksOutput,
)
Signature
async def describe_stacks(
*,
stack_name: str | None = None,
next_token: str | None = None,
) -> DescribeStacksOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
stack_name |
No | If you don't pass a parameter to StackName , the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName . The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid... |
next_token |
No | The token for the next set of items to return. (You received this token from a previous call.) |
Output
DescribeStacksOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
stacks |
list[StackOutput] | None |
Always present | StackOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.describe_stacks(...) accepts the same arguments and returns AsyncIterator[DescribeStacksOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: not exposed.
No output stream.
Waiters
from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.
client.waiters.stack_create_complete:
async def stack_create_complete(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput: ...
Default fixed delay: 30 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | allStringEquals | Stacks[].StackStatus |
CREATE_COMPLETE |
| 1 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_COMPLETE |
| 2 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_IN_PROGRESS |
| 3 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS |
| 4 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_FAILED |
| 5 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_IN_PROGRESS |
| 6 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_FAILED |
| 7 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS |
| 8 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_COMPLETE |
| 9 | failure | anyStringEquals | Stacks[].StackStatus |
CREATE_FAILED |
| 10 | failure | anyStringEquals | Stacks[].StackStatus |
DELETE_COMPLETE |
| 11 | failure | anyStringEquals | Stacks[].StackStatus |
DELETE_FAILED |
| 12 | failure | anyStringEquals | Stacks[].StackStatus |
ROLLBACK_FAILED |
| 13 | failure | anyStringEquals | Stacks[].StackStatus |
ROLLBACK_COMPLETE |
| 14 | failure | errorType | — |
ValidationError |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
client.waiters.stack_delete_complete:
async def stack_delete_complete(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput | None: ...
Default fixed delay: 30 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output or None when a modeled error confirms success.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | allStringEquals | Stacks[].StackStatus |
DELETE_COMPLETE |
| 1 | success | errorType | — |
ValidationError |
| 2 | failure | anyStringEquals | Stacks[].StackStatus |
DELETE_FAILED |
| 3 | failure | anyStringEquals | Stacks[].StackStatus |
CREATE_FAILED |
| 4 | failure | anyStringEquals | Stacks[].StackStatus |
ROLLBACK_FAILED |
| 5 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_IN_PROGRESS |
| 6 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_FAILED |
| 7 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_COMPLETE |
| 8 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_COMPLETE |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
client.waiters.stack_exists:
async def stack_exists(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput: ...
Default fixed delay: 5 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | success | — |
True |
| 1 | retry | errorType | — |
ValidationError |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
client.waiters.stack_import_complete:
async def stack_import_complete(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput: ...
Default fixed delay: 30 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | allStringEquals | Stacks[].StackStatus |
IMPORT_COMPLETE |
| 1 | failure | anyStringEquals | Stacks[].StackStatus |
ROLLBACK_COMPLETE |
| 2 | failure | anyStringEquals | Stacks[].StackStatus |
ROLLBACK_FAILED |
| 3 | failure | anyStringEquals | Stacks[].StackStatus |
IMPORT_ROLLBACK_IN_PROGRESS |
| 4 | failure | anyStringEquals | Stacks[].StackStatus |
IMPORT_ROLLBACK_FAILED |
| 5 | failure | anyStringEquals | Stacks[].StackStatus |
IMPORT_ROLLBACK_COMPLETE |
| 6 | failure | errorType | — |
ValidationError |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
client.waiters.stack_rollback_complete:
async def stack_rollback_complete(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput: ...
Default fixed delay: 30 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_COMPLETE |
| 1 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_FAILED |
| 2 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_FAILED |
| 3 | failure | anyStringEquals | Stacks[].StackStatus |
DELETE_FAILED |
| 4 | failure | errorType | — |
ValidationError |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
client.waiters.stack_update_complete:
async def stack_update_complete(
*,
stack_name: str | None = None,
next_token: str | None = None,
waiter_config: WaiterConfig | None = None,
) -> DescribeStacksOutput: ...
Default fixed delay: 30 seconds. Default maximum: 40 polls. No overall timeout unless configured.
Returns the successful polling Output.
| Acceptor index | State | Matcher | Model path | Expected |
|---|---|---|---|---|
| 0 | success | allStringEquals | Stacks[].StackStatus |
UPDATE_COMPLETE |
| 1 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_FAILED |
| 2 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_FAILED |
| 3 | failure | anyStringEquals | Stacks[].StackStatus |
UPDATE_ROLLBACK_COMPLETE |
| 4 | failure | errorType | — |
ValidationError |
Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.
Errors
No modeled service errors for this operation.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.