AccountPolicy - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AccountPolicy

A structure that contains information about one CloudWatch Logs account policy.

Contents

accountId

The Amazon account ID that the policy applies to.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

Required: No

lastUpdatedTime

The date and time that this policy was most recently updated.

Type: Long

Valid Range: Minimum value of 0.

Required: No

policyDocument

The policy document for this account policy.

The JSON specified in policyDocument can be up to 30,720 characters.

Type: String

Required: No

policyName

The name of the account policy.

Type: String

Required: No

policyType

The type of policy for this account policy.

Type: String

Valid Values: DATA_PROTECTION_POLICY | SUBSCRIPTION_FILTER_POLICY

Required: No

scope

The scope of the account policy.

Type: String

Valid Values: ALL

Required: No

selectionCriteria

The log group selection criteria for this subscription filter policy.

Type: String

Required: No

See Also

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