Skip to main content

resource_policy

Gets an individual resource_policy resource

Overview

Nameresource_policy
TypeResource
Descriptionresource_policy
Idawscc.organizations.resource_policy

Fields

NameDatatypeDescription
idstringThe unique identifier (ID) associated with this resource policy.
arnstringThe Amazon Resource Name (ARN) of the resource policy.
contentobjectThe 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.
tagsarrayA list of tags that you want to attach to the resource policy
regionstringAWS 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