@aws-sdk/client-arc-zonal-shift 3.461.0 → 3.464.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/README.md +74 -22
- package/dist-cjs/ARCZonalShift.js +10 -0
- package/dist-cjs/commands/CreatePracticeRunConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeletePracticeRunConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListAutoshiftsCommand.js +51 -0
- package/dist-cjs/commands/UpdatePracticeRunConfigurationCommand.js +51 -0
- package/dist-cjs/commands/UpdateZonalAutoshiftConfigurationCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +61 -34
- package/dist-cjs/pagination/ListAutoshiftsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +419 -2
- package/dist-es/ARCZonalShift.js +10 -0
- package/dist-es/commands/CreatePracticeRunConfigurationCommand.js +47 -0
- package/dist-es/commands/DeletePracticeRunConfigurationCommand.js +47 -0
- package/dist-es/commands/ListAutoshiftsCommand.js +47 -0
- package/dist-es/commands/UpdatePracticeRunConfigurationCommand.js +47 -0
- package/dist-es/commands/UpdateZonalAutoshiftConfigurationCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +58 -31
- package/dist-es/pagination/ListAutoshiftsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +408 -1
- package/dist-types/ARCZonalShift.d.ts +62 -15
- package/dist-types/ARCZonalShiftClient.d.ts +34 -17
- package/dist-types/commands/CancelZonalShiftCommand.d.ts +5 -2
- package/dist-types/commands/CreatePracticeRunConfigurationCommand.d.ts +138 -0
- package/dist-types/commands/DeletePracticeRunConfigurationCommand.d.ts +95 -0
- package/dist-types/commands/GetManagedResourceCommand.d.ts +33 -4
- package/dist-types/commands/ListAutoshiftsCommand.d.ts +95 -0
- package/dist-types/commands/ListManagedResourcesCommand.d.ts +28 -3
- package/dist-types/commands/ListZonalShiftsCommand.d.ts +8 -2
- package/dist-types/commands/StartZonalShiftCommand.d.ts +8 -7
- package/dist-types/commands/UpdatePracticeRunConfigurationCommand.d.ts +133 -0
- package/dist-types/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateZonalShiftCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +27 -15
- package/dist-types/models/models_0.d.ts +698 -95
- package/dist-types/pagination/ListAutoshiftsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/ARCZonalShift.d.ts +91 -0
- package/dist-types/ts3.4/ARCZonalShiftClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreatePracticeRunConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeletePracticeRunConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAutoshiftsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePracticeRunConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +143 -23
- package/dist-types/ts3.4/pagination/ListAutoshiftsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateZonalShiftCommand = exports.de_StartZonalShiftCommand = exports.de_ListZonalShiftsCommand = exports.de_ListManagedResourcesCommand = exports.de_GetManagedResourceCommand = exports.de_CancelZonalShiftCommand = exports.se_UpdateZonalShiftCommand = exports.se_StartZonalShiftCommand = exports.se_ListZonalShiftsCommand = exports.se_ListManagedResourcesCommand = exports.se_GetManagedResourceCommand = exports.se_CancelZonalShiftCommand = void 0;
|
|
3
|
+
exports.de_UpdateZonalShiftCommand = exports.de_UpdateZonalAutoshiftConfigurationCommand = exports.de_UpdatePracticeRunConfigurationCommand = exports.de_StartZonalShiftCommand = exports.de_ListZonalShiftsCommand = exports.de_ListManagedResourcesCommand = exports.de_ListAutoshiftsCommand = exports.de_GetManagedResourceCommand = exports.de_DeletePracticeRunConfigurationCommand = exports.de_CreatePracticeRunConfigurationCommand = exports.de_CancelZonalShiftCommand = exports.se_UpdateZonalShiftCommand = exports.se_UpdateZonalAutoshiftConfigurationCommand = exports.se_UpdatePracticeRunConfigurationCommand = exports.se_StartZonalShiftCommand = exports.se_ListZonalShiftsCommand = exports.se_ListManagedResourcesCommand = exports.se_ListAutoshiftsCommand = exports.se_GetManagedResourceCommand = exports.se_DeletePracticeRunConfigurationCommand = exports.se_CreatePracticeRunConfigurationCommand = exports.se_CancelZonalShiftCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const ARCZonalShiftServiceException_1 = require("../models/ARCZonalShiftServiceException");
|
|
@@ -22,6 +22,48 @@ const se_CancelZonalShiftCommand = async (input, context) => {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
exports.se_CancelZonalShiftCommand = se_CancelZonalShiftCommand;
|
|
25
|
+
const se_CreatePracticeRunConfigurationCommand = async (input, context) => {
|
|
26
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
27
|
+
const headers = {
|
|
28
|
+
"content-type": "application/json",
|
|
29
|
+
};
|
|
30
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
31
|
+
let body;
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
33
|
+
blockedDates: (_) => (0, smithy_client_1._json)(_),
|
|
34
|
+
blockedWindows: (_) => (0, smithy_client_1._json)(_),
|
|
35
|
+
blockingAlarms: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
+
outcomeAlarms: (_) => (0, smithy_client_1._json)(_),
|
|
37
|
+
resourceIdentifier: [],
|
|
38
|
+
}));
|
|
39
|
+
return new protocol_http_1.HttpRequest({
|
|
40
|
+
protocol,
|
|
41
|
+
hostname,
|
|
42
|
+
port,
|
|
43
|
+
method: "POST",
|
|
44
|
+
headers,
|
|
45
|
+
path: resolvedPath,
|
|
46
|
+
body,
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
exports.se_CreatePracticeRunConfigurationCommand = se_CreatePracticeRunConfigurationCommand;
|
|
50
|
+
const se_DeletePracticeRunConfigurationCommand = async (input, context) => {
|
|
51
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
|
+
const headers = {};
|
|
53
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
|
|
54
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
55
|
+
let body;
|
|
56
|
+
return new protocol_http_1.HttpRequest({
|
|
57
|
+
protocol,
|
|
58
|
+
hostname,
|
|
59
|
+
port,
|
|
60
|
+
method: "DELETE",
|
|
61
|
+
headers,
|
|
62
|
+
path: resolvedPath,
|
|
63
|
+
body,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
exports.se_DeletePracticeRunConfigurationCommand = se_DeletePracticeRunConfigurationCommand;
|
|
25
67
|
const se_GetManagedResourceCommand = async (input, context) => {
|
|
26
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
27
69
|
const headers = {};
|
|
@@ -39,6 +81,28 @@ const se_GetManagedResourceCommand = async (input, context) => {
|
|
|
39
81
|
});
|
|
40
82
|
};
|
|
41
83
|
exports.se_GetManagedResourceCommand = se_GetManagedResourceCommand;
|
|
84
|
+
const se_ListAutoshiftsCommand = async (input, context) => {
|
|
85
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
|
+
const headers = {};
|
|
87
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/autoshifts";
|
|
88
|
+
const query = (0, smithy_client_1.map)({
|
|
89
|
+
nextToken: [, input.nextToken],
|
|
90
|
+
status: [, input.status],
|
|
91
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
92
|
+
});
|
|
93
|
+
let body;
|
|
94
|
+
return new protocol_http_1.HttpRequest({
|
|
95
|
+
protocol,
|
|
96
|
+
hostname,
|
|
97
|
+
port,
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers,
|
|
100
|
+
path: resolvedPath,
|
|
101
|
+
query,
|
|
102
|
+
body,
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
exports.se_ListAutoshiftsCommand = se_ListAutoshiftsCommand;
|
|
42
106
|
const se_ListManagedResourcesCommand = async (input, context) => {
|
|
43
107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
44
108
|
const headers = {};
|
|
@@ -68,6 +132,7 @@ const se_ListZonalShiftsCommand = async (input, context) => {
|
|
|
68
132
|
nextToken: [, input.nextToken],
|
|
69
133
|
status: [, input.status],
|
|
70
134
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
135
|
+
resourceIdentifier: [, input.resourceIdentifier],
|
|
71
136
|
});
|
|
72
137
|
let body;
|
|
73
138
|
return new protocol_http_1.HttpRequest({
|
|
@@ -106,6 +171,53 @@ const se_StartZonalShiftCommand = async (input, context) => {
|
|
|
106
171
|
});
|
|
107
172
|
};
|
|
108
173
|
exports.se_StartZonalShiftCommand = se_StartZonalShiftCommand;
|
|
174
|
+
const se_UpdatePracticeRunConfigurationCommand = async (input, context) => {
|
|
175
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
|
+
const headers = {
|
|
177
|
+
"content-type": "application/json",
|
|
178
|
+
};
|
|
179
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
|
|
180
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
183
|
+
blockedDates: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
blockedWindows: (_) => (0, smithy_client_1._json)(_),
|
|
185
|
+
blockingAlarms: (_) => (0, smithy_client_1._json)(_),
|
|
186
|
+
outcomeAlarms: (_) => (0, smithy_client_1._json)(_),
|
|
187
|
+
}));
|
|
188
|
+
return new protocol_http_1.HttpRequest({
|
|
189
|
+
protocol,
|
|
190
|
+
hostname,
|
|
191
|
+
port,
|
|
192
|
+
method: "PATCH",
|
|
193
|
+
headers,
|
|
194
|
+
path: resolvedPath,
|
|
195
|
+
body,
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
exports.se_UpdatePracticeRunConfigurationCommand = se_UpdatePracticeRunConfigurationCommand;
|
|
199
|
+
const se_UpdateZonalAutoshiftConfigurationCommand = async (input, context) => {
|
|
200
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
|
+
const headers = {
|
|
202
|
+
"content-type": "application/json",
|
|
203
|
+
};
|
|
204
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
|
|
205
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
|
+
zonalAutoshiftStatus: [],
|
|
209
|
+
}));
|
|
210
|
+
return new protocol_http_1.HttpRequest({
|
|
211
|
+
protocol,
|
|
212
|
+
hostname,
|
|
213
|
+
port,
|
|
214
|
+
method: "PUT",
|
|
215
|
+
headers,
|
|
216
|
+
path: resolvedPath,
|
|
217
|
+
body,
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
exports.se_UpdateZonalAutoshiftConfigurationCommand = se_UpdateZonalAutoshiftConfigurationCommand;
|
|
109
221
|
const se_UpdateZonalShiftCommand = async (input, context) => {
|
|
110
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
223
|
const headers = {
|
|
@@ -184,6 +296,109 @@ const de_CancelZonalShiftCommandError = async (output, context) => {
|
|
|
184
296
|
});
|
|
185
297
|
}
|
|
186
298
|
};
|
|
299
|
+
const de_CreatePracticeRunConfigurationCommand = async (output, context) => {
|
|
300
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
301
|
+
return de_CreatePracticeRunConfigurationCommandError(output, context);
|
|
302
|
+
}
|
|
303
|
+
const contents = (0, smithy_client_1.map)({
|
|
304
|
+
$metadata: deserializeMetadata(output),
|
|
305
|
+
});
|
|
306
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
308
|
+
arn: smithy_client_1.expectString,
|
|
309
|
+
name: smithy_client_1.expectString,
|
|
310
|
+
practiceRunConfiguration: smithy_client_1._json,
|
|
311
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
312
|
+
});
|
|
313
|
+
Object.assign(contents, doc);
|
|
314
|
+
return contents;
|
|
315
|
+
};
|
|
316
|
+
exports.de_CreatePracticeRunConfigurationCommand = de_CreatePracticeRunConfigurationCommand;
|
|
317
|
+
const de_CreatePracticeRunConfigurationCommandError = async (output, context) => {
|
|
318
|
+
const parsedOutput = {
|
|
319
|
+
...output,
|
|
320
|
+
body: await parseErrorBody(output.body, context),
|
|
321
|
+
};
|
|
322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
|
+
switch (errorCode) {
|
|
324
|
+
case "AccessDeniedException":
|
|
325
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
326
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
327
|
+
case "ConflictException":
|
|
328
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
329
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
330
|
+
case "InternalServerException":
|
|
331
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
333
|
+
case "ResourceNotFoundException":
|
|
334
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
335
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
336
|
+
case "ThrottlingException":
|
|
337
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
339
|
+
case "ValidationException":
|
|
340
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
|
+
default:
|
|
343
|
+
const parsedBody = parsedOutput.body;
|
|
344
|
+
return throwDefaultError({
|
|
345
|
+
output,
|
|
346
|
+
parsedBody,
|
|
347
|
+
errorCode,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const de_DeletePracticeRunConfigurationCommand = async (output, context) => {
|
|
352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
353
|
+
return de_DeletePracticeRunConfigurationCommandError(output, context);
|
|
354
|
+
}
|
|
355
|
+
const contents = (0, smithy_client_1.map)({
|
|
356
|
+
$metadata: deserializeMetadata(output),
|
|
357
|
+
});
|
|
358
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
359
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
360
|
+
arn: smithy_client_1.expectString,
|
|
361
|
+
name: smithy_client_1.expectString,
|
|
362
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
363
|
+
});
|
|
364
|
+
Object.assign(contents, doc);
|
|
365
|
+
return contents;
|
|
366
|
+
};
|
|
367
|
+
exports.de_DeletePracticeRunConfigurationCommand = de_DeletePracticeRunConfigurationCommand;
|
|
368
|
+
const de_DeletePracticeRunConfigurationCommandError = async (output, context) => {
|
|
369
|
+
const parsedOutput = {
|
|
370
|
+
...output,
|
|
371
|
+
body: await parseErrorBody(output.body, context),
|
|
372
|
+
};
|
|
373
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
|
+
switch (errorCode) {
|
|
375
|
+
case "AccessDeniedException":
|
|
376
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
377
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
378
|
+
case "ConflictException":
|
|
379
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
380
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
381
|
+
case "InternalServerException":
|
|
382
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
383
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
384
|
+
case "ResourceNotFoundException":
|
|
385
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
386
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
387
|
+
case "ThrottlingException":
|
|
388
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
389
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
390
|
+
case "ValidationException":
|
|
391
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
392
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
393
|
+
default:
|
|
394
|
+
const parsedBody = parsedOutput.body;
|
|
395
|
+
return throwDefaultError({
|
|
396
|
+
output,
|
|
397
|
+
parsedBody,
|
|
398
|
+
errorCode,
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
};
|
|
187
402
|
const de_GetManagedResourceCommand = async (output, context) => {
|
|
188
403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
189
404
|
return de_GetManagedResourceCommandError(output, context);
|
|
@@ -195,7 +410,10 @@ const de_GetManagedResourceCommand = async (output, context) => {
|
|
|
195
410
|
const doc = (0, smithy_client_1.take)(data, {
|
|
196
411
|
appliedWeights: (_) => de_AppliedWeights(_, context),
|
|
197
412
|
arn: smithy_client_1.expectString,
|
|
413
|
+
autoshifts: (_) => de_AutoshiftsInResource(_, context),
|
|
198
414
|
name: smithy_client_1.expectString,
|
|
415
|
+
practiceRunConfiguration: smithy_client_1._json,
|
|
416
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
199
417
|
zonalShifts: (_) => de_ZonalShiftsInResource(_, context),
|
|
200
418
|
});
|
|
201
419
|
Object.assign(contents, doc);
|
|
@@ -233,6 +451,50 @@ const de_GetManagedResourceCommandError = async (output, context) => {
|
|
|
233
451
|
});
|
|
234
452
|
}
|
|
235
453
|
};
|
|
454
|
+
const de_ListAutoshiftsCommand = async (output, context) => {
|
|
455
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
456
|
+
return de_ListAutoshiftsCommandError(output, context);
|
|
457
|
+
}
|
|
458
|
+
const contents = (0, smithy_client_1.map)({
|
|
459
|
+
$metadata: deserializeMetadata(output),
|
|
460
|
+
});
|
|
461
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
462
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
463
|
+
items: (_) => de_AutoshiftSummaries(_, context),
|
|
464
|
+
nextToken: smithy_client_1.expectString,
|
|
465
|
+
});
|
|
466
|
+
Object.assign(contents, doc);
|
|
467
|
+
return contents;
|
|
468
|
+
};
|
|
469
|
+
exports.de_ListAutoshiftsCommand = de_ListAutoshiftsCommand;
|
|
470
|
+
const de_ListAutoshiftsCommandError = async (output, context) => {
|
|
471
|
+
const parsedOutput = {
|
|
472
|
+
...output,
|
|
473
|
+
body: await parseErrorBody(output.body, context),
|
|
474
|
+
};
|
|
475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
+
switch (errorCode) {
|
|
477
|
+
case "AccessDeniedException":
|
|
478
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
479
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
480
|
+
case "InternalServerException":
|
|
481
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
482
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
483
|
+
case "ThrottlingException":
|
|
484
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
485
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
486
|
+
case "ValidationException":
|
|
487
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
488
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
|
+
default:
|
|
490
|
+
const parsedBody = parsedOutput.body;
|
|
491
|
+
return throwDefaultError({
|
|
492
|
+
output,
|
|
493
|
+
parsedBody,
|
|
494
|
+
errorCode,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
};
|
|
236
498
|
const de_ListManagedResourcesCommand = async (output, context) => {
|
|
237
499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
500
|
return de_ListManagedResourcesCommandError(output, context);
|
|
@@ -242,7 +504,7 @@ const de_ListManagedResourcesCommand = async (output, context) => {
|
|
|
242
504
|
});
|
|
243
505
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
244
506
|
const doc = (0, smithy_client_1.take)(data, {
|
|
245
|
-
items:
|
|
507
|
+
items: (_) => de_ManagedResourceSummaries(_, context),
|
|
246
508
|
nextToken: smithy_client_1.expectString,
|
|
247
509
|
});
|
|
248
510
|
Object.assign(contents, doc);
|
|
@@ -376,6 +638,108 @@ const de_StartZonalShiftCommandError = async (output, context) => {
|
|
|
376
638
|
});
|
|
377
639
|
}
|
|
378
640
|
};
|
|
641
|
+
const de_UpdatePracticeRunConfigurationCommand = async (output, context) => {
|
|
642
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
+
return de_UpdatePracticeRunConfigurationCommandError(output, context);
|
|
644
|
+
}
|
|
645
|
+
const contents = (0, smithy_client_1.map)({
|
|
646
|
+
$metadata: deserializeMetadata(output),
|
|
647
|
+
});
|
|
648
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
649
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
650
|
+
arn: smithy_client_1.expectString,
|
|
651
|
+
name: smithy_client_1.expectString,
|
|
652
|
+
practiceRunConfiguration: smithy_client_1._json,
|
|
653
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
654
|
+
});
|
|
655
|
+
Object.assign(contents, doc);
|
|
656
|
+
return contents;
|
|
657
|
+
};
|
|
658
|
+
exports.de_UpdatePracticeRunConfigurationCommand = de_UpdatePracticeRunConfigurationCommand;
|
|
659
|
+
const de_UpdatePracticeRunConfigurationCommandError = async (output, context) => {
|
|
660
|
+
const parsedOutput = {
|
|
661
|
+
...output,
|
|
662
|
+
body: await parseErrorBody(output.body, context),
|
|
663
|
+
};
|
|
664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
665
|
+
switch (errorCode) {
|
|
666
|
+
case "AccessDeniedException":
|
|
667
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
668
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
669
|
+
case "ConflictException":
|
|
670
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
671
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
672
|
+
case "InternalServerException":
|
|
673
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
674
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ResourceNotFoundException":
|
|
676
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
677
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
|
+
case "ThrottlingException":
|
|
679
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
680
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
681
|
+
case "ValidationException":
|
|
682
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
683
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
+
default:
|
|
685
|
+
const parsedBody = parsedOutput.body;
|
|
686
|
+
return throwDefaultError({
|
|
687
|
+
output,
|
|
688
|
+
parsedBody,
|
|
689
|
+
errorCode,
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
const de_UpdateZonalAutoshiftConfigurationCommand = async (output, context) => {
|
|
694
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
+
return de_UpdateZonalAutoshiftConfigurationCommandError(output, context);
|
|
696
|
+
}
|
|
697
|
+
const contents = (0, smithy_client_1.map)({
|
|
698
|
+
$metadata: deserializeMetadata(output),
|
|
699
|
+
});
|
|
700
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
701
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
702
|
+
resourceIdentifier: smithy_client_1.expectString,
|
|
703
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
704
|
+
});
|
|
705
|
+
Object.assign(contents, doc);
|
|
706
|
+
return contents;
|
|
707
|
+
};
|
|
708
|
+
exports.de_UpdateZonalAutoshiftConfigurationCommand = de_UpdateZonalAutoshiftConfigurationCommand;
|
|
709
|
+
const de_UpdateZonalAutoshiftConfigurationCommandError = async (output, context) => {
|
|
710
|
+
const parsedOutput = {
|
|
711
|
+
...output,
|
|
712
|
+
body: await parseErrorBody(output.body, context),
|
|
713
|
+
};
|
|
714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
switch (errorCode) {
|
|
716
|
+
case "AccessDeniedException":
|
|
717
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ConflictException":
|
|
720
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
721
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
722
|
+
case "InternalServerException":
|
|
723
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
724
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
725
|
+
case "ResourceNotFoundException":
|
|
726
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
|
+
case "ThrottlingException":
|
|
729
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
730
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
731
|
+
case "ValidationException":
|
|
732
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
733
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
|
+
default:
|
|
735
|
+
const parsedBody = parsedOutput.body;
|
|
736
|
+
return throwDefaultError({
|
|
737
|
+
output,
|
|
738
|
+
parsedBody,
|
|
739
|
+
errorCode,
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
};
|
|
379
743
|
const de_UpdateZonalShiftCommand = async (output, context) => {
|
|
380
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
381
745
|
return de_UpdateZonalShiftCommandError(output, context);
|
|
@@ -522,12 +886,64 @@ const de_AppliedWeights = (output, context) => {
|
|
|
522
886
|
return acc;
|
|
523
887
|
}, {});
|
|
524
888
|
};
|
|
889
|
+
const de_AutoshiftInResource = (output, context) => {
|
|
890
|
+
return (0, smithy_client_1.take)(output, {
|
|
891
|
+
appliedStatus: smithy_client_1.expectString,
|
|
892
|
+
awayFrom: smithy_client_1.expectString,
|
|
893
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
const de_AutoshiftsInResource = (output, context) => {
|
|
897
|
+
const retVal = (output || [])
|
|
898
|
+
.filter((e) => e != null)
|
|
899
|
+
.map((entry) => {
|
|
900
|
+
return de_AutoshiftInResource(entry, context);
|
|
901
|
+
});
|
|
902
|
+
return retVal;
|
|
903
|
+
};
|
|
904
|
+
const de_AutoshiftSummaries = (output, context) => {
|
|
905
|
+
const retVal = (output || [])
|
|
906
|
+
.filter((e) => e != null)
|
|
907
|
+
.map((entry) => {
|
|
908
|
+
return de_AutoshiftSummary(entry, context);
|
|
909
|
+
});
|
|
910
|
+
return retVal;
|
|
911
|
+
};
|
|
912
|
+
const de_AutoshiftSummary = (output, context) => {
|
|
913
|
+
return (0, smithy_client_1.take)(output, {
|
|
914
|
+
awayFrom: smithy_client_1.expectString,
|
|
915
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
916
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
917
|
+
status: smithy_client_1.expectString,
|
|
918
|
+
});
|
|
919
|
+
};
|
|
920
|
+
const de_ManagedResourceSummaries = (output, context) => {
|
|
921
|
+
const retVal = (output || [])
|
|
922
|
+
.filter((e) => e != null)
|
|
923
|
+
.map((entry) => {
|
|
924
|
+
return de_ManagedResourceSummary(entry, context);
|
|
925
|
+
});
|
|
926
|
+
return retVal;
|
|
927
|
+
};
|
|
928
|
+
const de_ManagedResourceSummary = (output, context) => {
|
|
929
|
+
return (0, smithy_client_1.take)(output, {
|
|
930
|
+
appliedWeights: (_) => de_AppliedWeights(_, context),
|
|
931
|
+
arn: smithy_client_1.expectString,
|
|
932
|
+
autoshifts: (_) => de_AutoshiftsInResource(_, context),
|
|
933
|
+
availabilityZones: smithy_client_1._json,
|
|
934
|
+
name: smithy_client_1.expectString,
|
|
935
|
+
practiceRunStatus: smithy_client_1.expectString,
|
|
936
|
+
zonalAutoshiftStatus: smithy_client_1.expectString,
|
|
937
|
+
zonalShifts: (_) => de_ZonalShiftsInResource(_, context),
|
|
938
|
+
});
|
|
939
|
+
};
|
|
525
940
|
const de_ZonalShiftInResource = (output, context) => {
|
|
526
941
|
return (0, smithy_client_1.take)(output, {
|
|
527
942
|
appliedStatus: smithy_client_1.expectString,
|
|
528
943
|
awayFrom: smithy_client_1.expectString,
|
|
529
944
|
comment: smithy_client_1.expectString,
|
|
530
945
|
expiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
946
|
+
practiceRunOutcome: smithy_client_1.expectString,
|
|
531
947
|
resourceIdentifier: smithy_client_1.expectString,
|
|
532
948
|
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
533
949
|
zonalShiftId: smithy_client_1.expectString,
|
|
@@ -554,6 +970,7 @@ const de_ZonalShiftSummary = (output, context) => {
|
|
|
554
970
|
awayFrom: smithy_client_1.expectString,
|
|
555
971
|
comment: smithy_client_1.expectString,
|
|
556
972
|
expiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
973
|
+
practiceRunOutcome: smithy_client_1.expectString,
|
|
557
974
|
resourceIdentifier: smithy_client_1.expectString,
|
|
558
975
|
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
559
976
|
status: smithy_client_1.expectString,
|
package/dist-es/ARCZonalShift.js
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
|
|
3
3
|
import { CancelZonalShiftCommand, } from "./commands/CancelZonalShiftCommand";
|
|
4
|
+
import { CreatePracticeRunConfigurationCommand, } from "./commands/CreatePracticeRunConfigurationCommand";
|
|
5
|
+
import { DeletePracticeRunConfigurationCommand, } from "./commands/DeletePracticeRunConfigurationCommand";
|
|
4
6
|
import { GetManagedResourceCommand, } from "./commands/GetManagedResourceCommand";
|
|
7
|
+
import { ListAutoshiftsCommand, } from "./commands/ListAutoshiftsCommand";
|
|
5
8
|
import { ListManagedResourcesCommand, } from "./commands/ListManagedResourcesCommand";
|
|
6
9
|
import { ListZonalShiftsCommand, } from "./commands/ListZonalShiftsCommand";
|
|
7
10
|
import { StartZonalShiftCommand, } from "./commands/StartZonalShiftCommand";
|
|
11
|
+
import { UpdatePracticeRunConfigurationCommand, } from "./commands/UpdatePracticeRunConfigurationCommand";
|
|
12
|
+
import { UpdateZonalAutoshiftConfigurationCommand, } from "./commands/UpdateZonalAutoshiftConfigurationCommand";
|
|
8
13
|
import { UpdateZonalShiftCommand, } from "./commands/UpdateZonalShiftCommand";
|
|
9
14
|
const commands = {
|
|
10
15
|
CancelZonalShiftCommand,
|
|
16
|
+
CreatePracticeRunConfigurationCommand,
|
|
17
|
+
DeletePracticeRunConfigurationCommand,
|
|
11
18
|
GetManagedResourceCommand,
|
|
19
|
+
ListAutoshiftsCommand,
|
|
12
20
|
ListManagedResourcesCommand,
|
|
13
21
|
ListZonalShiftsCommand,
|
|
14
22
|
StartZonalShiftCommand,
|
|
23
|
+
UpdatePracticeRunConfigurationCommand,
|
|
24
|
+
UpdateZonalAutoshiftConfigurationCommand,
|
|
15
25
|
UpdateZonalShiftCommand,
|
|
16
26
|
};
|
|
17
27
|
export class ARCZonalShift extends ARCZonalShiftClient {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_CreatePracticeRunConfigurationCommand, se_CreatePracticeRunConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreatePracticeRunConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreatePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ARCZonalShiftClient";
|
|
26
|
+
const commandName = "CreatePracticeRunConfigurationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "PercDataPlane",
|
|
35
|
+
operation: "CreatePracticeRunConfiguration",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_CreatePracticeRunConfigurationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreatePracticeRunConfigurationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeletePracticeRunConfigurationCommand, se_DeletePracticeRunConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeletePracticeRunConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeletePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ARCZonalShiftClient";
|
|
26
|
+
const commandName = "DeletePracticeRunConfigurationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "PercDataPlane",
|
|
35
|
+
operation: "DeletePracticeRunConfiguration",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeletePracticeRunConfigurationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeletePracticeRunConfigurationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListAutoshiftsCommand, se_ListAutoshiftsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListAutoshiftsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAutoshiftsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ARCZonalShiftClient";
|
|
26
|
+
const commandName = "ListAutoshiftsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "PercDataPlane",
|
|
35
|
+
operation: "ListAutoshifts",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListAutoshiftsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListAutoshiftsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|