Skip to main content

resource_policy

Gets an individual resource_policy resource

Overview

Nameresource_policy
TypeResource
Descriptionresource_policy
Idawscc.xray.resource_policy

Fields

NameDatatypeDescription
policy_namestringThe name of the resource policy. Must be unique within a specific AWS account.
policy_documentstringThe resource policy document, which can be up to 5kb in size.
bypass_policy_lockout_checkbooleanA flag to indicate whether to bypass the resource policy lockout safety check
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

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

Permissions

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

Read

xray:ListResourcePolicies

Update

xray:PutResourcePolicy,
xray:ListResourcePolicies

Delete

xray:DeleteResourcePolicy