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)
...
# configure_logs method usage example with argument unpacking
kwargs: ConfigureLogsRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.configure_logs(**kwargs)
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)
...
# create_asset method usage example with argument unpacking
kwargs: CreateAssetRequestRequestTypeDef = { # (1)
"Id": ...,
"PackagingGroupId": ...,
"SourceArn": ...,
"SourceRoleArn": ...,
}
parent.create_asset(**kwargs)
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)
...
- See CmafPackageTypeDef
- See DashPackageTypeDef
- See HlsPackageTypeDef
- See MssPackageTypeDef
- See CreatePackagingConfigurationResponseTypeDef
# create_packaging_configuration method usage example with argument unpacking
kwargs: CreatePackagingConfigurationRequestRequestTypeDef = { # (1)
"Id": ...,
"PackagingGroupId": ...,
}
parent.create_packaging_configuration(**kwargs)
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)
...
# create_packaging_group method usage example with argument unpacking
kwargs: CreatePackagingGroupRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.create_packaging_group(**kwargs)
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)
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)
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)
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)
...
# describe_asset method usage example with argument unpacking
kwargs: DescribeAssetRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.describe_asset(**kwargs)
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)
...
# describe_packaging_configuration method usage example with argument unpacking
kwargs: DescribePackagingConfigurationRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.describe_packaging_configuration(**kwargs)
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)
...
# describe_packaging_group method usage example with argument unpacking
kwargs: DescribePackagingGroupRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.describe_packaging_group(**kwargs)
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)
...
# list_assets method usage example with argument unpacking
kwargs: ListAssetsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_assets(**kwargs)
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.
boto3 documentation
# list_packaging_configurations method definition
def list_packaging_configurations(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
PackagingGroupId: str = ...,
) -> ListPackagingConfigurationsResponseTypeDef: # (1)
...
# list_packaging_configurations method usage example with argument unpacking
kwargs: ListPackagingConfigurationsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_packaging_configurations(**kwargs)
list_packaging_groups#
Returns a collection of MediaPackage VOD PackagingGroup resources.
Type annotations and code completion for boto3.client("mediapackage-vod").list_packaging_groups
method.
boto3 documentation
# list_packaging_groups method definition
def list_packaging_groups(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListPackagingGroupsResponseTypeDef: # (1)
...
# list_packaging_groups method usage example with argument unpacking
kwargs: ListPackagingGroupsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_packaging_groups(**kwargs)
list_tags_for_resource#
Returns a list of the tags assigned to the specified resource.
Type annotations and code completion for boto3.client("mediapackage-vod").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource#
Adds tags to the specified resource.
Type annotations and code completion for boto3.client("mediapackage-vod").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes tags from the specified resource.
Type annotations and code completion for boto3.client("mediapackage-vod").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_packaging_group#
Updates a specific packaging group.
Type annotations and code completion for boto3.client("mediapackage-vod").update_packaging_group
method.
boto3 documentation
# update_packaging_group method definition
def update_packaging_group(
self,
*,
Id: str,
Authorization: AuthorizationTypeDef = ..., # (1)
) -> UpdatePackagingGroupResponseTypeDef: # (2)
...
# update_packaging_group method usage example with argument unpacking
kwargs: UpdatePackagingGroupRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.update_packaging_group(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("mediapackage-vod").get_paginator
method with overloads.
client.get_paginator("list_assets")
-> ListAssetsPaginatorclient.get_paginator("list_packaging_configurations")
-> ListPackagingConfigurationsPaginatorclient.get_paginator("list_packaging_groups")
-> ListPackagingGroupsPaginator