View source: R/cloudwatchlogs_operations.R
| cloudwatchlogs_put_account_policy | R Documentation |
Creates an account-level data protection policy, subscription filter policy, field index policy, transformer policy, or metric extraction policy that applies to all log groups, a subset of log groups, or a data source name and type combination in the account. Account-level policies are Region-specific: a policy applies only to log groups in the Region where you create it. To apply a policy across multiple Regions, create the policy separately in each Region.
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 and cannot start with |
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 indexes with different types.
You can use |
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 or a data source name and type combination. Specifying
The Using the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.