Skip to content

OpsWorks module#

Index > OpsWorks

Auto-generated documentation for OpsWorks type annotations stubs module types-aiobotocore-opsworks.

How to install#

From PyPI with pip#

Install types-aiobotocore for OpsWorks service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[opsworks]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[opsworks]'


# standalone installation
python -m pip install types-aiobotocore-opsworks

How to uninstall#

python -m pip uninstall -y types-aiobotocore-opsworks

Usage#

Code samples can be found in Examples.

OpsWorksClient#

Type annotations and code completion for session.create_client("opsworks") as OpsWorksClient boto3 documentation

# OpsWorksClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_opsworks.client import OpsWorksClient


session = get_session()
async with session.create_client("opsworks") as client:
    client: OpsWorksClient

Paginators#

Type annotations and code completion for paginators from session.create_client("opsworks").get_paginator("...").

# DescribeEcsClustersPaginator usage example

from types_aiobotocore_opsworks.paginator import DescribeEcsClustersPaginator

def get_describe_ecs_clusters_paginator() -> DescribeEcsClustersPaginator:
    return client.get_paginator("describe_ecs_clusters"))

Waiters#

Type annotations and code completion for waiters from session.create_client("opsworks").get_waiter("...").

# AppExistsWaiter usage example

from types_aiobotocore_opsworks.waiter import AppExistsWaiter

def get_app_exists_waiter() -> AppExistsWaiter:
    return Session().client("opsworks").get_waiter("app_exists")

OpsWorksServiceResource#

Type annotations and code completion for session.resource("opsworks") as OpsWorksServiceResource boto3 documentation

# OpsWorksServiceResource usage example

from types_aiobotocore_opsworks.service_resource import OpsWorksServiceResource

Collections#

Type annotations and code completion for collections from session.resource("opsworks").*.

# ServiceResourceStacksCollection usage example

from types_aiobotocore_opsworks.service_resource import ServiceResourceStacksCollection

def get_collection() -> ServiceResourceStacksCollection:
    return resource.stacks

Resources#

Type annotations and code completion for additional resources from session.resource("opsworks").*.

# Layer usage example

from types_aiobotocore_opsworks.service_resource import Layer

def get_resource() -> Layer:
    return resource.Layer(...)

Literals#

Type annotations for literals used in methods and schema.

# AppAttributesKeysType usage example

from types_aiobotocore_opsworks.literals import AppAttributesKeysType

def get_value() -> AppAttributesKeysType:
    return "AutoBundleOnDeploy"

Type definitions#

Type annotations for type definitions used in methods and schema.