Skip to main content

managed_policy

Gets an individual managed_policy resource

Overview

Namemanaged_policy
TypeResource
Descriptionmanaged_policy
Idawscc.iam.managed_policy

Fields

NameDatatypeDescription
descriptionstringA friendly description of the policy.
groupsarrayThe name (friendly name, not ARN) of the group to attach the policy to.
managed_policy_namestringThe friendly name of the policy.
pathstringThe path for the policy.
policy_documentobjectThe JSON policy document that you want to use as the content for the new policy.
rolesarrayThe name (friendly name, not ARN) of the role to attach the policy to.
usersarrayThe name (friendly name, not ARN) of the IAM user to attach the policy to.
policy_arnstringAmazon Resource Name (ARN) of the managed policy
attachment_countintegerThe number of entities (users, groups, and roles) that the policy is attached to.
create_datestringThe date and time, in ISO 8601 date-time format, when the policy was created.
update_datestringThe date and time, in ISO 8601 date-time format, when the policy was last updated.
default_version_idstringThe identifier for the version of the policy that is set as the default version.
is_attachablebooleanSpecifies whether the policy can be attached to an IAM user, group, or role.
permissions_boundary_usage_countintegerThe number of entities (users and roles) for which the policy is used to set the permissions boundary.
policy_idstringThe stable and unique string identifying the policy.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
description,
groups,
managed_policy_name,
path,
policy_document,
roles,
users,
policy_arn,
attachment_count,
create_date,
update_date,
default_version_id,
is_attachable,
permissions_boundary_usage_count,
policy_id
FROM awscc.iam.managed_policy
WHERE data__Identifier = '<PolicyArn>';

Permissions

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

Read

iam:GetPolicy,
iam:ListEntitiesForPolicy,
iam:GetPolicyVersion

Update

iam:DetachRolePolicy,
iam:GetPolicy,
iam:ListPolicyVersions,
iam:DetachGroupPolicy,
iam:DetachUserPolicy,
iam:CreatePolicyVersion,
iam:DeletePolicyVersion,
iam:AttachGroupPolicy,
iam:AttachUserPolicy,
iam:AttachRolePolicy

Delete

iam:DetachRolePolicy,
iam:GetPolicy,
iam:ListPolicyVersions,
iam:DetachGroupPolicy,
iam:DetachUserPolicy,
iam:DeletePolicyVersion,
iam:DeletePolicy,
iam:ListEntitiesForPolicy