Skip to content

Redshift module#

Index > Redshift

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

How to install#

You can generate type annotations for boto3 package locally with mypy_boto3_builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'boto3==1.35.86' mypy_boto3_builder
  2. Select boto3 AWS SDK.
  3. Add Redshift service.
  4. Use provided commands to install generated packages.

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Redshift.

From PyPI with pip#

Install types-boto3 for Redshift service.

# install with boto3 type annotations
python -m pip install 'types-boto3[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-boto3-lite[redshift]'

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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

RedshiftClient#

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

# RedshiftClient usage example

from boto3.session import Session

from types_boto3_redshift.client import RedshiftClient

def get_client() -> RedshiftClient:
    return Session().client("redshift")

Paginators#

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

# DescribeClusterDbRevisionsPaginator usage example

from boto3.session import Session

from types_boto3_redshift.paginator import DescribeClusterDbRevisionsPaginator

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

Waiters#

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

# ClusterAvailableWaiter usage example

from boto3.session import Session

from types_boto3_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.

# ActionTypeType usage example

from types_boto3_redshift.literals import ActionTypeType

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

Type definitions#

Type annotations for type definitions used in methods and schema.