Skip to main content

cloud_watch_alarm_template_groups

Creates, updates, deletes, gets or lists a cloud_watch_alarm_template_groups resource.

Overview​

Namecloud_watch_alarm_template_groups
TypeResource
Idaws.medialive.cloud_watch_alarm_template_groups

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringA cloudwatch alarm template group's ARN (Amazon Resource Name)
created_atstring (date-time)Placeholder documentation for __timestampIso8601
descriptionstringPlaceholder documentation for __stringMin0Max1024
idstringPlaceholder documentation for __stringMin7Max11PatternAws097
modified_atstring (date-time)Placeholder documentation for __timestampIso8601
namestringPlaceholder documentation for __stringMin1Max255PatternS
tagsobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cloud_watch_alarm_template_groupselectidentifier, regionRetrieves the specified cloudwatch alarm template group.
list_cloud_watch_alarm_template_groupsselectregionmaxResults, nextToken, scope, signalMapIdentifierLists cloudwatch alarm template groups.
create_cloud_watch_alarm_template_groupinsertregionCreates a cloudwatch alarm template group to group your cloudwatch alarm templates and to attach to signal maps for dynamically creating alarms.
update_cloud_watch_alarm_template_groupupdateidentifier, regionUpdates the specified cloudwatch alarm template group.
delete_cloud_watch_alarm_template_groupdeleteidentifier, regionDeletes a cloudwatch alarm template group. You must detach this group from all signal maps and ensure its existing templates are moved to another group or deleted.

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
identifierstringA cloudwatch alarm template group's identifier. Can be either be its id or current name.
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstringA token used to retrieve the next set of results in paginated list responses.
scopestringRepresents the scope of a resource, with options for all scopes, AWS provided resources, or local resources.
signalMapIdentifierstringA signal map's identifier. Can be either be its id or current name.

SELECT examples​

Retrieves the specified cloudwatch alarm template group.

SELECT
arn,
created_at,
description,
id,
modified_at,
name,
tags
FROM aws.medialive.cloud_watch_alarm_template_groups
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a cloudwatch alarm template group to group your cloudwatch alarm templates and to attach to signal maps for dynamically creating alarms.

INSERT INTO aws.medialive.cloud_watch_alarm_template_groups (
Description,
Name,
Tags,
RequestId,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ Tags }}',
'{{ RequestId }}',
'{{ region }}'
RETURNING
arn,
created_at,
description,
id,
modified_at,
name,
tags
;

UPDATE examples​

Updates the specified cloudwatch alarm template group.

UPDATE aws.medialive.cloud_watch_alarm_template_groups
SET
Description = '{{ Description }}'
WHERE
identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
created_at,
description,
id,
modified_at,
name,
tags;

DELETE examples​

Deletes a cloudwatch alarm template group. You must detach this group from all signal maps and ensure its existing templates are moved to another group or deleted.

DELETE FROM aws.medialive.cloud_watch_alarm_template_groups
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;