Skip to content

Type definitions#

Index > Mediapackagev2 > Type definitions

Auto-generated documentation for Mediapackagev2 type annotations stubs module mypy-boto3-mediapackagev2.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

ForceEndpointErrorConfigurationUnionTypeDef#

# ForceEndpointErrorConfigurationUnionTypeDef definition

ForceEndpointErrorConfigurationUnionTypeDef = Union[
    ForceEndpointErrorConfigurationTypeDef,  # (1)
    ForceEndpointErrorConfigurationExtraOutputTypeDef,  # (2)
]
  1. See ForceEndpointErrorConfigurationTypeDef
  2. See ForceEndpointErrorConfigurationExtraOutputTypeDef

SegmentUnionTypeDef#

# SegmentUnionTypeDef definition

SegmentUnionTypeDef = Union[
    SegmentTypeDef,  # (1)
    SegmentOutputTypeDef,  # (2)
]
  1. See SegmentTypeDef
  2. See SegmentOutputTypeDef

ChannelGroupListConfigurationTypeDef#

# ChannelGroupListConfigurationTypeDef definition

class ChannelGroupListConfigurationTypeDef(TypedDict):
    ChannelGroupName: str,
    Arn: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    Description: NotRequired[str],

ChannelListConfigurationTypeDef#

# ChannelListConfigurationTypeDef definition

class ChannelListConfigurationTypeDef(TypedDict):
    Arn: str,
    ChannelName: str,
    ChannelGroupName: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    Description: NotRequired[str],
    InputType: NotRequired[InputTypeType],  # (1)
  1. See InputTypeType

CreateChannelGroupRequestRequestTypeDef#

# CreateChannelGroupRequestRequestTypeDef definition

class CreateChannelGroupRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ClientToken: NotRequired[str],
    Description: NotRequired[str],
    Tags: NotRequired[Mapping[str, str]],

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):
    ChannelGroupName: str,
    ChannelName: str,
    ClientToken: NotRequired[str],
    InputType: NotRequired[InputTypeType],  # (1)
    Description: NotRequired[str],
    Tags: NotRequired[Mapping[str, str]],
  1. See InputTypeType

IngestEndpointTypeDef#

# IngestEndpointTypeDef definition

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

DashUtcTimingTypeDef#

# DashUtcTimingTypeDef definition

class DashUtcTimingTypeDef(TypedDict):
    TimingMode: NotRequired[DashUtcTimingModeType],  # (1)
    TimingSource: NotRequired[str],
  1. See DashUtcTimingModeType

ScteDashTypeDef#

# ScteDashTypeDef definition

class ScteDashTypeDef(TypedDict):
    AdMarkerDash: NotRequired[AdMarkerDashType],  # (1)
  1. See AdMarkerDashType

ScteHlsTypeDef#

# ScteHlsTypeDef definition

class ScteHlsTypeDef(TypedDict):
    AdMarkerHls: NotRequired[AdMarkerHlsType],  # (1)
  1. See AdMarkerHlsType

ForceEndpointErrorConfigurationTypeDef#

# ForceEndpointErrorConfigurationTypeDef definition

class ForceEndpointErrorConfigurationTypeDef(TypedDict):
    EndpointErrorConditions: NotRequired[Sequence[EndpointErrorConditionType]],  # (1)
  1. See EndpointErrorConditionType

ForceEndpointErrorConfigurationOutputTypeDef#

# ForceEndpointErrorConfigurationOutputTypeDef definition

class ForceEndpointErrorConfigurationOutputTypeDef(TypedDict):
    EndpointErrorConditions: NotRequired[List[EndpointErrorConditionType]],  # (1)
  1. See EndpointErrorConditionType

DeleteChannelGroupRequestRequestTypeDef#

# DeleteChannelGroupRequestRequestTypeDef definition

class DeleteChannelGroupRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,

DeleteChannelPolicyRequestRequestTypeDef#

# DeleteChannelPolicyRequestRequestTypeDef definition

class DeleteChannelPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,

DeleteChannelRequestRequestTypeDef#

# DeleteChannelRequestRequestTypeDef definition

class DeleteChannelRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,

DeleteOriginEndpointPolicyRequestRequestTypeDef#

# DeleteOriginEndpointPolicyRequestRequestTypeDef definition

class DeleteOriginEndpointPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,

DeleteOriginEndpointRequestRequestTypeDef#

# DeleteOriginEndpointRequestRequestTypeDef definition

class DeleteOriginEndpointRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,

EncryptionContractConfigurationTypeDef#

# EncryptionContractConfigurationTypeDef definition

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

EncryptionMethodTypeDef#

# EncryptionMethodTypeDef definition

class EncryptionMethodTypeDef(TypedDict):
    TsEncryptionMethod: NotRequired[TsEncryptionMethodType],  # (1)
    CmafEncryptionMethod: NotRequired[CmafEncryptionMethodType],  # (2)
  1. See TsEncryptionMethodType
  2. See CmafEncryptionMethodType

FilterConfigurationOutputTypeDef#

# FilterConfigurationOutputTypeDef definition

class FilterConfigurationOutputTypeDef(TypedDict):
    ManifestFilter: NotRequired[str],
    Start: NotRequired[datetime],
    End: NotRequired[datetime],
    TimeDelaySeconds: NotRequired[int],

ForceEndpointErrorConfigurationExtraOutputTypeDef#

# ForceEndpointErrorConfigurationExtraOutputTypeDef definition

class ForceEndpointErrorConfigurationExtraOutputTypeDef(TypedDict):
    EndpointErrorConditions: NotRequired[List[EndpointErrorConditionType]],  # (1)
  1. See EndpointErrorConditionType

GetChannelGroupRequestRequestTypeDef#

# GetChannelGroupRequestRequestTypeDef definition

class GetChannelGroupRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,

GetChannelPolicyRequestRequestTypeDef#

# GetChannelPolicyRequestRequestTypeDef definition

class GetChannelPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,

GetChannelRequestRequestTypeDef#

# GetChannelRequestRequestTypeDef definition

class GetChannelRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,

GetOriginEndpointPolicyRequestRequestTypeDef#

# GetOriginEndpointPolicyRequestRequestTypeDef definition

class GetOriginEndpointPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,

GetOriginEndpointRequestRequestTypeDef#

# GetOriginEndpointRequestRequestTypeDef definition

class GetOriginEndpointRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

ListChannelGroupsRequestRequestTypeDef#

# ListChannelGroupsRequestRequestTypeDef definition

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

ListChannelsRequestRequestTypeDef#

# ListChannelsRequestRequestTypeDef definition

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

ListDashManifestConfigurationTypeDef#

# ListDashManifestConfigurationTypeDef definition

class ListDashManifestConfigurationTypeDef(TypedDict):
    ManifestName: str,
    Url: NotRequired[str],

ListHlsManifestConfigurationTypeDef#

# ListHlsManifestConfigurationTypeDef definition

class ListHlsManifestConfigurationTypeDef(TypedDict):
    ManifestName: str,
    ChildManifestName: NotRequired[str],
    Url: NotRequired[str],

ListLowLatencyHlsManifestConfigurationTypeDef#

# ListLowLatencyHlsManifestConfigurationTypeDef definition

class ListLowLatencyHlsManifestConfigurationTypeDef(TypedDict):
    ManifestName: str,
    ChildManifestName: NotRequired[str],
    Url: NotRequired[str],

ListOriginEndpointsRequestRequestTypeDef#

# ListOriginEndpointsRequestRequestTypeDef definition

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

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,

PutChannelPolicyRequestRequestTypeDef#

# PutChannelPolicyRequestRequestTypeDef definition

class PutChannelPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    Policy: str,

PutOriginEndpointPolicyRequestRequestTypeDef#

# PutOriginEndpointPolicyRequestRequestTypeDef definition

class PutOriginEndpointPolicyRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,
    Policy: str,

ScteOutputTypeDef#

# ScteOutputTypeDef definition

class ScteOutputTypeDef(TypedDict):
    ScteFilter: NotRequired[List[ScteFilterType]],  # (1)
  1. See ScteFilterType

ScteTypeDef#

# ScteTypeDef definition

class ScteTypeDef(TypedDict):
    ScteFilter: NotRequired[Sequence[ScteFilterType]],  # (1)
  1. See ScteFilterType

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

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

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

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

UpdateChannelGroupRequestRequestTypeDef#

# UpdateChannelGroupRequestRequestTypeDef definition

class UpdateChannelGroupRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ETag: NotRequired[str],
    Description: NotRequired[str],

UpdateChannelRequestRequestTypeDef#

# UpdateChannelRequestRequestTypeDef definition

class UpdateChannelRequestRequestTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    ETag: NotRequired[str],
    Description: NotRequired[str],

CreateChannelGroupResponseTypeDef#

# CreateChannelGroupResponseTypeDef definition

class CreateChannelGroupResponseTypeDef(TypedDict):
    ChannelGroupName: str,
    Arn: str,
    EgressDomain: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    ETag: str,
    Description: str,
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef definition

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

GetChannelGroupResponseTypeDef#

# GetChannelGroupResponseTypeDef definition

class GetChannelGroupResponseTypeDef(TypedDict):
    ChannelGroupName: str,
    Arn: str,
    EgressDomain: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    Description: str,
    ETag: str,
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetChannelPolicyResponseTypeDef#

# GetChannelPolicyResponseTypeDef definition

class GetChannelPolicyResponseTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    Policy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetOriginEndpointPolicyResponseTypeDef#

# GetOriginEndpointPolicyResponseTypeDef definition

class GetOriginEndpointPolicyResponseTypeDef(TypedDict):
    ChannelGroupName: str,
    ChannelName: str,
    OriginEndpointName: str,
    Policy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListChannelGroupsResponseTypeDef#

# ListChannelGroupsResponseTypeDef definition

class ListChannelGroupsResponseTypeDef(TypedDict):
    Items: List[ChannelGroupListConfigurationTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See ChannelGroupListConfigurationTypeDef
  2. See ResponseMetadataTypeDef

ListChannelsResponseTypeDef#

# ListChannelsResponseTypeDef definition

class ListChannelsResponseTypeDef(TypedDict):
    Items: List[ChannelListConfigurationTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See ChannelListConfigurationTypeDef
  2. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

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

UpdateChannelGroupResponseTypeDef#

# UpdateChannelGroupResponseTypeDef definition

class UpdateChannelGroupResponseTypeDef(TypedDict):
    ChannelGroupName: str,
    Arn: str,
    EgressDomain: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    Description: str,
    ETag: str,
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateChannelResponseTypeDef#

# CreateChannelResponseTypeDef definition

class CreateChannelResponseTypeDef(TypedDict):
    Arn: str,
    ChannelName: str,
    ChannelGroupName: str,
    CreatedAt: datetime,
    ModifiedAt: datetime,
    Description: str,
    IngestEndpoints: List[IngestEndpointTypeDef],  # (1)
    InputType: InputTypeType,  # (2)
    ETag: str,
    Tags: Dict[str, str],
    ResponseM