Type annotations for boto3.DatabaseMigrationService 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-dms
Type annotations for boto3.DatabaseMigrationService 1.13.26 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 DatabaseMigrationService
service.
python -m pip install boto3-stubs[dms]
Use boto3
with mypy_boto3_dms
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_dms import DatabaseMigrationServiceClient
# Now mypy can check if your code is valid.
client: DatabaseMigrationServiceClient = boto3.client("dms")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: DatabaseMigrationServiceClient = session.client("dms")
# Waiters are also supported
import mypy_boto3_dms.waiter as dms_waiters
endpoint_deleted_waiter: dms_waiters.EndpointDeletedWaiter = client.get_waiter("endpoint_deleted")
replication_instance_available_waiter: dms_waiters.ReplicationInstanceAvailableWaiter = client.get_waiter("replication_instance_available")
replication_instance_deleted_waiter: dms_waiters.ReplicationInstanceDeletedWaiter = client.get_waiter("replication_instance_deleted")
replication_task_deleted_waiter: dms_waiters.ReplicationTaskDeletedWaiter = client.get_waiter("replication_task_deleted")
replication_task_ready_waiter: dms_waiters.ReplicationTaskReadyWaiter = client.get_waiter("replication_task_ready")
replication_task_running_waiter: dms_waiters.ReplicationTaskRunningWaiter = client.get_waiter("replication_task_running")
replication_task_stopped_waiter: dms_waiters.ReplicationTaskStoppedWaiter = client.get_waiter("replication_task_stopped")
test_connection_succeeds_waiter: dms_waiters.TestConnectionSucceedsWaiter = client.get_waiter("test_connection_succeeds")
# Annotated paginators are included as well
import mypy_boto3_dms.paginator as dms_paginators
describe_certificates_paginator: dms_paginators.DescribeCertificatesPaginator = client.get_paginator("describe_certificates")
describe_connections_paginator: dms_paginators.DescribeConnectionsPaginator = client.get_paginator("describe_connections")
describe_endpoint_types_paginator: dms_paginators.DescribeEndpointTypesPaginator = client.get_paginator("describe_endpoint_types")
describe_endpoints_paginator: dms_paginators.DescribeEndpointsPaginator = client.get_paginator("describe_endpoints")
describe_event_subscriptions_paginator: dms_paginators.DescribeEventSubscriptionsPaginator = client.get_paginator("describe_event_subscriptions")
describe_events_paginator: dms_paginators.DescribeEventsPaginator = client.get_paginator("describe_events")
describe_orderable_replication_instances_paginator: dms_paginators.DescribeOrderableReplicationInstancesPaginator = client.get_paginator("describe_orderable_replication_instances")
describe_replication_instances_paginator: dms_paginators.DescribeReplicationInstancesPaginator = client.get_paginator("describe_replication_instances")
describe_replication_subnet_groups_paginator: dms_paginators.DescribeReplicationSubnetGroupsPaginator = client.get_paginator("describe_replication_subnet_groups")
describe_replication_task_assessment_results_paginator: dms_paginators.DescribeReplicationTaskAssessmentResultsPaginator = client.get_paginator("describe_replication_task_assessment_results")
describe_replication_tasks_paginator: dms_paginators.DescribeReplicationTasksPaginator = client.get_paginator("describe_replication_tasks")
describe_schemas_paginator: dms_paginators.DescribeSchemasPaginator = client.get_paginator("describe_schemas")
describe_table_statistics_paginator: dms_paginators.DescribeTableStatisticsPaginator = client.get_paginator("describe_table_statistics")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_dms
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
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("dms")
session_client = boto3.Session().client("dms")
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_dms-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d7d8ede750534ba199da61b415616d85f508165caf4bc4fc332f18f33fa68fa |
|
MD5 | 502001e6fad22072ba2995f5243a5194 |
|
BLAKE2b-256 | 749821ca2735a274e077cf64d31443cb37b7bab750462c4a89d976b6052ce89b |