AWS Elemental MediaPackage v2

2025/07/16 - AWS Elemental MediaPackage v2 - 2 updated api methods

Changes  This release adds support for CDN Authentication using Static Headers in MediaPackage v2.

GetOriginEndpointPolicy (updated) Link ¶
Changes (response)
{'CdnAuthConfiguration': {'CdnIdentifierSecretArns': ['string'],
                          'SecretsRoleArn': 'string'}}

Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.

See also: AWS API Documentation

Request Syntax

client.get_origin_endpoint_policy(
    ChannelGroupName='string',
    ChannelName='string',
    OriginEndpointName='string'
)
type ChannelGroupName:

string

param ChannelGroupName:

[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.

type ChannelName:

string

param ChannelName:

[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.

type OriginEndpointName:

string

param OriginEndpointName:

[REQUIRED]

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

rtype:

dict

returns:

Response Syntax

{
    'ChannelGroupName': 'string',
    'ChannelName': 'string',
    'OriginEndpointName': 'string',
    'Policy': 'string',
    'CdnAuthConfiguration': {
        'CdnIdentifierSecretArns': [
            'string',
        ],
        'SecretsRoleArn': 'string'
    }
}

Response Structure

  • (dict) --

    • 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.

    • 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.

    • OriginEndpointName (string) --

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

    • Policy (string) --

      The policy assigned to the origin endpoint.

    • CdnAuthConfiguration (dict) --

      The settings for using authorization headers between the MediaPackage endpoint and your CDN.

      For information about CDN authorization, see CDN authorization in Elemental MediaPackage in the MediaPackage user guide.

      • CdnIdentifierSecretArns (list) --

        The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.

        • (string) --

      • SecretsRoleArn (string) --

        The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and KMS for CDN authorization.

PutOriginEndpointPolicy (updated) Link ¶
Changes (request)
{'CdnAuthConfiguration': {'CdnIdentifierSecretArns': ['string'],
                          'SecretsRoleArn': 'string'}}

Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.

See also: AWS API Documentation

Request Syntax

client.put_origin_endpoint_policy(
    ChannelGroupName='string',
    ChannelName='string',
    OriginEndpointName='string',
    Policy='string',
    CdnAuthConfiguration={
        'CdnIdentifierSecretArns': [
            'string',
        ],
        'SecretsRoleArn': 'string'
    }
)
type ChannelGroupName:

string

param ChannelGroupName:

[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.

type ChannelName:

string

param ChannelName:

[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.

type OriginEndpointName:

string

param OriginEndpointName:

[REQUIRED]

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

type Policy:

string

param Policy:

[REQUIRED]

The policy to attach to the specified origin endpoint.

type CdnAuthConfiguration:

dict

param CdnAuthConfiguration:

The settings for using authorization headers between the MediaPackage endpoint and your CDN.

For information about CDN authorization, see CDN authorization in Elemental MediaPackage in the MediaPackage user guide.

  • CdnIdentifierSecretArns (list) -- [REQUIRED]

    The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.

    • (string) --

  • SecretsRoleArn (string) -- [REQUIRED]

    The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and KMS for CDN authorization.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --