Skip to main content

Type annotations for boto3.ElastiCache 1.14.0 service, generated by mypy-boto3-buider 2.0.4

Project description

mypy-boto3-elasticache

PyPI - mypy-boto3-elasticache PyPI - Python Version Docs

Type annotations for boto3.ElastiCache 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.

Generated by mypy-boto3-buider 2.0.4.

More information can be found on boto3-stubs page.

How to use

Make sure you have mypy installed and activated in your IDE.

Install boto3-stubs for ElastiCache service.

python -m pip install boto3-stubs[elasticache]

Use boto3 with mypy_boto3_elasticache in your project and enjoy type checking and auto-complete.

import boto3

from mypy_boto3_elasticache import ElastiCacheClient

# Now mypy can check if your code is valid.
client: ElastiCacheClient = boto3.client("elasticache")

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ElastiCacheClient = session.client("elasticache")



# Waiters are also supported

import mypy_boto3_elasticache.waiter as elasticache_waiters

cache_cluster_available_waiter: elasticache_waiters.CacheClusterAvailableWaiter = client.get_waiter("cache_cluster_available")
cache_cluster_deleted_waiter: elasticache_waiters.CacheClusterDeletedWaiter = client.get_waiter("cache_cluster_deleted")
replication_group_available_waiter: elasticache_waiters.ReplicationGroupAvailableWaiter = client.get_waiter("replication_group_available")
replication_group_deleted_waiter: elasticache_waiters.ReplicationGroupDeletedWaiter = client.get_waiter("replication_group_deleted")


# Annotated paginators are included as well

import mypy_boto3_elasticache.paginator as elasticache_paginators

describe_cache_clusters_paginator: elasticache_paginators.DescribeCacheClustersPaginator = client.get_paginator("describe_cache_clusters")
describe_cache_engine_versions_paginator: elasticache_paginators.DescribeCacheEngineVersionsPaginator = client.get_paginator("describe_cache_engine_versions")
describe_cache_parameter_groups_paginator: elasticache_paginators.DescribeCacheParameterGroupsPaginator = client.get_paginator("describe_cache_parameter_groups")
describe_cache_parameters_paginator: elasticache_paginators.DescribeCacheParametersPaginator = client.get_paginator("describe_cache_parameters")
describe_cache_security_groups_paginator: elasticache_paginators.DescribeCacheSecurityGroupsPaginator = client.get_paginator("describe_cache_security_groups")
describe_cache_subnet_groups_paginator: elasticache_paginators.DescribeCacheSubnetGroupsPaginator = client.get_paginator("describe_cache_subnet_groups")
describe_engine_default_parameters_paginator: elasticache_paginators.DescribeEngineDefaultParametersPaginator = client.get_paginator("describe_engine_default_parameters")
describe_events_paginator: elasticache_paginators.DescribeEventsPaginator = client.get_paginator("describe_events")
describe_global_replication_groups_paginator: elasticache_paginators.DescribeGlobalReplicationGroupsPaginator = client.get_paginator("describe_global_replication_groups")
describe_replication_groups_paginator: elasticache_paginators.DescribeReplicationGroupsPaginator = client.get_paginator("describe_replication_groups")
describe_reserved_cache_nodes_paginator: elasticache_paginators.DescribeReservedCacheNodesPaginator = client.get_paginator("describe_reserved_cache_nodes")
describe_reserved_cache_nodes_offerings_paginator: elasticache_paginators.DescribeReservedCacheNodesOfferingsPaginator = client.get_paginator("describe_reserved_cache_nodes_offerings")
describe_service_updates_paginator: elasticache_paginators.DescribeServiceUpdatesPaginator = client.get_paginator("describe_service_updates")
describe_snapshots_paginator: elasticache_paginators.DescribeSnapshotsPaginator = client.get_paginator("describe_snapshots")
describe_update_actions_paginator: elasticache_paginators.DescribeUpdateActionsPaginator = client.get_paginator("describe_update_actions")

Dynamic type annotations

mypy_boto3 command generates boto3.client/resource type annotations for mypy_boto3_elasticache 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 expected
  • PyCharm also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installed
  • VSCode does not currently support function overloads, use explicit type annotations
import boto3

# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("elasticache")

session_client = boto3.Session().client("elasticache")

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

mypy-boto3-elasticache-1.14.0.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypy_boto3_elasticache-1.14.0.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-elasticache-1.14.0.0.tar.gz.

File metadata

  • Download URL: mypy-boto3-elasticache-1.14.0.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for mypy-boto3-elasticache-1.14.0.0.tar.gz
Algorithm Hash digest
SHA256 89ebdb0970d70468a393efbd6a758d3ae57ec21604da20d166bf8ab7a2b2d1ac
MD5 77411c5b2aeaaca83cbdbb27862d7d4a
BLAKE2b-256 ac8bcf4d2949add6640a95ce432419e29e6dd9eaecfd4cca98a25bc2074f02ce

See more details on using hashes here.

File details

Details for the file mypy_boto3_elasticache-1.14.0.0-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_elasticache-1.14.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for mypy_boto3_elasticache-1.14.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1226d48d556f08ae80e5d1bb138ce5f510b09b693cdcf31ddec71da35332312
MD5 fc3dbb3ddfae871cab09f0278767d69c
BLAKE2b-256 cd8731ca0a3813bac6dce1f9a7c4a174df27f1617fa01020ae4ebf26004ee131

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page