resource_policy
Gets an individual resource_policy
resource
Overview
Name | resource_policy |
Type | Resource |
Description | resource_policy |
Id | awscc.xray.resource_policy |
Fields
Name | Datatype | Description |
---|---|---|
policy_name | string | The name of the resource policy. Must be unique within a specific AWS account. |
policy_document | string | The resource policy document, which can be up to 5kb in size. |
bypass_policy_lockout_check | boolean | A flag to indicate whether to bypass the resource policy lockout safety check |
region | string | AWS 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