Skip to main content

application_assignments

Creates, updates, deletes or gets an application_assignment resource or lists application_assignments in a region

Overview

Nameapplication_assignments
TypeResource
DescriptionResource Type definition for SSO application access grant to a user or group.
Idaws.sso.application_assignments

Fields

NameDatatypeDescription
application_arnstringThe ARN of the application.
principal_typestringThe entity type for which the assignment will be created.
principal_idstringAn identifier for an object in IAM Identity Center, such as a user or group
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationArn, PrincipalType, PrincipalId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all application_assignments in a region.

SELECT
region,
application_arn,
principal_type,
principal_id
FROM aws.sso.application_assignments
WHERE region = 'us-east-1';

Gets all properties from an individual application_assignment.

SELECT
region,
application_arn,
principal_type,
principal_id
FROM aws.sso.application_assignments
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationArn>|<PrincipalType>|<PrincipalId>';

INSERT example

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

/*+ create */
INSERT INTO aws.sso.application_assignments (
ApplicationArn,
PrincipalType,
PrincipalId,
region
)
SELECT
'{{ ApplicationArn }}',
'{{ PrincipalType }}',
'{{ PrincipalId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sso.application_assignments
WHERE data__Identifier = '<ApplicationArn|PrincipalType|PrincipalId>'
AND region = 'us-east-1';

Permissions

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

Create

sso:CreateApplicationAssignment,
sso:DescribeApplicationAssignment

Read

sso:DescribeApplicationAssignment

Delete

sso:DeleteApplicationAssignment

List

sso:ListApplicationAssignments