Skip to main content

centralization_rule_for_organizations

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

Overview

Namecentralization_rule_for_organizations
TypeResource
Idaws.observabilityadmin.centralization_rule_for_organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
centralization_ruleobjectDefines how telemetry data should be centralized across an Amazon Web Services Organization, including source and destination configurations.
created_regionstringThe Amazon Web Services region where the organization centralization rule was created.
created_time_stampinteger (int64)The timestamp when the organization centralization rule was created.
creator_account_idstringThe Amazon Web Services Account that created the organization centralization rule.
failure_reasonstringThe reason why an organization centralization rule is marked UNHEALTHY. (TRUSTED_ACCESS_NOT_ENABLED, DESTINATION_ACCOUNT_NOT_IN_ORGANIZATION, INTERNAL_SERVER_ERROR)
last_update_time_stampinteger (int64)The timestamp when the organization centralization rule was last updated.
rule_arnstringThe Amazon Resource Name (ARN) of the organization centralization rule. (pattern: <code>arn:aws([a-z0-9-]+)?:([a-zA-Z0-9-]+):([a-z0-9-]+)?:([0-9]{12})?:(.+)</code>)
rule_healthstringThe health status of the organization centralization rule. (Healthy, Unhealthy, Provisioning)
rule_namestringThe name of the organization centralization rule. (pattern: <code>[0-9A-Za-z-_.#/]+</code>)
tag_propagation_failure_reasonstringThe reason tag propagation is unhealthy for this rule. Only present when TagPropagationStatus is Unhealthy. (RoleNotAssumable, RoleLacksPermissions)
tag_propagation_statusstringThe health status of tag propagation for this rule. This status is independent of the overall RuleHealth for log delivery. Returns Healthy when the most recent tag-propagation attempt succeeded, or Unhealthy when the most recent attempt failed. (Healthy, Unhealthy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_centralization_rule_for_organizationselectregionRetrieves the details of a specific organization centralization rule. This operation can only be called by the organization's management account or a delegated administrator account.
create_centralization_rule_for_organizationinsertregion, RuleName, RuleCreates a centralization 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_centralization_rule_for_organizationupdateregion, RuleIdentifier, RuleUpdates an existing centralization 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_centralization_rule_for_organizationdeleteregionDeletes an organization-wide centralization 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 centralization rule. This operation can only be called by the organization's management account or a delegated administrator account.

SELECT
centralization_rule,
created_region,
created_time_stamp,
creator_account_id,
failure_reason,
last_update_time_stamp,
rule_arn,
rule_health,
rule_name,
tag_propagation_failure_reason,
tag_propagation_status
FROM aws.observabilityadmin.centralization_rule_for_organizations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a centralization 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.centralization_rule_for_organizations (
RuleName,
Rule,
Tags,
region
)
SELECT
'{{ RuleName }}' /* required */,
'{{ Rule }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
rule_arn
;

UPDATE examples

Updates an existing centralization 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.centralization_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 centralization rule. This operation can only be called by the organization's management account or a delegated administrator account.

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