Skip to content

SWF module

Index > SWF

Auto-generated documentation for SWF type annotations stubs module types-aiobotocore-swf.

How to install

From PyPI with pip

Install types-aioboto3 for SWF service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[swf]'


# 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[swf]'


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

How to uninstall

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

Usage

Code samples can be found in Examples.

SWFClient

Type annotations and code completion for session.client("swf") as SWFClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_swf.client import SWFClient


session = Session()
async with session.client("swf") as client:
    client: SWFClient

Paginators

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

Usage example
from types_aiobotocore_swf.paginator import GetWorkflowExecutionHistoryPaginator

def get_get_workflow_execution_history_paginator() -> GetWorkflowExecutionHistoryPaginator:
    return client.get_paginator("get_workflow_execution_history"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_swf.literals import ActivityTaskTimeoutTypeType

def get_value() -> ActivityTaskTimeoutTypeType:
    return "HEARTBEAT"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_swf.type_defs import ActivityTaskCancelRequestedEventAttributesTypeDef

def get_value() -> ActivityTaskCancelRequestedEventAttributesTypeDef:
    return {
        "decisionTaskCompletedEventId": ...,
        "activityId": ...,
    }