Skip to content

MediaPackage module

Index > MediaPackage

Auto-generated documentation for MediaPackage type annotations stubs module types-aiobotocore-mediapackage.

How to install

From PyPI with pip

Install types-aioboto3 for MediaPackage service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

MediaPackageClient

Type annotations and code completion for session.client("mediapackage") as MediaPackageClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_mediapackage.client import MediaPackageClient


session = Session()
async with session.client("mediapackage") as client:
    client: MediaPackageClient

Paginators

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

Usage example
from types_aiobotocore_mediapackage.paginator import ListChannelsPaginator

def get_list_channels_paginator() -> ListChannelsPaginator:
    return client.get_paginator("list_channels"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_mediapackage.literals import AdMarkersType

def get_value() -> AdMarkersType:
    return "DATERANGE"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_mediapackage.type_defs import AuthorizationTypeDef

def get_value() -> AuthorizationTypeDef:
    return {
        "CdnIdentifierSecret": ...,
        "SecretsRoleArn": ...,
    }