View source: R/cloudwatchlogs_operations.R
cloudwatchlogs_put_account_policy | R Documentation |
Creates an account-level data protection policy, subscription filter policy, or field index policy that applies to all log groups or a subset of log groups in the account.
See https://www.paws-r-sdk.com/docs/cloudwatchlogs_put_account_policy/ for full documentation.
cloudwatchlogs_put_account_policy(
policyName,
policyDocument,
policyType,
scope = NULL,
selectionCriteria = NULL
)
policyName |
[required] A name for the policy. This must be unique within the account. |
policyDocument |
[required] Specify the policy, in JSON. Data protection policy A data protection policy must include two JSON blocks:
For an example data protection policy, see the Examples section on this page. The contents of the two In addition to the two JSON blocks, the The JSON specified in Subscription filter policy A subscription filter policy can include the following attributes in a JSON block:
Transformer policy A transformer policy must include one JSON block with the array of processors and their configurations. For more information about available processors, see Processors that you can use. Field index policy A field index filter policy can include the following attribute in a JSON block:
It must contain at least one field index. The following is an example of an index policy document that creates two
indexes,
|
policyType |
[required] The type of policy that you're creating or updating. |
scope |
Currently the only valid value for this parameter is |
selectionCriteria |
Use this parameter to apply the new policy to a subset of log groups in the account. Specifing If If The Using the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.