Skip to main content

alerts

Creates, updates, deletes, gets or lists an alerts resource.

Overview

Namealerts
TypeResource
Idaws.mediatailor.alerts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alert_codestringThe code for the alert. For example, NOT_PROCESSED.
alert_messagestringIf an alert is generated for a resource, an explanation of the reason for the alert.
categorystringThe category that MediaTailor assigns to the alert. (SCHEDULING_ERROR, PLAYBACK_WARNING, INFO)
last_modified_timestring (date-time)The timestamp when the alert was last modified.
related_resource_arnsarrayThe Amazon Resource Names (ARNs) related to this alert.
resource_arnstringThe Amazon Resource Name (ARN) of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_alertsselectresourceArn, regionmaxResults, nextTokenLists the alerts that are associated with a MediaTailor channel assembly resource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
resourceArnstringThe Amazon Resource Name (ARN) of the resource.
maxResultsintegerThe maximum number of alerts that you want MediaTailor to return in response to the current request. If there are more than MaxResults alerts, use the value of NextToken in the response to get the next page of results. The default value is 100. MediaTailor uses DynamoDB-based pagination, which means that a response might contain fewer than MaxResults items, including 0 items, even when more results are available. To retrieve all results, you must continue making requests using the NextToken value from each response until the response no longer includes a NextToken value.
nextTokenstringPagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. For the first ListAlerts request, omit this value. For subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. Continue making requests until the response no longer includes a NextToken value, which indicates that all results have been retrieved.

SELECT examples

Lists the alerts that are associated with a MediaTailor channel assembly resource.

SELECT
alert_code,
alert_message,
category,
last_modified_time,
related_resource_arns,
resource_arn
FROM aws.mediatailor.alerts
WHERE resourceArn = '{{ resourceArn }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;