Type annotations for boto3.CloudDirectory 1.14.38 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-clouddirectory
Type annotations for boto3.CloudDirectory 1.14.38 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for CloudDirectory
service.
python -m pip install boto3-stubs[clouddirectory]
How to use
Client annotations
CloudDirectoryClient
provides annotations for boto3.client("clouddirectory")
.
import boto3
from mypy_boto3_clouddirectory import CloudDirectoryClient
from mypy_boto3_clouddirectory.paginator import (
ListAppliedSchemaArnsPaginator,
ListAttachedIndicesPaginator,
ListDevelopmentSchemaArnsPaginator,
ListDirectoriesPaginator,
ListFacetAttributesPaginator,
ListFacetNamesPaginator,
ListIncomingTypedLinksPaginator,
ListIndexPaginator,
ListManagedSchemaArnsPaginator,
ListObjectAttributesPaginator,
ListObjectParentPathsPaginator,
ListObjectPoliciesPaginator,
ListOutgoingTypedLinksPaginator,
ListPolicyAttachmentsPaginator,
ListPublishedSchemaArnsPaginator,
ListTagsForResourcePaginator,
ListTypedLinkFacetAttributesPaginator,
ListTypedLinkFacetNamesPaginator,
LookupPolicyPaginator,
)
from mypy_boto3_clouddirectory.type_defs import AttributeKeyAndValueTypeDef, ...
client: CloudDirectoryClient = boto3.client("clouddirectory")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CloudDirectoryClient = session.client("clouddirectory")
Paginators annotations
mypy_boto3_clouddirectory.paginator
module contains type annotations for all paginators.
client: CloudDirectoryClient = boto3.client("clouddirectory")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_applied_schema_arns_paginator: ListAppliedSchemaArnsPaginator = client.get_paginator("list_applied_schema_arns")
list_attached_indices_paginator: ListAttachedIndicesPaginator = client.get_paginator("list_attached_indices")
list_development_schema_arns_paginator: ListDevelopmentSchemaArnsPaginator = client.get_paginator("list_development_schema_arns")
list_directories_paginator: ListDirectoriesPaginator = client.get_paginator("list_directories")
list_facet_attributes_paginator: ListFacetAttributesPaginator = client.get_paginator("list_facet_attributes")
list_facet_names_paginator: ListFacetNamesPaginator = client.get_paginator("list_facet_names")
list_incoming_typed_links_paginator: ListIncomingTypedLinksPaginator = client.get_paginator("list_incoming_typed_links")
list_index_paginator: ListIndexPaginator = client.get_paginator("list_index")
list_managed_schema_arns_paginator: ListManagedSchemaArnsPaginator = client.get_paginator("list_managed_schema_arns")
list_object_attributes_paginator: ListObjectAttributesPaginator = client.get_paginator("list_object_attributes")
list_object_parent_paths_paginator: ListObjectParentPathsPaginator = client.get_paginator("list_object_parent_paths")
list_object_policies_paginator: ListObjectPoliciesPaginator = client.get_paginator("list_object_policies")
list_outgoing_typed_links_paginator: ListOutgoingTypedLinksPaginator = client.get_paginator("list_outgoing_typed_links")
list_policy_attachments_paginator: ListPolicyAttachmentsPaginator = client.get_paginator("list_policy_attachments")
list_published_schema_arns_paginator: ListPublishedSchemaArnsPaginator = client.get_paginator("list_published_schema_arns")
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
list_typed_link_facet_attributes_paginator: ListTypedLinkFacetAttributesPaginator = client.get_paginator("list_typed_link_facet_attributes")
list_typed_link_facet_names_paginator: ListTypedLinkFacetNamesPaginator = client.get_paginator("list_typed_link_facet_names")
lookup_policy_paginator: LookupPolicyPaginator = client.get_paginator("lookup_policy")
Typed dictionations
mypy_boto3_clouddirectory.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AttributeKeyAndValueTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_clouddirectory
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("clouddirectory")
session_client = boto3.Session().client("clouddirectory")
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 mypy-boto3-clouddirectory-1.14.38.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b5fdf7abd546754dcb78eeeeaea106814bf63a0a3ddea6ad7b46efbdbff5cc |
|
MD5 | 3526d8da5199cf5312d8df2812cf2227 |
|
BLAKE2b-256 | b7eabcd6901210fb91521381f95ffebc43e035a046990e6e270da43fcacb844b |
Hashes for mypy_boto3_clouddirectory-1.14.38.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed7c2b6c9a839d7f45a705f71c4ab2452768dccd38230baddaffa868a752bc06 |
|
MD5 | 1fe566ac21bd6a44ff8d1ff69cbd787e |
|
BLAKE2b-256 | b93d44fbba0b16d433a815c865b5e4361f626fbd38986194f7603078b43c825b |