resource_policy
Gets an individual resource_policy
resource
Overview
Name | resource_policy |
Type | Resource |
Description | resource_policy |
Id | awscc.ssm.resource_policy |
Fields
Name | Datatype | Description |
---|---|---|
resource_arn | string | Arn of OpsItemGroup etc. |
policy | object | Actual policy statement. |
policy_id | string | An unique identifier within the policies of a resource. |
policy_hash | string | A snapshot identifier for the policy over time. |
region | string | AWS 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