- Navigation GuideYou are on a Client landing page. Commands (operations) are listed on this page. The Client constructor type is linked at the bottom.
ChimeClient
Most of these APIs are no longer supported and will not be updated. We recommend using the latest versions in the Amazon Chime SDK API reference , in the Amazon Chime SDK.
Using the latest versions requires migrating to dedicated namespaces. For more information, refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guide.
The Amazon Chime application programming interface (API) is designed so administrators can perform key tasks, such as creating and managing Amazon Chime accounts, users, and Voice Connectors. This guide provides detailed information about the Amazon Chime API, including operations, types, inputs and outputs, and error codes.
You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls for Amazon Chime. We recommend using an AWS SDK or the AWS CLI. The page for each API action contains a See Also section that includes links to information about using the action with a language-specific AWS SDK or the AWS CLI.
- Using an AWS SDK
-
You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center .
- Using the AWS CLI
-
Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI Command Reference.
- Using REST APIs
-
If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports Signature Version 4. For more information, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.
When making REST API calls, use the service name
chime
and REST endpointhttps://service.chime.aws.amazon.com
.
Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see Identity and Access Management for Amazon Chime in the Amazon Chime Administration Guide.
Installation
npm install @aws-sdk/client-chime
yarn add @aws-sdk/client-chime
pnpm add @aws-sdk/client-chime
ChimeClient Operations
Command | Summary |
---|
Command | Summary |
---|---|
AssociatePhoneNumberWithUserCommand | Associates a phone number with the specified Amazon Chime user. |
AssociateSigninDelegateGroupsWithAccountCommand | Associates the specified sign-in delegate groups with the specified Amazon Chime account. |
BatchCreateRoomMembershipCommand | 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. |
BatchDeletePhoneNumberCommand | Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted. Phone numbers remain in the Deletion queue for 7 days before they are deleted permanently. |
BatchSuspendUserCommand | Suspends up to 50 users from a Users suspended from a Users suspended from an To sign out users without suspending them, use the LogoutUser action. |
BatchUnsuspendUserCommand | Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime Previously suspended users who are unsuspended using this action are returned to |
BatchUpdatePhoneNumberCommand | Updates phone number product types or calling names. You can update one attribute at a time for each For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update. |
BatchUpdateUserCommand | Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only |
CreateAccountCommand | Creates an Amazon Chime account under the administrator's AWS account. Only |
CreateBotCommand | Creates a bot for an Amazon Chime Enterprise account. |
CreateMeetingDialOutCommand | Uses the join token and call metadata in a meeting request (From number, To number, and so forth) to initiate an outbound call to a public switched telephone network (PSTN) and join them into a Chime meeting. Also ensures that the From number belongs to the customer. To play welcome audio or implement an interactive voice response (IVR), use the This API is not available in a dedicated namespace. |
CreatePhoneNumberOrderCommand | Creates an order for phone numbers to be provisioned. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. |
CreateRoomCommand | Creates a chat room for the specified Amazon Chime Enterprise account. |
CreateRoomMembershipCommand | Adds a member to a chat room in an Amazon Chime Enterprise account. A member can be either a user or a bot. The member role designates whether the member is a chat room administrator or a general chat room member. |
CreateUserCommand | Creates a user under the specified Amazon Chime account. |
DeleteAccountCommand | Deletes the specified Amazon Chime account. You must suspend all users before deleting For Deleted accounts appear in your After 90 days, deleted accounts are permanently removed from your |
DeleteEventsConfigurationCommand | Deletes the events configuration that allows a bot to receive outgoing events. |
DeletePhoneNumberCommand | Moves the specified phone number into the Deletion queue. A phone number must be disassociated from any users or Amazon Chime Voice Connectors before it can be deleted. Deleted phone numbers remain in the Deletion queue for 7 days before they are deleted permanently. |
DeleteRoomCommand | Deletes a chat room in an Amazon Chime Enterprise account. |
DeleteRoomMembershipCommand | Removes a member from a chat room in an Amazon Chime Enterprise account. |
DisassociatePhoneNumberFromUserCommand | Disassociates the primary provisioned phone number from the specified Amazon Chime user. |
DisassociateSigninDelegateGroupsFromAccountCommand | Disassociates the specified sign-in delegate groups from the specified Amazon Chime account. |
GetAccountCommand | Retrieves details for the specified Amazon Chime account, such as account type and supported licenses. |
GetAccountSettingsCommand | Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dialout settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide. |
GetBotCommand | Retrieves details for the specified bot, such as bot email address, bot type, status, and display name. |
GetEventsConfigurationCommand | Gets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN. |
GetGlobalSettingsCommand | Retrieves global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings. |
GetPhoneNumberCommand | Retrieves details for the specified phone number ID, such as associations, capabilities, and product type. |
GetPhoneNumberOrderCommand | Retrieves details for the specified phone number order, such as the order creation timestamp, phone numbers in E.164 format, product type, and order status. |
GetPhoneNumberSettingsCommand | Retrieves the phone number settings for the administrator's AWS account, such as the default outbound calling name. |
GetRetentionSettingsCommand | Gets the retention settings for the specified Amazon Chime Enterprise account. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide. |
GetRoomCommand | Retrieves room details, such as the room name, for a room in an Amazon Chime Enterprise account. |
GetUserCommand | Retrieves details for the specified user ID, such as primary email address, license type,and personal meeting PIN. To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address. |
GetUserSettingsCommand | Retrieves settings for the specified user ID, such as any associated phone number settings. |
InviteUsersCommand | Sends email to a maximum of 50 users, inviting them to the specified Amazon Chime |
ListAccountsCommand | Lists 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. |
ListBotsCommand | Lists the bots associated with the administrator's Amazon Chime Enterprise account ID. |
ListPhoneNumberOrdersCommand | Lists the phone number orders for the administrator's Amazon Chime account. |
ListPhoneNumbersCommand | Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group. |
ListRoomMembershipsCommand | Lists the membership details for the specified room in an Amazon Chime Enterprise account, such as the members' IDs, email addresses, and names. |
ListRoomsCommand | Lists the room details for the specified Amazon Chime Enterprise account. Optionally, filter the results by a member ID (user ID or bot ID) to see a list of rooms that the member belongs to. |
ListSupportedPhoneNumberCountriesCommand | Lists supported phone number countries. |
ListUsersCommand | Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to. |
LogoutUserCommand | Logs out the specified user from all of the devices they are currently logged into. |
PutEventsConfigurationCommand | Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot. |
PutRetentionSettingsCommand | Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide. To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide. |
RedactConversationMessageCommand | Redacts the specified message from the specified Amazon Chime conversation. |
RedactRoomMessageCommand | Redacts the specified message from the specified Amazon Chime channel. |
RegenerateSecurityTokenCommand | Regenerates the security token for a bot. |
ResetPersonalPINCommand | Resets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN. |
RestorePhoneNumberCommand | Moves a phone number from the Deletion queue back into the phone number Inventory. |
SearchAvailablePhoneNumbersCommand | Searches for phone numbers that can be ordered. For US numbers, provide at least one of the following search filters: |
UpdateAccountCommand | Updates account details for the specified Amazon Chime account. Currently, only account name and default license updates are supported for this action. |
UpdateAccountSettingsCommand | Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide. |
UpdateBotCommand | Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account. |
UpdateGlobalSettingsCommand | Updates global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings. |
UpdatePhoneNumberCommand | Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action. For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type. Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update. |
UpdatePhoneNumberSettingsCommand | Updates the phone number settings for the administrator's AWS account, such as the default outbound calling name. You can update the default outbound calling name once every seven days. Outbound calling names can take up to 72 hours to update. |
UpdateRoomCommand | Updates room details, such as the room name, for a room in an Amazon Chime Enterprise account. |
UpdateRoomMembershipCommand | Updates room membership details, such as the member role, for a room in an Amazon Chime Enterprise account. The member role designates whether the member is a chat room administrator or a general chat room member. The member role can be updated only for user IDs. |
UpdateUserCommand | Updates user details for a specified user ID. Currently, only |
UpdateUserSettingsCommand | Updates the settings for the specified user, such as phone number settings. |
ChimeClient Configuration
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
defaultsMode Optional | DefaultsMode | Provider<DefaultsMode> | The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK. |
disableHostPrefix Optional | boolean | Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation. |
extensions Optional | RuntimeExtension[] | Optional extensions |
logger Optional | Logger | Optional logger for logging debug/info/warn/error. |
maxAttempts Optional | number | Provider<number> | Value for how many times a request will be made at most in case of retry. |
profile Optional | string | Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options. |
region Optional | string | Provider<string> | The AWS region to which this client will send requests |
requestHandler Optional | __HttpHandlerUserInput | The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. |
retryMode Optional | string | Provider<string> | Specifies which retry algorithm to use. |
useDualstackEndpoint Optional | boolean | Provider<boolean> | Enables IPv6/IPv4 dualstack endpoint. |
useFipsEndpoint Optional | boolean | Provider<boolean> | Enables FIPS compatible endpoints. |
Additional config fields are described in the full configuration type: ChimeClientConfig