@aws-sdk/client-connectcampaigns
Advanced tools
Comparing version 3.504.0 to 3.507.0
@@ -262,3 +262,3 @@ import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_CreateCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -277,42 +277,5 @@ const contents = map({ | ||
}; | ||
const de_CreateCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ServiceQuotaExceededException": | ||
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException": | ||
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_DeleteCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_DeleteCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -325,33 +288,5 @@ const contents = map({ | ||
}; | ||
const de_DeleteCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_DeleteConnectInstanceConfigCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_DeleteConnectInstanceConfigCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -364,39 +299,5 @@ const contents = map({ | ||
}; | ||
const de_DeleteConnectInstanceConfigCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidStateException": | ||
throw await de_InvalidStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_DeleteInstanceOnboardingJobCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_DeleteInstanceOnboardingJobCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -409,36 +310,5 @@ const contents = map({ | ||
}; | ||
const de_DeleteInstanceOnboardingJobCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidStateException": | ||
throw await de_InvalidStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_DescribeCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_DescribeCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -455,33 +325,5 @@ const contents = map({ | ||
}; | ||
const de_DescribeCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_GetCampaignStateCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_GetCampaignStateCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -498,36 +340,5 @@ const contents = map({ | ||
}; | ||
const de_GetCampaignStateCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_GetCampaignStateBatchCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_GetCampaignStateBatchCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -545,33 +356,5 @@ const contents = map({ | ||
}; | ||
const de_GetCampaignStateBatchCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_GetConnectInstanceConfigCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_GetConnectInstanceConfigCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -588,33 +371,5 @@ const contents = map({ | ||
}; | ||
const de_GetConnectInstanceConfigCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_GetInstanceOnboardingJobStatusCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_GetInstanceOnboardingJobStatusCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -631,33 +386,5 @@ const contents = map({ | ||
}; | ||
const de_GetInstanceOnboardingJobStatusCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_ListCampaignsCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListCampaignsCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -675,30 +402,5 @@ const contents = map({ | ||
}; | ||
const de_ListCampaignsCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_ListTagsForResourceCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListTagsForResourceCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -715,36 +417,5 @@ const contents = map({ | ||
}; | ||
const de_ListTagsForResourceCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_PauseCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_PauseCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -757,42 +428,5 @@ const contents = map({ | ||
}; | ||
const de_PauseCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_PutDialRequestBatchCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_PutDialRequestBatchCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -810,42 +444,5 @@ const contents = map({ | ||
}; | ||
const de_PutDialRequestBatchCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_ResumeCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ResumeCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -858,42 +455,5 @@ const contents = map({ | ||
}; | ||
const de_ResumeCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_StartCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_StartCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -906,42 +466,5 @@ const contents = map({ | ||
}; | ||
const de_StartCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_StartInstanceOnboardingJobCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_StartInstanceOnboardingJobCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -958,39 +481,5 @@ const contents = map({ | ||
}; | ||
const de_StartInstanceOnboardingJobCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_StopCampaignCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_StopCampaignCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1003,42 +492,5 @@ const contents = map({ | ||
}; | ||
const de_StopCampaignCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_TagResourceCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_TagResourceCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1051,36 +503,5 @@ const contents = map({ | ||
}; | ||
const de_TagResourceCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_UntagResourceCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_UntagResourceCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1093,36 +514,5 @@ const contents = map({ | ||
}; | ||
const de_UntagResourceCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ThrottlingExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_UpdateCampaignDialerConfigCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_UpdateCampaignDialerConfigCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1135,36 +525,5 @@ const contents = map({ | ||
}; | ||
const de_UpdateCampaignDialerConfigCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_UpdateCampaignNameCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_UpdateCampaignNameCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1177,36 +536,5 @@ const contents = map({ | ||
}; | ||
const de_UpdateCampaignNameCommandError = async (output, context) => { | ||
const parsedOutput = { | ||
...output, | ||
body: await parseErrorBody(output.body, context), | ||
}; | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
case "AccessDeniedException": | ||
case "com.amazonaws.connectcampaigns#AccessDeniedException": | ||
throw await de_AccessDeniedExceptionRes(parsedOutput, context); | ||
case "ConflictException": | ||
case "com.amazonaws.connectcampaigns#ConflictException": | ||
throw await de_ConflictExceptionRes(parsedOutput, context); | ||
case "InternalServerException": | ||
case "com.amazonaws.connectcampaigns#InternalServerException": | ||
throw await de_InternalServerExceptionRes(parsedOutput, context); | ||
case "ResourceNotFoundException": | ||
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ValidationException": | ||
case "com.amazonaws.connectcampaigns#ValidationException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
default: | ||
const parsedBody = parsedOutput.body; | ||
return throwDefaultError({ | ||
output, | ||
parsedBody, | ||
errorCode, | ||
}); | ||
} | ||
}; | ||
export const de_UpdateCampaignOutboundCallConfigCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_UpdateCampaignOutboundCallConfigCommandError(output, context); | ||
return de_CommandError(output, context); | ||
} | ||
@@ -1219,3 +547,3 @@ const contents = map({ | ||
}; | ||
const de_UpdateCampaignOutboundCallConfigCommandError = async (output, context) => { | ||
const de_CommandError = async (output, context) => { | ||
const parsedOutput = { | ||
@@ -1239,2 +567,5 @@ ...output, | ||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); | ||
case "ServiceQuotaExceededException": | ||
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException": | ||
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); | ||
case "ThrottlingException": | ||
@@ -1246,2 +577,8 @@ case "com.amazonaws.connectcampaigns#ThrottlingException": | ||
throw await de_ValidationExceptionRes(parsedOutput, context); | ||
case "InvalidStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidStateException": | ||
throw await de_InvalidStateExceptionRes(parsedOutput, context); | ||
case "InvalidCampaignStateException": | ||
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException": | ||
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context); | ||
default: | ||
@@ -1248,0 +585,0 @@ const parsedBody = parsedOutput.body; |
{ | ||
"name": "@aws-sdk/client-connectcampaigns", | ||
"description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native", | ||
"version": "3.504.0", | ||
"version": "3.507.0", | ||
"scripts": { | ||
@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/client-sts": "3.504.0", | ||
"@aws-sdk/client-sts": "3.507.0", | ||
"@aws-sdk/core": "3.496.0", | ||
"@aws-sdk/credential-provider-node": "3.504.0", | ||
"@aws-sdk/credential-provider-node": "3.507.0", | ||
"@aws-sdk/middleware-host-header": "3.502.0", | ||
@@ -28,0 +28,0 @@ "@aws-sdk/middleware-logger": "3.502.0", |
Sorry, the diff of this file is too big to display
435139
9706
+ Added@aws-sdk/client-sso@3.507.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.507.0(transitive)
+ Added@aws-sdk/client-sts@3.507.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.507.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.507.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.507.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.507.0(transitive)
+ Added@aws-sdk/token-providers@3.507.0(transitive)
- Removed@aws-sdk/client-sso@3.502.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.504.0(transitive)
- Removed@aws-sdk/client-sts@3.504.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.504.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.504.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.504.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.504.0(transitive)
- Removed@aws-sdk/token-providers@3.504.0(transitive)
Updated@aws-sdk/client-sts@3.507.0