Skip to content

MediaLiveClient#

Index > MediaLive > MediaLiveClient

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

MediaLiveClient#

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

# MediaLiveClient usage example

from boto3.session import Session
from mypy_boto3_medialive.client import MediaLiveClient

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

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("medialive").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("medialive")

try:
    do_something(client)
except (
    client.exceptions.BadGatewayException,
    client.exceptions.BadRequestException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.ForbiddenException,
    client.exceptions.GatewayTimeoutException,
    client.exceptions.InternalServerErrorException,
    client.exceptions.NotFoundException,
    client.exceptions.TooManyRequestsException,
    client.exceptions.UnprocessableEntityException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_medialive.client import Exceptions

def handle_error(exc: Exceptions.BadGatewayException) -> None:
    ...

Methods#

accept_input_device_transfer#

Accept an incoming input device transfer.

Type annotations and code completion for boto3.client("medialive").accept_input_device_transfer method. boto3 documentation

# accept_input_device_transfer method definition

def accept_input_device_transfer(
    self,
    *,
    InputDeviceId: str,
) -> Dict[str, Any]:
    ...
# accept_input_device_transfer method usage example with argument unpacking

kwargs: AcceptInputDeviceTransferRequestRequestTypeDef = {  # (1)
    "InputDeviceId": ...,
}

parent.accept_input_device_transfer(**kwargs)
  1. See AcceptInputDeviceTransferRequestRequestTypeDef

batch_delete#

Starts delete of resources.

Type annotations and code completion for boto3.client("medialive").batch_delete method. boto3 documentation

# batch_delete method definition

def batch_delete(
    self,
    *,
    ChannelIds: Sequence[str] = ...,
    InputIds: Sequence[str] = ...,
    InputSecurityGroupIds: Sequence[str] = ...,
    MultiplexIds: Sequence[str] = ...,
) -> BatchDeleteResponseTypeDef:  # (1)
    ...
  1. See BatchDeleteResponseTypeDef
# batch_delete method usage example with argument unpacking

kwargs: BatchDeleteRequestRequestTypeDef = {  # (1)
    "ChannelIds": ...,
}

parent.batch_delete(**kwargs)
  1. See BatchDeleteRequestRequestTypeDef

batch_start#

Starts existing resources See also: AWS API Documentation.

Type annotations and code completion for boto3.client("medialive").batch_start method. boto3 documentation

# batch_start method definition

def batch_start(
    self,
    *,
    ChannelIds: Sequence[str] = ...,
    MultiplexIds: Sequence[str] = ...,
) -> BatchStartResponseTypeDef:  # (1)
    ...
  1. See BatchStartResponseTypeDef
# batch_start method usage example with argument unpacking

kwargs: BatchStartRequestRequestTypeDef = {  # (1)
    "ChannelIds": ...,
}

parent.batch_start(**kwargs)
  1. See BatchStartRequestRequestTypeDef

batch_stop#

Stops running resources See also: AWS API Documentation.

Type annotations and code completion for boto3.client("medialive").batch_stop method. boto3 documentation

# batch_stop method definition

def batch_stop(
    self,
    *,
    ChannelIds: Sequence[str] = ...,
    MultiplexIds: Sequence[str] = ...,
) -> BatchStopResponseTypeDef:  # (1)
    ...
  1. See BatchStopResponseTypeDef
# batch_stop method usage example with argument unpacking

kwargs: BatchStopRequestRequestTypeDef = {  # (1)
    "ChannelIds": ...,
}

parent.batch_stop(**kwargs)
  1. See BatchStopRequestRequestTypeDef

batch_update_schedule#

Update a channel schedule See also: AWS API Documentation.

Type annotations and code completion for boto3.client("medialive").batch_update_schedule method. boto3 documentation

# batch_update_schedule method definition

def batch_update_schedule(
    self,
    *,
    ChannelId: str,
    Creates: BatchScheduleActionCreateRequestTypeDef = ...,  # (1)
    Deletes: BatchScheduleActionDeleteRequestTypeDef = ...,  # (2)
) -> BatchUpdateScheduleResponseTypeDef:  # (3)
    ...
  1. See BatchScheduleActionCreateRequestTypeDef
  2. See BatchScheduleActionDeleteRequestTypeDef
  3. See BatchUpdateScheduleResponseTypeDef
# batch_update_schedule method usage example with argument unpacking

kwargs: BatchUpdateScheduleRequestRequestTypeDef = {  # (1)
    "ChannelId": ...,
}

parent.batch_update_schedule(**kwargs)
  1. See BatchUpdateScheduleRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("medialive").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

cancel_input_device_transfer#

Cancel an input device transfer that you have requested.

Type annotations and code completion for boto3.client("medialive").cancel_input_device_transfer method. boto3 documentation

# cancel_input_device_transfer method definition

def cancel_input_device_transfer(
    self,
    *,
    InputDeviceId: str,
) -> Dict[str, Any]:
    ...
# cancel_input_device_transfer method usage example with argument unpacking

kwargs: CancelInputDeviceTransferRequestRequestTypeDef = {  # (1)
    "InputDeviceId": ...,
}

parent.cancel_input_device_transfer(**kwargs)
  1. See CancelInputDeviceTransferRequestRequestTypeDef

claim_device#

Send a request to claim an AWS Elemental device that you have purchased from a third-party vendor.

Type annotations and code completion for boto3.client("medialive").claim_device method. boto3 documentation

# claim_device method definition

def claim_device(
    self,
    *,
    Id: str = ...,
) -> Dict[str, Any]:
    ...
# claim_device method usage example with argument unpacking

kwargs: ClaimDeviceRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.claim_device(**kwargs)
  1. See ClaimDeviceRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("medialive").close method.