Skip to content

Describe Account Policies

cloudwatchlogs_describe_account_policies R Documentation

Returns a list of all CloudWatch Logs account policies in the account

Description

Returns a list of all CloudWatch Logs account policies in the account.

Usage

cloudwatchlogs_describe_account_policies(policyType, policyName,
  accountIdentifiers)

Arguments

policyType

[required] Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.

policyName

Use this parameter to limit the returned policies to only the policy with the name that you specify.

accountIdentifiers

If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.

If you omit this parameter, only the policy in the current account is returned.

Value

A list with the following syntax:

list(
  accountPolicies = list(
    list(
      policyName = "string",
      policyDocument = "string",
      lastUpdatedTime = 123,
      policyType = "DATA_PROTECTION_POLICY"|"SUBSCRIPTION_FILTER_POLICY",
      scope = "ALL",
      selectionCriteria = "string",
      accountId = "string"
    )
  )
)

Request syntax

svc$describe_account_policies(
  policyType = "DATA_PROTECTION_POLICY"|"SUBSCRIPTION_FILTER_POLICY",
  policyName = "string",
  accountIdentifiers = list(
    "string"
  )
)