mediapackagev2 / Client / list_channels

list_channels#

mediapackagev2.Client.list_channels(**kwargs)#

Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.

See also: AWS API Documentation

Request Syntax

response = client.list_channels(
    ChannelGroupName='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • ChannelGroupName (string) –

    [REQUIRED]

    The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.

  • MaxResults (integer) – The maximum number of results to return in the response.

  • NextToken (string) – The pagination token from the GET list request. Use the token to fetch the next page of results.

Return type:

dict

Returns:

Response Syntax

{
    'Items': [
        {
            'Arn': 'string',
            'ChannelName': 'string',
            'ChannelGroupName': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'ModifiedAt': datetime(2015, 1, 1),
            'Description': 'string',
            'InputType': 'HLS'|'CMAF'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Items (list) –

      The objects being returned.

      • (dict) –

        The configuration of the channel.

        • Arn (string) –

          The Amazon Resource Name (ARN) associated with the resource.

        • ChannelName (string) –

          The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.

        • ChannelGroupName (string) –

          The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.

        • CreatedAt (datetime) –

          The date and time the channel was created.

        • ModifiedAt (datetime) –

          The date and time the channel was modified.

        • Description (string) –

          Any descriptive information that you want to add to the channel for future identification purposes.

        • InputType (string) –

          The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

          The allowed values are:

          • HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

          • CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    • NextToken (string) –

      The pagination token from the GET list request.

Exceptions