Skip to content

Type definitions#

Index > MediaPackage > Type definitions

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

AuthorizationTypeDef#

# AuthorizationTypeDef definition

class AuthorizationTypeDef(TypedDict):
    CdnIdentifierSecret: str,
    SecretsRoleArn: str,

EgressAccessLogsTypeDef#

# EgressAccessLogsTypeDef definition

class EgressAccessLogsTypeDef(TypedDict):
    LogGroupName: NotRequired[str],

IngressAccessLogsTypeDef#

# IngressAccessLogsTypeDef definition

class IngressAccessLogsTypeDef(TypedDict):
    LogGroupName: NotRequired[str],

HlsManifestCreateOrUpdateParametersTypeDef#

# HlsManifestCreateOrUpdateParametersTypeDef definition

class HlsManifestCreateOrUpdateParametersTypeDef(TypedDict):
    Id: str,
    AdMarkers: NotRequired[AdMarkersType],  # (1)
    AdTriggers: NotRequired[Sequence[AdTriggersElementType]],  # (2)
    AdsOnDeliveryRestrictions: NotRequired[AdsOnDeliveryRestrictionsType],  # (3)
    IncludeIframeOnlyStream: NotRequired[bool],
    ManifestName: NotRequired[str],
    PlaylistType: NotRequired[PlaylistTypeType],  # (4)
    PlaylistWindowSeconds: NotRequired[int],
    ProgramDateTimeIntervalSeconds: NotRequired[int],
  1. See AdMarkersType
  2. See AdTriggersElementType
  3. See AdsOnDeliveryRestrictionsType
  4. See PlaylistTypeType

StreamSelectionTypeDef#

# StreamSelectionTypeDef definition

class StreamSelectionTypeDef(TypedDict):
    MaxVideoBitsPerSecond: NotRequired[int],
    MinVideoBitsPerSecond: NotRequired[int],
    StreamOrder: NotRequired[StreamOrderType],  # (1)
  1. See StreamOrderType

HlsManifestTypeDef#

# HlsManifestTypeDef definition

class HlsManifestTypeDef(TypedDict):
    Id: str,
    AdMarkers: NotRequired[AdMarkersType],  # (1)
    IncludeIframeOnlyStream: NotRequired[bool],
    ManifestName: NotRequired[str],
    PlaylistType: NotRequired[PlaylistTypeType],  # (2)
    PlaylistWindowSeconds: NotRequired[int],
    ProgramDateTimeIntervalSeconds: NotRequired[int],
    Url: NotRequired[str],
    AdTriggers: NotRequired[List[AdTriggersElementType]],  # (3)
    AdsOnDeliveryRestrictions: NotRequired[AdsOnDeliveryRestrictionsType],  # (4)
  1. See AdMarkersType
  2. See PlaylistTypeType
  3. See AdTriggersElementType
  4. See AdsOnDeliveryRestrictionsType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

CreateChannelRequestRequestTypeDef#

# CreateChannelRequestRequestTypeDef definition

class CreateChannelRequestRequestTypeDef(TypedDict):
    Id: str,
    Description: NotRequired[str],
    Tags: NotRequired[Mapping[str, str]],

S3DestinationTypeDef#

# S3DestinationTypeDef definition

class S3DestinationTypeDef(TypedDict):
    BucketName: str,
    ManifestKey: str,
    RoleArn: str,

DeleteChannelRequestRequestTypeDef#

# DeleteChannelRequestRequestTypeDef definition

class DeleteChannelRequestRequestTypeDef(TypedDict):
    Id: str,

DeleteOriginEndpointRequestRequestTypeDef#

# DeleteOriginEndpointRequestRequestTypeDef definition

class DeleteOriginEndpointRequestRequestTypeDef(TypedDict):
    Id: str,

DescribeChannelRequestRequestTypeDef#

# DescribeChannelRequestRequestTypeDef definition

class DescribeChannelRequestRequestTypeDef(TypedDict):
    Id: str,

DescribeHarvestJobRequestRequestTypeDef#

# DescribeHarvestJobRequestRequestTypeDef definition

class DescribeHarvestJobRequestRequestTypeDef(TypedDict):
    Id: str,

DescribeOriginEndpointRequestRequestTypeDef#

# DescribeOriginEndpointRequestRequestTypeDef definition

class DescribeOriginEndpointRequestRequestTypeDef(TypedDict):
    Id: str,

EncryptionContractConfigurationTypeDef#

# EncryptionContractConfigurationTypeDef definition

class EncryptionContractConfigurationTypeDef(TypedDict):
    PresetSpeke20Audio: PresetSpeke20AudioType,  # (1)
    PresetSpeke20Video: PresetSpeke20VideoType,  # (2)
  1. See PresetSpeke20AudioType
  2. See PresetSpeke20VideoType

IngestEndpointTypeDef#

# IngestEndpointTypeDef definition

class IngestEndpointTypeDef(TypedDict):
    Id: NotRequired[str],
    Password: NotRequired[str],
    Url: NotRequired[str],
    Username: NotRequired[str],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListChannelsRequestRequestTypeDef#

# ListChannelsRequestRequestTypeDef definition

class ListChannelsRequestRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListHarvestJobsRequestRequestTypeDef#

# ListHarvestJobsRequestRequestTypeDef definition

class ListHarvestJobsRequestRequestTypeDef(TypedDict):
    IncludeChannelId: NotRequired[str],
    IncludeStatus: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListOriginEndpointsRequestRequestTypeDef#

# ListOriginEndpointsRequestRequestTypeDef definition

class ListOriginEndpointsRequestRequestTypeDef(TypedDict):
    ChannelId: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,

RotateChannelCredentialsRequestRequestTypeDef#

# RotateChannelCredentialsRequestRequestTypeDef definition

class RotateChannelCredentialsRequestRequestTypeDef(TypedDict):
    Id: str,

RotateIngestEndpointCredentialsRequestRequestTypeDef#

# RotateIngestEndpointCredentialsRequestRequestTypeDef definition

class RotateIngestEndpointCredentialsRequestRequestTypeDef(TypedDict):
    Id: str,
    IngestEndpointId: str,

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

class TagResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,
    Tags: Mapping[str, str],

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

class UntagResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,
    TagKeys: Sequence[str],

UpdateChannelRequestRequestTypeDef#

# UpdateChannelRequestRequestTypeDef definition

class UpdateChannelRequestRequestTypeDef(TypedDict):
    Id: str,
    Description: NotRequired[str],

ConfigureLogsRequestRequestTypeDef#

# ConfigureLogsRequestRequestTypeDef definition

class ConfigureLogsRequestRequestTypeDef(TypedDict):
    Id: str,
    EgressAccessLogs: NotRequired[EgressAccessLogsTypeDef],  # (1)
    IngressAccessLogs: NotRequired[IngressAccessLogsTypeDef],  # (2)
  1. See EgressAccessLogsTypeDef
  2. See IngressAccessLogsTypeDef

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef definition

class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateHarvestJobRequestRequestTypeDef#

# CreateHarvestJobRequestRequestTypeDef definition

class CreateHarvestJobRequestRequestTypeDef(TypedDict):
    EndTime: str,
    Id: str,
    OriginEndpointId: str,
    S3Destination: S3DestinationTypeDef,  # (1)
    StartTime: str,
  1. See S3DestinationTypeDef

CreateHarvestJobResponseTypeDef#

# CreateHarvestJobResponseTypeDef definition

class CreateHarvestJobResponseTypeDef(TypedDict):
    Arn: str,
    ChannelId: str,
    CreatedAt: str,
    EndTime: str,
    Id: str,
    OriginEndpointId: str,
    S3Destination: S3DestinationTypeDef,  # (1)
    StartTime: str,
    Status: StatusType,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See S3DestinationTypeDef
  2. See StatusType
  3. See ResponseMetadataTypeDef

DescribeHarvestJobResponseTypeDef#

# DescribeHarvestJobResponseTypeDef definition

class DescribeHarvestJobResponseTypeDef(TypedDict):
    Arn: str,
    ChannelId: str,
    CreatedAt: str,
    EndTime: str,
    Id: str,
    OriginEndpointId: str,
    S3Destination: S3DestinationTypeDef,  # (1)
    StartTime: str,
    Status: StatusType,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See S3DestinationTypeDef
  2. See StatusType
  3. See ResponseMetadataTypeDef

HarvestJobTypeDef#

# HarvestJobTypeDef definition

class HarvestJobTypeDef(TypedDict):
    Arn: NotRequired[str],
    ChannelId: NotRequired[str],
    CreatedAt: NotRequired[str],
    EndTime: NotRequired[str],
    Id: NotRequired[str],
    OriginEndpointId: NotRequired[str],
    S3Destination: NotRequired[S3DestinationTypeDef],  # (1)
    StartTime: NotRequired[str],
    Status: NotRequired[StatusType],  # (2)
  1. See S3DestinationTypeDef
  2. See StatusType

SpekeKeyProviderPaginatorTypeDef#

# SpekeKeyProviderPaginatorTypeDef definition

class SpekeKeyProviderPaginatorTypeDef(TypedDict):
    ResourceId: str,
    RoleArn: str,
    SystemIds: List[str],
    Url: str,
    CertificateArn: NotRequired[str],
    EncryptionContractConfiguration: NotRequired[EncryptionContractConfigurationTypeDef],  # (1)
  1. See EncryptionContractConfigurationTypeDef

SpekeKeyProviderTypeDef#

# SpekeKeyProviderTypeDef definition

class SpekeKeyProviderTypeDef(TypedDict):
    ResourceId: str,
    RoleArn: str,
    SystemIds: Sequence[str],
    Url: str,
    CertificateArn: NotRequired[str],
    EncryptionContractConfiguration: NotRequired[EncryptionContractConfigurationTypeDef],  # (1)
  1. See EncryptionContractConfigurationTypeDef

HlsIngestTypeDef#

# HlsIngestTypeDef definition

class HlsIngestTypeDef(TypedDict):
    IngestEndpoints: NotRequired[List[IngestEndpointTypeDef]],  # (1)
  1. See IngestEndpointTypeDef

ListChannelsRequestListChannelsPaginateTypeDef#

# ListChannelsRequestListChannelsPaginateTypeDef definition

class ListChannelsRequestListChannelsPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListHarvestJobsRequestListHarvestJobsPaginateTypeDef#

# ListHarvestJobsRequestListHarvestJobsPaginateTypeDef definition

class ListHarvestJobsRequestListHarvestJobsPaginateTypeDef(TypedDict):
    IncludeChannelId: NotRequired[str],
    IncludeStatus: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListOriginEndpointsRequestListOriginEndpointsPaginateTypeDef#

# ListOriginEndpointsRequestListOriginEndpointsPaginateTypeDef definition

class ListOriginEndpointsRequestListOriginEndpointsPaginateTypeDef(TypedDict):
    ChannelId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListHarvestJobsResponseTypeDef#

# ListHarvestJobsResponseTypeDef definition

class ListHarvestJobsResponseTypeDef(TypedDict):
    HarvestJobs: List[HarvestJobTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See HarvestJobTypeDef
  2. See ResponseMetadataTypeDef

CmafEncryptionPaginatorTypeDef#

# CmafEncryptionPaginatorTypeDef definition

class CmafEncryptionPaginatorTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderPaginatorTypeDef,  # (2)
    ConstantInitializationVector: NotRequired[str],
    EncryptionMethod: NotRequired[CmafEncryptionMethodType],  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
  1. See CmafEncryptionMethodType
  2. See SpekeKeyProviderPaginatorTypeDef

DashEncryptionPaginatorTypeDef#

# DashEncryptionPaginatorTypeDef definition

class DashEncryptionPaginatorTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderPaginatorTypeDef,  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
  1. See SpekeKeyProviderPaginatorTypeDef

HlsEncryptionPaginatorTypeDef#

# HlsEncryptionPaginatorTypeDef definition

class HlsEncryptionPaginatorTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderPaginatorTypeDef,  # (2)
    ConstantInitializationVector: NotRequired[str],
    EncryptionMethod: NotRequired[EncryptionMethodType],  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
    RepeatExtXKey: NotRequired[bool],
  1. See EncryptionMethodType
  2. See SpekeKeyProviderPaginatorTypeDef

MssEncryptionPaginatorTypeDef#

# MssEncryptionPaginatorTypeDef definition

class MssEncryptionPaginatorTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderPaginatorTypeDef,  # (1)
  1. See SpekeKeyProviderPaginatorTypeDef

CmafEncryptionTypeDef#

# CmafEncryptionTypeDef definition

class CmafEncryptionTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderTypeDef,  # (2)
    ConstantInitializationVector: NotRequired[str],
    EncryptionMethod: NotRequired[CmafEncryptionMethodType],  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
  1. See CmafEncryptionMethodType
  2. See SpekeKeyProviderTypeDef

DashEncryptionTypeDef#

# DashEncryptionTypeDef definition

class DashEncryptionTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderTypeDef,  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
  1. See SpekeKeyProviderTypeDef

HlsEncryptionTypeDef#

# HlsEncryptionTypeDef definition

class HlsEncryptionTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderTypeDef,  # (2)
    ConstantInitializationVector: NotRequired[str],
    EncryptionMethod: NotRequired[EncryptionMethodType],  # (1)
    KeyRotationIntervalSeconds: NotRequired[int],
    RepeatExtXKey: NotRequired[bool],
  1. See EncryptionMethodType
  2. See SpekeKeyProviderTypeDef

MssEncryptionTypeDef#

# MssEncryptionTypeDef definition

class MssEncryptionTypeDef(TypedDict):
    SpekeKeyProvider: SpekeKeyProviderTypeDef,  # (1)
  1. See SpekeKeyProviderTypeDef

ChannelTypeDef#

# ChannelTypeDef definition

class ChannelTypeDef(TypedDict):
    Arn: NotRequired[str],
    CreatedAt: NotRequired[str],
    Description: NotRequired[str],
    EgressAccessLogs: NotRequired[EgressAccessLogsTypeDef],  # (1)
    HlsIngest: NotRequired[HlsIngestTypeDef],  # (2)
    Id: NotRequired[str],
    IngressAccessLogs: NotRequired[IngressAccessLogsTypeDef],  # (3)
    Tags: NotRequired[Dict[str, str]],
  1. See EgressAccessLogsTypeDef
  2. See HlsIngestTypeDef
  3. See IngressAccessLogsTypeDef

ConfigureLogsResponseTypeDef#

# ConfigureLogsResponseTypeDef definition

class ConfigureLogsResponseTypeDef(TypedDict):
    Arn: str,
    CreatedAt: str,
    Description: str,
    EgressAccessLogs: EgressAccessLogsTypeDef,  # (1)
    HlsIngest: HlsIngestTypeDef,  # (2)
    Id: str,
    IngressAccessLogs: IngressAccessLogsTypeDef,  # (3)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See EgressAccessLogsTypeDef
  2. See HlsIngestTypeDef
  3. See IngressAccessLogsTypeDef
  4. See ResponseMetadataTypeDef

CreateChannelResponseTypeDef#

# CreateChannelResponseTypeDef definition

class CreateChannelResponseTypeDef(TypedDict):
    Arn: str,
    CreatedAt: str,
    Description: str,
    EgressAccessLogs: EgressAccessLogsTypeDef,  # (1)
    HlsIngest: HlsIngestTypeDef,  # (2)
    Id: str,
    IngressAccessLogs: IngressAccessLogsTypeDef,  # (3)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See EgressAccessLogsTypeDef
  2. See HlsIngestTypeDef
  3. See IngressAccessLogsTypeDef
  4. See ResponseMetadataTypeDef

DescribeChannelResponseTypeDef#

# DescribeChannelResponseTypeDef definition

class DescribeChannelResponseTypeDef(TypedDict):
    Arn: str,
    CreatedAt: str,
    Description: str,
    EgressAccessLogs: EgressAccessLogsTypeDef,  # (1)
    HlsIngest: HlsIngestTypeDef,  # (2)
    Id: str,
    IngressAccessLogs: IngressAccessLogsTypeDef,  # (3)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See EgressAccessLogsTypeDef
  2. See HlsIngestTypeDef
  3. See IngressAccessLogsTypeDef
  4. See ResponseMetadataTypeDef

RotateChannelCredentialsResponseTypeDef#

# RotateChannelCredentialsResponseTypeDef definition

class RotateChannelCredentialsResponseTypeDef(TypedDict):
    Arn: str,
    CreatedAt: str,
    Description: str,
    EgressAccessLogs: EgressAccessLogsTypeDef,  # (1)
    HlsIngest: HlsIngestTypeDef,  # (2)
    Id: str,
    IngressAccessLogs: IngressAccessLogsTypeDef,  # (3)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See EgressAccessLogsTypeDef
  2. See