ListCentralizationRulesForOrganization - Amazon CloudWatch

ListCentralizationRulesForOrganization

Lists all centralization rules in your organization. This operation can only be called by the organization's management account or a delegated administrator account.

Request Syntax

POST /ListCentralizationRulesForOrganization HTTP/1.1 Content-type: application/json { "AllRegions": boolean, "MaxResults": number, "NextToken": "string", "RuleNamePrefix": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

AllRegions

A flag determining whether to return organization centralization rules from all regions or only the current region.

Type: Boolean

Required: No

MaxResults

The maximum number of organization centralization rules to return in a single call.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

NextToken

The token for the next set of results. A previous call generates this token.

Type: String

Required: No

RuleNamePrefix

A string to filter organization centralization rules whose names begin with the specified prefix.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "CentralizationRuleSummaries": [ { "CreatedRegion": "string", "CreatedTimeStamp": number, "CreatorAccountId": "string", "DestinationAccountId": "string", "DestinationRegion": "string", "FailureReason": "string", "LastUpdateTimeStamp": number, "RuleArn": "string", "RuleHealth": "string", "RuleName": "string" } ], "NextToken": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

CentralizationRuleSummaries

A list of centralization rule summaries.

Type: Array of CentralizationRuleSummary objects

NextToken

A token to resume pagination of results.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for AWS resources in the IAM user guide.

HTTP Status Code: 400

InternalServerException

Indicates the request has failed to process because of an unknown server error, exception, or failure.

HTTP Status Code: 500

TooManyRequestsException

The request throughput limit was exceeded.

HTTP Status Code: 429

ValidationException

Indicates input validation failed. Check your request parameters and retry the request.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: