UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

973 lines 129 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Chime = void 0; const ChimeClient_1 = require("./ChimeClient"); const AssociatePhoneNumbersWithVoiceConnectorCommand_1 = require("./commands/AssociatePhoneNumbersWithVoiceConnectorCommand"); const AssociatePhoneNumbersWithVoiceConnectorGroupCommand_1 = require("./commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand"); const AssociatePhoneNumberWithUserCommand_1 = require("./commands/AssociatePhoneNumberWithUserCommand"); const AssociateSigninDelegateGroupsWithAccountCommand_1 = require("./commands/AssociateSigninDelegateGroupsWithAccountCommand"); const BatchCreateAttendeeCommand_1 = require("./commands/BatchCreateAttendeeCommand"); const BatchCreateChannelMembershipCommand_1 = require("./commands/BatchCreateChannelMembershipCommand"); const BatchCreateRoomMembershipCommand_1 = require("./commands/BatchCreateRoomMembershipCommand"); const BatchDeletePhoneNumberCommand_1 = require("./commands/BatchDeletePhoneNumberCommand"); const BatchSuspendUserCommand_1 = require("./commands/BatchSuspendUserCommand"); const BatchUnsuspendUserCommand_1 = require("./commands/BatchUnsuspendUserCommand"); const BatchUpdatePhoneNumberCommand_1 = require("./commands/BatchUpdatePhoneNumberCommand"); const BatchUpdateUserCommand_1 = require("./commands/BatchUpdateUserCommand"); const CreateAccountCommand_1 = require("./commands/CreateAccountCommand"); const CreateAppInstanceAdminCommand_1 = require("./commands/CreateAppInstanceAdminCommand"); const CreateAppInstanceCommand_1 = require("./commands/CreateAppInstanceCommand"); const CreateAppInstanceUserCommand_1 = require("./commands/CreateAppInstanceUserCommand"); const CreateAttendeeCommand_1 = require("./commands/CreateAttendeeCommand"); const CreateBotCommand_1 = require("./commands/CreateBotCommand"); const CreateChannelBanCommand_1 = require("./commands/CreateChannelBanCommand"); const CreateChannelCommand_1 = require("./commands/CreateChannelCommand"); const CreateChannelMembershipCommand_1 = require("./commands/CreateChannelMembershipCommand"); const CreateChannelModeratorCommand_1 = require("./commands/CreateChannelModeratorCommand"); const CreateMediaCapturePipelineCommand_1 = require("./commands/CreateMediaCapturePipelineCommand"); const CreateMeetingCommand_1 = require("./commands/CreateMeetingCommand"); const CreateMeetingDialOutCommand_1 = require("./commands/CreateMeetingDialOutCommand"); const CreateMeetingWithAttendeesCommand_1 = require("./commands/CreateMeetingWithAttendeesCommand"); const CreatePhoneNumberOrderCommand_1 = require("./commands/CreatePhoneNumberOrderCommand"); const CreateProxySessionCommand_1 = require("./commands/CreateProxySessionCommand"); const CreateRoomCommand_1 = require("./commands/CreateRoomCommand"); const CreateRoomMembershipCommand_1 = require("./commands/CreateRoomMembershipCommand"); const CreateSipMediaApplicationCallCommand_1 = require("./commands/CreateSipMediaApplicationCallCommand"); const CreateSipMediaApplicationCommand_1 = require("./commands/CreateSipMediaApplicationCommand"); const CreateSipRuleCommand_1 = require("./commands/CreateSipRuleCommand"); const CreateUserCommand_1 = require("./commands/CreateUserCommand"); const CreateVoiceConnectorCommand_1 = require("./commands/CreateVoiceConnectorCommand"); const CreateVoiceConnectorGroupCommand_1 = require("./commands/CreateVoiceConnectorGroupCommand"); const DeleteAccountCommand_1 = require("./commands/DeleteAccountCommand"); const DeleteAppInstanceAdminCommand_1 = require("./commands/DeleteAppInstanceAdminCommand"); const DeleteAppInstanceCommand_1 = require("./commands/DeleteAppInstanceCommand"); const DeleteAppInstanceStreamingConfigurationsCommand_1 = require("./commands/DeleteAppInstanceStreamingConfigurationsCommand"); const DeleteAppInstanceUserCommand_1 = require("./commands/DeleteAppInstanceUserCommand"); const DeleteAttendeeCommand_1 = require("./commands/DeleteAttendeeCommand"); const DeleteChannelBanCommand_1 = require("./commands/DeleteChannelBanCommand"); const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand"); const DeleteChannelMembershipCommand_1 = require("./commands/DeleteChannelMembershipCommand"); const DeleteChannelMessageCommand_1 = require("./commands/DeleteChannelMessageCommand"); const DeleteChannelModeratorCommand_1 = require("./commands/DeleteChannelModeratorCommand"); const DeleteEventsConfigurationCommand_1 = require("./commands/DeleteEventsConfigurationCommand"); const DeleteMediaCapturePipelineCommand_1 = require("./commands/DeleteMediaCapturePipelineCommand"); const DeleteMeetingCommand_1 = require("./commands/DeleteMeetingCommand"); const DeletePhoneNumberCommand_1 = require("./commands/DeletePhoneNumberCommand"); const DeleteProxySessionCommand_1 = require("./commands/DeleteProxySessionCommand"); const DeleteRoomCommand_1 = require("./commands/DeleteRoomCommand"); const DeleteRoomMembershipCommand_1 = require("./commands/DeleteRoomMembershipCommand"); const DeleteSipMediaApplicationCommand_1 = require("./commands/DeleteSipMediaApplicationCommand"); const DeleteSipRuleCommand_1 = require("./commands/DeleteSipRuleCommand"); const DeleteVoiceConnectorCommand_1 = require("./commands/DeleteVoiceConnectorCommand"); const DeleteVoiceConnectorEmergencyCallingConfigurationCommand_1 = require("./commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand"); const DeleteVoiceConnectorGroupCommand_1 = require("./commands/DeleteVoiceConnectorGroupCommand"); const DeleteVoiceConnectorOriginationCommand_1 = require("./commands/DeleteVoiceConnectorOriginationCommand"); const DeleteVoiceConnectorProxyCommand_1 = require("./commands/DeleteVoiceConnectorProxyCommand"); const DeleteVoiceConnectorStreamingConfigurationCommand_1 = require("./commands/DeleteVoiceConnectorStreamingConfigurationCommand"); const DeleteVoiceConnectorTerminationCommand_1 = require("./commands/DeleteVoiceConnectorTerminationCommand"); const DeleteVoiceConnectorTerminationCredentialsCommand_1 = require("./commands/DeleteVoiceConnectorTerminationCredentialsCommand"); const DescribeAppInstanceAdminCommand_1 = require("./commands/DescribeAppInstanceAdminCommand"); const DescribeAppInstanceCommand_1 = require("./commands/DescribeAppInstanceCommand"); const DescribeAppInstanceUserCommand_1 = require("./commands/DescribeAppInstanceUserCommand"); const DescribeChannelBanCommand_1 = require("./commands/DescribeChannelBanCommand"); const DescribeChannelCommand_1 = require("./commands/DescribeChannelCommand"); const DescribeChannelMembershipCommand_1 = require("./commands/DescribeChannelMembershipCommand"); const DescribeChannelMembershipForAppInstanceUserCommand_1 = require("./commands/DescribeChannelMembershipForAppInstanceUserCommand"); const DescribeChannelModeratedByAppInstanceUserCommand_1 = require("./commands/DescribeChannelModeratedByAppInstanceUserCommand"); const DescribeChannelModeratorCommand_1 = require("./commands/DescribeChannelModeratorCommand"); const DisassociatePhoneNumberFromUserCommand_1 = require("./commands/DisassociatePhoneNumberFromUserCommand"); const DisassociatePhoneNumbersFromVoiceConnectorCommand_1 = require("./commands/DisassociatePhoneNumbersFromVoiceConnectorCommand"); const DisassociatePhoneNumbersFromVoiceConnectorGroupCommand_1 = require("./commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand"); const DisassociateSigninDelegateGroupsFromAccountCommand_1 = require("./commands/DisassociateSigninDelegateGroupsFromAccountCommand"); const GetAccountCommand_1 = require("./commands/GetAccountCommand"); const GetAccountSettingsCommand_1 = require("./commands/GetAccountSettingsCommand"); const GetAppInstanceRetentionSettingsCommand_1 = require("./commands/GetAppInstanceRetentionSettingsCommand"); const GetAppInstanceStreamingConfigurationsCommand_1 = require("./commands/GetAppInstanceStreamingConfigurationsCommand"); const GetAttendeeCommand_1 = require("./commands/GetAttendeeCommand"); const GetBotCommand_1 = require("./commands/GetBotCommand"); const GetChannelMessageCommand_1 = require("./commands/GetChannelMessageCommand"); const GetEventsConfigurationCommand_1 = require("./commands/GetEventsConfigurationCommand"); const GetGlobalSettingsCommand_1 = require("./commands/GetGlobalSettingsCommand"); const GetMediaCapturePipelineCommand_1 = require("./commands/GetMediaCapturePipelineCommand"); const GetMeetingCommand_1 = require("./commands/GetMeetingCommand"); const GetMessagingSessionEndpointCommand_1 = require("./commands/GetMessagingSessionEndpointCommand"); const GetPhoneNumberCommand_1 = require("./commands/GetPhoneNumberCommand"); const GetPhoneNumberOrderCommand_1 = require("./commands/GetPhoneNumberOrderCommand"); const GetPhoneNumberSettingsCommand_1 = require("./commands/GetPhoneNumberSettingsCommand"); const GetProxySessionCommand_1 = require("./commands/GetProxySessionCommand"); const GetRetentionSettingsCommand_1 = require("./commands/GetRetentionSettingsCommand"); const GetRoomCommand_1 = require("./commands/GetRoomCommand"); const GetSipMediaApplicationCommand_1 = require("./commands/GetSipMediaApplicationCommand"); const GetSipMediaApplicationLoggingConfigurationCommand_1 = require("./commands/GetSipMediaApplicationLoggingConfigurationCommand"); const GetSipRuleCommand_1 = require("./commands/GetSipRuleCommand"); const GetUserCommand_1 = require("./commands/GetUserCommand"); const GetUserSettingsCommand_1 = require("./commands/GetUserSettingsCommand"); const GetVoiceConnectorCommand_1 = require("./commands/GetVoiceConnectorCommand"); const GetVoiceConnectorEmergencyCallingConfigurationCommand_1 = require("./commands/GetVoiceConnectorEmergencyCallingConfigurationCommand"); const GetVoiceConnectorGroupCommand_1 = require("./commands/GetVoiceConnectorGroupCommand"); const GetVoiceConnectorLoggingConfigurationCommand_1 = require("./commands/GetVoiceConnectorLoggingConfigurationCommand"); const GetVoiceConnectorOriginationCommand_1 = require("./commands/GetVoiceConnectorOriginationCommand"); const GetVoiceConnectorProxyCommand_1 = require("./commands/GetVoiceConnectorProxyCommand"); const GetVoiceConnectorStreamingConfigurationCommand_1 = require("./commands/GetVoiceConnectorStreamingConfigurationCommand"); const GetVoiceConnectorTerminationCommand_1 = require("./commands/GetVoiceConnectorTerminationCommand"); const GetVoiceConnectorTerminationHealthCommand_1 = require("./commands/GetVoiceConnectorTerminationHealthCommand"); const InviteUsersCommand_1 = require("./commands/InviteUsersCommand"); const ListAccountsCommand_1 = require("./commands/ListAccountsCommand"); const ListAppInstanceAdminsCommand_1 = require("./commands/ListAppInstanceAdminsCommand"); const ListAppInstancesCommand_1 = require("./commands/ListAppInstancesCommand"); const ListAppInstanceUsersCommand_1 = require("./commands/ListAppInstanceUsersCommand"); const ListAttendeesCommand_1 = require("./commands/ListAttendeesCommand"); const ListAttendeeTagsCommand_1 = require("./commands/ListAttendeeTagsCommand"); const ListBotsCommand_1 = require("./commands/ListBotsCommand"); const ListChannelBansCommand_1 = require("./commands/ListChannelBansCommand"); const ListChannelMembershipsCommand_1 = require("./commands/ListChannelMembershipsCommand"); const ListChannelMembershipsForAppInstanceUserCommand_1 = require("./commands/ListChannelMembershipsForAppInstanceUserCommand"); const ListChannelMessagesCommand_1 = require("./commands/ListChannelMessagesCommand"); const ListChannelModeratorsCommand_1 = require("./commands/ListChannelModeratorsCommand"); const ListChannelsCommand_1 = require("./commands/ListChannelsCommand"); const ListChannelsModeratedByAppInstanceUserCommand_1 = require("./commands/ListChannelsModeratedByAppInstanceUserCommand"); const ListMediaCapturePipelinesCommand_1 = require("./commands/ListMediaCapturePipelinesCommand"); const ListMeetingsCommand_1 = require("./commands/ListMeetingsCommand"); const ListMeetingTagsCommand_1 = require("./commands/ListMeetingTagsCommand"); const ListPhoneNumberOrdersCommand_1 = require("./commands/ListPhoneNumberOrdersCommand"); const ListPhoneNumbersCommand_1 = require("./commands/ListPhoneNumbersCommand"); const ListProxySessionsCommand_1 = require("./commands/ListProxySessionsCommand"); const ListRoomMembershipsCommand_1 = require("./commands/ListRoomMembershipsCommand"); const ListRoomsCommand_1 = require("./commands/ListRoomsCommand"); const ListSipMediaApplicationsCommand_1 = require("./commands/ListSipMediaApplicationsCommand"); const ListSipRulesCommand_1 = require("./commands/ListSipRulesCommand"); const ListSupportedPhoneNumberCountriesCommand_1 = require("./commands/ListSupportedPhoneNumberCountriesCommand"); const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand"); const ListUsersCommand_1 = require("./commands/ListUsersCommand"); const ListVoiceConnectorGroupsCommand_1 = require("./commands/ListVoiceConnectorGroupsCommand"); const ListVoiceConnectorsCommand_1 = require("./commands/ListVoiceConnectorsCommand"); const ListVoiceConnectorTerminationCredentialsCommand_1 = require("./commands/ListVoiceConnectorTerminationCredentialsCommand"); const LogoutUserCommand_1 = require("./commands/LogoutUserCommand"); const PutAppInstanceRetentionSettingsCommand_1 = require("./commands/PutAppInstanceRetentionSettingsCommand"); const PutAppInstanceStreamingConfigurationsCommand_1 = require("./commands/PutAppInstanceStreamingConfigurationsCommand"); const PutEventsConfigurationCommand_1 = require("./commands/PutEventsConfigurationCommand"); const PutRetentionSettingsCommand_1 = require("./commands/PutRetentionSettingsCommand"); const PutSipMediaApplicationLoggingConfigurationCommand_1 = require("./commands/PutSipMediaApplicationLoggingConfigurationCommand"); const PutVoiceConnectorEmergencyCallingConfigurationCommand_1 = require("./commands/PutVoiceConnectorEmergencyCallingConfigurationCommand"); const PutVoiceConnectorLoggingConfigurationCommand_1 = require("./commands/PutVoiceConnectorLoggingConfigurationCommand"); const PutVoiceConnectorOriginationCommand_1 = require("./commands/PutVoiceConnectorOriginationCommand"); const PutVoiceConnectorProxyCommand_1 = require("./commands/PutVoiceConnectorProxyCommand"); const PutVoiceConnectorStreamingConfigurationCommand_1 = require("./commands/PutVoiceConnectorStreamingConfigurationCommand"); const PutVoiceConnectorTerminationCommand_1 = require("./commands/PutVoiceConnectorTerminationCommand"); const PutVoiceConnectorTerminationCredentialsCommand_1 = require("./commands/PutVoiceConnectorTerminationCredentialsCommand"); const RedactChannelMessageCommand_1 = require("./commands/RedactChannelMessageCommand"); const RedactConversationMessageCommand_1 = require("./commands/RedactConversationMessageCommand"); const RedactRoomMessageCommand_1 = require("./commands/RedactRoomMessageCommand"); const RegenerateSecurityTokenCommand_1 = require("./commands/RegenerateSecurityTokenCommand"); const ResetPersonalPINCommand_1 = require("./commands/ResetPersonalPINCommand"); const RestorePhoneNumberCommand_1 = require("./commands/RestorePhoneNumberCommand"); const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand"); const SendChannelMessageCommand_1 = require("./commands/SendChannelMessageCommand"); const StartMeetingTranscriptionCommand_1 = require("./commands/StartMeetingTranscriptionCommand"); const StopMeetingTranscriptionCommand_1 = require("./commands/StopMeetingTranscriptionCommand"); const TagAttendeeCommand_1 = require("./commands/TagAttendeeCommand"); const TagMeetingCommand_1 = require("./commands/TagMeetingCommand"); const TagResourceCommand_1 = require("./commands/TagResourceCommand"); const UntagAttendeeCommand_1 = require("./commands/UntagAttendeeCommand"); const UntagMeetingCommand_1 = require("./commands/UntagMeetingCommand"); const UntagResourceCommand_1 = require("./commands/UntagResourceCommand"); const UpdateAccountCommand_1 = require("./commands/UpdateAccountCommand"); const UpdateAccountSettingsCommand_1 = require("./commands/UpdateAccountSettingsCommand"); const UpdateAppInstanceCommand_1 = require("./commands/UpdateAppInstanceCommand"); const UpdateAppInstanceUserCommand_1 = require("./commands/UpdateAppInstanceUserCommand"); const UpdateBotCommand_1 = require("./commands/UpdateBotCommand"); const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand"); const UpdateChannelMessageCommand_1 = require("./commands/UpdateChannelMessageCommand"); const UpdateChannelReadMarkerCommand_1 = require("./commands/UpdateChannelReadMarkerCommand"); const UpdateGlobalSettingsCommand_1 = require("./commands/UpdateGlobalSettingsCommand"); const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand"); const UpdatePhoneNumberSettingsCommand_1 = require("./commands/UpdatePhoneNumberSettingsCommand"); const UpdateProxySessionCommand_1 = require("./commands/UpdateProxySessionCommand"); const UpdateRoomCommand_1 = require("./commands/UpdateRoomCommand"); const UpdateRoomMembershipCommand_1 = require("./commands/UpdateRoomMembershipCommand"); const UpdateSipMediaApplicationCallCommand_1 = require("./commands/UpdateSipMediaApplicationCallCommand"); const UpdateSipMediaApplicationCommand_1 = require("./commands/UpdateSipMediaApplicationCommand"); const UpdateSipRuleCommand_1 = require("./commands/UpdateSipRuleCommand"); const UpdateUserCommand_1 = require("./commands/UpdateUserCommand"); const UpdateUserSettingsCommand_1 = require("./commands/UpdateUserSettingsCommand"); const UpdateVoiceConnectorCommand_1 = require("./commands/UpdateVoiceConnectorCommand"); const UpdateVoiceConnectorGroupCommand_1 = require("./commands/UpdateVoiceConnectorGroupCommand"); const ValidateE911AddressCommand_1 = require("./commands/ValidateE911AddressCommand"); class Chime extends ChimeClient_1.ChimeClient { associatePhoneNumbersWithVoiceConnector(args, optionsOrCb, cb) { const command = new AssociatePhoneNumbersWithVoiceConnectorCommand_1.AssociatePhoneNumbersWithVoiceConnectorCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } associatePhoneNumbersWithVoiceConnectorGroup(args, optionsOrCb, cb) { const command = new AssociatePhoneNumbersWithVoiceConnectorGroupCommand_1.AssociatePhoneNumbersWithVoiceConnectorGroupCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } associatePhoneNumberWithUser(args, optionsOrCb, cb) { const command = new AssociatePhoneNumberWithUserCommand_1.AssociatePhoneNumberWithUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } associateSigninDelegateGroupsWithAccount(args, optionsOrCb, cb) { const command = new AssociateSigninDelegateGroupsWithAccountCommand_1.AssociateSigninDelegateGroupsWithAccountCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchCreateAttendee(args, optionsOrCb, cb) { const command = new BatchCreateAttendeeCommand_1.BatchCreateAttendeeCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchCreateChannelMembership(args, optionsOrCb, cb) { const command = new BatchCreateChannelMembershipCommand_1.BatchCreateChannelMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchCreateRoomMembership(args, optionsOrCb, cb) { const command = new BatchCreateRoomMembershipCommand_1.BatchCreateRoomMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchDeletePhoneNumber(args, optionsOrCb, cb) { const command = new BatchDeletePhoneNumberCommand_1.BatchDeletePhoneNumberCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchSuspendUser(args, optionsOrCb, cb) { const command = new BatchSuspendUserCommand_1.BatchSuspendUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchUnsuspendUser(args, optionsOrCb, cb) { const command = new BatchUnsuspendUserCommand_1.BatchUnsuspendUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchUpdatePhoneNumber(args, optionsOrCb, cb) { const command = new BatchUpdatePhoneNumberCommand_1.BatchUpdatePhoneNumberCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } batchUpdateUser(args, optionsOrCb, cb) { const command = new BatchUpdateUserCommand_1.BatchUpdateUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createAccount(args, optionsOrCb, cb) { const command = new CreateAccountCommand_1.CreateAccountCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createAppInstance(args, optionsOrCb, cb) { const command = new CreateAppInstanceCommand_1.CreateAppInstanceCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createAppInstanceAdmin(args, optionsOrCb, cb) { const command = new CreateAppInstanceAdminCommand_1.CreateAppInstanceAdminCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createAppInstanceUser(args, optionsOrCb, cb) { const command = new CreateAppInstanceUserCommand_1.CreateAppInstanceUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createAttendee(args, optionsOrCb, cb) { const command = new CreateAttendeeCommand_1.CreateAttendeeCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createBot(args, optionsOrCb, cb) { const command = new CreateBotCommand_1.CreateBotCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createChannel(args, optionsOrCb, cb) { const command = new CreateChannelCommand_1.CreateChannelCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createChannelBan(args, optionsOrCb, cb) { const command = new CreateChannelBanCommand_1.CreateChannelBanCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createChannelMembership(args, optionsOrCb, cb) { const command = new CreateChannelMembershipCommand_1.CreateChannelMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createChannelModerator(args, optionsOrCb, cb) { const command = new CreateChannelModeratorCommand_1.CreateChannelModeratorCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createMediaCapturePipeline(args, optionsOrCb, cb) { const command = new CreateMediaCapturePipelineCommand_1.CreateMediaCapturePipelineCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createMeeting(args, optionsOrCb, cb) { const command = new CreateMeetingCommand_1.CreateMeetingCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createMeetingDialOut(args, optionsOrCb, cb) { const command = new CreateMeetingDialOutCommand_1.CreateMeetingDialOutCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createMeetingWithAttendees(args, optionsOrCb, cb) { const command = new CreateMeetingWithAttendeesCommand_1.CreateMeetingWithAttendeesCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createPhoneNumberOrder(args, optionsOrCb, cb) { const command = new CreatePhoneNumberOrderCommand_1.CreatePhoneNumberOrderCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createProxySession(args, optionsOrCb, cb) { const command = new CreateProxySessionCommand_1.CreateProxySessionCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createRoom(args, optionsOrCb, cb) { const command = new CreateRoomCommand_1.CreateRoomCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createRoomMembership(args, optionsOrCb, cb) { const command = new CreateRoomMembershipCommand_1.CreateRoomMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createSipMediaApplication(args, optionsOrCb, cb) { const command = new CreateSipMediaApplicationCommand_1.CreateSipMediaApplicationCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createSipMediaApplicationCall(args, optionsOrCb, cb) { const command = new CreateSipMediaApplicationCallCommand_1.CreateSipMediaApplicationCallCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createSipRule(args, optionsOrCb, cb) { const command = new CreateSipRuleCommand_1.CreateSipRuleCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createUser(args, optionsOrCb, cb) { const command = new CreateUserCommand_1.CreateUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createVoiceConnector(args, optionsOrCb, cb) { const command = new CreateVoiceConnectorCommand_1.CreateVoiceConnectorCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } createVoiceConnectorGroup(args, optionsOrCb, cb) { const command = new CreateVoiceConnectorGroupCommand_1.CreateVoiceConnectorGroupCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAccount(args, optionsOrCb, cb) { const command = new DeleteAccountCommand_1.DeleteAccountCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAppInstance(args, optionsOrCb, cb) { const command = new DeleteAppInstanceCommand_1.DeleteAppInstanceCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAppInstanceAdmin(args, optionsOrCb, cb) { const command = new DeleteAppInstanceAdminCommand_1.DeleteAppInstanceAdminCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAppInstanceStreamingConfigurations(args, optionsOrCb, cb) { const command = new DeleteAppInstanceStreamingConfigurationsCommand_1.DeleteAppInstanceStreamingConfigurationsCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAppInstanceUser(args, optionsOrCb, cb) { const command = new DeleteAppInstanceUserCommand_1.DeleteAppInstanceUserCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteAttendee(args, optionsOrCb, cb) { const command = new DeleteAttendeeCommand_1.DeleteAttendeeCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteChannel(args, optionsOrCb, cb) { const command = new DeleteChannelCommand_1.DeleteChannelCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteChannelBan(args, optionsOrCb, cb) { const command = new DeleteChannelBanCommand_1.DeleteChannelBanCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteChannelMembership(args, optionsOrCb, cb) { const command = new DeleteChannelMembershipCommand_1.DeleteChannelMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteChannelMessage(args, optionsOrCb, cb) { const command = new DeleteChannelMessageCommand_1.DeleteChannelMessageCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteChannelModerator(args, optionsOrCb, cb) { const command = new DeleteChannelModeratorCommand_1.DeleteChannelModeratorCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteEventsConfiguration(args, optionsOrCb, cb) { const command = new DeleteEventsConfigurationCommand_1.DeleteEventsConfigurationCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteMediaCapturePipeline(args, optionsOrCb, cb) { const command = new DeleteMediaCapturePipelineCommand_1.DeleteMediaCapturePipelineCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteMeeting(args, optionsOrCb, cb) { const command = new DeleteMeetingCommand_1.DeleteMeetingCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deletePhoneNumber(args, optionsOrCb, cb) { const command = new DeletePhoneNumberCommand_1.DeletePhoneNumberCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteProxySession(args, optionsOrCb, cb) { const command = new DeleteProxySessionCommand_1.DeleteProxySessionCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteRoom(args, optionsOrCb, cb) { const command = new DeleteRoomCommand_1.DeleteRoomCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteRoomMembership(args, optionsOrCb, cb) { const command = new DeleteRoomMembershipCommand_1.DeleteRoomMembershipCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteSipMediaApplication(args, optionsOrCb, cb) { const command = new DeleteSipMediaApplicationCommand_1.DeleteSipMediaApplicationCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } } deleteSipRule(args, optionsOrCb, cb) { const command = new DeleteSipRuleCommand_1.DeleteSipRuleCommand(args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object