@aws-sdk/client-chime-sdk-voice 3.297.0 → 3.299.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -0
- package/dist-cjs/ChimeSDKVoice.js +285 -0
- package/dist-cjs/commands/BatchDeletePhoneNumberCommand.js +1 -1
- package/dist-cjs/commands/CreateSipMediaApplicationCallCommand.js +1 -1
- package/dist-cjs/commands/CreateSipRuleCommand.js +2 -3
- package/dist-cjs/commands/CreateVoiceConnectorCommand.js +2 -3
- package/dist-cjs/commands/CreateVoiceConnectorGroupCommand.js +2 -3
- package/dist-cjs/commands/CreateVoiceProfileCommand.js +46 -0
- package/dist-cjs/commands/CreateVoiceProfileDomainCommand.js +46 -0
- package/dist-cjs/commands/DeletePhoneNumberCommand.js +1 -1
- package/dist-cjs/commands/DeleteProxySessionCommand.js +2 -3
- package/dist-cjs/commands/DeleteSipMediaApplicationCommand.js +2 -3
- package/dist-cjs/commands/DeleteSipRuleCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorGroupCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorOriginationCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorProxyCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorStreamingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorTerminationCommand.js +2 -3
- package/dist-cjs/commands/DeleteVoiceConnectorTerminationCredentialsCommand.js +1 -1
- package/dist-cjs/commands/DeleteVoiceProfileCommand.js +45 -0
- package/dist-cjs/commands/DeleteVoiceProfileDomainCommand.js +45 -0
- package/dist-cjs/commands/GetGlobalSettingsCommand.js +2 -3
- package/dist-cjs/commands/GetPhoneNumberOrderCommand.js +1 -1
- package/dist-cjs/commands/GetPhoneNumberSettingsCommand.js +1 -1
- package/dist-cjs/commands/GetProxySessionCommand.js +1 -1
- package/dist-cjs/commands/GetSipMediaApplicationAlexaSkillConfigurationCommand.js +1 -1
- package/dist-cjs/commands/GetSipMediaApplicationCommand.js +1 -1
- package/dist-cjs/commands/GetSipMediaApplicationLoggingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/GetSipRuleCommand.js +2 -3
- package/dist-cjs/commands/GetSpeakerSearchTaskCommand.js +45 -0
- package/dist-cjs/commands/GetVoiceConnectorCommand.js +2 -3
- package/dist-cjs/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.js +1 -1
- package/dist-cjs/commands/GetVoiceConnectorGroupCommand.js +2 -3
- package/dist-cjs/commands/GetVoiceConnectorLoggingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/GetVoiceConnectorOriginationCommand.js +2 -3
- package/dist-cjs/commands/GetVoiceConnectorProxyCommand.js +1 -1
- package/dist-cjs/commands/GetVoiceConnectorStreamingConfigurationCommand.js +1 -1
- package/dist-cjs/commands/GetVoiceConnectorTerminationCommand.js +1 -1
- package/dist-cjs/commands/GetVoiceConnectorTerminationHealthCommand.js +2 -3
- package/dist-cjs/commands/GetVoiceProfileCommand.js +46 -0
- package/dist-cjs/commands/GetVoiceProfileDomainCommand.js +46 -0
- package/dist-cjs/commands/GetVoiceToneAnalysisTaskCommand.js +45 -0
- package/dist-cjs/commands/ListAvailableVoiceConnectorRegionsCommand.js +2 -3
- package/dist-cjs/commands/ListPhoneNumberOrdersCommand.js +1 -1
- package/dist-cjs/commands/ListPhoneNumbersCommand.js +1 -1
- package/dist-cjs/commands/ListProxySessionsCommand.js +1 -1
- package/dist-cjs/commands/ListSipMediaApplicationsCommand.js +1 -1
- package/dist-cjs/commands/ListSipRulesCommand.js +2 -3
- package/dist-cjs/commands/ListSupportedPhoneNumberCountriesCommand.js +2 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/ListVoiceConnectorGroupsCommand.js +2 -3
- package/dist-cjs/commands/ListVoiceConnectorTerminationCredentialsCommand.js +1 -1
- package/dist-cjs/commands/ListVoiceConnectorsCommand.js +2 -3
- package/dist-cjs/commands/ListVoiceProfileDomainsCommand.js +46 -0
- package/dist-cjs/commands/ListVoiceProfilesCommand.js +46 -0
- package/dist-cjs/commands/PutSipMediaApplicationLoggingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/PutVoiceConnectorLoggingConfigurationCommand.js +2 -3
- package/dist-cjs/commands/PutVoiceConnectorOriginationCommand.js +2 -3
- package/dist-cjs/commands/PutVoiceConnectorTerminationCredentialsCommand.js +1 -1
- package/dist-cjs/commands/SearchAvailablePhoneNumbersCommand.js +1 -1
- package/dist-cjs/commands/StartSpeakerSearchTaskCommand.js +45 -0
- package/dist-cjs/commands/StartVoiceToneAnalysisTaskCommand.js +45 -0
- package/dist-cjs/commands/StopSpeakerSearchTaskCommand.js +45 -0
- package/dist-cjs/commands/StopVoiceToneAnalysisTaskCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +2 -3
- package/dist-cjs/commands/UpdatePhoneNumberSettingsCommand.js +1 -1
- package/dist-cjs/commands/UpdateProxySessionCommand.js +1 -1
- package/dist-cjs/commands/UpdateSipMediaApplicationCallCommand.js +1 -1
- package/dist-cjs/commands/UpdateSipRuleCommand.js +2 -3
- package/dist-cjs/commands/UpdateVoiceConnectorCommand.js +2 -3
- package/dist-cjs/commands/UpdateVoiceConnectorGroupCommand.js +2 -3
- package/dist-cjs/commands/UpdateVoiceProfileCommand.js +46 -0
- package/dist-cjs/commands/UpdateVoiceProfileDomainCommand.js +46 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/models/models_0.js +127 -321
- package/dist-cjs/pagination/ListVoiceProfileDomainsPaginator.js +29 -0
- package/dist-cjs/pagination/ListVoiceProfilesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2085 -342
- package/dist-es/ChimeSDKVoice.js +285 -0
- package/dist-es/commands/BatchDeletePhoneNumberCommand.js +2 -2
- package/dist-es/commands/CreateSipMediaApplicationCallCommand.js +2 -2
- package/dist-es/commands/CreateSipRuleCommand.js +2 -3
- package/dist-es/commands/CreateVoiceConnectorCommand.js +2 -3
- package/dist-es/commands/CreateVoiceConnectorGroupCommand.js +2 -3
- package/dist-es/commands/CreateVoiceProfileCommand.js +42 -0
- package/dist-es/commands/CreateVoiceProfileDomainCommand.js +42 -0
- package/dist-es/commands/DeletePhoneNumberCommand.js +1 -1
- package/dist-es/commands/DeleteProxySessionCommand.js +2 -3
- package/dist-es/commands/DeleteSipMediaApplicationCommand.js +2 -3
- package/dist-es/commands/DeleteSipRuleCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorGroupCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorOriginationCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorProxyCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorStreamingConfigurationCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorTerminationCommand.js +2 -3
- package/dist-es/commands/DeleteVoiceConnectorTerminationCredentialsCommand.js +1 -1
- package/dist-es/commands/DeleteVoiceProfileCommand.js +41 -0
- package/dist-es/commands/DeleteVoiceProfileDomainCommand.js +41 -0
- package/dist-es/commands/GetGlobalSettingsCommand.js +2 -3
- package/dist-es/commands/GetPhoneNumberOrderCommand.js +2 -2
- package/dist-es/commands/GetPhoneNumberSettingsCommand.js +1 -1
- package/dist-es/commands/GetProxySessionCommand.js +2 -2
- package/dist-es/commands/GetSipMediaApplicationAlexaSkillConfigurationCommand.js +2 -2
- package/dist-es/commands/GetSipMediaApplicationCommand.js +2 -2
- package/dist-es/commands/GetSipMediaApplicationLoggingConfigurationCommand.js +2 -3
- package/dist-es/commands/GetSipRuleCommand.js +2 -3
- package/dist-es/commands/GetSpeakerSearchTaskCommand.js +41 -0
- package/dist-es/commands/GetVoiceConnectorCommand.js +2 -3
- package/dist-es/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.js +2 -2
- package/dist-es/commands/GetVoiceConnectorGroupCommand.js +2 -3
- package/dist-es/commands/GetVoiceConnectorLoggingConfigurationCommand.js +2 -3
- package/dist-es/commands/GetVoiceConnectorOriginationCommand.js +2 -3
- package/dist-es/commands/GetVoiceConnectorProxyCommand.js +2 -2
- package/dist-es/commands/GetVoiceConnectorStreamingConfigurationCommand.js +2 -2
- package/dist-es/commands/GetVoiceConnectorTerminationCommand.js +2 -2
- package/dist-es/commands/GetVoiceConnectorTerminationHealthCommand.js +2 -3
- package/dist-es/commands/GetVoiceProfileCommand.js +42 -0
- package/dist-es/commands/GetVoiceProfileDomainCommand.js +42 -0
- package/dist-es/commands/GetVoiceToneAnalysisTaskCommand.js +41 -0
- package/dist-es/commands/ListAvailableVoiceConnectorRegionsCommand.js +2 -3
- package/dist-es/commands/ListPhoneNumberOrdersCommand.js +2 -2
- package/dist-es/commands/ListPhoneNumbersCommand.js +2 -2
- package/dist-es/commands/ListProxySessionsCommand.js +2 -2
- package/dist-es/commands/ListSipMediaApplicationsCommand.js +2 -2
- package/dist-es/commands/ListSipRulesCommand.js +2 -3
- package/dist-es/commands/ListSupportedPhoneNumberCountriesCommand.js +2 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/ListVoiceConnectorGroupsCommand.js +2 -3
- package/dist-es/commands/ListVoiceConnectorTerminationCredentialsCommand.js +2 -2
- package/dist-es/commands/ListVoiceConnectorsCommand.js +2 -3
- package/dist-es/commands/ListVoiceProfileDomainsCommand.js +42 -0
- package/dist-es/commands/ListVoiceProfilesCommand.js +42 -0
- package/dist-es/commands/PutSipMediaApplicationLoggingConfigurationCommand.js +2 -3
- package/dist-es/commands/PutVoiceConnectorLoggingConfigurationCommand.js +2 -3
- package/dist-es/commands/PutVoiceConnectorOriginationCommand.js +2 -3
- package/dist-es/commands/PutVoiceConnectorTerminationCredentialsCommand.js +1 -1
- package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +2 -2
- package/dist-es/commands/StartSpeakerSearchTaskCommand.js +41 -0
- package/dist-es/commands/StartVoiceToneAnalysisTaskCommand.js +41 -0
- package/dist-es/commands/StopSpeakerSearchTaskCommand.js +41 -0
- package/dist-es/commands/StopVoiceToneAnalysisTaskCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +2 -3
- package/dist-es/commands/UpdatePhoneNumberSettingsCommand.js +1 -1
- package/dist-es/commands/UpdateProxySessionCommand.js +2 -2
- package/dist-es/commands/UpdateSipMediaApplicationCallCommand.js +2 -2
- package/dist-es/commands/UpdateSipRuleCommand.js +2 -3
- package/dist-es/commands/UpdateVoiceConnectorCommand.js +2 -3
- package/dist-es/commands/UpdateVoiceConnectorGroupCommand.js +2 -3
- package/dist-es/commands/UpdateVoiceProfileCommand.js +42 -0
- package/dist-es/commands/UpdateVoiceProfileDomainCommand.js +42 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/models/models_0.js +101 -228
- package/dist-es/pagination/ListVoiceProfileDomainsPaginator.js +25 -0
- package/dist-es/pagination/ListVoiceProfilesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1982 -278
- package/dist-types/ChimeSDKVoice.d.ts +133 -0
- package/dist-types/ChimeSDKVoiceClient.d.ts +21 -2
- package/dist-types/commands/CreateVoiceProfileCommand.d.ts +39 -0
- package/dist-types/commands/CreateVoiceProfileDomainCommand.d.ts +39 -0
- package/dist-types/commands/DeleteVoiceProfileCommand.d.ts +39 -0
- package/dist-types/commands/DeleteVoiceProfileDomainCommand.d.ts +39 -0
- package/dist-types/commands/GetSpeakerSearchTaskCommand.d.ts +39 -0
- package/dist-types/commands/GetVoiceProfileCommand.d.ts +39 -0
- package/dist-types/commands/GetVoiceProfileDomainCommand.d.ts +39 -0
- package/dist-types/commands/GetVoiceToneAnalysisTaskCommand.d.ts +39 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/commands/ListVoiceProfileDomainsCommand.d.ts +39 -0
- package/dist-types/commands/ListVoiceProfilesCommand.d.ts +39 -0
- package/dist-types/commands/StartSpeakerSearchTaskCommand.d.ts +39 -0
- package/dist-types/commands/StartVoiceToneAnalysisTaskCommand.d.ts +39 -0
- package/dist-types/commands/StopSpeakerSearchTaskCommand.d.ts +39 -0
- package/dist-types/commands/StopVoiceToneAnalysisTaskCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UpdateVoiceProfileCommand.d.ts +39 -0
- package/dist-types/commands/UpdateVoiceProfileDomainCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +384 -294
- package/dist-types/pagination/ListVoiceProfileDomainsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListVoiceProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +57 -0
- package/dist-types/ts3.4/ChimeSDKVoice.d.ts +323 -0
- package/dist-types/ts3.4/ChimeSDKVoiceClient.d.ts +114 -0
- package/dist-types/ts3.4/commands/CreateVoiceProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateVoiceProfileDomainCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteVoiceProfileCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteVoiceProfileDomainCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSpeakerSearchTaskCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetVoiceProfileCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetVoiceProfileDomainCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetVoiceToneAnalysisTaskCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListVoiceProfileDomainsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListVoiceProfilesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartSpeakerSearchTaskCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartVoiceToneAnalysisTaskCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StopSpeakerSearchTaskCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StopVoiceToneAnalysisTaskCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateVoiceProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateVoiceProfileDomainCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/models/models_0.d.ts +260 -245
- package/dist-types/ts3.4/pagination/ListVoiceProfileDomainsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVoiceProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +228 -0
- package/package.json +11 -10
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1GetVoiceProfileDomainCommand = exports.serializeAws_restJson1GetVoiceProfileCommand = exports.serializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = exports.serializeAws_restJson1GetVoiceConnectorTerminationCommand = exports.serializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommand = exports.serializeAws_restJson1GetVoiceConnectorProxyCommand = exports.serializeAws_restJson1GetVoiceConnectorOriginationCommand = exports.serializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = exports.serializeAws_restJson1GetVoiceConnectorGroupCommand = exports.serializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand = exports.serializeAws_restJson1GetVoiceConnectorCommand = exports.serializeAws_restJson1GetSpeakerSearchTaskCommand = exports.serializeAws_restJson1GetSipRuleCommand = exports.serializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommand = exports.serializeAws_restJson1GetSipMediaApplicationAlexaSkillConfigurationCommand = exports.serializeAws_restJson1GetSipMediaApplicationCommand = exports.serializeAws_restJson1GetProxySessionCommand = exports.serializeAws_restJson1GetPhoneNumberSettingsCommand = exports.serializeAws_restJson1GetPhoneNumberOrderCommand = exports.serializeAws_restJson1GetPhoneNumberCommand = exports.serializeAws_restJson1GetGlobalSettingsCommand = exports.serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = exports.serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand = exports.serializeAws_restJson1DeleteVoiceProfileDomainCommand = exports.serializeAws_restJson1DeleteVoiceProfileCommand = exports.serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand = exports.serializeAws_restJson1DeleteVoiceConnectorTerminationCommand = exports.serializeAws_restJson1DeleteVoiceConnectorStreamingConfigurationCommand = exports.serializeAws_restJson1DeleteVoiceConnectorProxyCommand = exports.serializeAws_restJson1DeleteVoiceConnectorOriginationCommand = exports.serializeAws_restJson1DeleteVoiceConnectorGroupCommand = exports.serializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationCommand = exports.serializeAws_restJson1DeleteVoiceConnectorCommand = exports.serializeAws_restJson1DeleteSipRuleCommand = exports.serializeAws_restJson1DeleteSipMediaApplicationCommand = exports.serializeAws_restJson1DeleteProxySessionCommand = exports.serializeAws_restJson1DeletePhoneNumberCommand = exports.serializeAws_restJson1CreateVoiceProfileDomainCommand = exports.serializeAws_restJson1CreateVoiceProfileCommand = exports.serializeAws_restJson1CreateVoiceConnectorGroupCommand = exports.serializeAws_restJson1CreateVoiceConnectorCommand = exports.serializeAws_restJson1CreateSipRuleCommand = exports.serializeAws_restJson1CreateSipMediaApplicationCallCommand = exports.serializeAws_restJson1CreateSipMediaApplicationCommand = exports.serializeAws_restJson1CreateProxySessionCommand = exports.serializeAws_restJson1CreatePhoneNumberOrderCommand = exports.serializeAws_restJson1BatchUpdatePhoneNumberCommand = exports.serializeAws_restJson1BatchDeletePhoneNumberCommand = exports.serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCommand = exports.serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1CreateSipMediaApplicationCommand = exports.deserializeAws_restJson1CreateProxySessionCommand = exports.deserializeAws_restJson1CreatePhoneNumberOrderCommand = exports.deserializeAws_restJson1BatchUpdatePhoneNumberCommand = exports.deserializeAws_restJson1BatchDeletePhoneNumberCommand = exports.deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCommand = exports.deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = exports.serializeAws_restJson1ValidateE911AddressCommand = exports.serializeAws_restJson1UpdateVoiceProfileDomainCommand = exports.serializeAws_restJson1UpdateVoiceProfileCommand = exports.serializeAws_restJson1UpdateVoiceConnectorGroupCommand = exports.serializeAws_restJson1UpdateVoiceConnectorCommand = exports.serializeAws_restJson1UpdateSipRuleCommand = exports.serializeAws_restJson1UpdateSipMediaApplicationCallCommand = exports.serializeAws_restJson1UpdateSipMediaApplicationCommand = exports.serializeAws_restJson1UpdateProxySessionCommand = exports.serializeAws_restJson1UpdatePhoneNumberSettingsCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateGlobalSettingsCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopVoiceToneAnalysisTaskCommand = exports.serializeAws_restJson1StopSpeakerSearchTaskCommand = exports.serializeAws_restJson1StartVoiceToneAnalysisTaskCommand = exports.serializeAws_restJson1StartSpeakerSearchTaskCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1RestorePhoneNumberCommand = exports.serializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = exports.serializeAws_restJson1PutVoiceConnectorTerminationCommand = exports.serializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = exports.serializeAws_restJson1PutVoiceConnectorProxyCommand = exports.serializeAws_restJson1PutVoiceConnectorOriginationCommand = exports.serializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = exports.serializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.serializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand = exports.serializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.serializeAws_restJson1ListVoiceProfilesCommand = exports.serializeAws_restJson1ListVoiceProfileDomainsCommand = exports.serializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = exports.serializeAws_restJson1ListVoiceConnectorsCommand = exports.serializeAws_restJson1ListVoiceConnectorGroupsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = exports.serializeAws_restJson1ListSipRulesCommand = exports.serializeAws_restJson1ListSipMediaApplicationsCommand = exports.serializeAws_restJson1ListProxySessionsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListPhoneNumberOrdersCommand = exports.serializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand = exports.serializeAws_restJson1GetVoiceToneAnalysisTaskCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1ListSipRulesCommand = exports.deserializeAws_restJson1ListSipMediaApplicationsCommand = exports.deserializeAws_restJson1ListProxySessionsCommand = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListPhoneNumberOrdersCommand = exports.deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand = exports.deserializeAws_restJson1GetVoiceToneAnalysisTaskCommand = exports.deserializeAws_restJson1GetVoiceProfileDomainCommand = exports.deserializeAws_restJson1GetVoiceProfileCommand = exports.deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = exports.deserializeAws_restJson1GetVoiceConnectorTerminationCommand = exports.deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommand = exports.deserializeAws_restJson1GetVoiceConnectorProxyCommand = exports.deserializeAws_restJson1GetVoiceConnectorOriginationCommand = exports.deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = exports.deserializeAws_restJson1GetVoiceConnectorGroupCommand = exports.deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand = exports.deserializeAws_restJson1GetVoiceConnectorCommand = exports.deserializeAws_restJson1GetSpeakerSearchTaskCommand = exports.deserializeAws_restJson1GetSipRuleCommand = exports.deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommand = exports.deserializeAws_restJson1GetSipMediaApplicationAlexaSkillConfigurationCommand = exports.deserializeAws_restJson1GetSipMediaApplicationCommand = exports.deserializeAws_restJson1GetProxySessionCommand = exports.deserializeAws_restJson1GetPhoneNumberSettingsCommand = exports.deserializeAws_restJson1GetPhoneNumberOrderCommand = exports.deserializeAws_restJson1GetPhoneNumberCommand = exports.deserializeAws_restJson1GetGlobalSettingsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = exports.deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand = exports.deserializeAws_restJson1DeleteVoiceProfileDomainCommand = exports.deserializeAws_restJson1DeleteVoiceProfileCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorTerminationCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorStreamingConfigurationCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorProxyCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorOriginationCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorGroupCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationCommand = exports.deserializeAws_restJson1DeleteVoiceConnectorCommand = exports.deserializeAws_restJson1DeleteSipRuleCommand = exports.deserializeAws_restJson1DeleteSipMediaApplicationCommand = exports.deserializeAws_restJson1DeleteProxySessionCommand = exports.deserializeAws_restJson1DeletePhoneNumberCommand = exports.deserializeAws_restJson1CreateVoiceProfileDomainCommand = exports.deserializeAws_restJson1CreateVoiceProfileCommand = exports.deserializeAws_restJson1CreateVoiceConnectorGroupCommand = exports.deserializeAws_restJson1CreateVoiceConnectorCommand = exports.deserializeAws_restJson1CreateSipRuleCommand = exports.deserializeAws_restJson1CreateSipMediaApplicationCallCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1ValidateE911AddressCommand = exports.deserializeAws_restJson1UpdateVoiceProfileDomainCommand = exports.deserializeAws_restJson1UpdateVoiceProfileCommand = exports.deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = exports.deserializeAws_restJson1UpdateVoiceConnectorCommand = exports.deserializeAws_restJson1UpdateSipRuleCommand = exports.deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = exports.deserializeAws_restJson1UpdateSipMediaApplicationCommand = exports.deserializeAws_restJson1UpdateProxySessionCommand = exports.deserializeAws_restJson1UpdatePhoneNumberSettingsCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopVoiceToneAnalysisTaskCommand = exports.deserializeAws_restJson1StopSpeakerSearchTaskCommand = exports.deserializeAws_restJson1StartVoiceToneAnalysisTaskCommand = exports.deserializeAws_restJson1StartSpeakerSearchTaskCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1RestorePhoneNumberCommand = exports.deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = exports.deserializeAws_restJson1PutVoiceConnectorTerminationCommand = exports.deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = exports.deserializeAws_restJson1PutVoiceConnectorProxyCommand = exports.deserializeAws_restJson1PutVoiceConnectorOriginationCommand = exports.deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = exports.deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand = exports.deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.deserializeAws_restJson1ListVoiceProfilesCommand = exports.deserializeAws_restJson1ListVoiceProfileDomainsCommand = exports.deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = exports.deserializeAws_restJson1ListVoiceConnectorsCommand = exports.deserializeAws_restJson1ListVoiceConnectorGroupsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = void 0;
|
|
6
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
9
|
const ChimeSDKVoiceServiceException_1 = require("../models/ChimeSDKVoiceServiceException");
|
|
@@ -306,6 +307,54 @@ const serializeAws_restJson1CreateVoiceConnectorGroupCommand = async (input, con
|
|
|
306
307
|
});
|
|
307
308
|
};
|
|
308
309
|
exports.serializeAws_restJson1CreateVoiceConnectorGroupCommand = serializeAws_restJson1CreateVoiceConnectorGroupCommand;
|
|
310
|
+
const serializeAws_restJson1CreateVoiceProfileCommand = async (input, context) => {
|
|
311
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
|
+
const headers = {
|
|
313
|
+
"content-type": "application/json",
|
|
314
|
+
};
|
|
315
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles";
|
|
316
|
+
let body;
|
|
317
|
+
body = JSON.stringify({
|
|
318
|
+
...(input.SpeakerSearchTaskId != null && { SpeakerSearchTaskId: input.SpeakerSearchTaskId }),
|
|
319
|
+
});
|
|
320
|
+
return new protocol_http_1.HttpRequest({
|
|
321
|
+
protocol,
|
|
322
|
+
hostname,
|
|
323
|
+
port,
|
|
324
|
+
method: "POST",
|
|
325
|
+
headers,
|
|
326
|
+
path: resolvedPath,
|
|
327
|
+
body,
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
exports.serializeAws_restJson1CreateVoiceProfileCommand = serializeAws_restJson1CreateVoiceProfileCommand;
|
|
331
|
+
const serializeAws_restJson1CreateVoiceProfileDomainCommand = async (input, context) => {
|
|
332
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
|
+
const headers = {
|
|
334
|
+
"content-type": "application/json",
|
|
335
|
+
};
|
|
336
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains";
|
|
337
|
+
let body;
|
|
338
|
+
body = JSON.stringify({
|
|
339
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
340
|
+
...(input.Description != null && { Description: input.Description }),
|
|
341
|
+
...(input.Name != null && { Name: input.Name }),
|
|
342
|
+
...(input.ServerSideEncryptionConfiguration != null && {
|
|
343
|
+
ServerSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
344
|
+
}),
|
|
345
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
346
|
+
});
|
|
347
|
+
return new protocol_http_1.HttpRequest({
|
|
348
|
+
protocol,
|
|
349
|
+
hostname,
|
|
350
|
+
port,
|
|
351
|
+
method: "POST",
|
|
352
|
+
headers,
|
|
353
|
+
path: resolvedPath,
|
|
354
|
+
body,
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
exports.serializeAws_restJson1CreateVoiceProfileDomainCommand = serializeAws_restJson1CreateVoiceProfileDomainCommand;
|
|
309
358
|
const serializeAws_restJson1DeletePhoneNumberCommand = async (input, context) => {
|
|
310
359
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
360
|
const headers = {};
|
|
@@ -529,6 +578,41 @@ const serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand =
|
|
|
529
578
|
});
|
|
530
579
|
};
|
|
531
580
|
exports.serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand = serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand;
|
|
581
|
+
const serializeAws_restJson1DeleteVoiceProfileCommand = async (input, context) => {
|
|
582
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
583
|
+
const headers = {};
|
|
584
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
|
|
585
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
|
|
586
|
+
let body;
|
|
587
|
+
return new protocol_http_1.HttpRequest({
|
|
588
|
+
protocol,
|
|
589
|
+
hostname,
|
|
590
|
+
port,
|
|
591
|
+
method: "DELETE",
|
|
592
|
+
headers,
|
|
593
|
+
path: resolvedPath,
|
|
594
|
+
body,
|
|
595
|
+
});
|
|
596
|
+
};
|
|
597
|
+
exports.serializeAws_restJson1DeleteVoiceProfileCommand = serializeAws_restJson1DeleteVoiceProfileCommand;
|
|
598
|
+
const serializeAws_restJson1DeleteVoiceProfileDomainCommand = async (input, context) => {
|
|
599
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
600
|
+
const headers = {};
|
|
601
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
602
|
+
"/voice-profile-domains/{VoiceProfileDomainId}";
|
|
603
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
|
|
604
|
+
let body;
|
|
605
|
+
return new protocol_http_1.HttpRequest({
|
|
606
|
+
protocol,
|
|
607
|
+
hostname,
|
|
608
|
+
port,
|
|
609
|
+
method: "DELETE",
|
|
610
|
+
headers,
|
|
611
|
+
path: resolvedPath,
|
|
612
|
+
body,
|
|
613
|
+
});
|
|
614
|
+
};
|
|
615
|
+
exports.serializeAws_restJson1DeleteVoiceProfileDomainCommand = serializeAws_restJson1DeleteVoiceProfileDomainCommand;
|
|
532
616
|
const serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand = async (input, context) => {
|
|
533
617
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
534
618
|
const headers = {
|
|
@@ -748,6 +832,25 @@ const serializeAws_restJson1GetSipRuleCommand = async (input, context) => {
|
|
|
748
832
|
});
|
|
749
833
|
};
|
|
750
834
|
exports.serializeAws_restJson1GetSipRuleCommand = serializeAws_restJson1GetSipRuleCommand;
|
|
835
|
+
const serializeAws_restJson1GetSpeakerSearchTaskCommand = async (input, context) => {
|
|
836
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
837
|
+
const headers = {};
|
|
838
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
839
|
+
"/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}";
|
|
840
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
841
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
842
|
+
let body;
|
|
843
|
+
return new protocol_http_1.HttpRequest({
|
|
844
|
+
protocol,
|
|
845
|
+
hostname,
|
|
846
|
+
port,
|
|
847
|
+
method: "GET",
|
|
848
|
+
headers,
|
|
849
|
+
path: resolvedPath,
|
|
850
|
+
body,
|
|
851
|
+
});
|
|
852
|
+
};
|
|
853
|
+
exports.serializeAws_restJson1GetSpeakerSearchTaskCommand = serializeAws_restJson1GetSpeakerSearchTaskCommand;
|
|
751
854
|
const serializeAws_restJson1GetVoiceConnectorCommand = async (input, context) => {
|
|
752
855
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
753
856
|
const headers = {};
|
|
@@ -909,6 +1012,64 @@ const serializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = async (i
|
|
|
909
1012
|
});
|
|
910
1013
|
};
|
|
911
1014
|
exports.serializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = serializeAws_restJson1GetVoiceConnectorTerminationHealthCommand;
|
|
1015
|
+
const serializeAws_restJson1GetVoiceProfileCommand = async (input, context) => {
|
|
1016
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1017
|
+
const headers = {};
|
|
1018
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
|
|
1019
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
|
|
1020
|
+
let body;
|
|
1021
|
+
return new protocol_http_1.HttpRequest({
|
|
1022
|
+
protocol,
|
|
1023
|
+
hostname,
|
|
1024
|
+
port,
|
|
1025
|
+
method: "GET",
|
|
1026
|
+
headers,
|
|
1027
|
+
path: resolvedPath,
|
|
1028
|
+
body,
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
1031
|
+
exports.serializeAws_restJson1GetVoiceProfileCommand = serializeAws_restJson1GetVoiceProfileCommand;
|
|
1032
|
+
const serializeAws_restJson1GetVoiceProfileDomainCommand = async (input, context) => {
|
|
1033
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1034
|
+
const headers = {};
|
|
1035
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1036
|
+
"/voice-profile-domains/{VoiceProfileDomainId}";
|
|
1037
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
|
|
1038
|
+
let body;
|
|
1039
|
+
return new protocol_http_1.HttpRequest({
|
|
1040
|
+
protocol,
|
|
1041
|
+
hostname,
|
|
1042
|
+
port,
|
|
1043
|
+
method: "GET",
|
|
1044
|
+
headers,
|
|
1045
|
+
path: resolvedPath,
|
|
1046
|
+
body,
|
|
1047
|
+
});
|
|
1048
|
+
};
|
|
1049
|
+
exports.serializeAws_restJson1GetVoiceProfileDomainCommand = serializeAws_restJson1GetVoiceProfileDomainCommand;
|
|
1050
|
+
const serializeAws_restJson1GetVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
1051
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1052
|
+
const headers = {};
|
|
1053
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1054
|
+
"/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
|
|
1055
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1056
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
1057
|
+
const query = map({
|
|
1058
|
+
isCaller: [(0, smithy_client_1.expectNonNull)(input.IsCaller, `IsCaller`) != null, () => input.IsCaller.toString()],
|
|
1059
|
+
});
|
|
1060
|
+
let body;
|
|
1061
|
+
return new protocol_http_1.HttpRequest({
|
|
1062
|
+
protocol,
|
|
1063
|
+
hostname,
|
|
1064
|
+
port,
|
|
1065
|
+
method: "GET",
|
|
1066
|
+
headers,
|
|
1067
|
+
path: resolvedPath,
|
|
1068
|
+
query,
|
|
1069
|
+
body,
|
|
1070
|
+
});
|
|
1071
|
+
};
|
|
1072
|
+
exports.serializeAws_restJson1GetVoiceToneAnalysisTaskCommand = serializeAws_restJson1GetVoiceToneAnalysisTaskCommand;
|
|
912
1073
|
const serializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand = async (input, context) => {
|
|
913
1074
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
1075
|
const headers = {
|
|
@@ -1061,6 +1222,26 @@ const serializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = async (in
|
|
|
1061
1222
|
});
|
|
1062
1223
|
};
|
|
1063
1224
|
exports.serializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = serializeAws_restJson1ListSupportedPhoneNumberCountriesCommand;
|
|
1225
|
+
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1226
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1227
|
+
const headers = {};
|
|
1228
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1229
|
+
const query = map({
|
|
1230
|
+
arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
|
|
1231
|
+
});
|
|
1232
|
+
let body;
|
|
1233
|
+
return new protocol_http_1.HttpRequest({
|
|
1234
|
+
protocol,
|
|
1235
|
+
hostname,
|
|
1236
|
+
port,
|
|
1237
|
+
method: "GET",
|
|
1238
|
+
headers,
|
|
1239
|
+
path: resolvedPath,
|
|
1240
|
+
query,
|
|
1241
|
+
body,
|
|
1242
|
+
});
|
|
1243
|
+
};
|
|
1244
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
1064
1245
|
const serializeAws_restJson1ListVoiceConnectorGroupsCommand = async (input, context) => {
|
|
1065
1246
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1066
1247
|
const headers = {};
|
|
@@ -1121,6 +1302,49 @@ const serializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = as
|
|
|
1121
1302
|
});
|
|
1122
1303
|
};
|
|
1123
1304
|
exports.serializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = serializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand;
|
|
1305
|
+
const serializeAws_restJson1ListVoiceProfileDomainsCommand = async (input, context) => {
|
|
1306
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1307
|
+
const headers = {};
|
|
1308
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains";
|
|
1309
|
+
const query = map({
|
|
1310
|
+
"next-token": [, input.NextToken],
|
|
1311
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1312
|
+
});
|
|
1313
|
+
let body;
|
|
1314
|
+
return new protocol_http_1.HttpRequest({
|
|
1315
|
+
protocol,
|
|
1316
|
+
hostname,
|
|
1317
|
+
port,
|
|
1318
|
+
method: "GET",
|
|
1319
|
+
headers,
|
|
1320
|
+
path: resolvedPath,
|
|
1321
|
+
query,
|
|
1322
|
+
body,
|
|
1323
|
+
});
|
|
1324
|
+
};
|
|
1325
|
+
exports.serializeAws_restJson1ListVoiceProfileDomainsCommand = serializeAws_restJson1ListVoiceProfileDomainsCommand;
|
|
1326
|
+
const serializeAws_restJson1ListVoiceProfilesCommand = async (input, context) => {
|
|
1327
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1328
|
+
const headers = {};
|
|
1329
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles";
|
|
1330
|
+
const query = map({
|
|
1331
|
+
"voice-profile-domain-id": [, (0, smithy_client_1.expectNonNull)(input.VoiceProfileDomainId, `VoiceProfileDomainId`)],
|
|
1332
|
+
"next-token": [, input.NextToken],
|
|
1333
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1334
|
+
});
|
|
1335
|
+
let body;
|
|
1336
|
+
return new protocol_http_1.HttpRequest({
|
|
1337
|
+
protocol,
|
|
1338
|
+
hostname,
|
|
1339
|
+
port,
|
|
1340
|
+
method: "GET",
|
|
1341
|
+
headers,
|
|
1342
|
+
path: resolvedPath,
|
|
1343
|
+
query,
|
|
1344
|
+
body,
|
|
1345
|
+
});
|
|
1346
|
+
};
|
|
1347
|
+
exports.serializeAws_restJson1ListVoiceProfilesCommand = serializeAws_restJson1ListVoiceProfilesCommand;
|
|
1124
1348
|
const serializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand = async (input, context) => {
|
|
1125
1349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1126
1350
|
const headers = {
|
|
@@ -1398,40 +1622,44 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
|
|
|
1398
1622
|
});
|
|
1399
1623
|
};
|
|
1400
1624
|
exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = serializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
1401
|
-
const
|
|
1625
|
+
const serializeAws_restJson1StartSpeakerSearchTaskCommand = async (input, context) => {
|
|
1402
1626
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1403
1627
|
const headers = {
|
|
1404
1628
|
"content-type": "application/json",
|
|
1405
1629
|
};
|
|
1406
|
-
|
|
1630
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1631
|
+
"/voice-connectors/{VoiceConnectorId}/speaker-search-tasks";
|
|
1632
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1407
1633
|
let body;
|
|
1408
1634
|
body = JSON.stringify({
|
|
1409
|
-
...(input.
|
|
1410
|
-
|
|
1411
|
-
}),
|
|
1635
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1636
|
+
...(input.TransactionId != null && { TransactionId: input.TransactionId }),
|
|
1637
|
+
...(input.VoiceProfileDomainId != null && { VoiceProfileDomainId: input.VoiceProfileDomainId }),
|
|
1412
1638
|
});
|
|
1413
1639
|
return new protocol_http_1.HttpRequest({
|
|
1414
1640
|
protocol,
|
|
1415
1641
|
hostname,
|
|
1416
1642
|
port,
|
|
1417
|
-
method: "
|
|
1643
|
+
method: "POST",
|
|
1418
1644
|
headers,
|
|
1419
1645
|
path: resolvedPath,
|
|
1420
1646
|
body,
|
|
1421
1647
|
});
|
|
1422
1648
|
};
|
|
1423
|
-
exports.
|
|
1424
|
-
const
|
|
1649
|
+
exports.serializeAws_restJson1StartSpeakerSearchTaskCommand = serializeAws_restJson1StartSpeakerSearchTaskCommand;
|
|
1650
|
+
const serializeAws_restJson1StartVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
1425
1651
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1426
1652
|
const headers = {
|
|
1427
1653
|
"content-type": "application/json",
|
|
1428
1654
|
};
|
|
1429
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1430
|
-
|
|
1655
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1656
|
+
"/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks";
|
|
1657
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1431
1658
|
let body;
|
|
1432
1659
|
body = JSON.stringify({
|
|
1433
|
-
...(input.
|
|
1434
|
-
...(input.
|
|
1660
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1661
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1662
|
+
...(input.TransactionId != null && { TransactionId: input.TransactionId }),
|
|
1435
1663
|
});
|
|
1436
1664
|
return new protocol_http_1.HttpRequest({
|
|
1437
1665
|
protocol,
|
|
@@ -1443,44 +1671,41 @@ const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) =>
|
|
|
1443
1671
|
body,
|
|
1444
1672
|
});
|
|
1445
1673
|
};
|
|
1446
|
-
exports.
|
|
1447
|
-
const
|
|
1674
|
+
exports.serializeAws_restJson1StartVoiceToneAnalysisTaskCommand = serializeAws_restJson1StartVoiceToneAnalysisTaskCommand;
|
|
1675
|
+
const serializeAws_restJson1StopSpeakerSearchTaskCommand = async (input, context) => {
|
|
1448
1676
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1449
|
-
const headers = {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1677
|
+
const headers = {};
|
|
1678
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1679
|
+
"/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}";
|
|
1680
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1681
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
1682
|
+
const query = map({
|
|
1683
|
+
operation: [, "stop"],
|
|
1456
1684
|
});
|
|
1685
|
+
let body;
|
|
1457
1686
|
return new protocol_http_1.HttpRequest({
|
|
1458
1687
|
protocol,
|
|
1459
1688
|
hostname,
|
|
1460
1689
|
port,
|
|
1461
|
-
method: "
|
|
1690
|
+
method: "POST",
|
|
1462
1691
|
headers,
|
|
1463
1692
|
path: resolvedPath,
|
|
1693
|
+
query,
|
|
1464
1694
|
body,
|
|
1465
1695
|
});
|
|
1466
1696
|
};
|
|
1467
|
-
exports.
|
|
1468
|
-
const
|
|
1697
|
+
exports.serializeAws_restJson1StopSpeakerSearchTaskCommand = serializeAws_restJson1StopSpeakerSearchTaskCommand;
|
|
1698
|
+
const serializeAws_restJson1StopVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
1469
1699
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1470
|
-
const headers = {
|
|
1471
|
-
"content-type": "application/json",
|
|
1472
|
-
};
|
|
1700
|
+
const headers = {};
|
|
1473
1701
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1474
|
-
"/voice-connectors/{VoiceConnectorId}/
|
|
1702
|
+
"/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
|
|
1475
1703
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1476
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
...(input.Capabilities != null && {
|
|
1480
|
-
Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
|
|
1481
|
-
}),
|
|
1482
|
-
...(input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes }),
|
|
1704
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
1705
|
+
const query = map({
|
|
1706
|
+
operation: [, "stop"],
|
|
1483
1707
|
});
|
|
1708
|
+
let body;
|
|
1484
1709
|
return new protocol_http_1.HttpRequest({
|
|
1485
1710
|
protocol,
|
|
1486
1711
|
hostname,
|
|
@@ -1488,50 +1713,50 @@ const serializeAws_restJson1UpdateProxySessionCommand = async (input, context) =
|
|
|
1488
1713
|
method: "POST",
|
|
1489
1714
|
headers,
|
|
1490
1715
|
path: resolvedPath,
|
|
1716
|
+
query,
|
|
1491
1717
|
body,
|
|
1492
1718
|
});
|
|
1493
1719
|
};
|
|
1494
|
-
exports.
|
|
1495
|
-
const
|
|
1720
|
+
exports.serializeAws_restJson1StopVoiceToneAnalysisTaskCommand = serializeAws_restJson1StopVoiceToneAnalysisTaskCommand;
|
|
1721
|
+
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
1496
1722
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1497
1723
|
const headers = {
|
|
1498
1724
|
"content-type": "application/json",
|
|
1499
1725
|
};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1726
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1727
|
+
const query = map({
|
|
1728
|
+
operation: [, "tag-resource"],
|
|
1729
|
+
});
|
|
1503
1730
|
let body;
|
|
1504
1731
|
body = JSON.stringify({
|
|
1505
|
-
...(input.
|
|
1506
|
-
|
|
1507
|
-
}),
|
|
1508
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1732
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1733
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1509
1734
|
});
|
|
1510
1735
|
return new protocol_http_1.HttpRequest({
|
|
1511
1736
|
protocol,
|
|
1512
1737
|
hostname,
|
|
1513
1738
|
port,
|
|
1514
|
-
method: "
|
|
1739
|
+
method: "POST",
|
|
1515
1740
|
headers,
|
|
1516
1741
|
path: resolvedPath,
|
|
1742
|
+
query,
|
|
1517
1743
|
body,
|
|
1518
1744
|
});
|
|
1519
1745
|
};
|
|
1520
|
-
exports.
|
|
1521
|
-
const
|
|
1746
|
+
exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
|
|
1747
|
+
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1522
1748
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1523
1749
|
const headers = {
|
|
1524
1750
|
"content-type": "application/json",
|
|
1525
1751
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1752
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1753
|
+
const query = map({
|
|
1754
|
+
operation: [, "untag-resource"],
|
|
1755
|
+
});
|
|
1530
1756
|
let body;
|
|
1531
1757
|
body = JSON.stringify({
|
|
1532
|
-
...(input.
|
|
1533
|
-
|
|
1534
|
-
}),
|
|
1758
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1759
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
1535
1760
|
});
|
|
1536
1761
|
return new protocol_http_1.HttpRequest({
|
|
1537
1762
|
protocol,
|
|
@@ -1540,16 +1765,163 @@ const serializeAws_restJson1UpdateSipMediaApplicationCallCommand = async (input,
|
|
|
1540
1765
|
method: "POST",
|
|
1541
1766
|
headers,
|
|
1542
1767
|
path: resolvedPath,
|
|
1768
|
+
query,
|
|
1543
1769
|
body,
|
|
1544
1770
|
});
|
|
1545
1771
|
};
|
|
1546
|
-
exports.
|
|
1547
|
-
const
|
|
1772
|
+
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
1773
|
+
const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context) => {
|
|
1548
1774
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1549
1775
|
const headers = {
|
|
1550
1776
|
"content-type": "application/json",
|
|
1551
1777
|
};
|
|
1552
|
-
|
|
1778
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
|
|
1779
|
+
let body;
|
|
1780
|
+
body = JSON.stringify({
|
|
1781
|
+
...(input.VoiceConnector != null && {
|
|
1782
|
+
VoiceConnector: serializeAws_restJson1VoiceConnectorSettings(input.VoiceConnector, context),
|
|
1783
|
+
}),
|
|
1784
|
+
});
|
|
1785
|
+
return new protocol_http_1.HttpRequest({
|
|
1786
|
+
protocol,
|
|
1787
|
+
hostname,
|
|
1788
|
+
port,
|
|
1789
|
+
method: "PUT",
|
|
1790
|
+
headers,
|
|
1791
|
+
path: resolvedPath,
|
|
1792
|
+
body,
|
|
1793
|
+
});
|
|
1794
|
+
};
|
|
1795
|
+
exports.serializeAws_restJson1UpdateGlobalSettingsCommand = serializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
1796
|
+
const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) => {
|
|
1797
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1798
|
+
const headers = {
|
|
1799
|
+
"content-type": "application/json",
|
|
1800
|
+
};
|
|
1801
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
|
|
1802
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
|
|
1803
|
+
let body;
|
|
1804
|
+
body = JSON.stringify({
|
|
1805
|
+
...(input.CallingName != null && { CallingName: input.CallingName }),
|
|
1806
|
+
...(input.ProductType != null && { ProductType: input.ProductType }),
|
|
1807
|
+
});
|
|
1808
|
+
return new protocol_http_1.HttpRequest({
|
|
1809
|
+
protocol,
|
|
1810
|
+
hostname,
|
|
1811
|
+
port,
|
|
1812
|
+
method: "POST",
|
|
1813
|
+
headers,
|
|
1814
|
+
path: resolvedPath,
|
|
1815
|
+
body,
|
|
1816
|
+
});
|
|
1817
|
+
};
|
|
1818
|
+
exports.serializeAws_restJson1UpdatePhoneNumberCommand = serializeAws_restJson1UpdatePhoneNumberCommand;
|
|
1819
|
+
const serializeAws_restJson1UpdatePhoneNumberSettingsCommand = async (input, context) => {
|
|
1820
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1821
|
+
const headers = {
|
|
1822
|
+
"content-type": "application/json",
|
|
1823
|
+
};
|
|
1824
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number";
|
|
1825
|
+
let body;
|
|
1826
|
+
body = JSON.stringify({
|
|
1827
|
+
...(input.CallingName != null && { CallingName: input.CallingName }),
|
|
1828
|
+
});
|
|
1829
|
+
return new protocol_http_1.HttpRequest({
|
|
1830
|
+
protocol,
|
|
1831
|
+
hostname,
|
|
1832
|
+
port,
|
|
1833
|
+
method: "PUT",
|
|
1834
|
+
headers,
|
|
1835
|
+
path: resolvedPath,
|
|
1836
|
+
body,
|
|
1837
|
+
});
|
|
1838
|
+
};
|
|
1839
|
+
exports.serializeAws_restJson1UpdatePhoneNumberSettingsCommand = serializeAws_restJson1UpdatePhoneNumberSettingsCommand;
|
|
1840
|
+
const serializeAws_restJson1UpdateProxySessionCommand = async (input, context) => {
|
|
1841
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1842
|
+
const headers = {
|
|
1843
|
+
"content-type": "application/json",
|
|
1844
|
+
};
|
|
1845
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1846
|
+
"/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
|
|
1847
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
|
|
1848
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
|
|
1849
|
+
let body;
|
|
1850
|
+
body = JSON.stringify({
|
|
1851
|
+
...(input.Capabilities != null && {
|
|
1852
|
+
Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
|
|
1853
|
+
}),
|
|
1854
|
+
...(input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes }),
|
|
1855
|
+
});
|
|
1856
|
+
return new protocol_http_1.HttpRequest({
|
|
1857
|
+
protocol,
|
|
1858
|
+
hostname,
|
|
1859
|
+
port,
|
|
1860
|
+
method: "POST",
|
|
1861
|
+
headers,
|
|
1862
|
+
path: resolvedPath,
|
|
1863
|
+
body,
|
|
1864
|
+
});
|
|
1865
|
+
};
|
|
1866
|
+
exports.serializeAws_restJson1UpdateProxySessionCommand = serializeAws_restJson1UpdateProxySessionCommand;
|
|
1867
|
+
const serializeAws_restJson1UpdateSipMediaApplicationCommand = async (input, context) => {
|
|
1868
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1869
|
+
const headers = {
|
|
1870
|
+
"content-type": "application/json",
|
|
1871
|
+
};
|
|
1872
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1873
|
+
"/sip-media-applications/{SipMediaApplicationId}";
|
|
1874
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
|
|
1875
|
+
let body;
|
|
1876
|
+
body = JSON.stringify({
|
|
1877
|
+
...(input.Endpoints != null && {
|
|
1878
|
+
Endpoints: serializeAws_restJson1SipMediaApplicationEndpointList(input.Endpoints, context),
|
|
1879
|
+
}),
|
|
1880
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1881
|
+
});
|
|
1882
|
+
return new protocol_http_1.HttpRequest({
|
|
1883
|
+
protocol,
|
|
1884
|
+
hostname,
|
|
1885
|
+
port,
|
|
1886
|
+
method: "PUT",
|
|
1887
|
+
headers,
|
|
1888
|
+
path: resolvedPath,
|
|
1889
|
+
body,
|
|
1890
|
+
});
|
|
1891
|
+
};
|
|
1892
|
+
exports.serializeAws_restJson1UpdateSipMediaApplicationCommand = serializeAws_restJson1UpdateSipMediaApplicationCommand;
|
|
1893
|
+
const serializeAws_restJson1UpdateSipMediaApplicationCallCommand = async (input, context) => {
|
|
1894
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1895
|
+
const headers = {
|
|
1896
|
+
"content-type": "application/json",
|
|
1897
|
+
};
|
|
1898
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1899
|
+
"/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}";
|
|
1900
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
|
|
1901
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransactionId", () => input.TransactionId, "{TransactionId}", false);
|
|
1902
|
+
let body;
|
|
1903
|
+
body = JSON.stringify({
|
|
1904
|
+
...(input.Arguments != null && {
|
|
1905
|
+
Arguments: serializeAws_restJson1SMAUpdateCallArgumentsMap(input.Arguments, context),
|
|
1906
|
+
}),
|
|
1907
|
+
});
|
|
1908
|
+
return new protocol_http_1.HttpRequest({
|
|
1909
|
+
protocol,
|
|
1910
|
+
hostname,
|
|
1911
|
+
port,
|
|
1912
|
+
method: "POST",
|
|
1913
|
+
headers,
|
|
1914
|
+
path: resolvedPath,
|
|
1915
|
+
body,
|
|
1916
|
+
});
|
|
1917
|
+
};
|
|
1918
|
+
exports.serializeAws_restJson1UpdateSipMediaApplicationCallCommand = serializeAws_restJson1UpdateSipMediaApplicationCallCommand;
|
|
1919
|
+
const serializeAws_restJson1UpdateSipRuleCommand = async (input, context) => {
|
|
1920
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1921
|
+
const headers = {
|
|
1922
|
+
"content-type": "application/json",
|
|
1923
|
+
};
|
|
1924
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
|
|
1553
1925
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
|
|
1554
1926
|
let body;
|
|
1555
1927
|
body = JSON.stringify({
|
|
@@ -1619,6 +1991,52 @@ const serializeAws_restJson1UpdateVoiceConnectorGroupCommand = async (input, con
|
|
|
1619
1991
|
});
|
|
1620
1992
|
};
|
|
1621
1993
|
exports.serializeAws_restJson1UpdateVoiceConnectorGroupCommand = serializeAws_restJson1UpdateVoiceConnectorGroupCommand;
|
|
1994
|
+
const serializeAws_restJson1UpdateVoiceProfileCommand = async (input, context) => {
|
|
1995
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1996
|
+
const headers = {
|
|
1997
|
+
"content-type": "application/json",
|
|
1998
|
+
};
|
|
1999
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
|
|
2000
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
|
|
2001
|
+
let body;
|
|
2002
|
+
body = JSON.stringify({
|
|
2003
|
+
...(input.SpeakerSearchTaskId != null && { SpeakerSearchTaskId: input.SpeakerSearchTaskId }),
|
|
2004
|
+
});
|
|
2005
|
+
return new protocol_http_1.HttpRequest({
|
|
2006
|
+
protocol,
|
|
2007
|
+
hostname,
|
|
2008
|
+
port,
|
|
2009
|
+
method: "PUT",
|
|
2010
|
+
headers,
|
|
2011
|
+
path: resolvedPath,
|
|
2012
|
+
body,
|
|
2013
|
+
});
|
|
2014
|
+
};
|
|
2015
|
+
exports.serializeAws_restJson1UpdateVoiceProfileCommand = serializeAws_restJson1UpdateVoiceProfileCommand;
|
|
2016
|
+
const serializeAws_restJson1UpdateVoiceProfileDomainCommand = async (input, context) => {
|
|
2017
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2018
|
+
const headers = {
|
|
2019
|
+
"content-type": "application/json",
|
|
2020
|
+
};
|
|
2021
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2022
|
+
"/voice-profile-domains/{VoiceProfileDomainId}";
|
|
2023
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
|
|
2024
|
+
let body;
|
|
2025
|
+
body = JSON.stringify({
|
|
2026
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2027
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2028
|
+
});
|
|
2029
|
+
return new protocol_http_1.HttpRequest({
|
|
2030
|
+
protocol,
|
|
2031
|
+
hostname,
|
|
2032
|
+
port,
|
|
2033
|
+
method: "PUT",
|
|
2034
|
+
headers,
|
|
2035
|
+
path: resolvedPath,
|
|
2036
|
+
body,
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
exports.serializeAws_restJson1UpdateVoiceProfileDomainCommand = serializeAws_restJson1UpdateVoiceProfileDomainCommand;
|
|
1622
2040
|
const serializeAws_restJson1ValidateE911AddressCommand = async (input, context) => {
|
|
1623
2041
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1624
2042
|
const headers = {
|
|
@@ -2248,33 +2666,48 @@ const deserializeAws_restJson1CreateVoiceConnectorGroupCommandError = async (out
|
|
|
2248
2666
|
});
|
|
2249
2667
|
}
|
|
2250
2668
|
};
|
|
2251
|
-
const
|
|
2252
|
-
if (output.statusCode !==
|
|
2253
|
-
return
|
|
2669
|
+
const deserializeAws_restJson1CreateVoiceProfileCommand = async (output, context) => {
|
|
2670
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2671
|
+
return deserializeAws_restJson1CreateVoiceProfileCommandError(output, context);
|
|
2254
2672
|
}
|
|
2255
2673
|
const contents = map({
|
|
2256
2674
|
$metadata: deserializeMetadata(output),
|
|
2257
2675
|
});
|
|
2258
|
-
await
|
|
2676
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2677
|
+
if (data.VoiceProfile != null) {
|
|
2678
|
+
contents.VoiceProfile = deserializeAws_restJson1VoiceProfile(data.VoiceProfile, context);
|
|
2679
|
+
}
|
|
2259
2680
|
return contents;
|
|
2260
2681
|
};
|
|
2261
|
-
exports.
|
|
2262
|
-
const
|
|
2682
|
+
exports.deserializeAws_restJson1CreateVoiceProfileCommand = deserializeAws_restJson1CreateVoiceProfileCommand;
|
|
2683
|
+
const deserializeAws_restJson1CreateVoiceProfileCommandError = async (output, context) => {
|
|
2263
2684
|
const parsedOutput = {
|
|
2264
2685
|
...output,
|
|
2265
2686
|
body: await parseErrorBody(output.body, context),
|
|
2266
2687
|
};
|
|
2267
2688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2268
2689
|
switch (errorCode) {
|
|
2690
|
+
case "AccessDeniedException":
|
|
2691
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2692
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2269
2693
|
case "BadRequestException":
|
|
2270
2694
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2271
2695
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2696
|
+
case "ConflictException":
|
|
2697
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2698
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2272
2699
|
case "ForbiddenException":
|
|
2273
2700
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2274
2701
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2702
|
+
case "GoneException":
|
|
2703
|
+
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
2704
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
2275
2705
|
case "NotFoundException":
|
|
2276
2706
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2277
2707
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2708
|
+
case "ResourceLimitExceededException":
|
|
2709
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2710
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2278
2711
|
case "ServiceFailureException":
|
|
2279
2712
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2280
2713
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -2297,33 +2730,42 @@ const deserializeAws_restJson1DeletePhoneNumberCommandError = async (output, con
|
|
|
2297
2730
|
});
|
|
2298
2731
|
}
|
|
2299
2732
|
};
|
|
2300
|
-
const
|
|
2301
|
-
if (output.statusCode !==
|
|
2302
|
-
return
|
|
2733
|
+
const deserializeAws_restJson1CreateVoiceProfileDomainCommand = async (output, context) => {
|
|
2734
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2735
|
+
return deserializeAws_restJson1CreateVoiceProfileDomainCommandError(output, context);
|
|
2303
2736
|
}
|
|
2304
2737
|
const contents = map({
|
|
2305
2738
|
$metadata: deserializeMetadata(output),
|
|
2306
2739
|
});
|
|
2307
|
-
await
|
|
2740
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2741
|
+
if (data.VoiceProfileDomain != null) {
|
|
2742
|
+
contents.VoiceProfileDomain = deserializeAws_restJson1VoiceProfileDomain(data.VoiceProfileDomain, context);
|
|
2743
|
+
}
|
|
2308
2744
|
return contents;
|
|
2309
2745
|
};
|
|
2310
|
-
exports.
|
|
2311
|
-
const
|
|
2746
|
+
exports.deserializeAws_restJson1CreateVoiceProfileDomainCommand = deserializeAws_restJson1CreateVoiceProfileDomainCommand;
|
|
2747
|
+
const deserializeAws_restJson1CreateVoiceProfileDomainCommandError = async (output, context) => {
|
|
2312
2748
|
const parsedOutput = {
|
|
2313
2749
|
...output,
|
|
2314
2750
|
body: await parseErrorBody(output.body, context),
|
|
2315
2751
|
};
|
|
2316
2752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
2753
|
switch (errorCode) {
|
|
2754
|
+
case "AccessDeniedException":
|
|
2755
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2756
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2318
2757
|
case "BadRequestException":
|
|
2319
2758
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2320
2759
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2760
|
+
case "ConflictException":
|
|
2761
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2762
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2321
2763
|
case "ForbiddenException":
|
|
2322
2764
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2323
2765
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2324
|
-
case "
|
|
2325
|
-
case "com.amazonaws.chimesdkvoice#
|
|
2326
|
-
throw await
|
|
2766
|
+
case "ResourceLimitExceededException":
|
|
2767
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2768
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2327
2769
|
case "ServiceFailureException":
|
|
2328
2770
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2329
2771
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -2346,9 +2788,9 @@ const deserializeAws_restJson1DeleteProxySessionCommandError = async (output, co
|
|
|
2346
2788
|
});
|
|
2347
2789
|
}
|
|
2348
2790
|
};
|
|
2349
|
-
const
|
|
2791
|
+
const deserializeAws_restJson1DeletePhoneNumberCommand = async (output, context) => {
|
|
2350
2792
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2351
|
-
return
|
|
2793
|
+
return deserializeAws_restJson1DeletePhoneNumberCommandError(output, context);
|
|
2352
2794
|
}
|
|
2353
2795
|
const contents = map({
|
|
2354
2796
|
$metadata: deserializeMetadata(output),
|
|
@@ -2356,8 +2798,8 @@ const deserializeAws_restJson1DeleteSipMediaApplicationCommand = async (output,
|
|
|
2356
2798
|
await collectBody(output.body, context);
|
|
2357
2799
|
return contents;
|
|
2358
2800
|
};
|
|
2359
|
-
exports.
|
|
2360
|
-
const
|
|
2801
|
+
exports.deserializeAws_restJson1DeletePhoneNumberCommand = deserializeAws_restJson1DeletePhoneNumberCommand;
|
|
2802
|
+
const deserializeAws_restJson1DeletePhoneNumberCommandError = async (output, context) => {
|
|
2361
2803
|
const parsedOutput = {
|
|
2362
2804
|
...output,
|
|
2363
2805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2367,9 +2809,6 @@ const deserializeAws_restJson1DeleteSipMediaApplicationCommandError = async (out
|
|
|
2367
2809
|
case "BadRequestException":
|
|
2368
2810
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2369
2811
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2370
|
-
case "ConflictException":
|
|
2371
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2372
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2373
2812
|
case "ForbiddenException":
|
|
2374
2813
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2375
2814
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -2398,9 +2837,9 @@ const deserializeAws_restJson1DeleteSipMediaApplicationCommandError = async (out
|
|
|
2398
2837
|
});
|
|
2399
2838
|
}
|
|
2400
2839
|
};
|
|
2401
|
-
const
|
|
2840
|
+
const deserializeAws_restJson1DeleteProxySessionCommand = async (output, context) => {
|
|
2402
2841
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2403
|
-
return
|
|
2842
|
+
return deserializeAws_restJson1DeleteProxySessionCommandError(output, context);
|
|
2404
2843
|
}
|
|
2405
2844
|
const contents = map({
|
|
2406
2845
|
$metadata: deserializeMetadata(output),
|
|
@@ -2408,8 +2847,8 @@ const deserializeAws_restJson1DeleteSipRuleCommand = async (output, context) =>
|
|
|
2408
2847
|
await collectBody(output.body, context);
|
|
2409
2848
|
return contents;
|
|
2410
2849
|
};
|
|
2411
|
-
exports.
|
|
2412
|
-
const
|
|
2850
|
+
exports.deserializeAws_restJson1DeleteProxySessionCommand = deserializeAws_restJson1DeleteProxySessionCommand;
|
|
2851
|
+
const deserializeAws_restJson1DeleteProxySessionCommandError = async (output, context) => {
|
|
2413
2852
|
const parsedOutput = {
|
|
2414
2853
|
...output,
|
|
2415
2854
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2419,9 +2858,6 @@ const deserializeAws_restJson1DeleteSipRuleCommandError = async (output, context
|
|
|
2419
2858
|
case "BadRequestException":
|
|
2420
2859
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2421
2860
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2422
|
-
case "ConflictException":
|
|
2423
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2424
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2425
2861
|
case "ForbiddenException":
|
|
2426
2862
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2427
2863
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -2450,9 +2886,9 @@ const deserializeAws_restJson1DeleteSipRuleCommandError = async (output, context
|
|
|
2450
2886
|
});
|
|
2451
2887
|
}
|
|
2452
2888
|
};
|
|
2453
|
-
const
|
|
2889
|
+
const deserializeAws_restJson1DeleteSipMediaApplicationCommand = async (output, context) => {
|
|
2454
2890
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2455
|
-
return
|
|
2891
|
+
return deserializeAws_restJson1DeleteSipMediaApplicationCommandError(output, context);
|
|
2456
2892
|
}
|
|
2457
2893
|
const contents = map({
|
|
2458
2894
|
$metadata: deserializeMetadata(output),
|
|
@@ -2460,8 +2896,8 @@ const deserializeAws_restJson1DeleteVoiceConnectorCommand = async (output, conte
|
|
|
2460
2896
|
await collectBody(output.body, context);
|
|
2461
2897
|
return contents;
|
|
2462
2898
|
};
|
|
2463
|
-
exports.
|
|
2464
|
-
const
|
|
2899
|
+
exports.deserializeAws_restJson1DeleteSipMediaApplicationCommand = deserializeAws_restJson1DeleteSipMediaApplicationCommand;
|
|
2900
|
+
const deserializeAws_restJson1DeleteSipMediaApplicationCommandError = async (output, context) => {
|
|
2465
2901
|
const parsedOutput = {
|
|
2466
2902
|
...output,
|
|
2467
2903
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2502,9 +2938,113 @@ const deserializeAws_restJson1DeleteVoiceConnectorCommandError = async (output,
|
|
|
2502
2938
|
});
|
|
2503
2939
|
}
|
|
2504
2940
|
};
|
|
2505
|
-
const
|
|
2941
|
+
const deserializeAws_restJson1DeleteSipRuleCommand = async (output, context) => {
|
|
2506
2942
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
2943
|
+
return deserializeAws_restJson1DeleteSipRuleCommandError(output, context);
|
|
2944
|
+
}
|
|
2945
|
+
const contents = map({
|
|
2946
|
+
$metadata: deserializeMetadata(output),
|
|
2947
|
+
});
|
|
2948
|
+
await collectBody(output.body, context);
|
|
2949
|
+
return contents;
|
|
2950
|
+
};
|
|
2951
|
+
exports.deserializeAws_restJson1DeleteSipRuleCommand = deserializeAws_restJson1DeleteSipRuleCommand;
|
|
2952
|
+
const deserializeAws_restJson1DeleteSipRuleCommandError = async (output, context) => {
|
|
2953
|
+
const parsedOutput = {
|
|
2954
|
+
...output,
|
|
2955
|
+
body: await parseErrorBody(output.body, context),
|
|
2956
|
+
};
|
|
2957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
+
switch (errorCode) {
|
|
2959
|
+
case "BadRequestException":
|
|
2960
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2961
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2962
|
+
case "ConflictException":
|
|
2963
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2964
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2965
|
+
case "ForbiddenException":
|
|
2966
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2967
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2968
|
+
case "NotFoundException":
|
|
2969
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2970
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2971
|
+
case "ServiceFailureException":
|
|
2972
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2973
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2974
|
+
case "ServiceUnavailableException":
|
|
2975
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2976
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2977
|
+
case "ThrottledClientException":
|
|
2978
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2979
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2980
|
+
case "UnauthorizedClientException":
|
|
2981
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2982
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2983
|
+
default:
|
|
2984
|
+
const parsedBody = parsedOutput.body;
|
|
2985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2986
|
+
output,
|
|
2987
|
+
parsedBody,
|
|
2988
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
2989
|
+
errorCode,
|
|
2990
|
+
});
|
|
2991
|
+
}
|
|
2992
|
+
};
|
|
2993
|
+
const deserializeAws_restJson1DeleteVoiceConnectorCommand = async (output, context) => {
|
|
2994
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2995
|
+
return deserializeAws_restJson1DeleteVoiceConnectorCommandError(output, context);
|
|
2996
|
+
}
|
|
2997
|
+
const contents = map({
|
|
2998
|
+
$metadata: deserializeMetadata(output),
|
|
2999
|
+
});
|
|
3000
|
+
await collectBody(output.body, context);
|
|
3001
|
+
return contents;
|
|
3002
|
+
};
|
|
3003
|
+
exports.deserializeAws_restJson1DeleteVoiceConnectorCommand = deserializeAws_restJson1DeleteVoiceConnectorCommand;
|
|
3004
|
+
const deserializeAws_restJson1DeleteVoiceConnectorCommandError = async (output, context) => {
|
|
3005
|
+
const parsedOutput = {
|
|
3006
|
+
...output,
|
|
3007
|
+
body: await parseErrorBody(output.body, context),
|
|
3008
|
+
};
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3010
|
+
switch (errorCode) {
|
|
3011
|
+
case "BadRequestException":
|
|
3012
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3013
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3014
|
+
case "ConflictException":
|
|
3015
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3016
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3017
|
+
case "ForbiddenException":
|
|
3018
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3019
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3020
|
+
case "NotFoundException":
|
|
3021
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3022
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3023
|
+
case "ServiceFailureException":
|
|
3024
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3025
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3026
|
+
case "ServiceUnavailableException":
|
|
3027
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3028
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3029
|
+
case "ThrottledClientException":
|
|
3030
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3031
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3032
|
+
case "UnauthorizedClientException":
|
|
3033
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3034
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3035
|
+
default:
|
|
3036
|
+
const parsedBody = parsedOutput.body;
|
|
3037
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3038
|
+
output,
|
|
3039
|
+
parsedBody,
|
|
3040
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
3041
|
+
errorCode,
|
|
3042
|
+
});
|
|
3043
|
+
}
|
|
3044
|
+
};
|
|
3045
|
+
const deserializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationCommand = async (output, context) => {
|
|
3046
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3047
|
+
return deserializeAws_restJson1DeleteVoiceConnectorEmergencyCallingConfigurationCommandError(output, context);
|
|
2508
3048
|
}
|
|
2509
3049
|
const contents = map({
|
|
2510
3050
|
$metadata: deserializeMetadata(output),
|
|
@@ -2848,6 +3388,116 @@ const deserializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommandE
|
|
|
2848
3388
|
});
|
|
2849
3389
|
}
|
|
2850
3390
|
};
|
|
3391
|
+
const deserializeAws_restJson1DeleteVoiceProfileCommand = async (output, context) => {
|
|
3392
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3393
|
+
return deserializeAws_restJson1DeleteVoiceProfileCommandError(output, context);
|
|
3394
|
+
}
|
|
3395
|
+
const contents = map({
|
|
3396
|
+
$metadata: deserializeMetadata(output),
|
|
3397
|
+
});
|
|
3398
|
+
await collectBody(output.body, context);
|
|
3399
|
+
return contents;
|
|
3400
|
+
};
|
|
3401
|
+
exports.deserializeAws_restJson1DeleteVoiceProfileCommand = deserializeAws_restJson1DeleteVoiceProfileCommand;
|
|
3402
|
+
const deserializeAws_restJson1DeleteVoiceProfileCommandError = async (output, context) => {
|
|
3403
|
+
const parsedOutput = {
|
|
3404
|
+
...output,
|
|
3405
|
+
body: await parseErrorBody(output.body, context),
|
|
3406
|
+
};
|
|
3407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
|
+
switch (errorCode) {
|
|
3409
|
+
case "AccessDeniedException":
|
|
3410
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3411
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3412
|
+
case "BadRequestException":
|
|
3413
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3414
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3415
|
+
case "ConflictException":
|
|
3416
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3417
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3418
|
+
case "ForbiddenException":
|
|
3419
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3420
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3421
|
+
case "NotFoundException":
|
|
3422
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3423
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3424
|
+
case "ServiceFailureException":
|
|
3425
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3426
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3427
|
+
case "ServiceUnavailableException":
|
|
3428
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3429
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3430
|
+
case "ThrottledClientException":
|
|
3431
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3432
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3433
|
+
case "UnauthorizedClientException":
|
|
3434
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3435
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3436
|
+
default:
|
|
3437
|
+
const parsedBody = parsedOutput.body;
|
|
3438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3439
|
+
output,
|
|
3440
|
+
parsedBody,
|
|
3441
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
3442
|
+
errorCode,
|
|
3443
|
+
});
|
|
3444
|
+
}
|
|
3445
|
+
};
|
|
3446
|
+
const deserializeAws_restJson1DeleteVoiceProfileDomainCommand = async (output, context) => {
|
|
3447
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3448
|
+
return deserializeAws_restJson1DeleteVoiceProfileDomainCommandError(output, context);
|
|
3449
|
+
}
|
|
3450
|
+
const contents = map({
|
|
3451
|
+
$metadata: deserializeMetadata(output),
|
|
3452
|
+
});
|
|
3453
|
+
await collectBody(output.body, context);
|
|
3454
|
+
return contents;
|
|
3455
|
+
};
|
|
3456
|
+
exports.deserializeAws_restJson1DeleteVoiceProfileDomainCommand = deserializeAws_restJson1DeleteVoiceProfileDomainCommand;
|
|
3457
|
+
const deserializeAws_restJson1DeleteVoiceProfileDomainCommandError = async (output, context) => {
|
|
3458
|
+
const parsedOutput = {
|
|
3459
|
+
...output,
|
|
3460
|
+
body: await parseErrorBody(output.body, context),
|
|
3461
|
+
};
|
|
3462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
|
+
switch (errorCode) {
|
|
3464
|
+
case "AccessDeniedException":
|
|
3465
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3466
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3467
|
+
case "BadRequestException":
|
|
3468
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3469
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3470
|
+
case "ConflictException":
|
|
3471
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3472
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3473
|
+
case "ForbiddenException":
|
|
3474
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3475
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3476
|
+
case "NotFoundException":
|
|
3477
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3478
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3479
|
+
case "ServiceFailureException":
|
|
3480
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3481
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3482
|
+
case "ServiceUnavailableException":
|
|
3483
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3484
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3485
|
+
case "ThrottledClientException":
|
|
3486
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3487
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3488
|
+
case "UnauthorizedClientException":
|
|
3489
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3490
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3491
|
+
default:
|
|
3492
|
+
const parsedBody = parsedOutput.body;
|
|
3493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3494
|
+
output,
|
|
3495
|
+
parsedBody,
|
|
3496
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
3497
|
+
errorCode,
|
|
3498
|
+
});
|
|
3499
|
+
}
|
|
3500
|
+
};
|
|
2851
3501
|
const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand = async (output, context) => {
|
|
2852
3502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2853
3503
|
return deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommandError(output, context);
|
|
@@ -3418,30 +4068,36 @@ const deserializeAws_restJson1GetSipRuleCommandError = async (output, context) =
|
|
|
3418
4068
|
});
|
|
3419
4069
|
}
|
|
3420
4070
|
};
|
|
3421
|
-
const
|
|
4071
|
+
const deserializeAws_restJson1GetSpeakerSearchTaskCommand = async (output, context) => {
|
|
3422
4072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3423
|
-
return
|
|
4073
|
+
return deserializeAws_restJson1GetSpeakerSearchTaskCommandError(output, context);
|
|
3424
4074
|
}
|
|
3425
4075
|
const contents = map({
|
|
3426
4076
|
$metadata: deserializeMetadata(output),
|
|
3427
4077
|
});
|
|
3428
4078
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3429
|
-
if (data.
|
|
3430
|
-
contents.
|
|
4079
|
+
if (data.SpeakerSearchTask != null) {
|
|
4080
|
+
contents.SpeakerSearchTask = deserializeAws_restJson1SpeakerSearchTask(data.SpeakerSearchTask, context);
|
|
3431
4081
|
}
|
|
3432
4082
|
return contents;
|
|
3433
4083
|
};
|
|
3434
|
-
exports.
|
|
3435
|
-
const
|
|
4084
|
+
exports.deserializeAws_restJson1GetSpeakerSearchTaskCommand = deserializeAws_restJson1GetSpeakerSearchTaskCommand;
|
|
4085
|
+
const deserializeAws_restJson1GetSpeakerSearchTaskCommandError = async (output, context) => {
|
|
3436
4086
|
const parsedOutput = {
|
|
3437
4087
|
...output,
|
|
3438
4088
|
body: await parseErrorBody(output.body, context),
|
|
3439
4089
|
};
|
|
3440
4090
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3441
4091
|
switch (errorCode) {
|
|
4092
|
+
case "AccessDeniedException":
|
|
4093
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4094
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3442
4095
|
case "BadRequestException":
|
|
3443
4096
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3444
4097
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4098
|
+
case "ConflictException":
|
|
4099
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
4100
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3445
4101
|
case "ForbiddenException":
|
|
3446
4102
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3447
4103
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -3470,21 +4126,21 @@ const deserializeAws_restJson1GetVoiceConnectorCommandError = async (output, con
|
|
|
3470
4126
|
});
|
|
3471
4127
|
}
|
|
3472
4128
|
};
|
|
3473
|
-
const
|
|
4129
|
+
const deserializeAws_restJson1GetVoiceConnectorCommand = async (output, context) => {
|
|
3474
4130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3475
|
-
return
|
|
4131
|
+
return deserializeAws_restJson1GetVoiceConnectorCommandError(output, context);
|
|
3476
4132
|
}
|
|
3477
4133
|
const contents = map({
|
|
3478
4134
|
$metadata: deserializeMetadata(output),
|
|
3479
4135
|
});
|
|
3480
4136
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3481
|
-
if (data.
|
|
3482
|
-
contents.
|
|
4137
|
+
if (data.VoiceConnector != null) {
|
|
4138
|
+
contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
|
|
3483
4139
|
}
|
|
3484
4140
|
return contents;
|
|
3485
4141
|
};
|
|
3486
|
-
exports.
|
|
3487
|
-
const
|
|
4142
|
+
exports.deserializeAws_restJson1GetVoiceConnectorCommand = deserializeAws_restJson1GetVoiceConnectorCommand;
|
|
4143
|
+
const deserializeAws_restJson1GetVoiceConnectorCommandError = async (output, context) => {
|
|
3488
4144
|
const parsedOutput = {
|
|
3489
4145
|
...output,
|
|
3490
4146
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3522,21 +4178,21 @@ const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
3522
4178
|
});
|
|
3523
4179
|
}
|
|
3524
4180
|
};
|
|
3525
|
-
const
|
|
4181
|
+
const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand = async (output, context) => {
|
|
3526
4182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3527
|
-
return
|
|
4183
|
+
return deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommandError(output, context);
|
|
3528
4184
|
}
|
|
3529
4185
|
const contents = map({
|
|
3530
4186
|
$metadata: deserializeMetadata(output),
|
|
3531
4187
|
});
|
|
3532
4188
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3533
|
-
if (data.
|
|
3534
|
-
contents.
|
|
4189
|
+
if (data.EmergencyCallingConfiguration != null) {
|
|
4190
|
+
contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
|
|
3535
4191
|
}
|
|
3536
4192
|
return contents;
|
|
3537
4193
|
};
|
|
3538
|
-
exports.
|
|
3539
|
-
const
|
|
4194
|
+
exports.deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand = deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand;
|
|
4195
|
+
const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommandError = async (output, context) => {
|
|
3540
4196
|
const parsedOutput = {
|
|
3541
4197
|
...output,
|
|
3542
4198
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3574,21 +4230,21 @@ const deserializeAws_restJson1GetVoiceConnectorGroupCommandError = async (output
|
|
|
3574
4230
|
});
|
|
3575
4231
|
}
|
|
3576
4232
|
};
|
|
3577
|
-
const
|
|
4233
|
+
const deserializeAws_restJson1GetVoiceConnectorGroupCommand = async (output, context) => {
|
|
3578
4234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3579
|
-
return
|
|
4235
|
+
return deserializeAws_restJson1GetVoiceConnectorGroupCommandError(output, context);
|
|
3580
4236
|
}
|
|
3581
4237
|
const contents = map({
|
|
3582
4238
|
$metadata: deserializeMetadata(output),
|
|
3583
4239
|
});
|
|
3584
4240
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3585
|
-
if (data.
|
|
3586
|
-
contents.
|
|
4241
|
+
if (data.VoiceConnectorGroup != null) {
|
|
4242
|
+
contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
|
|
3587
4243
|
}
|
|
3588
4244
|
return contents;
|
|
3589
4245
|
};
|
|
3590
|
-
exports.
|
|
3591
|
-
const
|
|
4246
|
+
exports.deserializeAws_restJson1GetVoiceConnectorGroupCommand = deserializeAws_restJson1GetVoiceConnectorGroupCommand;
|
|
4247
|
+
const deserializeAws_restJson1GetVoiceConnectorGroupCommandError = async (output, context) => {
|
|
3592
4248
|
const parsedOutput = {
|
|
3593
4249
|
...output,
|
|
3594
4250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3626,7 +4282,59 @@ const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError
|
|
|
3626
4282
|
});
|
|
3627
4283
|
}
|
|
3628
4284
|
};
|
|
3629
|
-
const
|
|
4285
|
+
const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = async (output, context) => {
|
|
4286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4287
|
+
return deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError(output, context);
|
|
4288
|
+
}
|
|
4289
|
+
const contents = map({
|
|
4290
|
+
$metadata: deserializeMetadata(output),
|
|
4291
|
+
});
|
|
4292
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4293
|
+
if (data.LoggingConfiguration != null) {
|
|
4294
|
+
contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
|
|
4295
|
+
}
|
|
4296
|
+
return contents;
|
|
4297
|
+
};
|
|
4298
|
+
exports.deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand;
|
|
4299
|
+
const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError = async (output, context) => {
|
|
4300
|
+
const parsedOutput = {
|
|
4301
|
+
...output,
|
|
4302
|
+
body: await parseErrorBody(output.body, context),
|
|
4303
|
+
};
|
|
4304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4305
|
+
switch (errorCode) {
|
|
4306
|
+
case "BadRequestException":
|
|
4307
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4308
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4309
|
+
case "ForbiddenException":
|
|
4310
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4311
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4312
|
+
case "NotFoundException":
|
|
4313
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4314
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4315
|
+
case "ServiceFailureException":
|
|
4316
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4317
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
4318
|
+
case "ServiceUnavailableException":
|
|
4319
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4320
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4321
|
+
case "ThrottledClientException":
|
|
4322
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4323
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
4324
|
+
case "UnauthorizedClientException":
|
|
4325
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4326
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
4327
|
+
default:
|
|
4328
|
+
const parsedBody = parsedOutput.body;
|
|
4329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4330
|
+
output,
|
|
4331
|
+
parsedBody,
|
|
4332
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
4333
|
+
errorCode,
|
|
4334
|
+
});
|
|
4335
|
+
}
|
|
4336
|
+
};
|
|
4337
|
+
const deserializeAws_restJson1GetVoiceConnectorOriginationCommand = async (output, context) => {
|
|
3630
4338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3631
4339
|
return deserializeAws_restJson1GetVoiceConnectorOriginationCommandError(output, context);
|
|
3632
4340
|
}
|
|
@@ -3886,33 +4594,39 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommandError = a
|
|
|
3886
4594
|
});
|
|
3887
4595
|
}
|
|
3888
4596
|
};
|
|
3889
|
-
const
|
|
4597
|
+
const deserializeAws_restJson1GetVoiceProfileCommand = async (output, context) => {
|
|
3890
4598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3891
|
-
return
|
|
4599
|
+
return deserializeAws_restJson1GetVoiceProfileCommandError(output, context);
|
|
3892
4600
|
}
|
|
3893
4601
|
const contents = map({
|
|
3894
4602
|
$metadata: deserializeMetadata(output),
|
|
3895
4603
|
});
|
|
3896
4604
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3897
|
-
if (data.
|
|
3898
|
-
contents.
|
|
4605
|
+
if (data.VoiceProfile != null) {
|
|
4606
|
+
contents.VoiceProfile = deserializeAws_restJson1VoiceProfile(data.VoiceProfile, context);
|
|
3899
4607
|
}
|
|
3900
4608
|
return contents;
|
|
3901
4609
|
};
|
|
3902
|
-
exports.
|
|
3903
|
-
const
|
|
4610
|
+
exports.deserializeAws_restJson1GetVoiceProfileCommand = deserializeAws_restJson1GetVoiceProfileCommand;
|
|
4611
|
+
const deserializeAws_restJson1GetVoiceProfileCommandError = async (output, context) => {
|
|
3904
4612
|
const parsedOutput = {
|
|
3905
4613
|
...output,
|
|
3906
4614
|
body: await parseErrorBody(output.body, context),
|
|
3907
4615
|
};
|
|
3908
4616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
4617
|
switch (errorCode) {
|
|
4618
|
+
case "AccessDeniedException":
|
|
4619
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4620
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3910
4621
|
case "BadRequestException":
|
|
3911
4622
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3912
4623
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3913
4624
|
case "ForbiddenException":
|
|
3914
4625
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3915
4626
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4627
|
+
case "NotFoundException":
|
|
4628
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4629
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3916
4630
|
case "ServiceFailureException":
|
|
3917
4631
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3918
4632
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -3935,36 +4649,39 @@ const deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommandError = a
|
|
|
3935
4649
|
});
|
|
3936
4650
|
}
|
|
3937
4651
|
};
|
|
3938
|
-
const
|
|
4652
|
+
const deserializeAws_restJson1GetVoiceProfileDomainCommand = async (output, context) => {
|
|
3939
4653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return
|
|
4654
|
+
return deserializeAws_restJson1GetVoiceProfileDomainCommandError(output, context);
|
|
3941
4655
|
}
|
|
3942
4656
|
const contents = map({
|
|
3943
4657
|
$metadata: deserializeMetadata(output),
|
|
3944
4658
|
});
|
|
3945
4659
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3946
|
-
if (data.
|
|
3947
|
-
contents.
|
|
3948
|
-
}
|
|
3949
|
-
if (data.PhoneNumberOrders != null) {
|
|
3950
|
-
contents.PhoneNumberOrders = deserializeAws_restJson1PhoneNumberOrderList(data.PhoneNumberOrders, context);
|
|
4660
|
+
if (data.VoiceProfileDomain != null) {
|
|
4661
|
+
contents.VoiceProfileDomain = deserializeAws_restJson1VoiceProfileDomain(data.VoiceProfileDomain, context);
|
|
3951
4662
|
}
|
|
3952
4663
|
return contents;
|
|
3953
4664
|
};
|
|
3954
|
-
exports.
|
|
3955
|
-
const
|
|
4665
|
+
exports.deserializeAws_restJson1GetVoiceProfileDomainCommand = deserializeAws_restJson1GetVoiceProfileDomainCommand;
|
|
4666
|
+
const deserializeAws_restJson1GetVoiceProfileDomainCommandError = async (output, context) => {
|
|
3956
4667
|
const parsedOutput = {
|
|
3957
4668
|
...output,
|
|
3958
4669
|
body: await parseErrorBody(output.body, context),
|
|
3959
4670
|
};
|
|
3960
4671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3961
4672
|
switch (errorCode) {
|
|
4673
|
+
case "AccessDeniedException":
|
|
4674
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4675
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3962
4676
|
case "BadRequestException":
|
|
3963
4677
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3964
4678
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3965
4679
|
case "ForbiddenException":
|
|
3966
4680
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3967
4681
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4682
|
+
case "NotFoundException":
|
|
4683
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4684
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3968
4685
|
case "ServiceFailureException":
|
|
3969
4686
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3970
4687
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -3987,33 +4704,36 @@ const deserializeAws_restJson1ListPhoneNumberOrdersCommandError = async (output,
|
|
|
3987
4704
|
});
|
|
3988
4705
|
}
|
|
3989
4706
|
};
|
|
3990
|
-
const
|
|
4707
|
+
const deserializeAws_restJson1GetVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
3991
4708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3992
|
-
return
|
|
4709
|
+
return deserializeAws_restJson1GetVoiceToneAnalysisTaskCommandError(output, context);
|
|
3993
4710
|
}
|
|
3994
4711
|
const contents = map({
|
|
3995
4712
|
$metadata: deserializeMetadata(output),
|
|
3996
4713
|
});
|
|
3997
4714
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3998
|
-
if (data.
|
|
3999
|
-
contents.
|
|
4000
|
-
}
|
|
4001
|
-
if (data.PhoneNumbers != null) {
|
|
4002
|
-
contents.PhoneNumbers = deserializeAws_restJson1PhoneNumberList(data.PhoneNumbers, context);
|
|
4715
|
+
if (data.VoiceToneAnalysisTask != null) {
|
|
4716
|
+
contents.VoiceToneAnalysisTask = deserializeAws_restJson1VoiceToneAnalysisTask(data.VoiceToneAnalysisTask, context);
|
|
4003
4717
|
}
|
|
4004
4718
|
return contents;
|
|
4005
4719
|
};
|
|
4006
|
-
exports.
|
|
4007
|
-
const
|
|
4720
|
+
exports.deserializeAws_restJson1GetVoiceToneAnalysisTaskCommand = deserializeAws_restJson1GetVoiceToneAnalysisTaskCommand;
|
|
4721
|
+
const deserializeAws_restJson1GetVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
4008
4722
|
const parsedOutput = {
|
|
4009
4723
|
...output,
|
|
4010
4724
|
body: await parseErrorBody(output.body, context),
|
|
4011
4725
|
};
|
|
4012
4726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
4727
|
switch (errorCode) {
|
|
4728
|
+
case "AccessDeniedException":
|
|
4729
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4730
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4014
4731
|
case "BadRequestException":
|
|
4015
4732
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4016
4733
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4734
|
+
case "ConflictException":
|
|
4735
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
4736
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4017
4737
|
case "ForbiddenException":
|
|
4018
4738
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4019
4739
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -4042,24 +4762,21 @@ const deserializeAws_restJson1ListPhoneNumbersCommandError = async (output, cont
|
|
|
4042
4762
|
});
|
|
4043
4763
|
}
|
|
4044
4764
|
};
|
|
4045
|
-
const
|
|
4765
|
+
const deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand = async (output, context) => {
|
|
4046
4766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4047
|
-
return
|
|
4767
|
+
return deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommandError(output, context);
|
|
4048
4768
|
}
|
|
4049
4769
|
const contents = map({
|
|
4050
4770
|
$metadata: deserializeMetadata(output),
|
|
4051
4771
|
});
|
|
4052
4772
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4053
|
-
if (data.
|
|
4054
|
-
contents.
|
|
4055
|
-
}
|
|
4056
|
-
if (data.ProxySessions != null) {
|
|
4057
|
-
contents.ProxySessions = deserializeAws_restJson1ProxySessions(data.ProxySessions, context);
|
|
4773
|
+
if (data.VoiceConnectorRegions != null) {
|
|
4774
|
+
contents.VoiceConnectorRegions = deserializeAws_restJson1VoiceConnectorAwsRegionList(data.VoiceConnectorRegions, context);
|
|
4058
4775
|
}
|
|
4059
4776
|
return contents;
|
|
4060
4777
|
};
|
|
4061
|
-
exports.
|
|
4062
|
-
const
|
|
4778
|
+
exports.deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand = deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommand;
|
|
4779
|
+
const deserializeAws_restJson1ListAvailableVoiceConnectorRegionsCommandError = async (output, context) => {
|
|
4063
4780
|
const parsedOutput = {
|
|
4064
4781
|
...output,
|
|
4065
4782
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4072,9 +4789,6 @@ const deserializeAws_restJson1ListProxySessionsCommandError = async (output, con
|
|
|
4072
4789
|
case "ForbiddenException":
|
|
4073
4790
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4074
4791
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4075
|
-
case "NotFoundException":
|
|
4076
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4077
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4078
4792
|
case "ServiceFailureException":
|
|
4079
4793
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4080
4794
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4097,9 +4811,9 @@ const deserializeAws_restJson1ListProxySessionsCommandError = async (output, con
|
|
|
4097
4811
|
});
|
|
4098
4812
|
}
|
|
4099
4813
|
};
|
|
4100
|
-
const
|
|
4814
|
+
const deserializeAws_restJson1ListPhoneNumberOrdersCommand = async (output, context) => {
|
|
4101
4815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4102
|
-
return
|
|
4816
|
+
return deserializeAws_restJson1ListPhoneNumberOrdersCommandError(output, context);
|
|
4103
4817
|
}
|
|
4104
4818
|
const contents = map({
|
|
4105
4819
|
$metadata: deserializeMetadata(output),
|
|
@@ -4108,13 +4822,13 @@ const deserializeAws_restJson1ListSipMediaApplicationsCommand = async (output, c
|
|
|
4108
4822
|
if (data.NextToken != null) {
|
|
4109
4823
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4110
4824
|
}
|
|
4111
|
-
if (data.
|
|
4112
|
-
contents.
|
|
4825
|
+
if (data.PhoneNumberOrders != null) {
|
|
4826
|
+
contents.PhoneNumberOrders = deserializeAws_restJson1PhoneNumberOrderList(data.PhoneNumberOrders, context);
|
|
4113
4827
|
}
|
|
4114
4828
|
return contents;
|
|
4115
4829
|
};
|
|
4116
|
-
exports.
|
|
4117
|
-
const
|
|
4830
|
+
exports.deserializeAws_restJson1ListPhoneNumberOrdersCommand = deserializeAws_restJson1ListPhoneNumberOrdersCommand;
|
|
4831
|
+
const deserializeAws_restJson1ListPhoneNumberOrdersCommandError = async (output, context) => {
|
|
4118
4832
|
const parsedOutput = {
|
|
4119
4833
|
...output,
|
|
4120
4834
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4149,9 +4863,9 @@ const deserializeAws_restJson1ListSipMediaApplicationsCommandError = async (outp
|
|
|
4149
4863
|
});
|
|
4150
4864
|
}
|
|
4151
4865
|
};
|
|
4152
|
-
const
|
|
4866
|
+
const deserializeAws_restJson1ListPhoneNumbersCommand = async (output, context) => {
|
|
4153
4867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4154
|
-
return
|
|
4868
|
+
return deserializeAws_restJson1ListPhoneNumbersCommandError(output, context);
|
|
4155
4869
|
}
|
|
4156
4870
|
const contents = map({
|
|
4157
4871
|
$metadata: deserializeMetadata(output),
|
|
@@ -4160,13 +4874,13 @@ const deserializeAws_restJson1ListSipRulesCommand = async (output, context) => {
|
|
|
4160
4874
|
if (data.NextToken != null) {
|
|
4161
4875
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4162
4876
|
}
|
|
4163
|
-
if (data.
|
|
4164
|
-
contents.
|
|
4877
|
+
if (data.PhoneNumbers != null) {
|
|
4878
|
+
contents.PhoneNumbers = deserializeAws_restJson1PhoneNumberList(data.PhoneNumbers, context);
|
|
4165
4879
|
}
|
|
4166
4880
|
return contents;
|
|
4167
4881
|
};
|
|
4168
|
-
exports.
|
|
4169
|
-
const
|
|
4882
|
+
exports.deserializeAws_restJson1ListPhoneNumbersCommand = deserializeAws_restJson1ListPhoneNumbersCommand;
|
|
4883
|
+
const deserializeAws_restJson1ListPhoneNumbersCommandError = async (output, context) => {
|
|
4170
4884
|
const parsedOutput = {
|
|
4171
4885
|
...output,
|
|
4172
4886
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4179,6 +4893,9 @@ const deserializeAws_restJson1ListSipRulesCommandError = async (output, context)
|
|
|
4179
4893
|
case "ForbiddenException":
|
|
4180
4894
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4181
4895
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4896
|
+
case "NotFoundException":
|
|
4897
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4898
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4182
4899
|
case "ServiceFailureException":
|
|
4183
4900
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4184
4901
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4201,36 +4918,39 @@ const deserializeAws_restJson1ListSipRulesCommandError = async (output, context)
|
|
|
4201
4918
|
});
|
|
4202
4919
|
}
|
|
4203
4920
|
};
|
|
4204
|
-
const
|
|
4921
|
+
const deserializeAws_restJson1ListProxySessionsCommand = async (output, context) => {
|
|
4205
4922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4206
|
-
return
|
|
4923
|
+
return deserializeAws_restJson1ListProxySessionsCommandError(output, context);
|
|
4207
4924
|
}
|
|
4208
4925
|
const contents = map({
|
|
4209
4926
|
$metadata: deserializeMetadata(output),
|
|
4210
4927
|
});
|
|
4211
4928
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4212
|
-
if (data.
|
|
4213
|
-
contents.
|
|
4929
|
+
if (data.NextToken != null) {
|
|
4930
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4931
|
+
}
|
|
4932
|
+
if (data.ProxySessions != null) {
|
|
4933
|
+
contents.ProxySessions = deserializeAws_restJson1ProxySessions(data.ProxySessions, context);
|
|
4214
4934
|
}
|
|
4215
4935
|
return contents;
|
|
4216
4936
|
};
|
|
4217
|
-
exports.
|
|
4218
|
-
const
|
|
4937
|
+
exports.deserializeAws_restJson1ListProxySessionsCommand = deserializeAws_restJson1ListProxySessionsCommand;
|
|
4938
|
+
const deserializeAws_restJson1ListProxySessionsCommandError = async (output, context) => {
|
|
4219
4939
|
const parsedOutput = {
|
|
4220
4940
|
...output,
|
|
4221
4941
|
body: await parseErrorBody(output.body, context),
|
|
4222
4942
|
};
|
|
4223
4943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4224
4944
|
switch (errorCode) {
|
|
4225
|
-
case "AccessDeniedException":
|
|
4226
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4227
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4228
4945
|
case "BadRequestException":
|
|
4229
4946
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4230
4947
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4231
4948
|
case "ForbiddenException":
|
|
4232
4949
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4233
4950
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4951
|
+
case "NotFoundException":
|
|
4952
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4953
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4234
4954
|
case "ServiceFailureException":
|
|
4235
4955
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4236
4956
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4253,9 +4973,9 @@ const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError = as
|
|
|
4253
4973
|
});
|
|
4254
4974
|
}
|
|
4255
4975
|
};
|
|
4256
|
-
const
|
|
4976
|
+
const deserializeAws_restJson1ListSipMediaApplicationsCommand = async (output, context) => {
|
|
4257
4977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4258
|
-
return
|
|
4978
|
+
return deserializeAws_restJson1ListSipMediaApplicationsCommandError(output, context);
|
|
4259
4979
|
}
|
|
4260
4980
|
const contents = map({
|
|
4261
4981
|
$metadata: deserializeMetadata(output),
|
|
@@ -4264,13 +4984,13 @@ const deserializeAws_restJson1ListVoiceConnectorGroupsCommand = async (output, c
|
|
|
4264
4984
|
if (data.NextToken != null) {
|
|
4265
4985
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4266
4986
|
}
|
|
4267
|
-
if (data.
|
|
4268
|
-
contents.
|
|
4987
|
+
if (data.SipMediaApplications != null) {
|
|
4988
|
+
contents.SipMediaApplications = deserializeAws_restJson1SipMediaApplicationList(data.SipMediaApplications, context);
|
|
4269
4989
|
}
|
|
4270
4990
|
return contents;
|
|
4271
4991
|
};
|
|
4272
|
-
exports.
|
|
4273
|
-
const
|
|
4992
|
+
exports.deserializeAws_restJson1ListSipMediaApplicationsCommand = deserializeAws_restJson1ListSipMediaApplicationsCommand;
|
|
4993
|
+
const deserializeAws_restJson1ListSipMediaApplicationsCommandError = async (output, context) => {
|
|
4274
4994
|
const parsedOutput = {
|
|
4275
4995
|
...output,
|
|
4276
4996
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4305,9 +5025,9 @@ const deserializeAws_restJson1ListVoiceConnectorGroupsCommandError = async (outp
|
|
|
4305
5025
|
});
|
|
4306
5026
|
}
|
|
4307
5027
|
};
|
|
4308
|
-
const
|
|
5028
|
+
const deserializeAws_restJson1ListSipRulesCommand = async (output, context) => {
|
|
4309
5029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4310
|
-
return
|
|
5030
|
+
return deserializeAws_restJson1ListSipRulesCommandError(output, context);
|
|
4311
5031
|
}
|
|
4312
5032
|
const contents = map({
|
|
4313
5033
|
$metadata: deserializeMetadata(output),
|
|
@@ -4316,13 +5036,13 @@ const deserializeAws_restJson1ListVoiceConnectorsCommand = async (output, contex
|
|
|
4316
5036
|
if (data.NextToken != null) {
|
|
4317
5037
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4318
5038
|
}
|
|
4319
|
-
if (data.
|
|
4320
|
-
contents.
|
|
5039
|
+
if (data.SipRules != null) {
|
|
5040
|
+
contents.SipRules = deserializeAws_restJson1SipRuleList(data.SipRules, context);
|
|
4321
5041
|
}
|
|
4322
5042
|
return contents;
|
|
4323
5043
|
};
|
|
4324
|
-
exports.
|
|
4325
|
-
const
|
|
5044
|
+
exports.deserializeAws_restJson1ListSipRulesCommand = deserializeAws_restJson1ListSipRulesCommand;
|
|
5045
|
+
const deserializeAws_restJson1ListSipRulesCommandError = async (output, context) => {
|
|
4326
5046
|
const parsedOutput = {
|
|
4327
5047
|
...output,
|
|
4328
5048
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4357,36 +5077,36 @@ const deserializeAws_restJson1ListVoiceConnectorsCommandError = async (output, c
|
|
|
4357
5077
|
});
|
|
4358
5078
|
}
|
|
4359
5079
|
};
|
|
4360
|
-
const
|
|
5080
|
+
const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = async (output, context) => {
|
|
4361
5081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4362
|
-
return
|
|
5082
|
+
return deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError(output, context);
|
|
4363
5083
|
}
|
|
4364
5084
|
const contents = map({
|
|
4365
5085
|
$metadata: deserializeMetadata(output),
|
|
4366
5086
|
});
|
|
4367
5087
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4368
|
-
if (data.
|
|
4369
|
-
contents.
|
|
5088
|
+
if (data.PhoneNumberCountries != null) {
|
|
5089
|
+
contents.PhoneNumberCountries = deserializeAws_restJson1PhoneNumberCountriesList(data.PhoneNumberCountries, context);
|
|
4370
5090
|
}
|
|
4371
5091
|
return contents;
|
|
4372
5092
|
};
|
|
4373
|
-
exports.
|
|
4374
|
-
const
|
|
5093
|
+
exports.deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand;
|
|
5094
|
+
const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError = async (output, context) => {
|
|
4375
5095
|
const parsedOutput = {
|
|
4376
5096
|
...output,
|
|
4377
5097
|
body: await parseErrorBody(output.body, context),
|
|
4378
5098
|
};
|
|
4379
5099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4380
5100
|
switch (errorCode) {
|
|
5101
|
+
case "AccessDeniedException":
|
|
5102
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5103
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4381
5104
|
case "BadRequestException":
|
|
4382
5105
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4383
5106
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4384
5107
|
case "ForbiddenException":
|
|
4385
5108
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4386
5109
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4387
|
-
case "NotFoundException":
|
|
4388
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4389
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4390
5110
|
case "ServiceFailureException":
|
|
4391
5111
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4392
5112
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4409,22 +5129,21 @@ const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandErr
|
|
|
4409
5129
|
});
|
|
4410
5130
|
}
|
|
4411
5131
|
};
|
|
4412
|
-
const
|
|
5132
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
4413
5133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4414
|
-
return
|
|
5134
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
4415
5135
|
}
|
|
4416
5136
|
const contents = map({
|
|
4417
5137
|
$metadata: deserializeMetadata(output),
|
|
4418
5138
|
});
|
|
4419
5139
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4420
|
-
if (data.
|
|
4421
|
-
contents.
|
|
4422
|
-
deserializeAws_restJson1SipMediaApplicationAlexaSkillConfiguration(data.SipMediaApplicationAlexaSkillConfiguration, context);
|
|
5140
|
+
if (data.Tags != null) {
|
|
5141
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
4423
5142
|
}
|
|
4424
5143
|
return contents;
|
|
4425
5144
|
};
|
|
4426
|
-
exports.
|
|
4427
|
-
const
|
|
5145
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
5146
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4428
5147
|
const parsedOutput = {
|
|
4429
5148
|
...output,
|
|
4430
5149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4446,9 +5165,6 @@ const deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationComma
|
|
|
4446
5165
|
case "ServiceUnavailableException":
|
|
4447
5166
|
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4448
5167
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4449
|
-
case "ThrottledClientException":
|
|
4450
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4451
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
4452
5168
|
case "UnauthorizedClientException":
|
|
4453
5169
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4454
5170
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
@@ -4462,21 +5178,24 @@ const deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationComma
|
|
|
4462
5178
|
});
|
|
4463
5179
|
}
|
|
4464
5180
|
};
|
|
4465
|
-
const
|
|
5181
|
+
const deserializeAws_restJson1ListVoiceConnectorGroupsCommand = async (output, context) => {
|
|
4466
5182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4467
|
-
return
|
|
5183
|
+
return deserializeAws_restJson1ListVoiceConnectorGroupsCommandError(output, context);
|
|
4468
5184
|
}
|
|
4469
5185
|
const contents = map({
|
|
4470
5186
|
$metadata: deserializeMetadata(output),
|
|
4471
5187
|
});
|
|
4472
5188
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4473
|
-
if (data.
|
|
4474
|
-
contents.
|
|
5189
|
+
if (data.NextToken != null) {
|
|
5190
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5191
|
+
}
|
|
5192
|
+
if (data.VoiceConnectorGroups != null) {
|
|
5193
|
+
contents.VoiceConnectorGroups = deserializeAws_restJson1VoiceConnectorGroupList(data.VoiceConnectorGroups, context);
|
|
4475
5194
|
}
|
|
4476
5195
|
return contents;
|
|
4477
5196
|
};
|
|
4478
|
-
exports.
|
|
4479
|
-
const
|
|
5197
|
+
exports.deserializeAws_restJson1ListVoiceConnectorGroupsCommand = deserializeAws_restJson1ListVoiceConnectorGroupsCommand;
|
|
5198
|
+
const deserializeAws_restJson1ListVoiceConnectorGroupsCommandError = async (output, context) => {
|
|
4480
5199
|
const parsedOutput = {
|
|
4481
5200
|
...output,
|
|
4482
5201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4489,9 +5208,6 @@ const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandE
|
|
|
4489
5208
|
case "ForbiddenException":
|
|
4490
5209
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4491
5210
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4492
|
-
case "NotFoundException":
|
|
4493
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4494
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4495
5211
|
case "ServiceFailureException":
|
|
4496
5212
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4497
5213
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4514,21 +5230,24 @@ const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandE
|
|
|
4514
5230
|
});
|
|
4515
5231
|
}
|
|
4516
5232
|
};
|
|
4517
|
-
const
|
|
5233
|
+
const deserializeAws_restJson1ListVoiceConnectorsCommand = async (output, context) => {
|
|
4518
5234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4519
|
-
return
|
|
5235
|
+
return deserializeAws_restJson1ListVoiceConnectorsCommandError(output, context);
|
|
4520
5236
|
}
|
|
4521
5237
|
const contents = map({
|
|
4522
5238
|
$metadata: deserializeMetadata(output),
|
|
4523
5239
|
});
|
|
4524
5240
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4525
|
-
if (data.
|
|
4526
|
-
contents.
|
|
5241
|
+
if (data.NextToken != null) {
|
|
5242
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5243
|
+
}
|
|
5244
|
+
if (data.VoiceConnectors != null) {
|
|
5245
|
+
contents.VoiceConnectors = deserializeAws_restJson1VoiceConnectorList(data.VoiceConnectors, context);
|
|
4527
5246
|
}
|
|
4528
5247
|
return contents;
|
|
4529
5248
|
};
|
|
4530
|
-
exports.
|
|
4531
|
-
const
|
|
5249
|
+
exports.deserializeAws_restJson1ListVoiceConnectorsCommand = deserializeAws_restJson1ListVoiceConnectorsCommand;
|
|
5250
|
+
const deserializeAws_restJson1ListVoiceConnectorsCommandError = async (output, context) => {
|
|
4532
5251
|
const parsedOutput = {
|
|
4533
5252
|
...output,
|
|
4534
5253
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4541,9 +5260,6 @@ const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
4541
5260
|
case "ForbiddenException":
|
|
4542
5261
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4543
5262
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4544
|
-
case "NotFoundException":
|
|
4545
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4546
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4547
5263
|
case "ServiceFailureException":
|
|
4548
5264
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4549
5265
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4566,16 +5282,335 @@ const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
4566
5282
|
});
|
|
4567
5283
|
}
|
|
4568
5284
|
};
|
|
4569
|
-
const
|
|
5285
|
+
const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = async (output, context) => {
|
|
4570
5286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4571
|
-
return
|
|
5287
|
+
return deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandError(output, context);
|
|
4572
5288
|
}
|
|
4573
5289
|
const contents = map({
|
|
4574
5290
|
$metadata: deserializeMetadata(output),
|
|
4575
5291
|
});
|
|
4576
5292
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4577
|
-
if (data.
|
|
4578
|
-
contents.
|
|
5293
|
+
if (data.Usernames != null) {
|
|
5294
|
+
contents.Usernames = deserializeAws_restJson1SensitiveStringList(data.Usernames, context);
|
|
5295
|
+
}
|
|
5296
|
+
return contents;
|
|
5297
|
+
};
|
|
5298
|
+
exports.deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand;
|
|
5299
|
+
const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandError = async (output, context) => {
|
|
5300
|
+
const parsedOutput = {
|
|
5301
|
+
...output,
|
|
5302
|
+
body: await parseErrorBody(output.body, context),
|
|
5303
|
+
};
|
|
5304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5305
|
+
switch (errorCode) {
|
|
5306
|
+
case "BadRequestException":
|
|
5307
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5308
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5309
|
+
case "ForbiddenException":
|
|
5310
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5311
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5312
|
+
case "NotFoundException":
|
|
5313
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5314
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5315
|
+
case "ServiceFailureException":
|
|
5316
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5317
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5318
|
+
case "ServiceUnavailableException":
|
|
5319
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5320
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5321
|
+
case "ThrottledClientException":
|
|
5322
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5323
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5324
|
+
case "UnauthorizedClientException":
|
|
5325
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5326
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5327
|
+
default:
|
|
5328
|
+
const parsedBody = parsedOutput.body;
|
|
5329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5330
|
+
output,
|
|
5331
|
+
parsedBody,
|
|
5332
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5333
|
+
errorCode,
|
|
5334
|
+
});
|
|
5335
|
+
}
|
|
5336
|
+
};
|
|
5337
|
+
const deserializeAws_restJson1ListVoiceProfileDomainsCommand = async (output, context) => {
|
|
5338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5339
|
+
return deserializeAws_restJson1ListVoiceProfileDomainsCommandError(output, context);
|
|
5340
|
+
}
|
|
5341
|
+
const contents = map({
|
|
5342
|
+
$metadata: deserializeMetadata(output),
|
|
5343
|
+
});
|
|
5344
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5345
|
+
if (data.NextToken != null) {
|
|
5346
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5347
|
+
}
|
|
5348
|
+
if (data.VoiceProfileDomains != null) {
|
|
5349
|
+
contents.VoiceProfileDomains = deserializeAws_restJson1VoiceProfileDomainSummaryList(data.VoiceProfileDomains, context);
|
|
5350
|
+
}
|
|
5351
|
+
return contents;
|
|
5352
|
+
};
|
|
5353
|
+
exports.deserializeAws_restJson1ListVoiceProfileDomainsCommand = deserializeAws_restJson1ListVoiceProfileDomainsCommand;
|
|
5354
|
+
const deserializeAws_restJson1ListVoiceProfileDomainsCommandError = async (output, context) => {
|
|
5355
|
+
const parsedOutput = {
|
|
5356
|
+
...output,
|
|
5357
|
+
body: await parseErrorBody(output.body, context),
|
|
5358
|
+
};
|
|
5359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5360
|
+
switch (errorCode) {
|
|
5361
|
+
case "BadRequestException":
|
|
5362
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5363
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5364
|
+
case "ForbiddenException":
|
|
5365
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5366
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5367
|
+
case "NotFoundException":
|
|
5368
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5369
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5370
|
+
case "ServiceFailureException":
|
|
5371
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5372
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5373
|
+
case "ServiceUnavailableException":
|
|
5374
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5375
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5376
|
+
case "ThrottledClientException":
|
|
5377
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5378
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5379
|
+
case "UnauthorizedClientException":
|
|
5380
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5381
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5382
|
+
default:
|
|
5383
|
+
const parsedBody = parsedOutput.body;
|
|
5384
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5385
|
+
output,
|
|
5386
|
+
parsedBody,
|
|
5387
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5388
|
+
errorCode,
|
|
5389
|
+
});
|
|
5390
|
+
}
|
|
5391
|
+
};
|
|
5392
|
+
const deserializeAws_restJson1ListVoiceProfilesCommand = async (output, context) => {
|
|
5393
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5394
|
+
return deserializeAws_restJson1ListVoiceProfilesCommandError(output, context);
|
|
5395
|
+
}
|
|
5396
|
+
const contents = map({
|
|
5397
|
+
$metadata: deserializeMetadata(output),
|
|
5398
|
+
});
|
|
5399
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5400
|
+
if (data.NextToken != null) {
|
|
5401
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5402
|
+
}
|
|
5403
|
+
if (data.VoiceProfiles != null) {
|
|
5404
|
+
contents.VoiceProfiles = deserializeAws_restJson1VoiceProfileSummaryList(data.VoiceProfiles, context);
|
|
5405
|
+
}
|
|
5406
|
+
return contents;
|
|
5407
|
+
};
|
|
5408
|
+
exports.deserializeAws_restJson1ListVoiceProfilesCommand = deserializeAws_restJson1ListVoiceProfilesCommand;
|
|
5409
|
+
const deserializeAws_restJson1ListVoiceProfilesCommandError = async (output, context) => {
|
|
5410
|
+
const parsedOutput = {
|
|
5411
|
+
...output,
|
|
5412
|
+
body: await parseErrorBody(output.body, context),
|
|
5413
|
+
};
|
|
5414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5415
|
+
switch (errorCode) {
|
|
5416
|
+
case "BadRequestException":
|
|
5417
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5418
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5419
|
+
case "ForbiddenException":
|
|
5420
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5421
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5422
|
+
case "NotFoundException":
|
|
5423
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5424
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5425
|
+
case "ServiceFailureException":
|
|
5426
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5427
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5428
|
+
case "ServiceUnavailableException":
|
|
5429
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5430
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5431
|
+
case "ThrottledClientException":
|
|
5432
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5433
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5434
|
+
case "UnauthorizedClientException":
|
|
5435
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5436
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5437
|
+
default:
|
|
5438
|
+
const parsedBody = parsedOutput.body;
|
|
5439
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5440
|
+
output,
|
|
5441
|
+
parsedBody,
|
|
5442
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5443
|
+
errorCode,
|
|
5444
|
+
});
|
|
5445
|
+
}
|
|
5446
|
+
};
|
|
5447
|
+
const deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand = async (output, context) => {
|
|
5448
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5449
|
+
return deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommandError(output, context);
|
|
5450
|
+
}
|
|
5451
|
+
const contents = map({
|
|
5452
|
+
$metadata: deserializeMetadata(output),
|
|
5453
|
+
});
|
|
5454
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5455
|
+
if (data.SipMediaApplicationAlexaSkillConfiguration != null) {
|
|
5456
|
+
contents.SipMediaApplicationAlexaSkillConfiguration =
|
|
5457
|
+
deserializeAws_restJson1SipMediaApplicationAlexaSkillConfiguration(data.SipMediaApplicationAlexaSkillConfiguration, context);
|
|
5458
|
+
}
|
|
5459
|
+
return contents;
|
|
5460
|
+
};
|
|
5461
|
+
exports.deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand = deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommand;
|
|
5462
|
+
const deserializeAws_restJson1PutSipMediaApplicationAlexaSkillConfigurationCommandError = async (output, context) => {
|
|
5463
|
+
const parsedOutput = {
|
|
5464
|
+
...output,
|
|
5465
|
+
body: await parseErrorBody(output.body, context),
|
|
5466
|
+
};
|
|
5467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5468
|
+
switch (errorCode) {
|
|
5469
|
+
case "BadRequestException":
|
|
5470
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5471
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5472
|
+
case "ForbiddenException":
|
|
5473
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5474
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5475
|
+
case "NotFoundException":
|
|
5476
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5477
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5478
|
+
case "ServiceFailureException":
|
|
5479
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5480
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5481
|
+
case "ServiceUnavailableException":
|
|
5482
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5483
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5484
|
+
case "ThrottledClientException":
|
|
5485
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5486
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5487
|
+
case "UnauthorizedClientException":
|
|
5488
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5489
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5490
|
+
default:
|
|
5491
|
+
const parsedBody = parsedOutput.body;
|
|
5492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5493
|
+
output,
|
|
5494
|
+
parsedBody,
|
|
5495
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5496
|
+
errorCode,
|
|
5497
|
+
});
|
|
5498
|
+
}
|
|
5499
|
+
};
|
|
5500
|
+
const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand = async (output, context) => {
|
|
5501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5502
|
+
return deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandError(output, context);
|
|
5503
|
+
}
|
|
5504
|
+
const contents = map({
|
|
5505
|
+
$metadata: deserializeMetadata(output),
|
|
5506
|
+
});
|
|
5507
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5508
|
+
if (data.SipMediaApplicationLoggingConfiguration != null) {
|
|
5509
|
+
contents.SipMediaApplicationLoggingConfiguration = deserializeAws_restJson1SipMediaApplicationLoggingConfiguration(data.SipMediaApplicationLoggingConfiguration, context);
|
|
5510
|
+
}
|
|
5511
|
+
return contents;
|
|
5512
|
+
};
|
|
5513
|
+
exports.deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand = deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand;
|
|
5514
|
+
const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandError = async (output, context) => {
|
|
5515
|
+
const parsedOutput = {
|
|
5516
|
+
...output,
|
|
5517
|
+
body: await parseErrorBody(output.body, context),
|
|
5518
|
+
};
|
|
5519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5520
|
+
switch (errorCode) {
|
|
5521
|
+
case "BadRequestException":
|
|
5522
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5523
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5524
|
+
case "ForbiddenException":
|
|
5525
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5526
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5527
|
+
case "NotFoundException":
|
|
5528
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5529
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5530
|
+
case "ServiceFailureException":
|
|
5531
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5532
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5533
|
+
case "ServiceUnavailableException":
|
|
5534
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5535
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5536
|
+
case "ThrottledClientException":
|
|
5537
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5538
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5539
|
+
case "UnauthorizedClientException":
|
|
5540
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5541
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5542
|
+
default:
|
|
5543
|
+
const parsedBody = parsedOutput.body;
|
|
5544
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5545
|
+
output,
|
|
5546
|
+
parsedBody,
|
|
5547
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5548
|
+
errorCode,
|
|
5549
|
+
});
|
|
5550
|
+
}
|
|
5551
|
+
};
|
|
5552
|
+
const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand = async (output, context) => {
|
|
5553
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5554
|
+
return deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommandError(output, context);
|
|
5555
|
+
}
|
|
5556
|
+
const contents = map({
|
|
5557
|
+
$metadata: deserializeMetadata(output),
|
|
5558
|
+
});
|
|
5559
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5560
|
+
if (data.EmergencyCallingConfiguration != null) {
|
|
5561
|
+
contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
|
|
5562
|
+
}
|
|
5563
|
+
return contents;
|
|
5564
|
+
};
|
|
5565
|
+
exports.deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand = deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand;
|
|
5566
|
+
const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommandError = async (output, context) => {
|
|
5567
|
+
const parsedOutput = {
|
|
5568
|
+
...output,
|
|
5569
|
+
body: await parseErrorBody(output.body, context),
|
|
5570
|
+
};
|
|
5571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5572
|
+
switch (errorCode) {
|
|
5573
|
+
case "BadRequestException":
|
|
5574
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5575
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5576
|
+
case "ForbiddenException":
|
|
5577
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5578
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5579
|
+
case "NotFoundException":
|
|
5580
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5581
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5582
|
+
case "ServiceFailureException":
|
|
5583
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5584
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5585
|
+
case "ServiceUnavailableException":
|
|
5586
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5587
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5588
|
+
case "ThrottledClientException":
|
|
5589
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5590
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5591
|
+
case "UnauthorizedClientException":
|
|
5592
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5593
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5594
|
+
default:
|
|
5595
|
+
const parsedBody = parsedOutput.body;
|
|
5596
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5597
|
+
output,
|
|
5598
|
+
parsedBody,
|
|
5599
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5600
|
+
errorCode,
|
|
5601
|
+
});
|
|
5602
|
+
}
|
|
5603
|
+
};
|
|
5604
|
+
const deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = async (output, context) => {
|
|
5605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5606
|
+
return deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError(output, context);
|
|
5607
|
+
}
|
|
5608
|
+
const contents = map({
|
|
5609
|
+
$metadata: deserializeMetadata(output),
|
|
5610
|
+
});
|
|
5611
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5612
|
+
if (data.LoggingConfiguration != null) {
|
|
5613
|
+
contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
|
|
4579
5614
|
}
|
|
4580
5615
|
return contents;
|
|
4581
5616
|
};
|
|
@@ -4618,36 +5653,357 @@ const deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError
|
|
|
4618
5653
|
});
|
|
4619
5654
|
}
|
|
4620
5655
|
};
|
|
4621
|
-
const deserializeAws_restJson1PutVoiceConnectorOriginationCommand = async (output, context) => {
|
|
5656
|
+
const deserializeAws_restJson1PutVoiceConnectorOriginationCommand = async (output, context) => {
|
|
5657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5658
|
+
return deserializeAws_restJson1PutVoiceConnectorOriginationCommandError(output, context);
|
|
5659
|
+
}
|
|
5660
|
+
const contents = map({
|
|
5661
|
+
$metadata: deserializeMetadata(output),
|
|
5662
|
+
});
|
|
5663
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5664
|
+
if (data.Origination != null) {
|
|
5665
|
+
contents.Origination = deserializeAws_restJson1Origination(data.Origination, context);
|
|
5666
|
+
}
|
|
5667
|
+
return contents;
|
|
5668
|
+
};
|
|
5669
|
+
exports.deserializeAws_restJson1PutVoiceConnectorOriginationCommand = deserializeAws_restJson1PutVoiceConnectorOriginationCommand;
|
|
5670
|
+
const deserializeAws_restJson1PutVoiceConnectorOriginationCommandError = async (output, context) => {
|
|
5671
|
+
const parsedOutput = {
|
|
5672
|
+
...output,
|
|
5673
|
+
body: await parseErrorBody(output.body, context),
|
|
5674
|
+
};
|
|
5675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5676
|
+
switch (errorCode) {
|
|
5677
|
+
case "BadRequestException":
|
|
5678
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5679
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5680
|
+
case "ForbiddenException":
|
|
5681
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5682
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5683
|
+
case "NotFoundException":
|
|
5684
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5685
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5686
|
+
case "ServiceFailureException":
|
|
5687
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5688
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5689
|
+
case "ServiceUnavailableException":
|
|
5690
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5691
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5692
|
+
case "ThrottledClientException":
|
|
5693
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5694
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5695
|
+
case "UnauthorizedClientException":
|
|
5696
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5697
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5698
|
+
default:
|
|
5699
|
+
const parsedBody = parsedOutput.body;
|
|
5700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5701
|
+
output,
|
|
5702
|
+
parsedBody,
|
|
5703
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5704
|
+
errorCode,
|
|
5705
|
+
});
|
|
5706
|
+
}
|
|
5707
|
+
};
|
|
5708
|
+
const deserializeAws_restJson1PutVoiceConnectorProxyCommand = async (output, context) => {
|
|
5709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5710
|
+
return deserializeAws_restJson1PutVoiceConnectorProxyCommandError(output, context);
|
|
5711
|
+
}
|
|
5712
|
+
const contents = map({
|
|
5713
|
+
$metadata: deserializeMetadata(output),
|
|
5714
|
+
});
|
|
5715
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5716
|
+
if (data.Proxy != null) {
|
|
5717
|
+
contents.Proxy = deserializeAws_restJson1Proxy(data.Proxy, context);
|
|
5718
|
+
}
|
|
5719
|
+
return contents;
|
|
5720
|
+
};
|
|
5721
|
+
exports.deserializeAws_restJson1PutVoiceConnectorProxyCommand = deserializeAws_restJson1PutVoiceConnectorProxyCommand;
|
|
5722
|
+
const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output, context) => {
|
|
5723
|
+
const parsedOutput = {
|
|
5724
|
+
...output,
|
|
5725
|
+
body: await parseErrorBody(output.body, context),
|
|
5726
|
+
};
|
|
5727
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5728
|
+
switch (errorCode) {
|
|
5729
|
+
case "AccessDeniedException":
|
|
5730
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5731
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5732
|
+
case "BadRequestException":
|
|
5733
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5734
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5735
|
+
case "ForbiddenException":
|
|
5736
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5737
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5738
|
+
case "NotFoundException":
|
|
5739
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5740
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5741
|
+
case "ServiceFailureException":
|
|
5742
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5743
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5744
|
+
case "ServiceUnavailableException":
|
|
5745
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5746
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5747
|
+
case "ThrottledClientException":
|
|
5748
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5749
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5750
|
+
case "UnauthorizedClientException":
|
|
5751
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5752
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5753
|
+
default:
|
|
5754
|
+
const parsedBody = parsedOutput.body;
|
|
5755
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5756
|
+
output,
|
|
5757
|
+
parsedBody,
|
|
5758
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5759
|
+
errorCode,
|
|
5760
|
+
});
|
|
5761
|
+
}
|
|
5762
|
+
};
|
|
5763
|
+
const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = async (output, context) => {
|
|
5764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5765
|
+
return deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandError(output, context);
|
|
5766
|
+
}
|
|
5767
|
+
const contents = map({
|
|
5768
|
+
$metadata: deserializeMetadata(output),
|
|
5769
|
+
});
|
|
5770
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5771
|
+
if (data.StreamingConfiguration != null) {
|
|
5772
|
+
contents.StreamingConfiguration = deserializeAws_restJson1StreamingConfiguration(data.StreamingConfiguration, context);
|
|
5773
|
+
}
|
|
5774
|
+
return contents;
|
|
5775
|
+
};
|
|
5776
|
+
exports.deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand;
|
|
5777
|
+
const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandError = async (output, context) => {
|
|
5778
|
+
const parsedOutput = {
|
|
5779
|
+
...output,
|
|
5780
|
+
body: await parseErrorBody(output.body, context),
|
|
5781
|
+
};
|
|
5782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5783
|
+
switch (errorCode) {
|
|
5784
|
+
case "BadRequestException":
|
|
5785
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5786
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5787
|
+
case "ForbiddenException":
|
|
5788
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5789
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5790
|
+
case "NotFoundException":
|
|
5791
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5792
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5793
|
+
case "ServiceFailureException":
|
|
5794
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5795
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5796
|
+
case "ServiceUnavailableException":
|
|
5797
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5798
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5799
|
+
case "ThrottledClientException":
|
|
5800
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5801
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5802
|
+
case "UnauthorizedClientException":
|
|
5803
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5804
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5805
|
+
default:
|
|
5806
|
+
const parsedBody = parsedOutput.body;
|
|
5807
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5808
|
+
output,
|
|
5809
|
+
parsedBody,
|
|
5810
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5811
|
+
errorCode,
|
|
5812
|
+
});
|
|
5813
|
+
}
|
|
5814
|
+
};
|
|
5815
|
+
const deserializeAws_restJson1PutVoiceConnectorTerminationCommand = async (output, context) => {
|
|
5816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5817
|
+
return deserializeAws_restJson1PutVoiceConnectorTerminationCommandError(output, context);
|
|
5818
|
+
}
|
|
5819
|
+
const contents = map({
|
|
5820
|
+
$metadata: deserializeMetadata(output),
|
|
5821
|
+
});
|
|
5822
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5823
|
+
if (data.Termination != null) {
|
|
5824
|
+
contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
|
|
5825
|
+
}
|
|
5826
|
+
return contents;
|
|
5827
|
+
};
|
|
5828
|
+
exports.deserializeAws_restJson1PutVoiceConnectorTerminationCommand = deserializeAws_restJson1PutVoiceConnectorTerminationCommand;
|
|
5829
|
+
const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (output, context) => {
|
|
5830
|
+
const parsedOutput = {
|
|
5831
|
+
...output,
|
|
5832
|
+
body: await parseErrorBody(output.body, context),
|
|
5833
|
+
};
|
|
5834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5835
|
+
switch (errorCode) {
|
|
5836
|
+
case "AccessDeniedException":
|
|
5837
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5838
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5839
|
+
case "BadRequestException":
|
|
5840
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5841
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5842
|
+
case "ForbiddenException":
|
|
5843
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5844
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5845
|
+
case "NotFoundException":
|
|
5846
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5847
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5848
|
+
case "ServiceFailureException":
|
|
5849
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5850
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5851
|
+
case "ServiceUnavailableException":
|
|
5852
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5853
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5854
|
+
case "ThrottledClientException":
|
|
5855
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5856
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5857
|
+
case "UnauthorizedClientException":
|
|
5858
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5859
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5860
|
+
default:
|
|
5861
|
+
const parsedBody = parsedOutput.body;
|
|
5862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5863
|
+
output,
|
|
5864
|
+
parsedBody,
|
|
5865
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5866
|
+
errorCode,
|
|
5867
|
+
});
|
|
5868
|
+
}
|
|
5869
|
+
};
|
|
5870
|
+
const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = async (output, context) => {
|
|
5871
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5872
|
+
return deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandError(output, context);
|
|
5873
|
+
}
|
|
5874
|
+
const contents = map({
|
|
5875
|
+
$metadata: deserializeMetadata(output),
|
|
5876
|
+
});
|
|
5877
|
+
await collectBody(output.body, context);
|
|
5878
|
+
return contents;
|
|
5879
|
+
};
|
|
5880
|
+
exports.deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand;
|
|
5881
|
+
const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandError = async (output, context) => {
|
|
5882
|
+
const parsedOutput = {
|
|
5883
|
+
...output,
|
|
5884
|
+
body: await parseErrorBody(output.body, context),
|
|
5885
|
+
};
|
|
5886
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5887
|
+
switch (errorCode) {
|
|
5888
|
+
case "BadRequestException":
|
|
5889
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5890
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5891
|
+
case "ForbiddenException":
|
|
5892
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5893
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5894
|
+
case "NotFoundException":
|
|
5895
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5896
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5897
|
+
case "ServiceFailureException":
|
|
5898
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5899
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5900
|
+
case "ServiceUnavailableException":
|
|
5901
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5902
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5903
|
+
case "ThrottledClientException":
|
|
5904
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5905
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5906
|
+
case "UnauthorizedClientException":
|
|
5907
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5908
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5909
|
+
default:
|
|
5910
|
+
const parsedBody = parsedOutput.body;
|
|
5911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5912
|
+
output,
|
|
5913
|
+
parsedBody,
|
|
5914
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5915
|
+
errorCode,
|
|
5916
|
+
});
|
|
5917
|
+
}
|
|
5918
|
+
};
|
|
5919
|
+
const deserializeAws_restJson1RestorePhoneNumberCommand = async (output, context) => {
|
|
5920
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5921
|
+
return deserializeAws_restJson1RestorePhoneNumberCommandError(output, context);
|
|
5922
|
+
}
|
|
5923
|
+
const contents = map({
|
|
5924
|
+
$metadata: deserializeMetadata(output),
|
|
5925
|
+
});
|
|
5926
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5927
|
+
if (data.PhoneNumber != null) {
|
|
5928
|
+
contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
|
|
5929
|
+
}
|
|
5930
|
+
return contents;
|
|
5931
|
+
};
|
|
5932
|
+
exports.deserializeAws_restJson1RestorePhoneNumberCommand = deserializeAws_restJson1RestorePhoneNumberCommand;
|
|
5933
|
+
const deserializeAws_restJson1RestorePhoneNumberCommandError = async (output, context) => {
|
|
5934
|
+
const parsedOutput = {
|
|
5935
|
+
...output,
|
|
5936
|
+
body: await parseErrorBody(output.body, context),
|
|
5937
|
+
};
|
|
5938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5939
|
+
switch (errorCode) {
|
|
5940
|
+
case "BadRequestException":
|
|
5941
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5942
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5943
|
+
case "ForbiddenException":
|
|
5944
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5945
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5946
|
+
case "NotFoundException":
|
|
5947
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5948
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5949
|
+
case "ResourceLimitExceededException":
|
|
5950
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
5951
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
5952
|
+
case "ServiceFailureException":
|
|
5953
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5954
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
5955
|
+
case "ServiceUnavailableException":
|
|
5956
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5957
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5958
|
+
case "ThrottledClientException":
|
|
5959
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5960
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
5961
|
+
case "UnauthorizedClientException":
|
|
5962
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5963
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
5964
|
+
default:
|
|
5965
|
+
const parsedBody = parsedOutput.body;
|
|
5966
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5967
|
+
output,
|
|
5968
|
+
parsedBody,
|
|
5969
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
5970
|
+
errorCode,
|
|
5971
|
+
});
|
|
5972
|
+
}
|
|
5973
|
+
};
|
|
5974
|
+
const deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (output, context) => {
|
|
4622
5975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4623
|
-
return
|
|
5976
|
+
return deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError(output, context);
|
|
4624
5977
|
}
|
|
4625
5978
|
const contents = map({
|
|
4626
5979
|
$metadata: deserializeMetadata(output),
|
|
4627
5980
|
});
|
|
4628
5981
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4629
|
-
if (data.
|
|
4630
|
-
contents.
|
|
5982
|
+
if (data.E164PhoneNumbers != null) {
|
|
5983
|
+
contents.E164PhoneNumbers = deserializeAws_restJson1E164PhoneNumberList(data.E164PhoneNumbers, context);
|
|
5984
|
+
}
|
|
5985
|
+
if (data.NextToken != null) {
|
|
5986
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4631
5987
|
}
|
|
4632
5988
|
return contents;
|
|
4633
5989
|
};
|
|
4634
|
-
exports.
|
|
4635
|
-
const
|
|
5990
|
+
exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = deserializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
5991
|
+
const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (output, context) => {
|
|
4636
5992
|
const parsedOutput = {
|
|
4637
5993
|
...output,
|
|
4638
5994
|
body: await parseErrorBody(output.body, context),
|
|
4639
5995
|
};
|
|
4640
5996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4641
5997
|
switch (errorCode) {
|
|
5998
|
+
case "AccessDeniedException":
|
|
5999
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6000
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4642
6001
|
case "BadRequestException":
|
|
4643
6002
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4644
6003
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4645
6004
|
case "ForbiddenException":
|
|
4646
6005
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4647
6006
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4648
|
-
case "NotFoundException":
|
|
4649
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4650
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4651
6007
|
case "ServiceFailureException":
|
|
4652
6008
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4653
6009
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4670,21 +6026,21 @@ const deserializeAws_restJson1PutVoiceConnectorOriginationCommandError = async (
|
|
|
4670
6026
|
});
|
|
4671
6027
|
}
|
|
4672
6028
|
};
|
|
4673
|
-
const
|
|
4674
|
-
if (output.statusCode !==
|
|
4675
|
-
return
|
|
6029
|
+
const deserializeAws_restJson1StartSpeakerSearchTaskCommand = async (output, context) => {
|
|
6030
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
6031
|
+
return deserializeAws_restJson1StartSpeakerSearchTaskCommandError(output, context);
|
|
4676
6032
|
}
|
|
4677
6033
|
const contents = map({
|
|
4678
6034
|
$metadata: deserializeMetadata(output),
|
|
4679
6035
|
});
|
|
4680
6036
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4681
|
-
if (data.
|
|
4682
|
-
contents.
|
|
6037
|
+
if (data.SpeakerSearchTask != null) {
|
|
6038
|
+
contents.SpeakerSearchTask = deserializeAws_restJson1SpeakerSearchTask(data.SpeakerSearchTask, context);
|
|
4683
6039
|
}
|
|
4684
6040
|
return contents;
|
|
4685
6041
|
};
|
|
4686
|
-
exports.
|
|
4687
|
-
const
|
|
6042
|
+
exports.deserializeAws_restJson1StartSpeakerSearchTaskCommand = deserializeAws_restJson1StartSpeakerSearchTaskCommand;
|
|
6043
|
+
const deserializeAws_restJson1StartSpeakerSearchTaskCommandError = async (output, context) => {
|
|
4688
6044
|
const parsedOutput = {
|
|
4689
6045
|
...output,
|
|
4690
6046
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4697,12 +6053,21 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output
|
|
|
4697
6053
|
case "BadRequestException":
|
|
4698
6054
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4699
6055
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6056
|
+
case "ConflictException":
|
|
6057
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6058
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4700
6059
|
case "ForbiddenException":
|
|
4701
6060
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4702
6061
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6062
|
+
case "GoneException":
|
|
6063
|
+
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
6064
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
4703
6065
|
case "NotFoundException":
|
|
4704
6066
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4705
6067
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6068
|
+
case "ResourceLimitExceededException":
|
|
6069
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6070
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
4706
6071
|
case "ServiceFailureException":
|
|
4707
6072
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4708
6073
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4715,6 +6080,9 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output
|
|
|
4715
6080
|
case "UnauthorizedClientException":
|
|
4716
6081
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4717
6082
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6083
|
+
case "UnprocessableEntityException":
|
|
6084
|
+
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6085
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4718
6086
|
default:
|
|
4719
6087
|
const parsedBody = parsedOutput.body;
|
|
4720
6088
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -4725,36 +6093,48 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommandError = async (output
|
|
|
4725
6093
|
});
|
|
4726
6094
|
}
|
|
4727
6095
|
};
|
|
4728
|
-
const
|
|
4729
|
-
if (output.statusCode !==
|
|
4730
|
-
return
|
|
6096
|
+
const deserializeAws_restJson1StartVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
6097
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
6098
|
+
return deserializeAws_restJson1StartVoiceToneAnalysisTaskCommandError(output, context);
|
|
4731
6099
|
}
|
|
4732
6100
|
const contents = map({
|
|
4733
6101
|
$metadata: deserializeMetadata(output),
|
|
4734
6102
|
});
|
|
4735
6103
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4736
|
-
if (data.
|
|
4737
|
-
contents.
|
|
6104
|
+
if (data.VoiceToneAnalysisTask != null) {
|
|
6105
|
+
contents.VoiceToneAnalysisTask = deserializeAws_restJson1VoiceToneAnalysisTask(data.VoiceToneAnalysisTask, context);
|
|
4738
6106
|
}
|
|
4739
6107
|
return contents;
|
|
4740
6108
|
};
|
|
4741
|
-
exports.
|
|
4742
|
-
const
|
|
6109
|
+
exports.deserializeAws_restJson1StartVoiceToneAnalysisTaskCommand = deserializeAws_restJson1StartVoiceToneAnalysisTaskCommand;
|
|
6110
|
+
const deserializeAws_restJson1StartVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
4743
6111
|
const parsedOutput = {
|
|
4744
6112
|
...output,
|
|
4745
6113
|
body: await parseErrorBody(output.body, context),
|
|
4746
6114
|
};
|
|
4747
6115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4748
6116
|
switch (errorCode) {
|
|
6117
|
+
case "AccessDeniedException":
|
|
6118
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6119
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4749
6120
|
case "BadRequestException":
|
|
4750
6121
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4751
6122
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6123
|
+
case "ConflictException":
|
|
6124
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6125
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4752
6126
|
case "ForbiddenException":
|
|
4753
6127
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4754
6128
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6129
|
+
case "GoneException":
|
|
6130
|
+
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
6131
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
4755
6132
|
case "NotFoundException":
|
|
4756
6133
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4757
6134
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6135
|
+
case "ResourceLimitExceededException":
|
|
6136
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6137
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
4758
6138
|
case "ServiceFailureException":
|
|
4759
6139
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4760
6140
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -4767,6 +6147,9 @@ const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandErro
|
|
|
4767
6147
|
case "UnauthorizedClientException":
|
|
4768
6148
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4769
6149
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6150
|
+
case "UnprocessableEntityException":
|
|
6151
|
+
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6152
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4770
6153
|
default:
|
|
4771
6154
|
const parsedBody = parsedOutput.body;
|
|
4772
6155
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -4777,21 +6160,18 @@ const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandErro
|
|
|
4777
6160
|
});
|
|
4778
6161
|
}
|
|
4779
6162
|
};
|
|
4780
|
-
const
|
|
4781
|
-
if (output.statusCode !==
|
|
4782
|
-
return
|
|
6163
|
+
const deserializeAws_restJson1StopSpeakerSearchTaskCommand = async (output, context) => {
|
|
6164
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6165
|
+
return deserializeAws_restJson1StopSpeakerSearchTaskCommandError(output, context);
|
|
4783
6166
|
}
|
|
4784
6167
|
const contents = map({
|
|
4785
6168
|
$metadata: deserializeMetadata(output),
|
|
4786
6169
|
});
|
|
4787
|
-
|
|
4788
|
-
if (data.Termination != null) {
|
|
4789
|
-
contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
|
|
4790
|
-
}
|
|
6170
|
+
await collectBody(output.body, context);
|
|
4791
6171
|
return contents;
|
|
4792
6172
|
};
|
|
4793
|
-
exports.
|
|
4794
|
-
const
|
|
6173
|
+
exports.deserializeAws_restJson1StopSpeakerSearchTaskCommand = deserializeAws_restJson1StopSpeakerSearchTaskCommand;
|
|
6174
|
+
const deserializeAws_restJson1StopSpeakerSearchTaskCommandError = async (output, context) => {
|
|
4795
6175
|
const parsedOutput = {
|
|
4796
6176
|
...output,
|
|
4797
6177
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4804,6 +6184,9 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (
|
|
|
4804
6184
|
case "BadRequestException":
|
|
4805
6185
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4806
6186
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6187
|
+
case "ConflictException":
|
|
6188
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6189
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4807
6190
|
case "ForbiddenException":
|
|
4808
6191
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4809
6192
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -4822,6 +6205,9 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (
|
|
|
4822
6205
|
case "UnauthorizedClientException":
|
|
4823
6206
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4824
6207
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6208
|
+
case "UnprocessableEntityException":
|
|
6209
|
+
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6210
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4825
6211
|
default:
|
|
4826
6212
|
const parsedBody = parsedOutput.body;
|
|
4827
6213
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -4832,9 +6218,9 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommandError = async (
|
|
|
4832
6218
|
});
|
|
4833
6219
|
}
|
|
4834
6220
|
};
|
|
4835
|
-
const
|
|
6221
|
+
const deserializeAws_restJson1StopVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
4836
6222
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4837
|
-
return
|
|
6223
|
+
return deserializeAws_restJson1StopVoiceToneAnalysisTaskCommandError(output, context);
|
|
4838
6224
|
}
|
|
4839
6225
|
const contents = map({
|
|
4840
6226
|
$metadata: deserializeMetadata(output),
|
|
@@ -4842,17 +6228,23 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = a
|
|
|
4842
6228
|
await collectBody(output.body, context);
|
|
4843
6229
|
return contents;
|
|
4844
6230
|
};
|
|
4845
|
-
exports.
|
|
4846
|
-
const
|
|
6231
|
+
exports.deserializeAws_restJson1StopVoiceToneAnalysisTaskCommand = deserializeAws_restJson1StopVoiceToneAnalysisTaskCommand;
|
|
6232
|
+
const deserializeAws_restJson1StopVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
4847
6233
|
const parsedOutput = {
|
|
4848
6234
|
...output,
|
|
4849
6235
|
body: await parseErrorBody(output.body, context),
|
|
4850
6236
|
};
|
|
4851
6237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4852
6238
|
switch (errorCode) {
|
|
6239
|
+
case "AccessDeniedException":
|
|
6240
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6241
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4853
6242
|
case "BadRequestException":
|
|
4854
6243
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4855
6244
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6245
|
+
case "ConflictException":
|
|
6246
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6247
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4856
6248
|
case "ForbiddenException":
|
|
4857
6249
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4858
6250
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -4871,6 +6263,9 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandErro
|
|
|
4871
6263
|
case "UnauthorizedClientException":
|
|
4872
6264
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4873
6265
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6266
|
+
case "UnprocessableEntityException":
|
|
6267
|
+
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6268
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4874
6269
|
default:
|
|
4875
6270
|
const parsedBody = parsedOutput.body;
|
|
4876
6271
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -4881,21 +6276,18 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandErro
|
|
|
4881
6276
|
});
|
|
4882
6277
|
}
|
|
4883
6278
|
};
|
|
4884
|
-
const
|
|
4885
|
-
if (output.statusCode !==
|
|
4886
|
-
return
|
|
6279
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
6280
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6281
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
4887
6282
|
}
|
|
4888
6283
|
const contents = map({
|
|
4889
6284
|
$metadata: deserializeMetadata(output),
|
|
4890
6285
|
});
|
|
4891
|
-
|
|
4892
|
-
if (data.PhoneNumber != null) {
|
|
4893
|
-
contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
|
|
4894
|
-
}
|
|
6286
|
+
await collectBody(output.body, context);
|
|
4895
6287
|
return contents;
|
|
4896
6288
|
};
|
|
4897
|
-
exports.
|
|
4898
|
-
const
|
|
6289
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
6290
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
4899
6291
|
const parsedOutput = {
|
|
4900
6292
|
...output,
|
|
4901
6293
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4920,9 +6312,6 @@ const deserializeAws_restJson1RestorePhoneNumberCommandError = async (output, co
|
|
|
4920
6312
|
case "ServiceUnavailableException":
|
|
4921
6313
|
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4922
6314
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4923
|
-
case "ThrottledClientException":
|
|
4924
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4925
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
4926
6315
|
case "UnauthorizedClientException":
|
|
4927
6316
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4928
6317
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
@@ -4936,48 +6325,39 @@ const deserializeAws_restJson1RestorePhoneNumberCommandError = async (output, co
|
|
|
4936
6325
|
});
|
|
4937
6326
|
}
|
|
4938
6327
|
};
|
|
4939
|
-
const
|
|
4940
|
-
if (output.statusCode !==
|
|
4941
|
-
return
|
|
6328
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
6329
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6330
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4942
6331
|
}
|
|
4943
6332
|
const contents = map({
|
|
4944
6333
|
$metadata: deserializeMetadata(output),
|
|
4945
6334
|
});
|
|
4946
|
-
|
|
4947
|
-
if (data.E164PhoneNumbers != null) {
|
|
4948
|
-
contents.E164PhoneNumbers = deserializeAws_restJson1E164PhoneNumberList(data.E164PhoneNumbers, context);
|
|
4949
|
-
}
|
|
4950
|
-
if (data.NextToken != null) {
|
|
4951
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4952
|
-
}
|
|
6335
|
+
await collectBody(output.body, context);
|
|
4953
6336
|
return contents;
|
|
4954
6337
|
};
|
|
4955
|
-
exports.
|
|
4956
|
-
const
|
|
6338
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
6339
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4957
6340
|
const parsedOutput = {
|
|
4958
6341
|
...output,
|
|
4959
6342
|
body: await parseErrorBody(output.body, context),
|
|
4960
6343
|
};
|
|
4961
6344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4962
6345
|
switch (errorCode) {
|
|
4963
|
-
case "AccessDeniedException":
|
|
4964
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4965
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4966
6346
|
case "BadRequestException":
|
|
4967
6347
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4968
6348
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4969
6349
|
case "ForbiddenException":
|
|
4970
6350
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4971
6351
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6352
|
+
case "NotFoundException":
|
|
6353
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6354
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4972
6355
|
case "ServiceFailureException":
|
|
4973
6356
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4974
6357
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
4975
6358
|
case "ServiceUnavailableException":
|
|
4976
6359
|
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4977
6360
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4978
|
-
case "ThrottledClientException":
|
|
4979
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4980
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
4981
6361
|
case "UnauthorizedClientException":
|
|
4982
6362
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4983
6363
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
@@ -5146,13 +6526,120 @@ const deserializeAws_restJson1UpdateProxySessionCommand = async (output, context
|
|
|
5146
6526
|
$metadata: deserializeMetadata(output),
|
|
5147
6527
|
});
|
|
5148
6528
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5149
|
-
if (data.ProxySession != null) {
|
|
5150
|
-
contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
|
|
6529
|
+
if (data.ProxySession != null) {
|
|
6530
|
+
contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
|
|
6531
|
+
}
|
|
6532
|
+
return contents;
|
|
6533
|
+
};
|
|
6534
|
+
exports.deserializeAws_restJson1UpdateProxySessionCommand = deserializeAws_restJson1UpdateProxySessionCommand;
|
|
6535
|
+
const deserializeAws_restJson1UpdateProxySessionCommandError = async (output, context) => {
|
|
6536
|
+
const parsedOutput = {
|
|
6537
|
+
...output,
|
|
6538
|
+
body: await parseErrorBody(output.body, context),
|
|
6539
|
+
};
|
|
6540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6541
|
+
switch (errorCode) {
|
|
6542
|
+
case "BadRequestException":
|
|
6543
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6544
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6545
|
+
case "ForbiddenException":
|
|
6546
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6547
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6548
|
+
case "NotFoundException":
|
|
6549
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6550
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6551
|
+
case "ServiceFailureException":
|
|
6552
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6553
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
6554
|
+
case "ServiceUnavailableException":
|
|
6555
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6556
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6557
|
+
case "ThrottledClientException":
|
|
6558
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6559
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
6560
|
+
case "UnauthorizedClientException":
|
|
6561
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6562
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6563
|
+
default:
|
|
6564
|
+
const parsedBody = parsedOutput.body;
|
|
6565
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6566
|
+
output,
|
|
6567
|
+
parsedBody,
|
|
6568
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
6569
|
+
errorCode,
|
|
6570
|
+
});
|
|
6571
|
+
}
|
|
6572
|
+
};
|
|
6573
|
+
const deserializeAws_restJson1UpdateSipMediaApplicationCommand = async (output, context) => {
|
|
6574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6575
|
+
return deserializeAws_restJson1UpdateSipMediaApplicationCommandError(output, context);
|
|
6576
|
+
}
|
|
6577
|
+
const contents = map({
|
|
6578
|
+
$metadata: deserializeMetadata(output),
|
|
6579
|
+
});
|
|
6580
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6581
|
+
if (data.SipMediaApplication != null) {
|
|
6582
|
+
contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
|
|
6583
|
+
}
|
|
6584
|
+
return contents;
|
|
6585
|
+
};
|
|
6586
|
+
exports.deserializeAws_restJson1UpdateSipMediaApplicationCommand = deserializeAws_restJson1UpdateSipMediaApplicationCommand;
|
|
6587
|
+
const deserializeAws_restJson1UpdateSipMediaApplicationCommandError = async (output, context) => {
|
|
6588
|
+
const parsedOutput = {
|
|
6589
|
+
...output,
|
|
6590
|
+
body: await parseErrorBody(output.body, context),
|
|
6591
|
+
};
|
|
6592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6593
|
+
switch (errorCode) {
|
|
6594
|
+
case "BadRequestException":
|
|
6595
|
+
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6596
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6597
|
+
case "ConflictException":
|
|
6598
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6599
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
6600
|
+
case "ForbiddenException":
|
|
6601
|
+
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6602
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6603
|
+
case "NotFoundException":
|
|
6604
|
+
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6605
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6606
|
+
case "ServiceFailureException":
|
|
6607
|
+
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6608
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
6609
|
+
case "ServiceUnavailableException":
|
|
6610
|
+
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6611
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6612
|
+
case "ThrottledClientException":
|
|
6613
|
+
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6614
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
6615
|
+
case "UnauthorizedClientException":
|
|
6616
|
+
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6617
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
6618
|
+
default:
|
|
6619
|
+
const parsedBody = parsedOutput.body;
|
|
6620
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6621
|
+
output,
|
|
6622
|
+
parsedBody,
|
|
6623
|
+
exceptionCtor: ChimeSDKVoiceServiceException_1.ChimeSDKVoiceServiceException,
|
|
6624
|
+
errorCode,
|
|
6625
|
+
});
|
|
6626
|
+
}
|
|
6627
|
+
};
|
|
6628
|
+
const deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = async (output, context) => {
|
|
6629
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6630
|
+
return deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError(output, context);
|
|
6631
|
+
}
|
|
6632
|
+
const contents = map({
|
|
6633
|
+
$metadata: deserializeMetadata(output),
|
|
6634
|
+
});
|
|
6635
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6636
|
+
if (data.SipMediaApplicationCall != null) {
|
|
6637
|
+
contents.SipMediaApplicationCall = deserializeAws_restJson1SipMediaApplicationCall(data.SipMediaApplicationCall, context);
|
|
5151
6638
|
}
|
|
5152
6639
|
return contents;
|
|
5153
6640
|
};
|
|
5154
|
-
exports.
|
|
5155
|
-
const
|
|
6641
|
+
exports.deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = deserializeAws_restJson1UpdateSipMediaApplicationCallCommand;
|
|
6642
|
+
const deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = async (output, context) => {
|
|
5156
6643
|
const parsedOutput = {
|
|
5157
6644
|
...output,
|
|
5158
6645
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5168,6 +6655,9 @@ const deserializeAws_restJson1UpdateProxySessionCommandError = async (output, co
|
|
|
5168
6655
|
case "NotFoundException":
|
|
5169
6656
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5170
6657
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6658
|
+
case "ResourceLimitExceededException":
|
|
6659
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6660
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
5171
6661
|
case "ServiceFailureException":
|
|
5172
6662
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5173
6663
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -5190,21 +6680,21 @@ const deserializeAws_restJson1UpdateProxySessionCommandError = async (output, co
|
|
|
5190
6680
|
});
|
|
5191
6681
|
}
|
|
5192
6682
|
};
|
|
5193
|
-
const
|
|
5194
|
-
if (output.statusCode !==
|
|
5195
|
-
return
|
|
6683
|
+
const deserializeAws_restJson1UpdateSipRuleCommand = async (output, context) => {
|
|
6684
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6685
|
+
return deserializeAws_restJson1UpdateSipRuleCommandError(output, context);
|
|
5196
6686
|
}
|
|
5197
6687
|
const contents = map({
|
|
5198
6688
|
$metadata: deserializeMetadata(output),
|
|
5199
6689
|
});
|
|
5200
6690
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5201
|
-
if (data.
|
|
5202
|
-
contents.
|
|
6691
|
+
if (data.SipRule != null) {
|
|
6692
|
+
contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
|
|
5203
6693
|
}
|
|
5204
6694
|
return contents;
|
|
5205
6695
|
};
|
|
5206
|
-
exports.
|
|
5207
|
-
const
|
|
6696
|
+
exports.deserializeAws_restJson1UpdateSipRuleCommand = deserializeAws_restJson1UpdateSipRuleCommand;
|
|
6697
|
+
const deserializeAws_restJson1UpdateSipRuleCommandError = async (output, context) => {
|
|
5208
6698
|
const parsedOutput = {
|
|
5209
6699
|
...output,
|
|
5210
6700
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5223,6 +6713,9 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCommandError = async (out
|
|
|
5223
6713
|
case "NotFoundException":
|
|
5224
6714
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5225
6715
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6716
|
+
case "ResourceLimitExceededException":
|
|
6717
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6718
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
5226
6719
|
case "ServiceFailureException":
|
|
5227
6720
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5228
6721
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -5245,21 +6738,21 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCommandError = async (out
|
|
|
5245
6738
|
});
|
|
5246
6739
|
}
|
|
5247
6740
|
};
|
|
5248
|
-
const
|
|
5249
|
-
if (output.statusCode !==
|
|
5250
|
-
return
|
|
6741
|
+
const deserializeAws_restJson1UpdateVoiceConnectorCommand = async (output, context) => {
|
|
6742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6743
|
+
return deserializeAws_restJson1UpdateVoiceConnectorCommandError(output, context);
|
|
5251
6744
|
}
|
|
5252
6745
|
const contents = map({
|
|
5253
6746
|
$metadata: deserializeMetadata(output),
|
|
5254
6747
|
});
|
|
5255
6748
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5256
|
-
if (data.
|
|
5257
|
-
contents.
|
|
6749
|
+
if (data.VoiceConnector != null) {
|
|
6750
|
+
contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
|
|
5258
6751
|
}
|
|
5259
6752
|
return contents;
|
|
5260
6753
|
};
|
|
5261
|
-
exports.
|
|
5262
|
-
const
|
|
6754
|
+
exports.deserializeAws_restJson1UpdateVoiceConnectorCommand = deserializeAws_restJson1UpdateVoiceConnectorCommand;
|
|
6755
|
+
const deserializeAws_restJson1UpdateVoiceConnectorCommandError = async (output, context) => {
|
|
5263
6756
|
const parsedOutput = {
|
|
5264
6757
|
...output,
|
|
5265
6758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5275,9 +6768,6 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = async
|
|
|
5275
6768
|
case "NotFoundException":
|
|
5276
6769
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5277
6770
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5278
|
-
case "ResourceLimitExceededException":
|
|
5279
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
5280
|
-
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
5281
6771
|
case "ServiceFailureException":
|
|
5282
6772
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5283
6773
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -5300,21 +6790,21 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = async
|
|
|
5300
6790
|
});
|
|
5301
6791
|
}
|
|
5302
6792
|
};
|
|
5303
|
-
const
|
|
6793
|
+
const deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = async (output, context) => {
|
|
5304
6794
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5305
|
-
return
|
|
6795
|
+
return deserializeAws_restJson1UpdateVoiceConnectorGroupCommandError(output, context);
|
|
5306
6796
|
}
|
|
5307
6797
|
const contents = map({
|
|
5308
6798
|
$metadata: deserializeMetadata(output),
|
|
5309
6799
|
});
|
|
5310
6800
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5311
|
-
if (data.
|
|
5312
|
-
contents.
|
|
6801
|
+
if (data.VoiceConnectorGroup != null) {
|
|
6802
|
+
contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
|
|
5313
6803
|
}
|
|
5314
6804
|
return contents;
|
|
5315
6805
|
};
|
|
5316
|
-
exports.
|
|
5317
|
-
const
|
|
6806
|
+
exports.deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = deserializeAws_restJson1UpdateVoiceConnectorGroupCommand;
|
|
6807
|
+
const deserializeAws_restJson1UpdateVoiceConnectorGroupCommandError = async (output, context) => {
|
|
5318
6808
|
const parsedOutput = {
|
|
5319
6809
|
...output,
|
|
5320
6810
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5333,9 +6823,6 @@ const deserializeAws_restJson1UpdateSipRuleCommandError = async (output, context
|
|
|
5333
6823
|
case "NotFoundException":
|
|
5334
6824
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5335
6825
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5336
|
-
case "ResourceLimitExceededException":
|
|
5337
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
5338
|
-
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
5339
6826
|
case "ServiceFailureException":
|
|
5340
6827
|
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5341
6828
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -5358,33 +6845,42 @@ const deserializeAws_restJson1UpdateSipRuleCommandError = async (output, context
|
|
|
5358
6845
|
});
|
|
5359
6846
|
}
|
|
5360
6847
|
};
|
|
5361
|
-
const
|
|
6848
|
+
const deserializeAws_restJson1UpdateVoiceProfileCommand = async (output, context) => {
|
|
5362
6849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5363
|
-
return
|
|
6850
|
+
return deserializeAws_restJson1UpdateVoiceProfileCommandError(output, context);
|
|
5364
6851
|
}
|
|
5365
6852
|
const contents = map({
|
|
5366
6853
|
$metadata: deserializeMetadata(output),
|
|
5367
6854
|
});
|
|
5368
6855
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5369
|
-
if (data.
|
|
5370
|
-
contents.
|
|
6856
|
+
if (data.VoiceProfile != null) {
|
|
6857
|
+
contents.VoiceProfile = deserializeAws_restJson1VoiceProfile(data.VoiceProfile, context);
|
|
5371
6858
|
}
|
|
5372
6859
|
return contents;
|
|
5373
6860
|
};
|
|
5374
|
-
exports.
|
|
5375
|
-
const
|
|
6861
|
+
exports.deserializeAws_restJson1UpdateVoiceProfileCommand = deserializeAws_restJson1UpdateVoiceProfileCommand;
|
|
6862
|
+
const deserializeAws_restJson1UpdateVoiceProfileCommandError = async (output, context) => {
|
|
5376
6863
|
const parsedOutput = {
|
|
5377
6864
|
...output,
|
|
5378
6865
|
body: await parseErrorBody(output.body, context),
|
|
5379
6866
|
};
|
|
5380
6867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5381
6868
|
switch (errorCode) {
|
|
6869
|
+
case "AccessDeniedException":
|
|
6870
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6871
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5382
6872
|
case "BadRequestException":
|
|
5383
6873
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5384
6874
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6875
|
+
case "ConflictException":
|
|
6876
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6877
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5385
6878
|
case "ForbiddenException":
|
|
5386
6879
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5387
6880
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6881
|
+
case "GoneException":
|
|
6882
|
+
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
6883
|
+
throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
|
|
5388
6884
|
case "NotFoundException":
|
|
5389
6885
|
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5390
6886
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -5410,33 +6906,33 @@ const deserializeAws_restJson1UpdateVoiceConnectorCommandError = async (output,
|
|
|
5410
6906
|
});
|
|
5411
6907
|
}
|
|
5412
6908
|
};
|
|
5413
|
-
const
|
|
5414
|
-
if (output.statusCode !==
|
|
5415
|
-
return
|
|
6909
|
+
const deserializeAws_restJson1UpdateVoiceProfileDomainCommand = async (output, context) => {
|
|
6910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6911
|
+
return deserializeAws_restJson1UpdateVoiceProfileDomainCommandError(output, context);
|
|
5416
6912
|
}
|
|
5417
6913
|
const contents = map({
|
|
5418
6914
|
$metadata: deserializeMetadata(output),
|
|
5419
6915
|
});
|
|
5420
6916
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5421
|
-
if (data.
|
|
5422
|
-
contents.
|
|
6917
|
+
if (data.VoiceProfileDomain != null) {
|
|
6918
|
+
contents.VoiceProfileDomain = deserializeAws_restJson1VoiceProfileDomain(data.VoiceProfileDomain, context);
|
|
5423
6919
|
}
|
|
5424
6920
|
return contents;
|
|
5425
6921
|
};
|
|
5426
|
-
exports.
|
|
5427
|
-
const
|
|
6922
|
+
exports.deserializeAws_restJson1UpdateVoiceProfileDomainCommand = deserializeAws_restJson1UpdateVoiceProfileDomainCommand;
|
|
6923
|
+
const deserializeAws_restJson1UpdateVoiceProfileDomainCommandError = async (output, context) => {
|
|
5428
6924
|
const parsedOutput = {
|
|
5429
6925
|
...output,
|
|
5430
6926
|
body: await parseErrorBody(output.body, context),
|
|
5431
6927
|
};
|
|
5432
6928
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5433
6929
|
switch (errorCode) {
|
|
6930
|
+
case "AccessDeniedException":
|
|
6931
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6932
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5434
6933
|
case "BadRequestException":
|
|
5435
6934
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5436
6935
|
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5437
|
-
case "ConflictException":
|
|
5438
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
5439
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5440
6936
|
case "ForbiddenException":
|
|
5441
6937
|
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5442
6938
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
@@ -5587,6 +7083,21 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
5587
7083
|
});
|
|
5588
7084
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5589
7085
|
};
|
|
7086
|
+
const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, context) => {
|
|
7087
|
+
const contents = map({});
|
|
7088
|
+
const data = parsedOutput.body;
|
|
7089
|
+
if (data.Code != null) {
|
|
7090
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
7091
|
+
}
|
|
7092
|
+
if (data.Message != null) {
|
|
7093
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
7094
|
+
}
|
|
7095
|
+
const exception = new models_0_1.GoneException({
|
|
7096
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7097
|
+
...contents,
|
|
7098
|
+
});
|
|
7099
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
7100
|
+
};
|
|
5590
7101
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5591
7102
|
const contents = map({});
|
|
5592
7103
|
const data = parsedOutput.body;
|
|
@@ -5677,6 +7188,21 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
5677
7188
|
});
|
|
5678
7189
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5679
7190
|
};
|
|
7191
|
+
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
7192
|
+
const contents = map({});
|
|
7193
|
+
const data = parsedOutput.body;
|
|
7194
|
+
if (data.Code != null) {
|
|
7195
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
7196
|
+
}
|
|
7197
|
+
if (data.Message != null) {
|
|
7198
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
7199
|
+
}
|
|
7200
|
+
const exception = new models_0_1.UnprocessableEntityException({
|
|
7201
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7202
|
+
...contents,
|
|
7203
|
+
});
|
|
7204
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
7205
|
+
};
|
|
5680
7206
|
const serializeAws_restJson1AlexaSkillIdList = (input, context) => {
|
|
5681
7207
|
return input
|
|
5682
7208
|
.filter((e) => e != null)
|
|
@@ -5758,6 +7284,12 @@ const serializeAws_restJson1LoggingConfiguration = (input, context) => {
|
|
|
5758
7284
|
...(input.EnableSIPLogs != null && { EnableSIPLogs: input.EnableSIPLogs }),
|
|
5759
7285
|
};
|
|
5760
7286
|
};
|
|
7287
|
+
const serializeAws_restJson1MediaInsightsConfiguration = (input, context) => {
|
|
7288
|
+
return {
|
|
7289
|
+
...(input.ConfigurationArn != null && { ConfigurationArn: input.ConfigurationArn }),
|
|
7290
|
+
...(input.Disabled != null && { Disabled: input.Disabled }),
|
|
7291
|
+
};
|
|
7292
|
+
};
|
|
5761
7293
|
const serializeAws_restJson1NonEmptyStringList = (input, context) => {
|
|
5762
7294
|
return input
|
|
5763
7295
|
.filter((e) => e != null)
|
|
@@ -5801,6 +7333,11 @@ const serializeAws_restJson1SensitiveStringList = (input, context) => {
|
|
|
5801
7333
|
return entry;
|
|
5802
7334
|
});
|
|
5803
7335
|
};
|
|
7336
|
+
const serializeAws_restJson1ServerSideEncryptionConfiguration = (input, context) => {
|
|
7337
|
+
return {
|
|
7338
|
+
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
7339
|
+
};
|
|
7340
|
+
};
|
|
5804
7341
|
const serializeAws_restJson1SipHeadersMap = (input, context) => {
|
|
5805
7342
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5806
7343
|
if (value === null) {
|
|
@@ -5873,6 +7410,9 @@ const serializeAws_restJson1StreamingConfiguration = (input, context) => {
|
|
|
5873
7410
|
return {
|
|
5874
7411
|
...(input.DataRetentionInHours != null && { DataRetentionInHours: input.DataRetentionInHours }),
|
|
5875
7412
|
...(input.Disabled != null && { Disabled: input.Disabled }),
|
|
7413
|
+
...(input.MediaInsightsConfiguration != null && {
|
|
7414
|
+
MediaInsightsConfiguration: serializeAws_restJson1MediaInsightsConfiguration(input.MediaInsightsConfiguration, context),
|
|
7415
|
+
}),
|
|
5876
7416
|
...(input.StreamingNotificationTargets != null && {
|
|
5877
7417
|
StreamingNotificationTargets: serializeAws_restJson1StreamingNotificationTargetList(input.StreamingNotificationTargets, context),
|
|
5878
7418
|
}),
|
|
@@ -5897,6 +7437,26 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
5897
7437
|
return entry;
|
|
5898
7438
|
});
|
|
5899
7439
|
};
|
|
7440
|
+
const serializeAws_restJson1Tag = (input, context) => {
|
|
7441
|
+
return {
|
|
7442
|
+
...(input.Key != null && { Key: input.Key }),
|
|
7443
|
+
...(input.Value != null && { Value: input.Value }),
|
|
7444
|
+
};
|
|
7445
|
+
};
|
|
7446
|
+
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
7447
|
+
return input
|
|
7448
|
+
.filter((e) => e != null)
|
|
7449
|
+
.map((entry) => {
|
|
7450
|
+
return entry;
|
|
7451
|
+
});
|
|
7452
|
+
};
|
|
7453
|
+
const serializeAws_restJson1TagList = (input, context) => {
|
|
7454
|
+
return input
|
|
7455
|
+
.filter((e) => e != null)
|
|
7456
|
+
.map((entry) => {
|
|
7457
|
+
return serializeAws_restJson1Tag(entry, context);
|
|
7458
|
+
});
|
|
7459
|
+
};
|
|
5900
7460
|
const serializeAws_restJson1Termination = (input, context) => {
|
|
5901
7461
|
return {
|
|
5902
7462
|
...(input.CallingRegions != null && {
|
|
@@ -5967,6 +7527,13 @@ const deserializeAws_restJson1AlexaSkillIdList = (output, context) => {
|
|
|
5967
7527
|
});
|
|
5968
7528
|
return retVal;
|
|
5969
7529
|
};
|
|
7530
|
+
const deserializeAws_restJson1CallDetails = (output, context) => {
|
|
7531
|
+
return {
|
|
7532
|
+
IsCaller: (0, smithy_client_1.expectBoolean)(output.IsCaller),
|
|
7533
|
+
TransactionId: (0, smithy_client_1.expectString)(output.TransactionId),
|
|
7534
|
+
VoiceConnectorId: (0, smithy_client_1.expectString)(output.VoiceConnectorId),
|
|
7535
|
+
};
|
|
7536
|
+
};
|
|
5970
7537
|
const deserializeAws_restJson1CallingRegionList = (output, context) => {
|
|
5971
7538
|
const retVal = (output || [])
|
|
5972
7539
|
.filter((e) => e != null)
|
|
@@ -6059,6 +7626,12 @@ const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
|
6059
7626
|
EnableSIPLogs: (0, smithy_client_1.expectBoolean)(output.EnableSIPLogs),
|
|
6060
7627
|
};
|
|
6061
7628
|
};
|
|
7629
|
+
const deserializeAws_restJson1MediaInsightsConfiguration = (output, context) => {
|
|
7630
|
+
return {
|
|
7631
|
+
ConfigurationArn: (0, smithy_client_1.expectString)(output.ConfigurationArn),
|
|
7632
|
+
Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
|
|
7633
|
+
};
|
|
7634
|
+
};
|
|
6062
7635
|
const deserializeAws_restJson1OrderedPhoneNumber = (output, context) => {
|
|
6063
7636
|
return {
|
|
6064
7637
|
E164PhoneNumber: (0, smithy_client_1.expectString)(output.E164PhoneNumber),
|
|
@@ -6321,6 +7894,11 @@ const deserializeAws_restJson1SensitiveStringList = (output, context) => {
|
|
|
6321
7894
|
});
|
|
6322
7895
|
return retVal;
|
|
6323
7896
|
};
|
|
7897
|
+
const deserializeAws_restJson1ServerSideEncryptionConfiguration = (output, context) => {
|
|
7898
|
+
return {
|
|
7899
|
+
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
7900
|
+
};
|
|
7901
|
+
};
|
|
6324
7902
|
const deserializeAws_restJson1SipMediaApplication = (output, context) => {
|
|
6325
7903
|
return {
|
|
6326
7904
|
AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
|
|
@@ -6429,10 +8007,56 @@ const deserializeAws_restJson1SipRuleTargetApplicationList = (output, context) =
|
|
|
6429
8007
|
});
|
|
6430
8008
|
return retVal;
|
|
6431
8009
|
};
|
|
8010
|
+
const deserializeAws_restJson1SpeakerSearchDetails = (output, context) => {
|
|
8011
|
+
return {
|
|
8012
|
+
Results: output.Results != null ? deserializeAws_restJson1SpeakerSearchResultList(output.Results, context) : undefined,
|
|
8013
|
+
VoiceprintGenerationStatus: (0, smithy_client_1.expectString)(output.VoiceprintGenerationStatus),
|
|
8014
|
+
};
|
|
8015
|
+
};
|
|
8016
|
+
const deserializeAws_restJson1SpeakerSearchResult = (output, context) => {
|
|
8017
|
+
return {
|
|
8018
|
+
ConfidenceScore: (0, smithy_client_1.limitedParseFloat32)(output.ConfidenceScore),
|
|
8019
|
+
VoiceProfileId: (0, smithy_client_1.expectString)(output.VoiceProfileId),
|
|
8020
|
+
};
|
|
8021
|
+
};
|
|
8022
|
+
const deserializeAws_restJson1SpeakerSearchResultList = (output, context) => {
|
|
8023
|
+
const retVal = (output || [])
|
|
8024
|
+
.filter((e) => e != null)
|
|
8025
|
+
.map((entry) => {
|
|
8026
|
+
if (entry === null) {
|
|
8027
|
+
return null;
|
|
8028
|
+
}
|
|
8029
|
+
return deserializeAws_restJson1SpeakerSearchResult(entry, context);
|
|
8030
|
+
});
|
|
8031
|
+
return retVal;
|
|
8032
|
+
};
|
|
8033
|
+
const deserializeAws_restJson1SpeakerSearchTask = (output, context) => {
|
|
8034
|
+
return {
|
|
8035
|
+
CallDetails: output.CallDetails != null ? deserializeAws_restJson1CallDetails(output.CallDetails, context) : undefined,
|
|
8036
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8037
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8038
|
+
: undefined,
|
|
8039
|
+
SpeakerSearchDetails: output.SpeakerSearchDetails != null
|
|
8040
|
+
? deserializeAws_restJson1SpeakerSearchDetails(output.SpeakerSearchDetails, context)
|
|
8041
|
+
: undefined,
|
|
8042
|
+
SpeakerSearchTaskId: (0, smithy_client_1.expectString)(output.SpeakerSearchTaskId),
|
|
8043
|
+
SpeakerSearchTaskStatus: (0, smithy_client_1.expectString)(output.SpeakerSearchTaskStatus),
|
|
8044
|
+
StartedTimestamp: output.StartedTimestamp != null
|
|
8045
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.StartedTimestamp))
|
|
8046
|
+
: undefined,
|
|
8047
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
8048
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8049
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8050
|
+
: undefined,
|
|
8051
|
+
};
|
|
8052
|
+
};
|
|
6432
8053
|
const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
|
|
6433
8054
|
return {
|
|
6434
8055
|
DataRetentionInHours: (0, smithy_client_1.expectInt32)(output.DataRetentionInHours),
|
|
6435
8056
|
Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
|
|
8057
|
+
MediaInsightsConfiguration: output.MediaInsightsConfiguration != null
|
|
8058
|
+
? deserializeAws_restJson1MediaInsightsConfiguration(output.MediaInsightsConfiguration, context)
|
|
8059
|
+
: undefined,
|
|
6436
8060
|
StreamingNotificationTargets: output.StreamingNotificationTargets != null
|
|
6437
8061
|
? deserializeAws_restJson1StreamingNotificationTargetList(output.StreamingNotificationTargets, context)
|
|
6438
8062
|
: undefined,
|
|
@@ -6465,6 +8089,23 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
6465
8089
|
});
|
|
6466
8090
|
return retVal;
|
|
6467
8091
|
};
|
|
8092
|
+
const deserializeAws_restJson1Tag = (output, context) => {
|
|
8093
|
+
return {
|
|
8094
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
8095
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
8096
|
+
};
|
|
8097
|
+
};
|
|
8098
|
+
const deserializeAws_restJson1TagList = (output, context) => {
|
|
8099
|
+
const retVal = (output || [])
|
|
8100
|
+
.filter((e) => e != null)
|
|
8101
|
+
.map((entry) => {
|
|
8102
|
+
if (entry === null) {
|
|
8103
|
+
return null;
|
|
8104
|
+
}
|
|
8105
|
+
return deserializeAws_restJson1Tag(entry, context);
|
|
8106
|
+
});
|
|
8107
|
+
return retVal;
|
|
8108
|
+
};
|
|
6468
8109
|
const deserializeAws_restJson1Termination = (output, context) => {
|
|
6469
8110
|
return {
|
|
6470
8111
|
CallingRegions: output.CallingRegions != null
|
|
@@ -6569,6 +8210,108 @@ const deserializeAws_restJson1VoiceConnectorSettings = (output, context) => {
|
|
|
6569
8210
|
CdrBucket: (0, smithy_client_1.expectString)(output.CdrBucket),
|
|
6570
8211
|
};
|
|
6571
8212
|
};
|
|
8213
|
+
const deserializeAws_restJson1VoiceProfile = (output, context) => {
|
|
8214
|
+
return {
|
|
8215
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8216
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8217
|
+
: undefined,
|
|
8218
|
+
ExpirationTimestamp: output.ExpirationTimestamp != null
|
|
8219
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.ExpirationTimestamp))
|
|
8220
|
+
: undefined,
|
|
8221
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8222
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8223
|
+
: undefined,
|
|
8224
|
+
VoiceProfileArn: (0, smithy_client_1.expectString)(output.VoiceProfileArn),
|
|
8225
|
+
VoiceProfileDomainId: (0, smithy_client_1.expectString)(output.VoiceProfileDomainId),
|
|
8226
|
+
VoiceProfileId: (0, smithy_client_1.expectString)(output.VoiceProfileId),
|
|
8227
|
+
};
|
|
8228
|
+
};
|
|
8229
|
+
const deserializeAws_restJson1VoiceProfileDomain = (output, context) => {
|
|
8230
|
+
return {
|
|
8231
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8232
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8233
|
+
: undefined,
|
|
8234
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
8235
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
8236
|
+
ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration != null
|
|
8237
|
+
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.ServerSideEncryptionConfiguration, context)
|
|
8238
|
+
: undefined,
|
|
8239
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8240
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8241
|
+
: undefined,
|
|
8242
|
+
VoiceProfileDomainArn: (0, smithy_client_1.expectString)(output.VoiceProfileDomainArn),
|
|
8243
|
+
VoiceProfileDomainId: (0, smithy_client_1.expectString)(output.VoiceProfileDomainId),
|
|
8244
|
+
};
|
|
8245
|
+
};
|
|
8246
|
+
const deserializeAws_restJson1VoiceProfileDomainSummary = (output, context) => {
|
|
8247
|
+
return {
|
|
8248
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8249
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8250
|
+
: undefined,
|
|
8251
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
8252
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
8253
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8254
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8255
|
+
: undefined,
|
|
8256
|
+
VoiceProfileDomainArn: (0, smithy_client_1.expectString)(output.VoiceProfileDomainArn),
|
|
8257
|
+
VoiceProfileDomainId: (0, smithy_client_1.expectString)(output.VoiceProfileDomainId),
|
|
8258
|
+
};
|
|
8259
|
+
};
|
|
8260
|
+
const deserializeAws_restJson1VoiceProfileDomainSummaryList = (output, context) => {
|
|
8261
|
+
const retVal = (output || [])
|
|
8262
|
+
.filter((e) => e != null)
|
|
8263
|
+
.map((entry) => {
|
|
8264
|
+
if (entry === null) {
|
|
8265
|
+
return null;
|
|
8266
|
+
}
|
|
8267
|
+
return deserializeAws_restJson1VoiceProfileDomainSummary(entry, context);
|
|
8268
|
+
});
|
|
8269
|
+
return retVal;
|
|
8270
|
+
};
|
|
8271
|
+
const deserializeAws_restJson1VoiceProfileSummary = (output, context) => {
|
|
8272
|
+
return {
|
|
8273
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8274
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8275
|
+
: undefined,
|
|
8276
|
+
ExpirationTimestamp: output.ExpirationTimestamp != null
|
|
8277
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.ExpirationTimestamp))
|
|
8278
|
+
: undefined,
|
|
8279
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8280
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8281
|
+
: undefined,
|
|
8282
|
+
VoiceProfileArn: (0, smithy_client_1.expectString)(output.VoiceProfileArn),
|
|
8283
|
+
VoiceProfileDomainId: (0, smithy_client_1.expectString)(output.VoiceProfileDomainId),
|
|
8284
|
+
VoiceProfileId: (0, smithy_client_1.expectString)(output.VoiceProfileId),
|
|
8285
|
+
};
|
|
8286
|
+
};
|
|
8287
|
+
const deserializeAws_restJson1VoiceProfileSummaryList = (output, context) => {
|
|
8288
|
+
const retVal = (output || [])
|
|
8289
|
+
.filter((e) => e != null)
|
|
8290
|
+
.map((entry) => {
|
|
8291
|
+
if (entry === null) {
|
|
8292
|
+
return null;
|
|
8293
|
+
}
|
|
8294
|
+
return deserializeAws_restJson1VoiceProfileSummary(entry, context);
|
|
8295
|
+
});
|
|
8296
|
+
return retVal;
|
|
8297
|
+
};
|
|
8298
|
+
const deserializeAws_restJson1VoiceToneAnalysisTask = (output, context) => {
|
|
8299
|
+
return {
|
|
8300
|
+
CallDetails: output.CallDetails != null ? deserializeAws_restJson1CallDetails(output.CallDetails, context) : undefined,
|
|
8301
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
8302
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTimestamp))
|
|
8303
|
+
: undefined,
|
|
8304
|
+
StartedTimestamp: output.StartedTimestamp != null
|
|
8305
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.StartedTimestamp))
|
|
8306
|
+
: undefined,
|
|
8307
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
8308
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
8309
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTimestamp))
|
|
8310
|
+
: undefined,
|
|
8311
|
+
VoiceToneAnalysisTaskId: (0, smithy_client_1.expectString)(output.VoiceToneAnalysisTaskId),
|
|
8312
|
+
VoiceToneAnalysisTaskStatus: (0, smithy_client_1.expectString)(output.VoiceToneAnalysisTaskStatus),
|
|
8313
|
+
};
|
|
8314
|
+
};
|
|
6572
8315
|
const deserializeMetadata = (output) => ({
|
|
6573
8316
|
httpStatusCode: output.statusCode,
|
|
6574
8317
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|