Skip to content

GetTelemetryRule

Source: src/AWS/ObservabilityAdmin/GetTelemetryRule.ts

Runtime binding for observabilityadmin:GetTelemetryRule — reads the full configuration and per-region status of the bound TelemetryRule. The rule’s name is injected automatically and the IAM grant is scoped to the rule’s ARN.

Provide AWS.ObservabilityAdmin.GetTelemetryRuleHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants observabilityadmin:GetTelemetryRule on the rule
const getTelemetryRule = yield* AWS.ObservabilityAdmin.GetTelemetryRule(rule);
// runtime
const { TelemetryRule: config, RegionStatuses } = yield* getTelemetryRule();