Examples#
Auto-generated documentation for OpsWorks type annotations stubs module mypy-boto3-opsworks.
Client#
Implicit type annotations#
Can be used with boto3-stubs[opsworks]
package installed.
Write your OpsWorks
code as usual,
type checking and code completion should work out of the box.
# OpsWorksClient usage example
from boto3.session import Session
session = Session()
client = session.client("opsworks") # (1)
result = client.assign_instance() # (2)
- client: OpsWorksClient
- result: EmptyResponseMetadataTypeDef
# DescribeEcsClustersPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("opsworks") # (1)
paginator = client.get_paginator("describe_ecs_clusters") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: OpsWorksClient
- paginator: DescribeEcsClustersPaginator
- item: <