Skip to main content

app_instance_admins

Creates, updates, deletes, gets or lists an app_instance_admins resource.

Overview

Nameapp_instance_admins
TypeResource
Idaws.chime_sdk_identity.app_instance_admins

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
adminobjectThe AppInstanceAdmin data.
app_instance_arnstringThe ARN of the AppInstance for which the user is an administrator. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
created_timestampstring (date-time)The time at which an administrator was created.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_instance_adminselectapp_instance_admin_arn, app_instance_arn, regionReturns the full details of an AppInstanceAdmin.
list_app_instance_adminsselectapp_instance_arn, regionmax-results, next-tokenReturns a list of the administrators in the AppInstance.
create_app_instance_admininsertapp_instance_arn, region, AppInstanceAdminArnPromotes an AppInstanceUser or AppInstanceBot to an AppInstanceAdmin. The promoted entity can perform the following actions. ChannelModerator actions across all channels in the AppInstance. DeleteChannelMessage actions. Only an AppInstanceUser and AppInstanceBot can be promoted to an AppInstanceAdmin role.
delete_app_instance_admindeleteapp_instance_admin_arn, app_instance_arn, regionDemotes an AppInstanceAdmin to an AppInstanceUser or AppInstanceBot. This action does not delete the user.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
app_instance_admin_arnstringThe ARN of the AppInstance's administrator.
app_instance_arnstringThe ARN of the AppInstance.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of administrators that you want to return.
next-tokenstringThe token returned from previous API requests until the number of administrators is reached.

SELECT examples

Returns the full details of an AppInstanceAdmin.

SELECT
admin,
app_instance_arn,
created_timestamp
FROM aws.chime_sdk_identity.app_instance_admins
WHERE app_instance_admin_arn = '{{ app_instance_admin_arn }}' -- required
AND app_instance_arn = '{{ app_instance_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Promotes an AppInstanceUser or AppInstanceBot to an AppInstanceAdmin. The promoted entity can perform the following actions. ChannelModerator actions across all channels in the AppInstance. DeleteChannelMessage actions. Only an AppInstanceUser and AppInstanceBot can be promoted to an AppInstanceAdmin role.

INSERT INTO aws.chime_sdk_identity.app_instance_admins (
AppInstanceAdminArn,
app_instance_arn,
region
)
SELECT
'{{ AppInstanceAdminArn }}' /* required */,
'{{ app_instance_arn }}',
'{{ region }}'
RETURNING
app_instance_admin,
app_instance_arn
;

DELETE examples

Demotes an AppInstanceAdmin to an AppInstanceUser or AppInstanceBot. This action does not delete the user.

DELETE FROM aws.chime_sdk_identity.app_instance_admins
WHERE app_instance_admin_arn = '{{ app_instance_admin_arn }}' --required
AND app_instance_arn = '{{ app_instance_arn }}' --required
AND region = '{{ region }}' --required
;