Skip to main content

resource_policy

Gets an individual resource_policy resource

Overview

Nameresource_policy
TypeResource
Descriptionresource_policy
Idawscc.ssm.resource_policy

Fields

NameDatatypeDescription
resource_arnstringArn of OpsItemGroup etc.
policyobjectActual policy statement.
policy_idstringAn unique identifier within the policies of a resource.
policy_hashstringA snapshot identifier for the policy over time.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
resource_arn,
policy,
policy_id,
policy_hash
FROM awscc.ssm.resource_policy
WHERE data__Identifier = '<PolicyId>|<ResourceArn>';

Permissions

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

Read

ssm:GetResourcePolicies

Update

ssm:PutResourcePolicy

Delete

ssm:DeleteResourcePolicy