Skip to content

Lists the resource policies in this account

Description

Lists the resource policies in this account.

Usage

cloudwatchlogs_describe_resource_policies(nextToken, limit, resourceArn,
  policyScope)

Arguments

  • nextToken

    The token for the next set of items to return. The token expires after 24 hours.

  • limit

    The maximum number of resource policies to be displayed with one call of this API.

  • resourceArn

    The ARN of the CloudWatch Logs resource for which to query the resource policy.

  • policyScope

    Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE. When not specified, defaults to ACCOUNT.

Value

A list with the following syntax:

list(
  resourcePolicies = list(
    list(
      policyName = "string",
      policyDocument = "string",
      lastUpdatedTime = 123,
      policyScope = "ACCOUNT"|"RESOURCE",
      resourceArn = "string",
      revisionId = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$describe_resource_policies(
  nextToken = "string",
  limit = 123,
  resourceArn = "string",
  policyScope = "ACCOUNT"|"RESOURCE"
)