Skip to main content

telemetry_rule_for_organizations

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

Overview

Nametelemetry_rule_for_organizations
TypeResource
Idaws.observabilityadmin.telemetry_rule_for_organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_time_stampinteger (int64)The timestamp when the organization telemetry rule was created.
home_regionstringThe Amazon Web Services Region where the organization telemetry rule was originally created. For replicated rules in spoke regions, this indicates the region that manages the rule. For rules created without multi-region scope, this field is not present.
is_replicatedbooleanIndicates whether this organization telemetry rule is a replica that was created in this region through multi-region fan-out from the home region. Replicated rules cannot be directly updated or deleted in the spoke region. To modify a replicated rule, make changes in the home region.
last_update_time_stampinteger (int64)The timestamp when the organization telemetry rule was last updated.
region_statusesarrayA list of per-region replication statuses for the organization telemetry rule. Each entry indicates the replication status of the rule in a specific spoke region. This field is only present for rules created with multi-region scope.
rule_arnstringThe Amazon Resource Name (ARN) of the organization telemetry rule. (pattern: <code>arn:aws([a-z0-9-]+)?:([a-zA-Z0-9-]+):([a-z0-9-]+)?:([0-9]{12})?:(.+)</code>)
rule_namestringThe name of the organization telemetry rule. (pattern: <code>[0-9A-Za-z-_.#/]+</code>)
telemetry_ruleobjectDefines how telemetry should be configured for specific Amazon Web Services resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_telemetry_rule_for_organizationselectregionRetrieves the details of a specific organization telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.
create_telemetry_rule_for_organizationinsertregion, RuleName, RuleCreates a telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.
update_telemetry_rule_for_organizationupdateregion, RuleIdentifier, RuleUpdates an existing telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.
delete_telemetry_rule_for_organizationdeleteregionDeletes an organization-wide telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.

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)

SELECT examples

Retrieves the details of a specific organization telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.

SELECT
created_time_stamp,
home_region,
is_replicated,
last_update_time_stamp,
region_statuses,
rule_arn,
rule_name,
telemetry_rule
FROM aws.observabilityadmin.telemetry_rule_for_organizations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.

INSERT INTO aws.observabilityadmin.telemetry_rule_for_organizations (
RuleName,
Rule,
Tags,
region
)
SELECT
'{{ RuleName }}' /* required */,
'{{ Rule }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
rule_arn
;

UPDATE examples

Updates an existing telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.

UPDATE aws.observabilityadmin.telemetry_rule_for_organizations
SET
RuleIdentifier = '{{ RuleIdentifier }}',
Rule = '{{ Rule }}'
WHERE
region = '{{ region }}' --required
AND RuleIdentifier = '{{ RuleIdentifier }}' --required
AND Rule = '{{ Rule }}' --required
RETURNING
rule_arn;

DELETE examples

Deletes an organization-wide telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.

DELETE FROM aws.observabilityadmin.telemetry_rule_for_organizations
WHERE region = '{{ region }}' --required
;