Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . logs ]

describe-resource-policies

Description

Lists the resource policies in this account.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  describe-resource-policies
[--next-token <value>]
[--limit <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--next-token (string)

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

--limit (integer)

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

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

resourcePolicies -> (list)

The resource policies that exist in this account.

(structure)

A policy enabling one or more entities to put logs to a log group in this account.

policyName -> (string)

The name of the resource policy.

policyDocument -> (string)

The details of the policy.

lastUpdatedTime -> (long)

Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

nextToken -> (string)

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