resource_policy
Gets an individual resource_policy
resource
Overview
Name | resource_policy |
Type | Resource |
Description | resource_policy |
Id | awscc.organizations.resource_policy |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The unique identifier (ID) associated with this resource policy. |
arn | string | The Amazon Resource Name (ARN) of the resource policy. |
content | object | The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it. |
tags | array | A list of tags that you want to attach to the resource policy |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
id,
arn,
content,
tags
FROM awscc.organizations.resource_policy
WHERE data__Identifier = '<Id>';
Permissions
To operate on the resource_policy
resource, the following permissions are required:
Read
organizations:DescribeResourcePolicy,
organizations:ListTagsForResource
Update
organizations:DescribeResourcePolicy,
organizations:PutResourcePolicy,
organizations:ListTagsForResource,
organizations:TagResource,
organizations:UntagResource
Delete
organizations:DeleteResourcePolicy