Skip to content

MediaPackageVodClient#

Index > MediaPackageVod > MediaPackageVodClient

Auto-generated documentation for MediaPackageVod type annotations stubs module mypy-boto3-mediapackage-vod.

MediaPackageVodClient#

Type annotations and code completion for boto3.client("mediapackage-vod"). boto3 documentation

# MediaPackageVodClient usage example

from boto3.session import Session
from mypy_boto3_mediapackage_vod.client import MediaPackageVodClient

def get_mediapackage-vod_client() -> MediaPackageVodClient:
    return Session().client("mediapackage-vod")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("mediapackage-vod")

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

from mypy_boto3_mediapackage_vod.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("mediapackage-vod").can_paginate method. boto3 documentation

# can_paginate method definition

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

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("mediapackage-vod").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

configure_logs#

Changes the packaging group's properities to configure log subscription See also: AWS API Documentation.

Type annotations and code completion for boto3.client("mediapackage-vod").configure_logs method. boto3 documentation

# configure_logs method definition

def configure_logs(
    self,
    *,
    Id: str,
    EgressAccessLogs: EgressAccessLogsTypeDef = ...,  # (1)
) -> ConfigureLogsResponseTypeDef:  # (2)
    ...
  1. See EgressAccessLogsTypeDef
  2. See ConfigureLogsResponseTypeDef
# configure_logs method usage example with argument unpacking

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

parent.configure_logs(**kwargs)
  1. See ConfigureLogsRequestRequestTypeDef

create_asset#

Creates a new MediaPackage VOD Asset resource.

Type annotations and code completion for boto3.client("mediapackage-vod").create_asset method. boto3 documentation

# create_asset method definition

def create_asset(
    self,
    *,
    Id: str,
    PackagingGroupId: str,
    SourceArn: str,
    SourceRoleArn: str,
    ResourceId: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateAssetResponseTypeDef:  # (1)
    ...
  1. See CreateAssetResponseTypeDef
# create_asset method usage example with argument unpacking

kwargs: CreateAssetRequestRequestTypeDef = {  # (1)
    "Id": ...,
    "PackagingGroupId": ...,
    "SourceArn": ...,
    "SourceRoleArn": ...,
}

parent.create_asset(**kwargs)
  1. See CreateAssetRequestRequestTypeDef

create_packaging_configuration#

Creates a new MediaPackage VOD PackagingConfiguration resource.

Type annotations and code completion for boto3.client("mediapackage-vod").create_packaging_configuration method. boto3 documentation

# create_packaging_configuration method definition

def create_packaging_configuration(
    self,
    *,
    Id: str,
    PackagingGroupId: str,
    CmafPackage: CmafPackageTypeDef = ...,  # (1)
    DashPackage: DashPackageTypeDef = ...,  # (2)
    HlsPackage: HlsPackageTypeDef = ...,  # (3)
    MssPackage: MssPackageTypeDef = ...,  # (4)
    Tags: Mapping[str, str] = ...,
) -> CreatePackagingConfigurationResponseTypeDef:  # (5)
    ...
  1. See CmafPackageTypeDef
  2. See DashPackageTypeDef
  3. See HlsPackageTypeDef
  4. See MssPackageTypeDef
  5. See CreatePackagingConfigurationResponseTypeDef
# create_packaging_configuration method usage example with argument unpacking

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

parent.create_packaging_configuration(**kwargs)
  1. See CreatePackagingConfigurationRequestRequestTypeDef

create_packaging_group#

Creates a new MediaPackage VOD PackagingGroup resource.

Type annotations and code completion for boto3.client("mediapackage-vod").create_packaging_group method. boto3 documentation

# create_packaging_group method definition

def create_packaging_group(
    self,
    *,
    Id: str,
    Authorization: AuthorizationTypeDef = ...,  # (1)
    EgressAccessLogs: EgressAccessLogsTypeDef = ...,  # (2)
    Tags: Mapping[str, str] = ...,
) -> CreatePackagingGroupResponseTypeDef:  # (3)
    ...
  1. See AuthorizationTypeDef
  2. See EgressAccessLogsTypeDef
  3. See CreatePackagingGroupResponseTypeDef
# create_packaging_group method usage example with argument unpacking

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

parent.create_packaging_group(**kwargs)
  1. See CreatePackagingGroupRequestRequestTypeDef

delete_asset#

Deletes an existing MediaPackage VOD Asset resource.

Type annotations and code completion for boto3.client("mediapackage-vod").delete_asset method. boto3 documentation

# delete_asset method definition

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

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

parent.delete_asset(**kwargs)
  1. See DeleteAssetRequestRequestTypeDef

delete_packaging_configuration#

Deletes a MediaPackage VOD PackagingConfiguration resource.

Type annotations and code completion for boto3.client("mediapackage-vod").delete_packaging_configuration method. boto3 documentation

# delete_packaging_configuration method definition

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

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

parent.delete_packaging_configuration(**kwargs)
  1. See DeletePackagingConfigurationRequestRequestTypeDef

delete_packaging_group#

Deletes a MediaPackage VOD PackagingGroup resource.

Type annotations and code completion for boto3.client("mediapackage-vod").delete_packaging_group method. boto3 documentation

# delete_packaging_group method definition

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

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

parent.delete_packaging_group(**kwargs)
  1. See DeletePackagingGroupRequestRequestTypeDef

describe_asset#

Returns a description of a MediaPackage VOD Asset resource.

Type annotations and code completion for boto3.client("mediapackage-vod").describe_asset method. boto3 documentation

# describe_asset method definition

def describe_asset(
    self,
    *,
    Id: str,
) -> DescribeAssetResponseTypeDef:  # (1)
    ...
  1. See DescribeAssetResponseTypeDef
# describe_asset method usage example with argument unpacking

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

parent.describe_asset(**kwargs)
  1. See DescribeAssetRequestRequestTypeDef

describe_packaging_configuration#

Returns a description of a MediaPackage VOD PackagingConfiguration resource.

Type annotations and code completion for boto3.client("mediapackage-vod").describe_packaging_configuration method. boto3 documentation

# describe_packaging_configuration method definition

def describe_packaging_configuration(
    self,
    *,
    Id: str,
) -> DescribePackagingConfigurationResponseTypeDef:  # (1)
    ...
  1. See DescribePackagingConfigurationResponseTypeDef
# describe_packaging_configuration method usage example with argument unpacking

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

parent.describe_packaging_configuration(**kwargs)
  1. See DescribePackagingConfigurationRequestRequestTypeDef

describe_packaging_group#

Returns a description of a MediaPackage VOD PackagingGroup resource.

Type annotations and code completion for boto3.client("mediapackage-vod").describe_packaging_group method. boto3 documentation

# describe_packaging_group method definition

def describe_packaging_group(
    self,
    *,
    Id: str,
) -> DescribePackagingGroupResponseTypeDef:  # (1)
    ...
  1. See DescribePackagingGroupResponseTypeDef
# describe_packaging_group method usage example with argument unpacking

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

parent.describe_packaging_group(**kwargs)
  1. See DescribePackagingGroupRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("mediapackage-vod").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_assets#

Returns a collection of MediaPackage VOD Asset resources.

Type annotations and code completion for boto3.client("mediapackage-vod").list_assets method. boto3 documentation

# list_assets method definition

def list_assets(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    PackagingGroupId: str = ...,
) -> ListAssetsResponseTypeDef:  # (1)
    ...
  1. See ListAssetsResponseTypeDef
# list_assets method usage example with argument unpacking

kwargs: ListAssetsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_assets(**kwargs)
  1. See ListAssetsRequestRequestTypeDef

list_packaging_configurations#

Returns a collection of MediaPackage VOD PackagingConfiguration resources.

Type annotations and code completion for boto3.client("mediapackage-vod").list_packaging_configurations method.