cdk-amazon-chime-resources
Version:

958 lines • 394 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.se_GetVoiceProfileDomainCommand = exports.se_GetVoiceProfileCommand = exports.se_GetVoiceConnectorTerminationHealthCommand = exports.se_GetVoiceConnectorTerminationCommand = exports.se_GetVoiceConnectorStreamingConfigurationCommand = exports.se_GetVoiceConnectorProxyCommand = exports.se_GetVoiceConnectorOriginationCommand = exports.se_GetVoiceConnectorLoggingConfigurationCommand = exports.se_GetVoiceConnectorGroupCommand = exports.se_GetVoiceConnectorEmergencyCallingConfigurationCommand = exports.se_GetVoiceConnectorCommand = exports.se_GetSpeakerSearchTaskCommand = exports.se_GetSipRuleCommand = exports.se_GetSipMediaApplicationLoggingConfigurationCommand = exports.se_GetSipMediaApplicationAlexaSkillConfigurationCommand = exports.se_GetSipMediaApplicationCommand = exports.se_GetProxySessionCommand = exports.se_GetPhoneNumberSettingsCommand = exports.se_GetPhoneNumberOrderCommand = exports.se_GetPhoneNumberCommand = exports.se_GetGlobalSettingsCommand = exports.se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = exports.se_DisassociatePhoneNumbersFromVoiceConnectorCommand = exports.se_DeleteVoiceProfileDomainCommand = exports.se_DeleteVoiceProfileCommand = exports.se_DeleteVoiceConnectorTerminationCredentialsCommand = exports.se_DeleteVoiceConnectorTerminationCommand = exports.se_DeleteVoiceConnectorStreamingConfigurationCommand = exports.se_DeleteVoiceConnectorProxyCommand = exports.se_DeleteVoiceConnectorOriginationCommand = exports.se_DeleteVoiceConnectorGroupCommand = exports.se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = exports.se_DeleteVoiceConnectorCommand = exports.se_DeleteSipRuleCommand = exports.se_DeleteSipMediaApplicationCommand = exports.se_DeleteProxySessionCommand = exports.se_DeletePhoneNumberCommand = exports.se_CreateVoiceProfileDomainCommand = exports.se_CreateVoiceProfileCommand = exports.se_CreateVoiceConnectorGroupCommand = exports.se_CreateVoiceConnectorCommand = exports.se_CreateSipRuleCommand = exports.se_CreateSipMediaApplicationCallCommand = exports.se_CreateSipMediaApplicationCommand = exports.se_CreateProxySessionCommand = exports.se_CreatePhoneNumberOrderCommand = exports.se_BatchUpdatePhoneNumberCommand = exports.se_BatchDeletePhoneNumberCommand = exports.se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = exports.se_AssociatePhoneNumbersWithVoiceConnectorCommand = void 0;
exports.de_CreateSipMediaApplicationCommand = exports.de_CreateProxySessionCommand = exports.de_CreatePhoneNumberOrderCommand = exports.de_BatchUpdatePhoneNumberCommand = exports.de_BatchDeletePhoneNumberCommand = exports.de_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = exports.de_AssociatePhoneNumbersWithVoiceConnectorCommand = exports.se_ValidateE911AddressCommand = exports.se_UpdateVoiceProfileDomainCommand = exports.se_UpdateVoiceProfileCommand = exports.se_UpdateVoiceConnectorGroupCommand = exports.se_UpdateVoiceConnectorCommand = exports.se_UpdateSipRuleCommand = exports.se_UpdateSipMediaApplicationCallCommand = exports.se_UpdateSipMediaApplicationCommand = exports.se_UpdateProxySessionCommand = exports.se_UpdatePhoneNumberSettingsCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopVoiceToneAnalysisTaskCommand = exports.se_StopSpeakerSearchTaskCommand = exports.se_StartVoiceToneAnalysisTaskCommand = exports.se_StartSpeakerSearchTaskCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_RestorePhoneNumberCommand = exports.se_PutVoiceConnectorTerminationCredentialsCommand = exports.se_PutVoiceConnectorTerminationCommand = exports.se_PutVoiceConnectorStreamingConfigurationCommand = exports.se_PutVoiceConnectorProxyCommand = exports.se_PutVoiceConnectorOriginationCommand = exports.se_PutVoiceConnectorLoggingConfigurationCommand = exports.se_PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.se_PutSipMediaApplicationLoggingConfigurationCommand = exports.se_PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.se_ListVoiceProfilesCommand = exports.se_ListVoiceProfileDomainsCommand = exports.se_ListVoiceConnectorTerminationCredentialsCommand = exports.se_ListVoiceConnectorsCommand = exports.se_ListVoiceConnectorGroupsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSupportedPhoneNumberCountriesCommand = exports.se_ListSipRulesCommand = exports.se_ListSipMediaApplicationsCommand = exports.se_ListProxySessionsCommand = exports.se_ListPhoneNumbersCommand = exports.se_ListPhoneNumberOrdersCommand = exports.se_ListAvailableVoiceConnectorRegionsCommand = exports.se_GetVoiceToneAnalysisTaskCommand = void 0;
exports.de_ListSipRulesCommand = exports.de_ListSipMediaApplicationsCommand = exports.de_ListProxySessionsCommand = exports.de_ListPhoneNumbersCommand = exports.de_ListPhoneNumberOrdersCommand = exports.de_ListAvailableVoiceConnectorRegionsCommand = exports.de_GetVoiceToneAnalysisTaskCommand = exports.de_GetVoiceProfileDomainCommand = exports.de_GetVoiceProfileCommand = exports.de_GetVoiceConnectorTerminationHealthCommand = exports.de_GetVoiceConnectorTerminationCommand = exports.de_GetVoiceConnectorStreamingConfigurationCommand = exports.de_GetVoiceConnectorProxyCommand = exports.de_GetVoiceConnectorOriginationCommand = exports.de_GetVoiceConnectorLoggingConfigurationCommand = exports.de_GetVoiceConnectorGroupCommand = exports.de_GetVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_GetVoiceConnectorCommand = exports.de_GetSpeakerSearchTaskCommand = exports.de_GetSipRuleCommand = exports.de_GetSipMediaApplicationLoggingConfigurationCommand = exports.de_GetSipMediaApplicationAlexaSkillConfigurationCommand = exports.de_GetSipMediaApplicationCommand = exports.de_GetProxySessionCommand = exports.de_GetPhoneNumberSettingsCommand = exports.de_GetPhoneNumberOrderCommand = exports.de_GetPhoneNumberCommand = exports.de_GetGlobalSettingsCommand = exports.de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = exports.de_DisassociatePhoneNumbersFromVoiceConnectorCommand = exports.de_DeleteVoiceProfileDomainCommand = exports.de_DeleteVoiceProfileCommand = exports.de_DeleteVoiceConnectorTerminationCredentialsCommand = exports.de_DeleteVoiceConnectorTerminationCommand = exports.de_DeleteVoiceConnectorStreamingConfigurationCommand = exports.de_DeleteVoiceConnectorProxyCommand = exports.de_DeleteVoiceConnectorOriginationCommand = exports.de_DeleteVoiceConnectorGroupCommand = exports.de_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_DeleteVoiceConnectorCommand = exports.de_DeleteSipRuleCommand = exports.de_DeleteSipMediaApplicationCommand = exports.de_DeleteProxySessionCommand = exports.de_DeletePhoneNumberCommand = exports.de_CreateVoiceProfileDomainCommand = exports.de_CreateVoiceProfileCommand = exports.de_CreateVoiceConnectorGroupCommand = exports.de_CreateVoiceConnectorCommand = exports.de_CreateSipRuleCommand = exports.de_CreateSipMediaApplicationCallCommand = void 0;
exports.de_ValidateE911AddressCommand = exports.de_UpdateVoiceProfileDomainCommand = exports.de_UpdateVoiceProfileCommand = exports.de_UpdateVoiceConnectorGroupCommand = exports.de_UpdateVoiceConnectorCommand = exports.de_UpdateSipRuleCommand = exports.de_UpdateSipMediaApplicationCallCommand = exports.de_UpdateSipMediaApplicationCommand = exports.de_UpdateProxySessionCommand = exports.de_UpdatePhoneNumberSettingsCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopVoiceToneAnalysisTaskCommand = exports.de_StopSpeakerSearchTaskCommand = exports.de_StartVoiceToneAnalysisTaskCommand = exports.de_StartSpeakerSearchTaskCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_RestorePhoneNumberCommand = exports.de_PutVoiceConnectorTerminationCredentialsCommand = exports.de_PutVoiceConnectorTerminationCommand = exports.de_PutVoiceConnectorStreamingConfigurationCommand = exports.de_PutVoiceConnectorProxyCommand = exports.de_PutVoiceConnectorOriginationCommand = exports.de_PutVoiceConnectorLoggingConfigurationCommand = exports.de_PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_PutSipMediaApplicationLoggingConfigurationCommand = exports.de_PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.de_ListVoiceProfilesCommand = exports.de_ListVoiceProfileDomainsCommand = exports.de_ListVoiceConnectorTerminationCredentialsCommand = exports.de_ListVoiceConnectorsCommand = exports.de_ListVoiceConnectorGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSupportedPhoneNumberCountriesCommand = void 0;
const protocol_http_1 = require("@aws-sdk/protocol-http");
const smithy_client_1 = require("@aws-sdk/smithy-client");
const ChimeSDKVoiceServiceException_1 = require("../models/ChimeSDKVoiceServiceException");
const models_0_1 = require("../models/models_0");
const se_AssociatePhoneNumbersWithVoiceConnectorCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
const query = map({
operation: [, "associate-phone-numbers"],
});
let body;
body = JSON.stringify({
...(input.E164PhoneNumbers != null && {
E164PhoneNumbers: se_E164PhoneNumberList(input.E164PhoneNumbers, context),
}),
...(input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_AssociatePhoneNumbersWithVoiceConnectorCommand = se_AssociatePhoneNumbersWithVoiceConnectorCommand;
const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connector-groups/{VoiceConnectorGroupId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
const query = map({
operation: [, "associate-phone-numbers"],
});
let body;
body = JSON.stringify({
...(input.E164PhoneNumbers != null && {
E164PhoneNumbers: se_E164PhoneNumberList(input.E164PhoneNumbers, context),
}),
...(input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand;
const se_BatchDeletePhoneNumberCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers";
const query = map({
operation: [, "batch-delete"],
});
let body;
body = JSON.stringify({
...(input.PhoneNumberIds != null && { PhoneNumberIds: se_NonEmptyStringList(input.PhoneNumberIds, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_BatchDeletePhoneNumberCommand = se_BatchDeletePhoneNumberCommand;
const se_BatchUpdatePhoneNumberCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers";
const query = map({
operation: [, "batch-update"],
});
let body;
body = JSON.stringify({
...(input.UpdatePhoneNumberRequestItems != null && {
UpdatePhoneNumberRequestItems: se_UpdatePhoneNumberRequestItemList(input.UpdatePhoneNumberRequestItems, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_BatchUpdatePhoneNumberCommand = se_BatchUpdatePhoneNumberCommand;
const se_CreatePhoneNumberOrderCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders";
let body;
body = JSON.stringify({
...(input.E164PhoneNumbers != null && {
E164PhoneNumbers: se_E164PhoneNumberList(input.E164PhoneNumbers, context),
}),
...(input.ProductType != null && { ProductType: input.ProductType }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreatePhoneNumberOrderCommand = se_CreatePhoneNumberOrderCommand;
const se_CreateProxySessionCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/proxy-sessions";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
body = JSON.stringify({
...(input.Capabilities != null && { Capabilities: se_CapabilityList(input.Capabilities, context) }),
...(input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes }),
...(input.GeoMatchLevel != null && { GeoMatchLevel: input.GeoMatchLevel }),
...(input.GeoMatchParams != null && { GeoMatchParams: se_GeoMatchParams(input.GeoMatchParams, context) }),
...(input.Name != null && { Name: input.Name }),
...(input.NumberSelectionBehavior != null && { NumberSelectionBehavior: input.NumberSelectionBehavior }),
...(input.ParticipantPhoneNumbers != null && {
ParticipantPhoneNumbers: se_ParticipantPhoneNumberList(input.ParticipantPhoneNumbers, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateProxySessionCommand = se_CreateProxySessionCommand;
const se_CreateSipMediaApplicationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications";
let body;
body = JSON.stringify({
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
...(input.Endpoints != null && { Endpoints: se_SipMediaApplicationEndpointList(input.Endpoints, context) }),
...(input.Name != null && { Name: input.Name }),
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateSipMediaApplicationCommand = se_CreateSipMediaApplicationCommand;
const se_CreateSipMediaApplicationCallCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/sip-media-applications/{SipMediaApplicationId}/calls";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
let body;
body = JSON.stringify({
...(input.ArgumentsMap != null && { ArgumentsMap: se_SMACreateCallArgumentsMap(input.ArgumentsMap, context) }),
...(input.FromPhoneNumber != null && { FromPhoneNumber: input.FromPhoneNumber }),
...(input.SipHeaders != null && { SipHeaders: se_SipHeadersMap(input.SipHeaders, context) }),
...(input.ToPhoneNumber != null && { ToPhoneNumber: input.ToPhoneNumber }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateSipMediaApplicationCallCommand = se_CreateSipMediaApplicationCallCommand;
const se_CreateSipRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules";
let body;
body = JSON.stringify({
...(input.Disabled != null && { Disabled: input.Disabled }),
...(input.Name != null && { Name: input.Name }),
...(input.TargetApplications != null && {
TargetApplications: se_SipRuleTargetApplicationList(input.TargetApplications, context),
}),
...(input.TriggerType != null && { TriggerType: input.TriggerType }),
...(input.TriggerValue != null && { TriggerValue: input.TriggerValue }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateSipRuleCommand = se_CreateSipRuleCommand;
const se_CreateVoiceConnectorCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors";
let body;
body = JSON.stringify({
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
...(input.Name != null && { Name: input.Name }),
...(input.RequireEncryption != null && { RequireEncryption: input.RequireEncryption }),
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateVoiceConnectorCommand = se_CreateVoiceConnectorCommand;
const se_CreateVoiceConnectorGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups";
let body;
body = JSON.stringify({
...(input.Name != null && { Name: input.Name }),
...(input.VoiceConnectorItems != null && {
VoiceConnectorItems: se_VoiceConnectorItemList(input.VoiceConnectorItems, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateVoiceConnectorGroupCommand = se_CreateVoiceConnectorGroupCommand;
const se_CreateVoiceProfileCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles";
let body;
body = JSON.stringify({
...(input.SpeakerSearchTaskId != null && { SpeakerSearchTaskId: input.SpeakerSearchTaskId }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateVoiceProfileCommand = se_CreateVoiceProfileCommand;
const se_CreateVoiceProfileDomainCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains";
let body;
body = JSON.stringify({
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
...(input.Description != null && { Description: input.Description }),
...(input.Name != null && { Name: input.Name }),
...(input.ServerSideEncryptionConfiguration != null && {
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
}),
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
};
exports.se_CreateVoiceProfileDomainCommand = se_CreateVoiceProfileDomainCommand;
const se_DeletePhoneNumberCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeletePhoneNumberCommand = se_DeletePhoneNumberCommand;
const se_DeleteProxySessionCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteProxySessionCommand = se_DeleteProxySessionCommand;
const se_DeleteSipMediaApplicationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/sip-media-applications/{SipMediaApplicationId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteSipMediaApplicationCommand = se_DeleteSipMediaApplicationCommand;
const se_DeleteSipRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteSipRuleCommand = se_DeleteSipRuleCommand;
const se_DeleteVoiceConnectorCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorCommand = se_DeleteVoiceConnectorCommand;
const se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand;
const se_DeleteVoiceConnectorGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connector-groups/{VoiceConnectorGroupId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorGroupCommand = se_DeleteVoiceConnectorGroupCommand;
const se_DeleteVoiceConnectorOriginationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/origination";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorOriginationCommand = se_DeleteVoiceConnectorOriginationCommand;
const se_DeleteVoiceConnectorProxyCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorProxyCommand = se_DeleteVoiceConnectorProxyCommand;
const se_DeleteVoiceConnectorStreamingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/streaming-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorStreamingConfigurationCommand = se_DeleteVoiceConnectorStreamingConfigurationCommand;
const se_DeleteVoiceConnectorTerminationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/termination";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceConnectorTerminationCommand = se_DeleteVoiceConnectorTerminationCommand;
const se_DeleteVoiceConnectorTerminationCredentialsCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/termination/credentials";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
const query = map({
operation: [, "delete"],
});
let body;
body = JSON.stringify({
...(input.Usernames != null && { Usernames: se_SensitiveStringList(input.Usernames, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_DeleteVoiceConnectorTerminationCredentialsCommand = se_DeleteVoiceConnectorTerminationCredentialsCommand;
const se_DeleteVoiceProfileCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceProfileCommand = se_DeleteVoiceProfileCommand;
const se_DeleteVoiceProfileDomainCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-profile-domains/{VoiceProfileDomainId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.se_DeleteVoiceProfileDomainCommand = se_DeleteVoiceProfileDomainCommand;
const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
const query = map({
operation: [, "disassociate-phone-numbers"],
});
let body;
body = JSON.stringify({
...(input.E164PhoneNumbers != null && {
E164PhoneNumbers: se_E164PhoneNumberList(input.E164PhoneNumbers, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_DisassociatePhoneNumbersFromVoiceConnectorCommand = se_DisassociatePhoneNumbersFromVoiceConnectorCommand;
const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connector-groups/{VoiceConnectorGroupId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
const query = map({
operation: [, "disassociate-phone-numbers"],
});
let body;
body = JSON.stringify({
...(input.E164PhoneNumbers != null && {
E164PhoneNumbers: se_E164PhoneNumberList(input.E164PhoneNumbers, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand;
const se_GetGlobalSettingsCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
let body;
body = "";
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetGlobalSettingsCommand = se_GetGlobalSettingsCommand;
const se_GetPhoneNumberCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetPhoneNumberCommand = se_GetPhoneNumberCommand;
const se_GetPhoneNumberOrderCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders/{PhoneNumberOrderId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberOrderId", () => input.PhoneNumberOrderId, "{PhoneNumberOrderId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetPhoneNumberOrderCommand = se_GetPhoneNumberOrderCommand;
const se_GetPhoneNumberSettingsCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number";
let body;
body = "";
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetPhoneNumberSettingsCommand = se_GetPhoneNumberSettingsCommand;
const se_GetProxySessionCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetProxySessionCommand = se_GetProxySessionCommand;
const se_GetSipMediaApplicationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/sip-media-applications/{SipMediaApplicationId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetSipMediaApplicationCommand = se_GetSipMediaApplicationCommand;
const se_GetSipMediaApplicationAlexaSkillConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetSipMediaApplicationAlexaSkillConfigurationCommand = se_GetSipMediaApplicationAlexaSkillConfigurationCommand;
const se_GetSipMediaApplicationLoggingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/sip-media-applications/{SipMediaApplicationId}/logging-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetSipMediaApplicationLoggingConfigurationCommand = se_GetSipMediaApplicationLoggingConfigurationCommand;
const se_GetSipRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetSipRuleCommand = se_GetSipRuleCommand;
const se_GetSpeakerSearchTaskCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetSpeakerSearchTaskCommand = se_GetSpeakerSearchTaskCommand;
const se_GetVoiceConnectorCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorCommand = se_GetVoiceConnectorCommand;
const se_GetVoiceConnectorEmergencyCallingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorEmergencyCallingConfigurationCommand = se_GetVoiceConnectorEmergencyCallingConfigurationCommand;
const se_GetVoiceConnectorGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connector-groups/{VoiceConnectorGroupId}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorGroupCommand = se_GetVoiceConnectorGroupCommand;
const se_GetVoiceConnectorLoggingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/logging-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorLoggingConfigurationCommand = se_GetVoiceConnectorLoggingConfigurationCommand;
const se_GetVoiceConnectorOriginationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/origination";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorOriginationCommand = se_GetVoiceConnectorOriginationCommand;
const se_GetVoiceConnectorProxyCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
};
exports.se_GetVoiceConnectorProxyCommand = se_GetVoiceConnectorProxyCommand;
const se_GetVoiceConnectorStreamingConfigurationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/voice-connectors/{VoiceConnectorId}/streaming-configuration";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input,