MediaPackageClient#
Index > MediaPackage > MediaPackageClient
Auto-generated documentation for MediaPackage type annotations stubs module mypy-boto3-mediapackage.
MediaPackageClient#
Type annotations and code completion for boto3.client("mediapackage")
.
boto3 documentation
# MediaPackageClient usage example
from boto3.session import Session
from mypy_boto3_mediapackage.client import MediaPackageClient
def get_mediapackage_client() -> MediaPackageClient:
return Session().client("mediapackage")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("mediapackage").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("mediapackage")
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.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").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").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
configure_logs#
Changes the Channel's properities to configure log subscription See also: AWS API Documentation.
Type annotations and code completion for boto3.client("mediapackage").configure_logs
method.
boto3 documentation
# configure_logs method definition
def configure_logs(
self,
*,
Id: str,
EgressAccessLogs: EgressAccessLogsTypeDef = ..., # (1)
IngressAccessLogs: IngressAccessLogsTypeDef = ..., # (2)
) -> ConfigureLogsResponseTypeDef: # (3)
...
# configure_logs method usage example with argument unpacking
kwargs: ConfigureLogsRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.configure_logs(**kwargs)
create_channel#
Creates a new Channel.
Type annotations and code completion for boto3.client("mediapackage").create_channel
method.
boto3 documentation
# create_channel method definition
def create_channel(
self,
*,
Id: str,
Description: str = ...,
Tags: Mapping[str, str] = ...,
) -> CreateChannelResponseTypeDef: # (1)
...
# create_channel method usage example with argument unpacking
kwargs: CreateChannelRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.create_channel(**kwargs)
create_harvest_job#
Creates a new HarvestJob record.
Type annotations and code completion for boto3.client("mediapackage").create_harvest_job
method.
boto3 documentation
# create_harvest_job method definition
def create_harvest_job(
self,
*,
EndTime: str,
Id: str,
OriginEndpointId: str,
S3Destination: S3DestinationTypeDef, # (1)
StartTime: str,
) -> CreateHarvestJobResponseTypeDef: # (2)
...
# create_harvest_job method usage example with argument unpacking
kwargs: CreateHarvestJobRequestRequestTypeDef = { # (1)
"EndTime": ...,
"Id": ...,
"OriginEndpointId": ...,
"S3Destination": ...,
"StartTime": ...,
}
parent.create_harvest_job(**kwargs)
create_origin_endpoint#
Creates a new OriginEndpoint record.
Type annotations and code completion for boto3.client("mediapackage").create_origin_endpoint
method.
boto3 documentation
# create_origin_endpoint method definition
def create_origin_endpoint(
self,
*,
ChannelId: str,
Id: str,
Authorization: AuthorizationTypeDef = ..., # (1)
CmafPackage: CmafPackageCreateOrUpdateParametersTypeDef = ..., # (2)
DashPackage: Union[DashPackageTypeDef, DashPackageExtraOutputTypeDef] = ..., # (3)
Description: str = ...,
HlsPackage: Union[HlsPackageTypeDef, HlsPackageExtraOutputTypeDef] = ..., # (4)
ManifestName: str = ...,
MssPackage: Union[MssPackageTypeDef, MssPackageExtraOutputTypeDef] = ..., # (5)
Origination: OriginationType = ..., # (6)
StartoverWindowSeconds: int = ...,
Tags: Mapping[str, str] = ...,
TimeDelaySeconds: int = ...,
Whitelist: Sequence[str] = ...,
) -> CreateOriginEndpointResponseTypeDef: # (7)
...
- See AuthorizationTypeDef
- See CmafPackageCreateOrUpdateParametersTypeDef
- See DashPackageTypeDef DashPackageExtraOutputTypeDef
- See HlsPackageTypeDef HlsPackageExtraOutputTypeDef
- See MssPackageTypeDef MssPackageExtraOutputTypeDef
- See OriginationType
- See CreateOriginEndpointResponseTypeDef
# create_origin_endpoint method usage example with argument unpacking
kwargs: CreateOriginEndpointRequestRequestTypeDef = { # (1)
"ChannelId": ...,
"Id": ...,
}
parent.create_origin_endpoint(**kwargs)
delete_channel#
Deletes an existing Channel.
Type annotations and code completion for boto3.client("mediapackage").delete_channel
method.
boto3 documentation
# delete_channel method definition
def delete_channel(
self,
*,
Id: str,
) -> Dict[str, Any]:
...
# delete_channel method usage example with argument unpacking
kwargs: DeleteChannelRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_channel(**kwargs)
delete_origin_endpoint#
Deletes an existing OriginEndpoint.
Type annotations and code completion for boto3.client("mediapackage").delete_origin_endpoint
method.