Skip to content

MediaLive module#

Index > MediaLive

Auto-generated documentation for MediaLive type annotations stubs module mypy-boto3-medialive.

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

From PyPI with pip#

Install boto3-stubs for MediaLive service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

MediaLiveClient#

Type annotations and code completion for boto3.client("medialive") as MediaLiveClient boto3 documentation

# MediaLiveClient usage example

from boto3.session import Session

from mypy_boto3_medialive.client import MediaLiveClient

def get_client() -> MediaLiveClient:
    return Session().client("medialive")

Paginators#

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

# DescribeSchedulePaginator usage example

from boto3.session import Session

from mypy_boto3_medialive.paginator import DescribeSchedulePaginator

def get_describe_schedule_paginator() -> DescribeSchedulePaginator:
    return Session().client("medialive").get_paginator("describe_schedule"))

Waiters#

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

# ChannelCreatedWaiter usage example

from boto3.session import Session

from mypy_boto3_medialive.waiter import ChannelCreatedWaiter

def get_channel_created_waiter() -> ChannelCreatedWaiter:
    return Session().client("medialive").get_waiter("channel_created")

Literals#

Type annotations for literals used in methods and schema.

# AacCodingModeType usage example

from mypy_boto3_medialive.literals import AacCodingModeType

def get_value() -> AacCodingModeType:
    return "AD_RECEIVER_MIX"

Type definitions#

Type annotations for type definitions used in methods and schema.