Skip to content

CloudFormation module#

Index > CloudFormation

Auto-generated documentation for CloudFormation type annotations stubs module types-aiobotocore-cloudformation.

How to install#

From PyPI with pip#

Install types-aiobotocore for CloudFormation service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[cloudformation]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[cloudformation]'


# standalone installation
python -m pip install types-aiobotocore-cloudformation

How to uninstall#

python -m pip uninstall -y types-aiobotocore-cloudformation

Usage#

Code samples can be found in Examples.

CloudFormationClient#

Type annotations and code completion for session.create_client("cloudformation") as CloudFormationClient boto3 documentation

# CloudFormationClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_cloudformation.client import CloudFormationClient


session = get_session()
async with session.create_client("cloudformation") as client:
    client: CloudFormationClient

Paginators#

Type annotations and code completion for paginators from session.create_client("cloudformation").get_paginator("...").

# DescribeAccountLimitsPaginator usage example

from types_aiobotocore_cloudformation.paginator import DescribeAccountLimitsPaginator

def get_describe_account_limits_paginator() -> DescribeAccountLimitsPaginator:
    return client.get_paginator("describe_account_limits"))

Waiters#

Type annotations and code completion for waiters from session.create_client("cloudformation").get_waiter("...").

# ChangeSetCreateCompleteWaiter usage example

from types_aiobotocore_cloudformation.waiter import ChangeSetCreateCompleteWaiter

def get_change_set_create_complete_waiter() -> ChangeSetCreateCompleteWaiter:
    return Session().client("cloudformation").get_waiter("change_set_create_complete")

CloudFormationServiceResource#

Type annotations and code completion for session.resource("cloudformation") as CloudFormationServiceResource boto3 documentation

# CloudFormationServiceResource usage example

from types_aiobotocore_cloudformation.service_resource import CloudFormationServiceResource

Collections#

Type annotations and code completion for collections from session.resource("cloudformation").*.

# ServiceResourceStacksCollection usage example

from types_aiobotocore_cloudformation.service_resource import ServiceResourceStacksCollection

def get_collection() -> ServiceResourceStacksCollection:
    return resource.stacks

Resources#

Type annotations and code completion for additional resources from session.resource("cloudformation").*.

# Event usage example

from types_aiobotocore_cloudformation.service_resource import Event

def get_resource() -> Event:
    return resource.Event(...)

Literals#

Type annotations for literals used in methods and schema.

# AccountFilterTypeType usage example

from types_aiobotocore_cloudformation.literals import AccountFilterTypeType

def get_value() -> AccountFilterTypeType:
    return "DIFFERENCE"

Type definitions#

Type annotations for type definitions used in methods and schema.