Skip to content

Commit e924bbe

Browse files
author
awstools
committed
feat(client-connectcampaigns): Updated exceptions for Amazon Connect Outbound Campaign api's.
1 parent 1cc2947 commit e924bbe

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,9 @@ const deserializeAws_restJson1GetCampaignStateCommandError = async (
963963
case "ThrottlingException":
964964
case "com.amazonaws.connectcampaigns#ThrottlingException":
965965
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
966+
case "ValidationException":
967+
case "com.amazonaws.connectcampaigns#ValidationException":
968+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
966969
default:
967970
const parsedBody = parsedOutput.body;
968971
throwDefaultError({
@@ -1278,6 +1281,9 @@ const deserializeAws_restJson1PauseCampaignCommandError = async (
12781281
case "ThrottlingException":
12791282
case "com.amazonaws.connectcampaigns#ThrottlingException":
12801283
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1284+
case "ValidationException":
1285+
case "com.amazonaws.connectcampaigns#ValidationException":
1286+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
12811287
default:
12821288
const parsedBody = parsedOutput.body;
12831289
throwDefaultError({
@@ -1393,6 +1399,9 @@ const deserializeAws_restJson1ResumeCampaignCommandError = async (
13931399
case "ThrottlingException":
13941400
case "com.amazonaws.connectcampaigns#ThrottlingException":
13951401
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1402+
case "ValidationException":
1403+
case "com.amazonaws.connectcampaigns#ValidationException":
1404+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
13961405
default:
13971406
const parsedBody = parsedOutput.body;
13981407
throwDefaultError({
@@ -1446,6 +1455,9 @@ const deserializeAws_restJson1StartCampaignCommandError = async (
14461455
case "ThrottlingException":
14471456
case "com.amazonaws.connectcampaigns#ThrottlingException":
14481457
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1458+
case "ValidationException":
1459+
case "com.amazonaws.connectcampaigns#ValidationException":
1460+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
14491461
default:
14501462
const parsedBody = parsedOutput.body;
14511463
throwDefaultError({
@@ -1558,6 +1570,9 @@ const deserializeAws_restJson1StopCampaignCommandError = async (
15581570
case "ThrottlingException":
15591571
case "com.amazonaws.connectcampaigns#ThrottlingException":
15601572
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1573+
case "ValidationException":
1574+
case "com.amazonaws.connectcampaigns#ValidationException":
1575+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
15611576
default:
15621577
const parsedBody = parsedOutput.body;
15631578
throwDefaultError({

codegen/sdk-codegen/aws-models/connectcampaigns.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,9 @@
910910
},
911911
{
912912
"target": "com.amazonaws.connectcampaigns#ThrottlingException"
913+
},
914+
{
915+
"target": "com.amazonaws.connectcampaigns#ValidationException"
913916
}
914917
],
915918
"traits": {
@@ -1554,6 +1557,9 @@
15541557
},
15551558
{
15561559
"target": "com.amazonaws.connectcampaigns#ThrottlingException"
1560+
},
1561+
{
1562+
"target": "com.amazonaws.connectcampaigns#ValidationException"
15571563
}
15581564
],
15591565
"traits": {
@@ -1739,6 +1745,9 @@
17391745
},
17401746
{
17411747
"target": "com.amazonaws.connectcampaigns#ThrottlingException"
1748+
},
1749+
{
1750+
"target": "com.amazonaws.connectcampaigns#ValidationException"
17421751
}
17431752
],
17441753
"traits": {
@@ -1830,6 +1839,9 @@
18301839
},
18311840
{
18321841
"target": "com.amazonaws.connectcampaigns#ThrottlingException"
1842+
},
1843+
{
1844+
"target": "com.amazonaws.connectcampaigns#ValidationException"
18331845
}
18341846
],
18351847
"traits": {
@@ -1950,6 +1962,9 @@
19501962
},
19511963
{
19521964
"target": "com.amazonaws.connectcampaigns#ThrottlingException"
1965+
},
1966+
{
1967+
"target": "com.amazonaws.connectcampaigns#ValidationException"
19531968
}
19541969
],
19551970
"traits": {

0 commit comments

Comments
 (0)