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