Skip to content

Redshift module

Index > Redshift

Auto-generated documentation for Redshift type annotations stubs module types-aiobotocore-redshift.

How to install

From PyPI with pip

Install types-aioboto3 for Redshift service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

RedshiftClient

Type annotations and code completion for session.client("redshift") as RedshiftClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_redshift.client import RedshiftClient


session = Session()
async with session.client("redshift") as client:
    client: RedshiftClient

Paginators

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

Usage example
from types_aiobotocore_redshift.paginator import DescribeClusterDbRevisionsPaginator

def get_describe_cluster_db_revisions_paginator() -> DescribeClusterDbRevisionsPaginator:
    return client.get_paginator("describe_cluster_db_revisions"))

Waiters

Type annotations and code completion for waiters from session.client("redshift").get_waiter("...").

Usage example
from types_aiobotocore_redshift.waiter import ClusterAvailableWaiter

def get_cluster_available_waiter() -> ClusterAvailableWaiter:
    return Session().client("redshift").get_waiter("cluster_available")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_redshift.literals import ActionTypeType

def get_value() -> ActionTypeType:
    return "recommend-node-config"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_redshift.type_defs import AcceptReservedNodeExchangeInputMessageRequestTypeDef

def get_value() -> AcceptReservedNodeExchangeInputMessageRequestTypeDef:
    return {
        "ReservedNodeId": ...,
        "TargetReservedNodeOfferingId": ...,
    }