Skip to content

CloudFormationClient.get_stack_policy

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
    GetStackPolicyOutput,
)

Signature

async def get_stack_policy(
    *,
    stack_name: str,
) -> GetStackPolicyOutput: ...

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 Yes The name or unique stack ID that's associated with the stack whose policy you want to get.

Output

GetStackPolicyOutput.

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
stack_policy_body 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.

GetStackPolicyOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

No modeled service errors for this operation.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model