Skip to content

S3Control module#

Index > S3Control

Auto-generated documentation for S3Control type annotations stubs module mypy-boto3-s3control.

How to install#

VSCode extension#

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

Click Modify and select boto3 common and S3Control.

From PyPI with pip#

Install boto3-stubs for S3Control service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[s3control]'


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


# standalone installation
python -m pip install mypy-boto3-s3control

How to uninstall#

python -m pip uninstall -y mypy-boto3-s3control

Usage#

Code samples can be found in Examples.

S3ControlClient#

Type annotations and code completion for boto3.client("s3control") as S3ControlClient boto3 documentation

# S3ControlClient usage example

from boto3.session import Session

from mypy_boto3_s3control.client import S3ControlClient

def get_client() -> S3ControlClient:
    return Session().client("s3control")

Paginators#

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

# ListAccessPointsForObjectLambdaPaginator usage example

from boto3.session import Session

from mypy_boto3_s3control.paginator import ListAccessPointsForObjectLambdaPaginator

def get_list_access_points_for_object_lambda_paginator() -> ListAccessPointsForObjectLambdaPaginator:
    return Session().client("s3control").get_paginator("list_access_points_for_object_lambda"))

Literals#

Type annotations for literals used in methods and schema.

# AsyncOperationNameType usage example

from mypy_boto3_s3control.literals import AsyncOperationNameType

def get_value() -> AsyncOperationNameType:
    return "CreateMultiRegionAccessPoint"

Type definitions#

Type annotations for type definitions used in methods and schema.