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-aioboto3 for OpsWorks service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[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-aioboto3-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.client("opsworks") as OpsWorksClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_opsworks.client import OpsWorksClient


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

Paginators

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

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.client("opsworks").get_waiter("...").

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

Usage example
from types_aiobotocore_opsworks.service_resource import OpsWorksServiceResource

Collections

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

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").*.

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.

Usage example
from types_aiobotocore_opsworks.literals import AppAttributesKeysType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_opsworks.type_defs import StackConfigurationManagerTypeDef

def get_value() -> StackConfigurationManagerTypeDef:
    return {
        "Name": ...,
    }