Skip to main content

instances

Creates, updates, deletes or gets an instance resource or lists instances in a region

Overview

Nameinstances
TypeResource
DescriptionResource Type definition for Identity Center (SSO) Instance
Idaws.sso.instances

Fields

NameDatatypeDescription
namestringThe name you want to assign to this Identity Center (SSO) Instance
instance_arnstringThe SSO Instance ARN that is returned upon creation of the Identity Center (SSO) Instance
owner_account_idstringThe AWS accountId of the owner of the Identity Center (SSO) Instance
identity_store_idstringThe ID of the identity store associated with the created Identity Center (SSO) Instance
statusstringThe status of the Identity Center (SSO) Instance, create_in_progress/delete_in_progress/active
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all instances in a region.

SELECT
region,
name,
instance_arn,
owner_account_id,
identity_store_id,
status,
tags
FROM aws.sso.instances
WHERE region = 'us-east-1';

Gets all properties from an individual instance.

SELECT
region,
name,
instance_arn,
owner_account_id,
identity_store_id,
status,
tags
FROM aws.sso.instances
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

sso:CreateInstance,
sso:DescribeInstance,
sso:TagResource,
iam:CreateServiceLinkedRole,
sso:TagInstance,
sso:ListTagsForResource

Read

sso:DescribeInstance,
sso:ListTagsForResource

Update

sso:UpdateInstance,
sso:TagResource,
sso:UntagResource,
sso:ListTagsForResource,
sso:TagInstance,
sso:DescribeInstance

Delete

sso:DeleteInstance

List

sso:ListInstances