Skip to main content

resource_policy

Gets an individual resource_policy resource

Overview

Nameresource_policy
TypeResource
Descriptionresource_policy
Idawscc.logs.resource_policy

Fields

NameDatatypeDescription
policy_namestringA name for resource policy
policy_documentstringThe policy document
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
policy_name,
policy_document
FROM awscc.logs.resource_policy
WHERE data__Identifier = '<PolicyName>';

Permissions

To operate on the resource_policy resource, the following permissions are required:

Read

logs:DescribeResourcePolicies

Update

logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DeleteResourcePolicy

Delete

logs:DeleteResourcePolicy