Skip to main content

permission_sets

Creates, updates, deletes or gets a permission_set resource or lists permission_sets in a region

Overview

Namepermission_sets
TypeResource
DescriptionResource Type definition for SSO PermissionSet
Idaws.sso.permission_sets

Fields

NameDatatypeDescription
namestringThe name you want to assign to this permission set.
permission_set_arnstringThe permission set that the policy will be attached to
descriptionstringThe permission set description.
instance_arnstringThe sso instance arn that the permission set is owned.
session_durationstringThe length of time that a user can be signed in to an AWS account.
relay_state_typestringThe relay state URL that redirect links to any service in the AWS Management Console.
managed_policiesarray
inline_policyobjectThe inline policy to put in permission set.
tagsarray
customer_managed_policy_referencesarray
permissions_boundaryobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, InstanceArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all permission_sets in a region.

SELECT
region,
name,
permission_set_arn,
description,
instance_arn,
session_duration,
relay_state_type,
managed_policies,
inline_policy,
tags,
customer_managed_policy_references,
permissions_boundary
FROM aws.sso.permission_sets
WHERE region = 'us-east-1';

Gets all properties from an individual permission_set.

SELECT
region,
name,
permission_set_arn,
description,
instance_arn,
session_duration,
relay_state_type,
managed_policies,
inline_policy,
tags,
customer_managed_policy_references,
permissions_boundary
FROM aws.sso.permission_sets
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceArn>|<PermissionSetArn>';

INSERT example

Use the following StackQL query and manifest file to create a new permission_set resource, using stack-deploy.

/*+ create */
INSERT INTO aws.sso.permission_sets (
Name,
InstanceArn,
region
)
SELECT
'{{ Name }}',
'{{ InstanceArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sso.permission_sets
WHERE data__Identifier = '<InstanceArn|PermissionSetArn>'
AND region = 'us-east-1';

Permissions

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

Create

sso:CreatePermissionSet,
sso:PutInlinePolicyToPermissionSet,
sso:AttachManagedPolicyToPermissionSet,
sso:AttachCustomerManagedPolicyReferenceToPermissionSet,
sso:PutPermissionsBoundaryToPermissionSet,
sso:TagResource,
sso:DescribePermissionSet,
sso:ListTagsForResource,
sso:ListManagedPoliciesInPermissionSet,
sso:ListCustomerManagedPolicyReferencesInPermissionSet,
sso:GetInlinePolicyForPermissionSet,
sso:GetPermissionsBoundaryForPermissionSet

Read

sso:DescribePermissionSet,
sso:ListTagsForResource,
sso:ListManagedPoliciesInPermissionSet,
sso:ListCustomerManagedPolicyReferencesInPermissionSet,
sso:GetInlinePolicyForPermissionSet,
sso:GetPermissionsBoundaryForPermissionSet

Update

sso:UpdatePermissionSet,
sso:TagResource,
sso:UntagResource,
sso:ListTagsForResource,
sso:AttachManagedPolicyToPermissionSet,
sso:AttachCustomerManagedPolicyReferenceToPermissionSet,
sso:DetachManagedPolicyFromPermissionSet,
sso:DetachCustomerManagedPolicyReferenceFromPermissionSet,
sso:ListManagedPoliciesInPermissionSet,
sso:ListCustomerManagedPolicyReferencesInPermissionSet,
sso:PutInlinePolicyToPermissionSet,
sso:GetPermissionsBoundaryForPermissionSet,
sso:DeletePermissionsBoundaryFromPermissionSet,
sso:PutPermissionsBoundaryToPermissionSet,
sso:DeleteInlinePolicyFromPermissionSet,
sso:ProvisionPermissionSet,
sso:DescribePermissionSet,
sso:GetInlinePolicyForPermissionSet,
sso:DescribePermissionSetProvisioningStatus

Delete

sso:DeletePermissionSet

List

sso:DescribePermissionSet