Skip to main content

telemetry_rules

Creates, updates, deletes or gets a telemetry_rule resource or lists telemetry_rules in a region

Overview

Nametelemetry_rules
TypeResource
DescriptionThe AWS::ObservabilityAdmin::TelemetryRule resource defines a CloudWatch Observability Admin Telemetry Rule.
Idawscc.observabilityadmin.telemetry_rules

Fields

NameDatatypeDescription
rule_namestringThe name of the telemetry rule
ruleobjectThe AWS::ObservabilityAdmin::TelemetryRule resource defines a CloudWatch Observability Admin Telemetry Rule.
rule_arnstringThe arn of the telemetry rule
tagsarrayAn array of key-value pairs to apply to this resource
regionstringAWS region.

For more information, see AWS::ObservabilityAdmin::TelemetryRule.

Methods

NameAccessible byRequired Params
create_resourceINSERTRuleName, Rule, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual telemetry_rule.

SELECT
region,
rule_name,
rule,
rule_arn,
tags
FROM awscc.observabilityadmin.telemetry_rules
WHERE region = 'us-east-1' AND data__Identifier = '<RuleArn>';

INSERT example

Use the following StackQL query and manifest file to create a new telemetry_rule resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.observabilityadmin.telemetry_rules (
RuleName,
Rule,
region
)
SELECT
'{{ RuleName }}',
'{{ Rule }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.observabilityadmin.telemetry_rules
WHERE data__Identifier = '<RuleArn>'
AND region = 'us-east-1';

Permissions

To operate on the telemetry_rules resource, the following permissions are required:

Create

observabilityadmin:CreateTelemetryRule,
observabilityadmin:GetTelemetryRule,
observabilityadmin:TagResource,
observabilityadmin:ListTagsForResource,
observabilityadmin:GetTelemetryEvaluationStatus,
iam:CreateServiceLinkedRole

Read

observabilityadmin:GetTelemetryRule,
observabilityadmin:ListTagsForResource,
observabilityadmin:GetTelemetryEvaluationStatus

Update

observabilityadmin:UpdateTelemetryRule,
observabilityadmin:GetTelemetryRule,
observabilityadmin:TagResource,
observabilityadmin:UntagResource,
observabilityadmin:ListTagsForResource,
observabilityadmin:GetTelemetryEvaluationStatus

Delete

observabilityadmin:DeleteTelemetryRule,
observabilityadmin:GetTelemetryEvaluationStatus

List

observabilityadmin:ListTelemetryRules,
observabilityadmin:GetTelemetryEvaluationStatus