application_assignments
Creates, updates, deletes or gets an application_assignment
resource or lists application_assignments
in a region
Overview
Name | application_assignments |
Type | Resource |
Description | Resource Type definition for SSO application access grant to a user or group. |
Id | aws.sso.application_assignments |
Fields
Name | Datatype | Description |
---|---|---|
application_arn | string | The ARN of the application. |
principal_type | string | The entity type for which the assignment will be created. |
principal_id | string | An identifier for an object in IAM Identity Center, such as a user or group |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ApplicationArn, PrincipalType, PrincipalId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.sso.application_assignments (
ApplicationArn,
PrincipalType,
PrincipalId,
region
)
SELECT
'{{ ApplicationArn }}',
'{{ PrincipalType }}',
'{{ PrincipalId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.sso.application_assignments (
ApplicationArn,
PrincipalType,
PrincipalId,
region
)
SELECT
'{{ ApplicationArn }}',
'{{ PrincipalType }}',
'{{ PrincipalId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application_assignment
props:
- name: ApplicationArn
value: '{{ ApplicationArn }}'
- name: PrincipalType
value: '{{ PrincipalType }}'
- name: PrincipalId
value: '{{ PrincipalId }}'
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