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

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

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 schemas.

Usage example
from mypy_boto3_s3control.literals import AsyncOperationNameType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from mypy_boto3_s3control.type_defs import AbortIncompleteMultipartUploadTypeDef

def get_value() -> AbortIncompleteMultipartUploadTypeDef:
    return {
        "DaysAfterInitiation": ...,
    }