Type annotations for boto3.CloudDirectory 1.14.2 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-clouddirectory
Type annotations for boto3.CloudDirectory 1.14.2 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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747907e67fb3cf7175dfa650cfd3f395a43603b1dd2240f5171a213a1edec153 |
|
MD5 | 214884a50657cfbee502523bca91fed7 |
|
BLAKE2b-256 | 1ef4d59e85ef504098451d1f1c724ab4870367ec664b82709ac085fa15f97b5d |
Hashes for mypy_boto3_clouddirectory-1.14.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3565b901521357b72cf09fdd9e6057d765cdf5250b8e15b8b9bd6bc18958f53 |
|
MD5 | 30c29aeccbe17ade2b5739cfb333cdbb |
|
BLAKE2b-256 | 5b626c03307513eec956a9a40985fb5fb7fd9c6d1d70329007581b40890fde54 |