resource_policy
Gets an individual resource_policy
resource
Overview
Name | resource_policy |
Type | Resource |
Description | resource_policy |
Id | awscc.logs.resource_policy |
Fields
Name | Datatype | Description |
---|---|---|
policy_name | string | A name for resource policy |
policy_document | string | The policy document |
region | string | AWS 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