AWS Elemental MediaLive

2025/02/18 - AWS Elemental MediaLive - 4 updated api methods

Changes  Adds support for creating CloudWatchAlarmTemplates for AWS Elemental MediaTailor Playback Configuration resources.

CreateCloudWatchAlarmTemplate (updated) Link ¶
Changes (both)
{'TargetResourceType': {'MEDIATAILOR_PLAYBACK_CONFIGURATION'}}

Creates a cloudwatch alarm template to dynamically generate cloudwatch metric alarms on targeted resource types.

See also: AWS API Documentation

Request Syntax

client.create_cloud_watch_alarm_template(
    ComparisonOperator='GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
    DatapointsToAlarm=123,
    Description='string',
    EvaluationPeriods=123,
    GroupIdentifier='string',
    MetricName='string',
    Name='string',
    Period=123,
    Statistic='SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
    Tags={
        'string': 'string'
    },
    TargetResourceType='CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
    Threshold=123.0,
    TreatMissingData='notBreaching'|'breaching'|'ignore'|'missing',
    RequestId='string'
)
type ComparisonOperator:

string

param ComparisonOperator:

[REQUIRED] The comparison operator used to compare the specified statistic and the threshold.

type DatapointsToAlarm:

integer

param DatapointsToAlarm:

The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

type Description:

string

param Description:

A resource's optional description.

type EvaluationPeriods:

integer

param EvaluationPeriods:

[REQUIRED] The number of periods over which data is compared to the specified threshold.

type GroupIdentifier:

string

param GroupIdentifier:

[REQUIRED] A cloudwatch alarm template group's identifier. Can be either be its id or current name.

type MetricName:

string

param MetricName:

[REQUIRED] The name of the metric associated with the alarm. Must be compatible with targetResourceType.

type Name:

string

param Name:

[REQUIRED] A resource's name. Names must be unique within the scope of a resource type in a specific region.

type Period:

integer

param Period:

[REQUIRED] The period, in seconds, over which the specified statistic is applied.

type Statistic:

string

param Statistic:

[REQUIRED] The statistic to apply to the alarm's metric data.

type Tags:

dict

param Tags:

Represents the tags associated with a resource.

  • (string) -- Placeholder documentation for __string

    • (string) -- Placeholder documentation for __string

type TargetResourceType:

string

param TargetResourceType:

[REQUIRED] The resource type this template should dynamically generate cloudwatch metric alarms for.

type Threshold:

float

param Threshold:

[REQUIRED] The threshold value to compare with the specified statistic.

type TreatMissingData:

string

param TreatMissingData:

[REQUIRED] Specifies how missing data points are treated when evaluating the alarm's condition.

type RequestId:

string

param RequestId:

An ID that you assign to a create request. This ID ensures idempotency when creating resources.This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'Arn': 'string',
    'ComparisonOperator': 'GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
    'CreatedAt': datetime(2015, 1, 1),
    'DatapointsToAlarm': 123,
    'Description': 'string',
    'EvaluationPeriods': 123,
    'GroupId': 'string',
    'Id': 'string',
    'MetricName': 'string',
    'ModifiedAt': datetime(2015, 1, 1),
    'Name': 'string',
    'Period': 123,
    'Statistic': 'SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
    'Tags': {
        'string': 'string'
    },
    'TargetResourceType': 'CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
    'Threshold': 123.0,
    'TreatMissingData': 'notBreaching'|'breaching'|'ignore'|'missing'
}

Response Structure

  • (dict) -- CreateCloudWatchAlarmTemplate 201 response

    • Arn (string) -- A cloudwatch alarm template's ARN (Amazon Resource Name)

    • ComparisonOperator (string) -- The comparison operator used to compare the specified statistic and the threshold.

    • CreatedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • DatapointsToAlarm (integer) -- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

    • Description (string) -- A resource's optional description.

    • EvaluationPeriods (integer) -- The number of periods over which data is compared to the specified threshold.

    • GroupId (string) -- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with aws-

    • Id (string) -- A cloudwatch alarm template's id. AWS provided templates have ids that start with aws-

    • MetricName (string) -- The name of the metric associated with the alarm. Must be compatible with targetResourceType.

    • ModifiedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • Name (string) -- A resource's name. Names must be unique within the scope of a resource type in a specific region.

    • Period (integer) -- The period, in seconds, over which the specified statistic is applied.

    • Statistic (string) -- The statistic to apply to the alarm's metric data.

    • Tags (dict) -- Represents the tags associated with a resource.

      • (string) -- Placeholder documentation for __string

        • (string) -- Placeholder documentation for __string

    • TargetResourceType (string) -- The resource type this template should dynamically generate cloudwatch metric alarms for.

    • Threshold (float) -- The threshold value to compare with the specified statistic.

    • TreatMissingData (string) -- Specifies how missing data points are treated when evaluating the alarm's condition.

GetCloudWatchAlarmTemplate (updated) Link ¶
Changes (response)
{'TargetResourceType': {'MEDIATAILOR_PLAYBACK_CONFIGURATION'}}

Retrieves the specified cloudwatch alarm template.

See also: AWS API Documentation

Request Syntax

client.get_cloud_watch_alarm_template(
    Identifier='string'
)
type Identifier:

string

param Identifier:

[REQUIRED] A cloudwatch alarm template's identifier. Can be either be its id or current name.

rtype:

dict

returns:

Response Syntax

{
    'Arn': 'string',
    'ComparisonOperator': 'GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
    'CreatedAt': datetime(2015, 1, 1),
    'DatapointsToAlarm': 123,
    'Description': 'string',
    'EvaluationPeriods': 123,
    'GroupId': 'string',
    'Id': 'string',
    'MetricName': 'string',
    'ModifiedAt': datetime(2015, 1, 1),
    'Name': 'string',
    'Period': 123,
    'Statistic': 'SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
    'Tags': {
        'string': 'string'
    },
    'TargetResourceType': 'CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
    'Threshold': 123.0,
    'TreatMissingData': 'notBreaching'|'breaching'|'ignore'|'missing'
}

Response Structure

  • (dict) -- GetCloudWatchAlarmTemplate 200 response

    • Arn (string) -- A cloudwatch alarm template's ARN (Amazon Resource Name)

    • ComparisonOperator (string) -- The comparison operator used to compare the specified statistic and the threshold.

    • CreatedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • DatapointsToAlarm (integer) -- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

    • Description (string) -- A resource's optional description.

    • EvaluationPeriods (integer) -- The number of periods over which data is compared to the specified threshold.

    • GroupId (string) -- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with aws-

    • Id (string) -- A cloudwatch alarm template's id. AWS provided templates have ids that start with aws-

    • MetricName (string) -- The name of the metric associated with the alarm. Must be compatible with targetResourceType.

    • ModifiedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • Name (string) -- A resource's name. Names must be unique within the scope of a resource type in a specific region.

    • Period (integer) -- The period, in seconds, over which the specified statistic is applied.

    • Statistic (string) -- The statistic to apply to the alarm's metric data.

    • Tags (dict) -- Represents the tags associated with a resource.

      • (string) -- Placeholder documentation for __string

        • (string) -- Placeholder documentation for __string

    • TargetResourceType (string) -- The resource type this template should dynamically generate cloudwatch metric alarms for.

    • Threshold (float) -- The threshold value to compare with the specified statistic.

    • TreatMissingData (string) -- Specifies how missing data points are treated when evaluating the alarm's condition.

ListCloudWatchAlarmTemplates (updated) Link ¶
Changes (response)
{'CloudWatchAlarmTemplates': {'TargetResourceType': {'MEDIATAILOR_PLAYBACK_CONFIGURATION'}}}

Lists cloudwatch alarm templates.

See also: AWS API Documentation

Request Syntax

client.list_cloud_watch_alarm_templates(
    GroupIdentifier='string',
    MaxResults=123,
    NextToken='string',
    Scope='string',
    SignalMapIdentifier='string'
)
type GroupIdentifier:

string

param GroupIdentifier:

A cloudwatch alarm template group's identifier. Can be either be its id or current name.

type MaxResults:

integer

param MaxResults:

Placeholder documentation for MaxResults

type NextToken:

string

param NextToken:

A token used to retrieve the next set of results in paginated list responses.

type Scope:

string

param Scope:

Represents the scope of a resource, with options for all scopes, AWS provided resources, or local resources.

type SignalMapIdentifier:

string

param SignalMapIdentifier:

A signal map's identifier. Can be either be its id or current name.

rtype:

dict

returns:

Response Syntax

{
    'CloudWatchAlarmTemplates': [
        {
            'Arn': 'string',
            'ComparisonOperator': 'GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
            'CreatedAt': datetime(2015, 1, 1),
            'DatapointsToAlarm': 123,
            'Description': 'string',
            'EvaluationPeriods': 123,
            'GroupId': 'string',
            'Id': 'string',
            'MetricName': 'string',
            'ModifiedAt': datetime(2015, 1, 1),
            'Name': 'string',
            'Period': 123,
            'Statistic': 'SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
            'Tags': {
                'string': 'string'
            },
            'TargetResourceType': 'CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
            'Threshold': 123.0,
            'TreatMissingData': 'notBreaching'|'breaching'|'ignore'|'missing'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) -- ListCloudWatchAlarmTemplates 200 response

    • CloudWatchAlarmTemplates (list) -- Placeholder documentation for __listOfCloudWatchAlarmTemplateSummary

      • (dict) -- Placeholder documentation for CloudWatchAlarmTemplateSummary

        • Arn (string) -- A cloudwatch alarm template's ARN (Amazon Resource Name)

        • ComparisonOperator (string) -- The comparison operator used to compare the specified statistic and the threshold.

        • CreatedAt (datetime) -- Placeholder documentation for __timestampIso8601

        • DatapointsToAlarm (integer) -- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

        • Description (string) -- A resource's optional description.

        • EvaluationPeriods (integer) -- The number of periods over which data is compared to the specified threshold.

        • GroupId (string) -- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with aws-

        • Id (string) -- A cloudwatch alarm template's id. AWS provided templates have ids that start with aws-

        • MetricName (string) -- The name of the metric associated with the alarm. Must be compatible with targetResourceType.

        • ModifiedAt (datetime) -- Placeholder documentation for __timestampIso8601

        • Name (string) -- A resource's name. Names must be unique within the scope of a resource type in a specific region.

        • Period (integer) -- The period, in seconds, over which the specified statistic is applied.

        • Statistic (string) -- The statistic to apply to the alarm's metric data.

        • Tags (dict) -- Represents the tags associated with a resource.

          • (string) -- Placeholder documentation for __string

            • (string) -- Placeholder documentation for __string

        • TargetResourceType (string) -- The resource type this template should dynamically generate cloudwatch metric alarms for.

        • Threshold (float) -- The threshold value to compare with the specified statistic.

        • TreatMissingData (string) -- Specifies how missing data points are treated when evaluating the alarm's condition.

    • NextToken (string) -- A token used to retrieve the next set of results in paginated list responses.

UpdateCloudWatchAlarmTemplate (updated) Link ¶
Changes (both)
{'TargetResourceType': {'MEDIATAILOR_PLAYBACK_CONFIGURATION'}}

Updates the specified cloudwatch alarm template.

See also: AWS API Documentation

Request Syntax

client.update_cloud_watch_alarm_template(
    ComparisonOperator='GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
    DatapointsToAlarm=123,
    Description='string',
    EvaluationPeriods=123,
    GroupIdentifier='string',
    Identifier='string',
    MetricName='string',
    Name='string',
    Period=123,
    Statistic='SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
    TargetResourceType='CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
    Threshold=123.0,
    TreatMissingData='notBreaching'|'breaching'|'ignore'|'missing'
)
type ComparisonOperator:

string

param ComparisonOperator:

The comparison operator used to compare the specified statistic and the threshold.

type DatapointsToAlarm:

integer

param DatapointsToAlarm:

The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

type Description:

string

param Description:

A resource's optional description.

type EvaluationPeriods:

integer

param EvaluationPeriods:

The number of periods over which data is compared to the specified threshold.

type GroupIdentifier:

string

param GroupIdentifier:

A cloudwatch alarm template group's identifier. Can be either be its id or current name.

type Identifier:

string

param Identifier:

[REQUIRED] A cloudwatch alarm template's identifier. Can be either be its id or current name.

type MetricName:

string

param MetricName:

The name of the metric associated with the alarm. Must be compatible with targetResourceType.

type Name:

string

param Name:

A resource's name. Names must be unique within the scope of a resource type in a specific region.

type Period:

integer

param Period:

The period, in seconds, over which the specified statistic is applied.

type Statistic:

string

param Statistic:

The statistic to apply to the alarm's metric data.

type TargetResourceType:

string

param TargetResourceType:

The resource type this template should dynamically generate cloudwatch metric alarms for.

type Threshold:

float

param Threshold:

The threshold value to compare with the specified statistic.

type TreatMissingData:

string

param TreatMissingData:

Specifies how missing data points are treated when evaluating the alarm's condition.

rtype:

dict

returns:

Response Syntax

{
    'Arn': 'string',
    'ComparisonOperator': 'GreaterThanOrEqualToThreshold'|'GreaterThanThreshold'|'LessThanThreshold'|'LessThanOrEqualToThreshold',
    'CreatedAt': datetime(2015, 1, 1),
    'DatapointsToAlarm': 123,
    'Description': 'string',
    'EvaluationPeriods': 123,
    'GroupId': 'string',
    'Id': 'string',
    'MetricName': 'string',
    'ModifiedAt': datetime(2015, 1, 1),
    'Name': 'string',
    'Period': 123,
    'Statistic': 'SampleCount'|'Average'|'Sum'|'Minimum'|'Maximum',
    'Tags': {
        'string': 'string'
    },
    'TargetResourceType': 'CLOUDFRONT_DISTRIBUTION'|'MEDIALIVE_MULTIPLEX'|'MEDIALIVE_CHANNEL'|'MEDIALIVE_INPUT_DEVICE'|'MEDIAPACKAGE_CHANNEL'|'MEDIAPACKAGE_ORIGIN_ENDPOINT'|'MEDIACONNECT_FLOW'|'S3_BUCKET'|'MEDIATAILOR_PLAYBACK_CONFIGURATION',
    'Threshold': 123.0,
    'TreatMissingData': 'notBreaching'|'breaching'|'ignore'|'missing'
}

Response Structure

  • (dict) -- UpdateCloudWatchAlarmTemplate 200 response

    • Arn (string) -- A cloudwatch alarm template's ARN (Amazon Resource Name)

    • ComparisonOperator (string) -- The comparison operator used to compare the specified statistic and the threshold.

    • CreatedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • DatapointsToAlarm (integer) -- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.

    • Description (string) -- A resource's optional description.

    • EvaluationPeriods (integer) -- The number of periods over which data is compared to the specified threshold.

    • GroupId (string) -- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with aws-

    • Id (string) -- A cloudwatch alarm template's id. AWS provided templates have ids that start with aws-

    • MetricName (string) -- The name of the metric associated with the alarm. Must be compatible with targetResourceType.

    • ModifiedAt (datetime) -- Placeholder documentation for __timestampIso8601

    • Name (string) -- A resource's name. Names must be unique within the scope of a resource type in a specific region.

    • Period (integer) -- The period, in seconds, over which the specified statistic is applied.

    • Statistic (string) -- The statistic to apply to the alarm's metric data.

    • Tags (dict) -- Represents the tags associated with a resource.

      • (string) -- Placeholder documentation for __string

        • (string) -- Placeholder documentation for __string

    • TargetResourceType (string) -- The resource type this template should dynamically generate cloudwatch metric alarms for.

    • Threshold (float) -- The threshold value to compare with the specified statistic.

    • TreatMissingData (string) -- Specifies how missing data points are treated when evaluating the alarm's condition.