Type annotations for aiobotocore.CloudFormation 2.1.0 service generated by mypy-boto3-builder 6.4.2
Project description
mypy-boto3-cloudformation
Type annotations for boto3.CloudFormation 1.20.47 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.4.2.
More information can be found on boto3-stubs page and in types-aiobotocore-cloudformation docs
See how it helps to find and fix potential bugs:
- mypy-boto3-cloudformation
How to install
VSCode extension
Add
AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and CloudFormation
.
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.create_client 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
From conda-forge
Installing mypy-boto3-cloudformation
from the conda-forge
channel can be
achieved by adding conda-forge
to your channels with:
conda config --add channels conda-forge
conda config --set channel_priority strict
Once the conda-forge
channel has been enabled, mypy-boto3-cloudformation
can be installed with:
conda install mypy-boto3-cloudformation
It is possible to list all of the versions of mypy-boto3-cloudformation
available on your platform with:
conda search mypy-boto3-cloudformation --channel conda-forge
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
types-aiobotocore[cloudformation]
in your environment:python -m pip install 'types-aiobotocore[cloudformation]'
Both type checking and auto-complete should work for CloudFormation
service.
No explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
types-aiobotocore[cloudformation]
in your environment:python -m pip install 'types-aiobotocore[cloudformation]'
Both type checking and auto-complete should work for CloudFormation
service.
No explicit type annotations required, write your aiobotocore
code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed
types-aiobotocore
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
types-aiobotocore[cloudformation]
in your environment:python -m pip install 'types-aiobotocore[cloudformation]'
- Run
mypy
as usual
Type checking should work for CloudFormation
service. No explicit type
annotations required, write your aiobotocore
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
types-aiobotocore[cloudformation]
in your environment:python -m pip install 'types-aiobotocore[cloudformation]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for CloudFormation
service. No explicit type
annotations required, write your aiobotocore
code as usual.
Explicit type annotations
Client annotations
CloudFormationClient
provides annotations for
session.create_client("cloudformation")
.
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation import CloudFormationClient
session = get_session()
async with session.create_client("cloudformation") as client:
client: CloudFormationClient
# now client usage is checked by mypy and IDE should provide code auto-complete
Paginators annotations
types_aiobotocore_cloudformation.paginator
module contains type annotations
for all paginators.
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation import CloudFormationClient
from types_aiobotocore_cloudformation.paginator import (
DescribeAccountLimitsPaginator,
DescribeChangeSetPaginator,
DescribeStackEventsPaginator,
DescribeStacksPaginator,
ListChangeSetsPaginator,
ListExportsPaginator,
ListImportsPaginator,
ListStackInstancesPaginator,
ListStackResourcesPaginator,
ListStackSetOperationResultsPaginator,
ListStackSetOperationsPaginator,
ListStackSetsPaginator,
ListStacksPaginator,
ListTypesPaginator,
)
session = get_session()
async with session.create_client("cloudformation") as client:
client: CloudFormationClient
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_account_limits_paginator: DescribeAccountLimitsPaginator = client.get_paginator("describe_account_limits")
describe_change_set_paginator: DescribeChangeSetPaginator = client.get_paginator("describe_change_set")
describe_stack_events_paginator: DescribeStackEventsPaginator = client.get_paginator("describe_stack_events")
describe_stacks_paginator: DescribeStacksPaginator = client.get_paginator("describe_stacks")
list_change_sets_paginator: ListChangeSetsPaginator = client.get_paginator("list_change_sets")
list_exports_paginator: ListExportsPaginator = client.get_paginator("list_exports")
list_imports_paginator: ListImportsPaginator = client.get_paginator("list_imports")
list_stack_instances_paginator: ListStackInstancesPaginator = client.get_paginator("list_stack_instances")
list_stack_resources_paginator: ListStackResourcesPaginator = client.get_paginator("list_stack_resources")
list_stack_set_operation_results_paginator: ListStackSetOperationResultsPaginator = client.get_paginator("list_stack_set_operation_results")
list_stack_set_operations_paginator: ListStackSetOperationsPaginator = client.get_paginator("list_stack_set_operations")
list_stack_sets_paginator: ListStackSetsPaginator = client.get_paginator("list_stack_sets")
list_stacks_paginator: ListStacksPaginator = client.get_paginator("list_stacks")
list_types_paginator: ListTypesPaginator = client.get_paginator("list_types")
```
### Waiters annotations
`types_aiobotocore_cloudformation.waiter` module contains type annotations for all waiters.
```python
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation.client import CloudFormationClient
from types_aiobotocore_cloudformation.waiter import (
ChangeSetCreateCompleteWaiter,
StackCreateCompleteWaiter,
StackDeleteCompleteWaiter,
StackExistsWaiter,
StackImportCompleteWaiter,
StackRollbackCompleteWaiter,
StackUpdateCompleteWaiter,
TypeRegistrationCompleteWaiter,
)
session = get_session()
async with session.create_client("cloudformation") as client:
client: CloudFormationClient
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
change_set_create_complete_waiter: ChangeSetCreateCompleteWaiter = client.get_waiter("change_set_create_complete")
stack_create_complete_waiter: StackCreateCompleteWaiter = client.get_waiter("stack_create_complete")
stack_delete_complete_waiter: StackDeleteCompleteWaiter = client.get_waiter("stack_delete_complete")
stack_exists_waiter: StackExistsWaiter = client.get_waiter("stack_exists")
stack_import_complete_waiter: StackImportCompleteWaiter = client.get_waiter("stack_import_complete")
stack_rollback_complete_waiter: StackRollbackCompleteWaiter = client.get_waiter("stack_rollback_complete")
stack_update_complete_waiter: StackUpdateCompleteWaiter = client.get_waiter("stack_update_complete")
type_registration_complete_waiter: TypeRegistrationCompleteWaiter = client.get_waiter("type_registration_complete")
```
<a id="service-resource-annotations"></a>
### Service Resource annotations
`CloudFormationServiceResource` provides annotations for `aiobotocore.resource("cloudformation")`.
```python
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation import CloudFormationServiceResource
session = get_session()
async with session.resource("cloudformation") as resource:
resource: CloudFormationServiceResource
# now resource usage is checked by mypy and IDE should provide code auto-complete
Other resources annotations
types_aiobotocore_cloudformation.service_resource
module contains type
annotations for all resources.
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation import CloudFormationServiceResource
from types_aiobotocore_cloudformation.service_resource import (
Event,
Stack,
StackResource,
StackResourceSummary,
)
session = get_session()
async with session.resource("cloudformation") as resource:
resource: CloudFormationServiceResource
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
my_event: Event = resource.Event(...)
my_stack: Stack = resource.Stack(...)
my_stack_resource: StackResource = resource.StackResource(...)
my_stack_resource_summary: StackResourceSummary = resource.StackResourceSummary(...)
Collections annotations
types_aiobotocore_cloudformation.service_resource
module contains type
annotations for all CloudFormationServiceResource
collections.
from aiobotocore.session import get_session
from types_aiobotocore_cloudformation import CloudFormationServiceResource
from types_aiobotocore_cloudformation.service_resource import (
ServiceResourceStacksCollection,
)
session = get_session()
async with session.resource("cloudformation") as resource:
resource: CloudFormationServiceResource
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
stacks: cloudformation_resources.ServiceResourceStacksCollection = resource.stacks
Literals
types_aiobotocore_cloudformation.literals
module contains literals extracted
from shapes that can be used in user code for type checking.
from types_aiobotocore_cloudformation.literals import (
AccountGateStatusType,
CallAsType,
CapabilityType,
CategoryType,
ChangeActionType,
ChangeSetCreateCompleteWaiterName,
ChangeSetStatusType,
ChangeSetTypeType,
ChangeSourceType,
ChangeTypeType,
DeprecatedStatusType,
DescribeAccountLimitsPaginatorName,
DescribeChangeSetPaginatorName,
DescribeStackEventsPaginatorName,
DescribeStacksPaginatorName,
DifferenceTypeType,
EvaluationTypeType,
ExecutionStatusType,
HandlerErrorCodeType,
IdentityProviderType,
ListChangeSetsPaginatorName,
ListExportsPaginatorName,
ListImportsPaginatorName,
ListStackInstancesPaginatorName,
ListStackResourcesPaginatorName,
ListStackSetOperationResultsPaginatorName,
ListStackSetOperationsPaginatorName,
ListStackSetsPaginatorName,
ListStacksPaginatorName,
ListTypesPaginatorName,
OnFailureType,
OperationStatusType,
PermissionModelsType,
ProvisioningTypeType,
PublisherStatusType,
RegionConcurrencyTypeType,
RegistrationStatusType,
RegistryTypeType,
ReplacementType,
RequiresRecreationType,
ResourceAttributeType,
ResourceSignalStatusType,
ResourceStatusType,
StackCreateCompleteWaiterName,
StackDeleteCompleteWaiterName,
StackDriftDetectionStatusType,
StackDriftStatusType,
StackExistsWaiterName,
StackImportCompleteWaiterName,
StackInstanceDetailedStatusType,
StackInstanceFilterNameType,
StackInstanceStatusType,
StackResourceDriftStatusType,
StackRollbackCompleteWaiterName,
StackSetDriftDetectionStatusType,
StackSetDriftStatusType,
StackSetOperationActionType,
StackSetOperationResultStatusType,
StackSetOperationStatusType,
StackSetStatusType,
StackStatusType,
StackUpdateCompleteWaiterName,
TemplateStageType,
ThirdPartyTypeType,
TypeRegistrationCompleteWaiterName,
TypeTestsStatusType,
VersionBumpType,
VisibilityType,
ServiceName,
PaginatorName,
WaiterName,
)
def check_value(value: AccountGateStatusType) -> bool:
...
Typed dictionaries
types_aiobotocore_cloudformation.type_defs
module contains structures and
shapes assembled to typed dictionaries for additional type checking.
from types_aiobotocore_cloudformation.type_defs import (
AccountGateResultTypeDef,
AccountLimitTypeDef,
ActivateTypeInputRequestTypeDef,
ActivateTypeOutputTypeDef,
AutoDeploymentTypeDef,
BatchDescribeTypeConfigurationsErrorTypeDef,
BatchDescribeTypeConfigurationsInputRequestTypeDef,
BatchDescribeTypeConfigurationsOutputTypeDef,
CancelUpdateStackInputRequestTypeDef,
CancelUpdateStackInputStackTypeDef,
ChangeSetSummaryTypeDef,
ChangeTypeDef,
ContinueUpdateRollbackInputRequestTypeDef,
CreateChangeSetInputRequestTypeDef,
CreateChangeSetOutputTypeDef,
CreateStackInputRequestTypeDef,
CreateStackInputServiceResourceTypeDef,
CreateStackInstancesInputRequestTypeDef,
CreateStackInstancesOutputTypeDef,
CreateStackOutputTypeDef,
CreateStackSetInputRequestTypeDef,
CreateStackSetOutputTypeDef,
DeactivateTypeInputRequestTypeDef,
DeleteChangeSetInputRequestTypeDef,
DeleteStackInputRequestTypeDef,
DeleteStackInputStackTypeDef,
DeleteStackInstancesInputRequestTypeDef,
DeleteStackInstancesOutputTypeDef,
DeleteStackSetInputRequestTypeDef,
DeploymentTargetsTypeDef,
DeregisterTypeInputRequestTypeDef,
DescribeAccountLimitsInputRequestTypeDef,
DescribeAccountLimitsOutputTypeDef,
DescribeChangeSetInputRequestTypeDef,
DescribeChangeSetOutputTypeDef,
DescribePublisherInputRequestTypeDef,
DescribePublisherOutputTypeDef,
DescribeStackDriftDetectionStatusInputRequestTypeDef,
DescribeStackDriftDetectionStatusOutputTypeDef,
DescribeStackEventsInputRequestTypeDef,
DescribeStackEventsOutputTypeDef,
DescribeStackInstanceInputRequestTypeDef,
DescribeStackInstanceOutputTypeDef,
DescribeStackResourceDriftsInputRequestTypeDef,
DescribeStackResourceDriftsOutputTypeDef,
DescribeStackResourceInputRequestTypeDef,
DescribeStackResourceOutputTypeDef,
DescribeStackResourcesInputRequestTypeDef,
DescribeStackResourcesOutputTypeDef,
DescribeStackSetInputRequestTypeDef,
DescribeStackSetOperationInputRequestTypeDef,
DescribeStackSetOperationOutputTypeDef,
DescribeStackSetOutputTypeDef,
DescribeStacksInputRequestTypeDef,
DescribeStacksOutputTypeDef,
DescribeTypeInputRequestTypeDef,
DescribeTypeOutputTypeDef,
DescribeTypeRegistrationInputRequestTypeDef,
DescribeTypeRegistrationOutputTypeDef,
DetectStackDriftInputRequestTypeDef,
DetectStackDriftOutputTypeDef,
DetectStackResourceDriftInputRequestTypeDef,
DetectStackResourceDriftOutputTypeDef,
DetectStackSetDriftInputRequestTypeDef,
DetectStackSetDriftOutputTypeDef,
EstimateTemplateCostInputRequestTypeDef,
EstimateTemplateCostOutputTypeDef,
ExecuteChangeSetInputRequestTypeDef,
ExportTypeDef,
GetStackPolicyInputRequestTypeDef,
GetStackPolicyOutputTypeDef,
GetTemplateInputRequestTypeDef,
GetTemplateOutputTypeDef,
GetTemplateSummaryInputRequestTypeDef,
GetTemplateSummaryOutputTypeDef,
ImportStacksToStackSetInputRequestTypeDef,
ImportStacksToStackSetOutputTypeDef,
ListChangeSetsInputRequestTypeDef,
ListChangeSetsOutputTypeDef,
ListExportsInputRequestTypeDef,
ListExportsOutputTypeDef,
ListImportsInputRequestTypeDef,
ListImportsOutputTypeDef,
ListStackInstancesInputRequestTypeDef,
ListStackInstancesOutputTypeDef,
ListStackResourcesInputRequestTypeDef,
ListStackResourcesOutputTypeDef,
ListStackSetOperationResultsInputRequestTypeDef,
ListStackSetOperationResultsOutputTypeDef,
ListStackSetOperationsInputRequestTypeDef,
ListStackSetOperationsOutputTypeDef,
ListStackSetsInputRequestTypeDef,
ListStackSetsOutputTypeDef,
ListStacksInputRequestTypeDef,
ListStacksOutputTypeDef,
ListTypeRegistrationsInputRequestTypeDef,
ListTypeRegistrationsOutputTypeDef,
ListTypeVersionsInputRequestTypeDef,
ListTypeVersionsOutputTypeDef,
ListTypesInputRequestTypeDef,
ListTypesOutputTypeDef,
LoggingConfigTypeDef,
ManagedExecutionTypeDef,
ModuleInfoResponseMetadataTypeDef,
ModuleInfoTypeDef,
OutputTypeDef,
PaginatorConfigTypeDef,
ParameterConstraintsTypeDef,
ParameterDeclarationTypeDef,
ParameterTypeDef,
PhysicalResourceIdContextKeyValuePairTypeDef,
PropertyDifferenceTypeDef,
PublishTypeInputRequestTypeDef,
PublishTypeOutputTypeDef,
RecordHandlerProgressInputRequestTypeDef,
RegisterPublisherInputRequestTypeDef,
RegisterPublisherOutputTypeDef,
RegisterTypeInputRequestTypeDef,
RegisterTypeOutputTypeDef,
RequiredActivatedTypeTypeDef,
ResourceChangeDetailTypeDef,
ResourceChangeTypeDef,
ResourceIdentifierSummaryTypeDef,
ResourceTargetDefinitionTypeDef,
ResourceToImportTypeDef,
ResponseMetadataTypeDef,
RollbackConfigurationResponseMetadataTypeDef,
RollbackConfigurationTypeDef,
RollbackStackInputRequestTypeDef,
RollbackStackOutputTypeDef,
RollbackTriggerTypeDef,
ServiceResourceEventRequestTypeDef,
ServiceResourceStackRequestTypeDef,
ServiceResourceStackResourceRequestTypeDef,
ServiceResourceStackResourceSummaryRequestTypeDef,
SetStackPolicyInputRequestTypeDef,
SetTypeConfigurationInputRequestTypeDef,
SetTypeConfigurationOutputTypeDef,
SetTypeDefaultVersionInputRequestTypeDef,
SignalResourceInputRequestTypeDef,
StackDriftInformationResponseMetadataTypeDef,
StackDriftInformationSummaryTypeDef,
StackDriftInformationTypeDef,
StackEventTypeDef,
StackInstanceComprehensiveStatusTypeDef,
StackInstanceFilterTypeDef,
StackInstanceSummaryTypeDef,
StackInstanceTypeDef,
StackResourceDetailTypeDef,
StackResourceDriftInformationResponseMetadataTypeDef,
StackResourceDriftInformationSummaryResponseMetadataTypeDef,
StackResourceDriftInformationSummaryTypeDef,
StackResourceDriftInformationTypeDef,
StackResourceDriftTypeDef,
StackResourceRequestTypeDef,
StackResourceSummaryTypeDef,
StackResourceTypeDef,
StackSetDriftDetectionDetailsTypeDef,
StackSetOperationPreferencesTypeDef,
StackSetOperationResultSummaryTypeDef,
StackSetOperationSummaryTypeDef,
StackSetOperationTypeDef,
StackSetSummaryTypeDef,
StackSetTypeDef,
StackSummaryTypeDef,
StackTypeDef,
StopStackSetOperationInputRequestTypeDef,
TagTypeDef,
TemplateParameterTypeDef,
TestTypeInputRequestTypeDef,
TestTypeOutputTypeDef,
TypeConfigurationDetailsTypeDef,
TypeConfigurationIdentifierTypeDef,
TypeFiltersTypeDef,
TypeSummaryTypeDef,
TypeVersionSummaryTypeDef,
UpdateStackInputRequestTypeDef,
UpdateStackInputStackTypeDef,
UpdateStackInstancesInputRequestTypeDef,
UpdateStackInstancesOutputTypeDef,
UpdateStackOutputTypeDef,
UpdateStackSetInputRequestTypeDef,
UpdateStackSetOutputTypeDef,
UpdateTerminationProtectionInputRequestTypeDef,
UpdateTerminationProtectionOutputTypeDef,
ValidateTemplateInputRequestTypeDef,
ValidateTemplateOutputTypeDef,
WaiterConfigTypeDef,
)
def get_structure() -> AccountGateResultTypeDef:
return {
...
}
Versioning
types-aiobotocore-cloudformation
version is the same as related boto3
version and follows PEP 440
format.
Documentation
All type annotations can be found in types-aiobotocore-cloudformation docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for types-aiobotocore-cloudformation-2.1.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c788da6fcaf37b95b9592bbb677639777b705659489ebcbe1998a0233781e0b6 |
|
MD5 | f7ec623f5b5744754a66cf9c044154e3 |
|
BLAKE2b-256 | 1667b33219b9bfe3be521fbed77172ed80fb2ebd1146669246f1d5728c2809a1 |
Hashes for types_aiobotocore_cloudformation-2.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c6337334f9d882446974fb2a5e5363b6f009999f21ada0fbdcd714fba9bcf27 |
|
MD5 | 05d8451b6d90d64d35f6fc36f28bbd82 |
|
BLAKE2b-256 | edf14d9d368610067d245db1a43de0b39e341e95f80850c197e234d7c0ef2172 |