@aws-sdk/client-route53-recovery-cluster 3.303.0 → 3.309.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/dist-cjs/commands/GetRoutingControlStateCommand.js +2 -2
- package/dist-cjs/commands/ListRoutingControlsCommand.js +2 -2
- package/dist-cjs/commands/UpdateRoutingControlStateCommand.js +2 -2
- package/dist-cjs/commands/UpdateRoutingControlStatesCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +107 -109
- package/dist-es/commands/GetRoutingControlStateCommand.js +3 -3
- package/dist-es/commands/ListRoutingControlsCommand.js +3 -3
- package/dist-es/commands/UpdateRoutingControlStateCommand.js +3 -3
- package/dist-es/commands/UpdateRoutingControlStatesCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +98 -100
- package/dist-types/protocols/Aws_json1_0.d.ts +32 -8
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +8 -8
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_GetRoutingControlStateCommand, se_GetRoutingControlStateCommand } from "../protocols/Aws_json1_0";
|
|
5
5
|
export class GetRoutingControlStateCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class GetRoutingControlStateCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_GetRoutingControlStateCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_GetRoutingControlStateCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_ListRoutingControlsCommand, se_ListRoutingControlsCommand } from "../protocols/Aws_json1_0";
|
|
5
5
|
export class ListRoutingControlsCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class ListRoutingControlsCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_ListRoutingControlsCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_ListRoutingControlsCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_UpdateRoutingControlStateCommand, se_UpdateRoutingControlStateCommand } from "../protocols/Aws_json1_0";
|
|
5
5
|
export class UpdateRoutingControlStateCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class UpdateRoutingControlStateCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_UpdateRoutingControlStateCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_UpdateRoutingControlStateCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_UpdateRoutingControlStatesCommand, se_UpdateRoutingControlStatesCommand } from "../protocols/Aws_json1_0";
|
|
5
5
|
export class UpdateRoutingControlStatesCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class UpdateRoutingControlStatesCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_UpdateRoutingControlStatesCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_UpdateRoutingControlStatesCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,56 +2,56 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, EndpointTemporarilyUnavailableException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { Route53RecoveryClusterServiceException as __BaseException } from "../models/Route53RecoveryClusterServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_GetRoutingControlStateCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.0",
|
|
8
8
|
"x-amz-target": "ToggleCustomerAPI.GetRoutingControlState",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_GetRoutingControlStateRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_ListRoutingControlsCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.0",
|
|
17
17
|
"x-amz-target": "ToggleCustomerAPI.ListRoutingControls",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_ListRoutingControlsRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_UpdateRoutingControlStateCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.0",
|
|
26
26
|
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlState",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_UpdateRoutingControlStateRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_UpdateRoutingControlStatesCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.0",
|
|
35
35
|
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlStates",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_UpdateRoutingControlStatesRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const de_GetRoutingControlStateCommand = async (output, context) => {
|
|
42
42
|
if (output.statusCode >= 300) {
|
|
43
|
-
return
|
|
43
|
+
return de_GetRoutingControlStateCommandError(output, context);
|
|
44
44
|
}
|
|
45
45
|
const data = await parseBody(output.body, context);
|
|
46
46
|
let contents = {};
|
|
47
|
-
contents =
|
|
47
|
+
contents = de_GetRoutingControlStateResponse(data, context);
|
|
48
48
|
const response = {
|
|
49
49
|
$metadata: deserializeMetadata(output),
|
|
50
50
|
...contents,
|
|
51
51
|
};
|
|
52
52
|
return Promise.resolve(response);
|
|
53
53
|
};
|
|
54
|
-
const
|
|
54
|
+
const de_GetRoutingControlStateCommandError = async (output, context) => {
|
|
55
55
|
const parsedOutput = {
|
|
56
56
|
...output,
|
|
57
57
|
body: await parseErrorBody(output.body, context),
|
|
@@ -60,22 +60,22 @@ const deserializeAws_json1_0GetRoutingControlStateCommandError = async (output,
|
|
|
60
60
|
switch (errorCode) {
|
|
61
61
|
case "AccessDeniedException":
|
|
62
62
|
case "com.amazonaws.route53recoverycluster#AccessDeniedException":
|
|
63
|
-
throw await
|
|
63
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
64
64
|
case "EndpointTemporarilyUnavailableException":
|
|
65
65
|
case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
|
|
66
|
-
throw await
|
|
66
|
+
throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
67
67
|
case "InternalServerException":
|
|
68
68
|
case "com.amazonaws.route53recoverycluster#InternalServerException":
|
|
69
|
-
throw await
|
|
69
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
70
70
|
case "ResourceNotFoundException":
|
|
71
71
|
case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
|
|
72
|
-
throw await
|
|
72
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
73
73
|
case "ThrottlingException":
|
|
74
74
|
case "com.amazonaws.route53recoverycluster#ThrottlingException":
|
|
75
|
-
throw await
|
|
75
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
76
76
|
case "ValidationException":
|
|
77
77
|
case "com.amazonaws.route53recoverycluster#ValidationException":
|
|
78
|
-
throw await
|
|
78
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
79
79
|
default:
|
|
80
80
|
const parsedBody = parsedOutput.body;
|
|
81
81
|
throwDefaultError({
|
|
@@ -86,20 +86,20 @@ const deserializeAws_json1_0GetRoutingControlStateCommandError = async (output,
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
export const
|
|
89
|
+
export const de_ListRoutingControlsCommand = async (output, context) => {
|
|
90
90
|
if (output.statusCode >= 300) {
|
|
91
|
-
return
|
|
91
|
+
return de_ListRoutingControlsCommandError(output, context);
|
|
92
92
|
}
|
|
93
93
|
const data = await parseBody(output.body, context);
|
|
94
94
|
let contents = {};
|
|
95
|
-
contents =
|
|
95
|
+
contents = de_ListRoutingControlsResponse(data, context);
|
|
96
96
|
const response = {
|
|
97
97
|
$metadata: deserializeMetadata(output),
|
|
98
98
|
...contents,
|
|
99
99
|
};
|
|
100
100
|
return Promise.resolve(response);
|
|
101
101
|
};
|
|
102
|
-
const
|
|
102
|
+
const de_ListRoutingControlsCommandError = async (output, context) => {
|
|
103
103
|
const parsedOutput = {
|
|
104
104
|
...output,
|
|
105
105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -108,22 +108,22 @@ const deserializeAws_json1_0ListRoutingControlsCommandError = async (output, con
|
|
|
108
108
|
switch (errorCode) {
|
|
109
109
|
case "AccessDeniedException":
|
|
110
110
|
case "com.amazonaws.route53recoverycluster#AccessDeniedException":
|
|
111
|
-
throw await
|
|
111
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
112
112
|
case "EndpointTemporarilyUnavailableException":
|
|
113
113
|
case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
|
|
114
|
-
throw await
|
|
114
|
+
throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
115
115
|
case "InternalServerException":
|
|
116
116
|
case "com.amazonaws.route53recoverycluster#InternalServerException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
118
118
|
case "ResourceNotFoundException":
|
|
119
119
|
case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
121
121
|
case "ThrottlingException":
|
|
122
122
|
case "com.amazonaws.route53recoverycluster#ThrottlingException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
124
124
|
case "ValidationException":
|
|
125
125
|
case "com.amazonaws.route53recoverycluster#ValidationException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
127
127
|
default:
|
|
128
128
|
const parsedBody = parsedOutput.body;
|
|
129
129
|
throwDefaultError({
|
|
@@ -134,20 +134,20 @@ const deserializeAws_json1_0ListRoutingControlsCommandError = async (output, con
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
export const
|
|
137
|
+
export const de_UpdateRoutingControlStateCommand = async (output, context) => {
|
|
138
138
|
if (output.statusCode >= 300) {
|
|
139
|
-
return
|
|
139
|
+
return de_UpdateRoutingControlStateCommandError(output, context);
|
|
140
140
|
}
|
|
141
141
|
const data = await parseBody(output.body, context);
|
|
142
142
|
let contents = {};
|
|
143
|
-
contents =
|
|
143
|
+
contents = de_UpdateRoutingControlStateResponse(data, context);
|
|
144
144
|
const response = {
|
|
145
145
|
$metadata: deserializeMetadata(output),
|
|
146
146
|
...contents,
|
|
147
147
|
};
|
|
148
148
|
return Promise.resolve(response);
|
|
149
149
|
};
|
|
150
|
-
const
|
|
150
|
+
const de_UpdateRoutingControlStateCommandError = async (output, context) => {
|
|
151
151
|
const parsedOutput = {
|
|
152
152
|
...output,
|
|
153
153
|
body: await parseErrorBody(output.body, context),
|
|
@@ -156,25 +156,25 @@ const deserializeAws_json1_0UpdateRoutingControlStateCommandError = async (outpu
|
|
|
156
156
|
switch (errorCode) {
|
|
157
157
|
case "AccessDeniedException":
|
|
158
158
|
case "com.amazonaws.route53recoverycluster#AccessDeniedException":
|
|
159
|
-
throw await
|
|
159
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
160
160
|
case "ConflictException":
|
|
161
161
|
case "com.amazonaws.route53recoverycluster#ConflictException":
|
|
162
|
-
throw await
|
|
162
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
163
163
|
case "EndpointTemporarilyUnavailableException":
|
|
164
164
|
case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
166
166
|
case "InternalServerException":
|
|
167
167
|
case "com.amazonaws.route53recoverycluster#InternalServerException":
|
|
168
|
-
throw await
|
|
168
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
169
169
|
case "ResourceNotFoundException":
|
|
170
170
|
case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
172
172
|
case "ThrottlingException":
|
|
173
173
|
case "com.amazonaws.route53recoverycluster#ThrottlingException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
175
175
|
case "ValidationException":
|
|
176
176
|
case "com.amazonaws.route53recoverycluster#ValidationException":
|
|
177
|
-
throw await
|
|
177
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
178
178
|
default:
|
|
179
179
|
const parsedBody = parsedOutput.body;
|
|
180
180
|
throwDefaultError({
|
|
@@ -185,20 +185,20 @@ const deserializeAws_json1_0UpdateRoutingControlStateCommandError = async (outpu
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
export const
|
|
188
|
+
export const de_UpdateRoutingControlStatesCommand = async (output, context) => {
|
|
189
189
|
if (output.statusCode >= 300) {
|
|
190
|
-
return
|
|
190
|
+
return de_UpdateRoutingControlStatesCommandError(output, context);
|
|
191
191
|
}
|
|
192
192
|
const data = await parseBody(output.body, context);
|
|
193
193
|
let contents = {};
|
|
194
|
-
contents =
|
|
194
|
+
contents = de_UpdateRoutingControlStatesResponse(data, context);
|
|
195
195
|
const response = {
|
|
196
196
|
$metadata: deserializeMetadata(output),
|
|
197
197
|
...contents,
|
|
198
198
|
};
|
|
199
199
|
return Promise.resolve(response);
|
|
200
200
|
};
|
|
201
|
-
const
|
|
201
|
+
const de_UpdateRoutingControlStatesCommandError = async (output, context) => {
|
|
202
202
|
const parsedOutput = {
|
|
203
203
|
...output,
|
|
204
204
|
body: await parseErrorBody(output.body, context),
|
|
@@ -207,28 +207,28 @@ const deserializeAws_json1_0UpdateRoutingControlStatesCommandError = async (outp
|
|
|
207
207
|
switch (errorCode) {
|
|
208
208
|
case "AccessDeniedException":
|
|
209
209
|
case "com.amazonaws.route53recoverycluster#AccessDeniedException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
211
211
|
case "ConflictException":
|
|
212
212
|
case "com.amazonaws.route53recoverycluster#ConflictException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
214
214
|
case "EndpointTemporarilyUnavailableException":
|
|
215
215
|
case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
|
|
216
|
-
throw await
|
|
216
|
+
throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
217
217
|
case "InternalServerException":
|
|
218
218
|
case "com.amazonaws.route53recoverycluster#InternalServerException":
|
|
219
|
-
throw await
|
|
219
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
220
220
|
case "ResourceNotFoundException":
|
|
221
221
|
case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
|
|
222
|
-
throw await
|
|
222
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
223
223
|
case "ServiceLimitExceededException":
|
|
224
224
|
case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException":
|
|
225
|
-
throw await
|
|
225
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
226
226
|
case "ThrottlingException":
|
|
227
227
|
case "com.amazonaws.route53recoverycluster#ThrottlingException":
|
|
228
|
-
throw await
|
|
228
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
229
229
|
case "ValidationException":
|
|
230
230
|
case "com.amazonaws.route53recoverycluster#ValidationException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
232
232
|
default:
|
|
233
233
|
const parsedBody = parsedOutput.body;
|
|
234
234
|
throwDefaultError({
|
|
@@ -239,175 +239,173 @@ const deserializeAws_json1_0UpdateRoutingControlStatesCommandError = async (outp
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
-
const
|
|
242
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
243
243
|
const body = parsedOutput.body;
|
|
244
|
-
const deserialized =
|
|
244
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
245
245
|
const exception = new AccessDeniedException({
|
|
246
246
|
$metadata: deserializeMetadata(parsedOutput),
|
|
247
247
|
...deserialized,
|
|
248
248
|
});
|
|
249
249
|
return __decorateServiceException(exception, body);
|
|
250
250
|
};
|
|
251
|
-
const
|
|
251
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
252
252
|
const body = parsedOutput.body;
|
|
253
|
-
const deserialized =
|
|
253
|
+
const deserialized = de_ConflictException(body, context);
|
|
254
254
|
const exception = new ConflictException({
|
|
255
255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
256
256
|
...deserialized,
|
|
257
257
|
});
|
|
258
258
|
return __decorateServiceException(exception, body);
|
|
259
259
|
};
|
|
260
|
-
const
|
|
260
|
+
const de_EndpointTemporarilyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
261
261
|
const body = parsedOutput.body;
|
|
262
|
-
const deserialized =
|
|
262
|
+
const deserialized = de_EndpointTemporarilyUnavailableException(body, context);
|
|
263
263
|
const exception = new EndpointTemporarilyUnavailableException({
|
|
264
264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
265
265
|
...deserialized,
|
|
266
266
|
});
|
|
267
267
|
return __decorateServiceException(exception, body);
|
|
268
268
|
};
|
|
269
|
-
const
|
|
269
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
270
270
|
const body = parsedOutput.body;
|
|
271
|
-
const deserialized =
|
|
271
|
+
const deserialized = de_InternalServerException(body, context);
|
|
272
272
|
const exception = new InternalServerException({
|
|
273
273
|
$metadata: deserializeMetadata(parsedOutput),
|
|
274
274
|
...deserialized,
|
|
275
275
|
});
|
|
276
276
|
return __decorateServiceException(exception, body);
|
|
277
277
|
};
|
|
278
|
-
const
|
|
278
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
279
279
|
const body = parsedOutput.body;
|
|
280
|
-
const deserialized =
|
|
280
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
281
281
|
const exception = new ResourceNotFoundException({
|
|
282
282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
283
283
|
...deserialized,
|
|
284
284
|
});
|
|
285
285
|
return __decorateServiceException(exception, body);
|
|
286
286
|
};
|
|
287
|
-
const
|
|
287
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
288
288
|
const body = parsedOutput.body;
|
|
289
|
-
const deserialized =
|
|
289
|
+
const deserialized = de_ServiceLimitExceededException(body, context);
|
|
290
290
|
const exception = new ServiceLimitExceededException({
|
|
291
291
|
$metadata: deserializeMetadata(parsedOutput),
|
|
292
292
|
...deserialized,
|
|
293
293
|
});
|
|
294
294
|
return __decorateServiceException(exception, body);
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
297
297
|
const body = parsedOutput.body;
|
|
298
|
-
const deserialized =
|
|
298
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
299
299
|
const exception = new ThrottlingException({
|
|
300
300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
301
301
|
...deserialized,
|
|
302
302
|
});
|
|
303
303
|
return __decorateServiceException(exception, body);
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
306
306
|
const body = parsedOutput.body;
|
|
307
|
-
const deserialized =
|
|
307
|
+
const deserialized = de_ValidationException(body, context);
|
|
308
308
|
const exception = new ValidationException({
|
|
309
309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
310
310
|
...deserialized,
|
|
311
311
|
});
|
|
312
312
|
return __decorateServiceException(exception, body);
|
|
313
313
|
};
|
|
314
|
-
const
|
|
314
|
+
const se_Arns = (input, context) => {
|
|
315
315
|
return input
|
|
316
316
|
.filter((e) => e != null)
|
|
317
317
|
.map((entry) => {
|
|
318
318
|
return entry;
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
|
-
const
|
|
321
|
+
const se_GetRoutingControlStateRequest = (input, context) => {
|
|
322
322
|
return {
|
|
323
323
|
...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
|
-
const
|
|
326
|
+
const se_ListRoutingControlsRequest = (input, context) => {
|
|
327
327
|
return {
|
|
328
328
|
...(input.ControlPanelArn != null && { ControlPanelArn: input.ControlPanelArn }),
|
|
329
329
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
330
330
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
|
-
const
|
|
333
|
+
const se_UpdateRoutingControlStateEntries = (input, context) => {
|
|
334
334
|
return input
|
|
335
335
|
.filter((e) => e != null)
|
|
336
336
|
.map((entry) => {
|
|
337
|
-
return
|
|
337
|
+
return se_UpdateRoutingControlStateEntry(entry, context);
|
|
338
338
|
});
|
|
339
339
|
};
|
|
340
|
-
const
|
|
340
|
+
const se_UpdateRoutingControlStateEntry = (input, context) => {
|
|
341
341
|
return {
|
|
342
342
|
...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
|
|
343
343
|
...(input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState }),
|
|
344
344
|
};
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const se_UpdateRoutingControlStateRequest = (input, context) => {
|
|
347
347
|
return {
|
|
348
348
|
...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
|
|
349
349
|
...(input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState }),
|
|
350
350
|
...(input.SafetyRulesToOverride != null && {
|
|
351
|
-
SafetyRulesToOverride:
|
|
351
|
+
SafetyRulesToOverride: se_Arns(input.SafetyRulesToOverride, context),
|
|
352
352
|
}),
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
|
-
const
|
|
355
|
+
const se_UpdateRoutingControlStatesRequest = (input, context) => {
|
|
356
356
|
return {
|
|
357
357
|
...(input.SafetyRulesToOverride != null && {
|
|
358
|
-
SafetyRulesToOverride:
|
|
358
|
+
SafetyRulesToOverride: se_Arns(input.SafetyRulesToOverride, context),
|
|
359
359
|
}),
|
|
360
360
|
...(input.UpdateRoutingControlStateEntries != null && {
|
|
361
|
-
UpdateRoutingControlStateEntries:
|
|
361
|
+
UpdateRoutingControlStateEntries: se_UpdateRoutingControlStateEntries(input.UpdateRoutingControlStateEntries, context),
|
|
362
362
|
}),
|
|
363
363
|
};
|
|
364
364
|
};
|
|
365
|
-
const
|
|
365
|
+
const de_AccessDeniedException = (output, context) => {
|
|
366
366
|
return {
|
|
367
367
|
message: __expectString(output.message),
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
|
-
const
|
|
370
|
+
const de_ConflictException = (output, context) => {
|
|
371
371
|
return {
|
|
372
372
|
message: __expectString(output.message),
|
|
373
373
|
resourceId: __expectString(output.resourceId),
|
|
374
374
|
resourceType: __expectString(output.resourceType),
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
|
-
const
|
|
377
|
+
const de_EndpointTemporarilyUnavailableException = (output, context) => {
|
|
378
378
|
return {
|
|
379
379
|
message: __expectString(output.message),
|
|
380
380
|
};
|
|
381
381
|
};
|
|
382
|
-
const
|
|
382
|
+
const de_GetRoutingControlStateResponse = (output, context) => {
|
|
383
383
|
return {
|
|
384
384
|
RoutingControlArn: __expectString(output.RoutingControlArn),
|
|
385
385
|
RoutingControlName: __expectString(output.RoutingControlName),
|
|
386
386
|
RoutingControlState: __expectString(output.RoutingControlState),
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
|
-
const
|
|
389
|
+
const de_InternalServerException = (output, context) => {
|
|
390
390
|
return {
|
|
391
391
|
message: __expectString(output.message),
|
|
392
392
|
retryAfterSeconds: __expectInt32(output.retryAfterSeconds),
|
|
393
393
|
};
|
|
394
394
|
};
|
|
395
|
-
const
|
|
395
|
+
const de_ListRoutingControlsResponse = (output, context) => {
|
|
396
396
|
return {
|
|
397
397
|
NextToken: __expectString(output.NextToken),
|
|
398
|
-
RoutingControls: output.RoutingControls != null
|
|
399
|
-
? deserializeAws_json1_0RoutingControls(output.RoutingControls, context)
|
|
400
|
-
: undefined,
|
|
398
|
+
RoutingControls: output.RoutingControls != null ? de_RoutingControls(output.RoutingControls, context) : undefined,
|
|
401
399
|
};
|
|
402
400
|
};
|
|
403
|
-
const
|
|
401
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
404
402
|
return {
|
|
405
403
|
message: __expectString(output.message),
|
|
406
404
|
resourceId: __expectString(output.resourceId),
|
|
407
405
|
resourceType: __expectString(output.resourceType),
|
|
408
406
|
};
|
|
409
407
|
};
|
|
410
|
-
const
|
|
408
|
+
const de_RoutingControl = (output, context) => {
|
|
411
409
|
return {
|
|
412
410
|
ControlPanelArn: __expectString(output.ControlPanelArn),
|
|
413
411
|
ControlPanelName: __expectString(output.ControlPanelName),
|
|
@@ -416,18 +414,18 @@ const deserializeAws_json1_0RoutingControl = (output, context) => {
|
|
|
416
414
|
RoutingControlState: __expectString(output.RoutingControlState),
|
|
417
415
|
};
|
|
418
416
|
};
|
|
419
|
-
const
|
|
417
|
+
const de_RoutingControls = (output, context) => {
|
|
420
418
|
const retVal = (output || [])
|
|
421
419
|
.filter((e) => e != null)
|
|
422
420
|
.map((entry) => {
|
|
423
421
|
if (entry === null) {
|
|
424
422
|
return null;
|
|
425
423
|
}
|
|
426
|
-
return
|
|
424
|
+
return de_RoutingControl(entry, context);
|
|
427
425
|
});
|
|
428
426
|
return retVal;
|
|
429
427
|
};
|
|
430
|
-
const
|
|
428
|
+
const de_ServiceLimitExceededException = (output, context) => {
|
|
431
429
|
return {
|
|
432
430
|
limitCode: __expectString(output.limitCode),
|
|
433
431
|
message: __expectString(output.message),
|
|
@@ -436,39 +434,39 @@ const deserializeAws_json1_0ServiceLimitExceededException = (output, context) =>
|
|
|
436
434
|
serviceCode: __expectString(output.serviceCode),
|
|
437
435
|
};
|
|
438
436
|
};
|
|
439
|
-
const
|
|
437
|
+
const de_ThrottlingException = (output, context) => {
|
|
440
438
|
return {
|
|
441
439
|
message: __expectString(output.message),
|
|
442
440
|
retryAfterSeconds: __expectInt32(output.retryAfterSeconds),
|
|
443
441
|
};
|
|
444
442
|
};
|
|
445
|
-
const
|
|
443
|
+
const de_UpdateRoutingControlStateResponse = (output, context) => {
|
|
446
444
|
return {};
|
|
447
445
|
};
|
|
448
|
-
const
|
|
446
|
+
const de_UpdateRoutingControlStatesResponse = (output, context) => {
|
|
449
447
|
return {};
|
|
450
448
|
};
|
|
451
|
-
const
|
|
449
|
+
const de_ValidationException = (output, context) => {
|
|
452
450
|
return {
|
|
453
|
-
fields: output.fields != null ?
|
|
451
|
+
fields: output.fields != null ? de_ValidationExceptionFieldList(output.fields, context) : undefined,
|
|
454
452
|
message: __expectString(output.message),
|
|
455
453
|
reason: __expectString(output.reason),
|
|
456
454
|
};
|
|
457
455
|
};
|
|
458
|
-
const
|
|
456
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
459
457
|
return {
|
|
460
458
|
message: __expectString(output.message),
|
|
461
459
|
name: __expectString(output.name),
|
|
462
460
|
};
|
|
463
461
|
};
|
|
464
|
-
const
|
|
462
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
465
463
|
const retVal = (output || [])
|
|
466
464
|
.filter((e) => e != null)
|
|
467
465
|
.map((entry) => {
|
|
468
466
|
if (entry === null) {
|
|
469
467
|
return null;
|
|
470
468
|
}
|
|
471
|
-
return
|
|
469
|
+
return de_ValidationExceptionField(entry, context);
|
|
472
470
|
});
|
|
473
471
|
return retVal;
|
|
474
472
|
};
|