Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idaws.chime.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Chime account ID.
account_statusstringThe status of the account. (Suspended, Active)
account_typestringThe Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide. (Team, EnterpriseDirectory, EnterpriseLWA, EnterpriseOIDC)
aws_account_idstringThe AWS account ID.
created_timestampstring (date-time)The Amazon Chime account creation timestamp, in ISO 8601 format.
default_licensestringThe default license for the Amazon Chime account. (Basic, Plus, Pro, ProTrial)
namestringThe Amazon Chime account name.
signin_delegate_groupsarrayThe sign-in delegate groups associated with the account.
supported_licensesarraySupported licenses for the Amazon Chime account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_accountselectaccount_id, regionRetrieves details for the specified Amazon Chime account, such as account type and supported licenses.
list_accountsselectregionname, user-email, next-token, max-resultsLists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result.
create_accountinsertregionCreates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.
associate_signin_delegate_groups_with_accountupdateaccount_id, region, SigninDelegateGroupsAssociates the specified sign-in delegate groups with the specified Amazon Chime account.
disassociate_signin_delegate_groups_from_accountupdateaccount_id, region, GroupNamesDisassociates the specified sign-in delegate groups from the specified Amazon Chime account.
update_accountupdateaccount_id, regionUpdates account details for the specified Amazon Chime account. Currently, only account name and default license updates are supported for this action.
delete_accountdeleteaccount_id, regionDeletes the specified Amazon Chime account. You must suspend all users before deleting Team account. You can use the BatchSuspendUser action to dodo. For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended. Deleted accounts appear in your Disabled accounts list for 90 days. To restore deleted account from your Disabled accounts list, you must contact AWS Support. After 90 days, deleted accounts are permanently removed from your Disabled accounts list.
batch_create_room_membershipexecaccount_id, room_id, region, MembershipItemListAdds up to 50 members to a chat room in an Amazon Chime Enterprise account. Members can be users or bots. The member role designates whether the member is a chat room administrator or a general chat room member.
batch_suspend_userexecaccount_id, region, UserIdListSuspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide. Users suspended from a Team account are disassociated from the account,but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so. Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action. To sign out users without suspending them, use the LogoutUser action.
batch_unsuspend_userexecaccount_id, region, UserIdListRemoves the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the account types, in the Amazon Chime Administration Guide. Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored.
batch_update_userexecaccount_id, region, UpdateUserRequestItemsUpdates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.
logout_userexecaccount_id, user_id, regionLogs out the specified user from all of the devices they are currently logged into.
redact_conversation_messageexecaccount_id, conversation_id, message_id, regionRedacts the specified message from the specified Amazon Chime conversation.
redact_room_messageexecaccount_id, room_id, message_id, regionRedacts the specified message from the specified Amazon Chime channel.
regenerate_security_tokenexecaccount_id, bot_id, regionRegenerates the security token for a bot.
reset_personal_pinexecaccount_id, user_id, regionResets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN.

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
account_idstringThe Amazon Chime account ID.
bot_idstringThe bot ID.
conversation_idstringThe conversation ID.
message_idstringThe message ID.
regionstringAWS region (default: us-east-1)
room_idstringThe room ID.
user_idstringThe user ID.
max-resultsintegerThe maximum number of results to return in a single call. Defaults to 100.
namestringAmazon Chime account name prefix with which to filter results.
next-tokenstringThe token to use to retrieve the next page of results.
user-emailstringUser email address with which to filter results.

SELECT examples

Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.

SELECT
account_id,
account_status,
account_type,
aws_account_id,
created_timestamp,
default_license,
name,
signin_delegate_groups,
supported_licenses
FROM aws.chime.accounts
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

INSERT INTO aws.chime.accounts (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}'
RETURNING
account
;

UPDATE examples

Associates the specified sign-in delegate groups with the specified Amazon Chime account.

UPDATE aws.chime.accounts
SET
SigninDelegateGroups = '{{ SigninDelegateGroups }}'
WHERE
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
AND SigninDelegateGroups = '{{ SigninDelegateGroups }}' --required;

DELETE examples

Deletes the specified Amazon Chime account. You must suspend all users before deleting Team account. You can use the BatchSuspendUser action to dodo. For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended. Deleted accounts appear in your Disabled accounts list for 90 days. To restore deleted account from your Disabled accounts list, you must contact AWS Support. After 90 days, deleted accounts are permanently removed from your Disabled accounts list.

DELETE FROM aws.chime.accounts
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Adds up to 50 members to a chat room in an Amazon Chime Enterprise account. Members can be users or bots. The member role designates whether the member is a chat room administrator or a general chat room member.

EXEC aws.chime.accounts.batch_create_room_membership
@account_id='{{ account_id }}' --required,
@room_id='{{ room_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"MembershipItemList": "{{ MembershipItemList }}"
}'
;