mediapackagev2 / Client / create_channel

create_channel#

mediapackagev2.Client.create_channel(**kwargs)#

Create a channel to start receiving content streams. The channel represents the input to MediaPackage for incoming live content from an encoder such as AWS Elemental MediaLive. The channel receives content, and after packaging it, outputs it through an origin endpoint to downstream devices (such as video players or CDNs) that request the content. You can create only one channel with each request. We recommend that you spread out channels between channel groups, such as putting redundant channels in the same AWS Region in different channel groups.

See also: AWS API Documentation

Request Syntax

response = client.create_channel(
    ChannelGroupName='string',
    ChannelName='string',
    ClientToken='string',
    Description='string',
    Tags={
        'string': '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.

  • ChannelName (string) –

    [REQUIRED]

    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. You can’t change the name after you create the channel.

  • ClientToken (string) –

    A unique, case-sensitive token that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  • Description (string) – Enter any descriptive text that helps you to identify the channel.

  • Tags (dict) –

    A comma-separated list of tag key:value pairs that you define. For example:

    "Key1": "Value1",

    "Key2": "Value2"

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'ChannelName': 'string',
    'ChannelGroupName': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'ModifiedAt': datetime(2015, 1, 1),
    'Description': 'string',
    'IngestEndpoints': [
        {
            'Id': 'string',
            'Url': 'string'
        },
    ],
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • 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) –

      The description for your channel.

    • IngestEndpoints (list) –

      The list of ingest endpoints.

      • (dict) –

        The ingest domain URL where the source stream should be sent.

        • Id (string) –

          The system-generated unique identifier for the IngestEndpoint.

        • Url (string) –

          The ingest domain URL where the source stream should be sent.

    • Tags (dict) –

      The comma-separated list of tag key:value pairs assigned to the channel.

      • (string) –

        • (string) –

Exceptions

  • mediapackagev2.Client.exceptions.ThrottlingException

  • mediapackagev2.Client.exceptions.ConflictException

  • mediapackagev2.Client.exceptions.InternalServerException

  • mediapackagev2.Client.exceptions.AccessDeniedException

  • mediapackagev2.Client.exceptions.ValidationException

  • mediapackagev2.Client.exceptions.ResourceNotFoundException

  • mediapackagev2.Client.exceptions.ServiceQuotaExceededException