@aws-sdk/client-fis 3.458.0 → 3.460.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 +64 -0
- package/dist-cjs/Fis.js +16 -0
- package/dist-cjs/commands/CreateTargetAccountConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeleteTargetAccountConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetExperimentTargetAccountConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetTargetAccountConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListExperimentResolvedTargetsCommand.js +51 -0
- package/dist-cjs/commands/ListExperimentTargetAccountConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/ListTargetAccountConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateTargetAccountConfigurationCommand.js +51 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/pagination/ListExperimentResolvedTargetsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTargetAccountConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +489 -1
- package/dist-es/Fis.js +16 -0
- package/dist-es/commands/CreateTargetAccountConfigurationCommand.js +47 -0
- package/dist-es/commands/DeleteTargetAccountConfigurationCommand.js +47 -0
- package/dist-es/commands/GetExperimentTargetAccountConfigurationCommand.js +47 -0
- package/dist-es/commands/GetTargetAccountConfigurationCommand.js +47 -0
- package/dist-es/commands/ListExperimentResolvedTargetsCommand.js +47 -0
- package/dist-es/commands/ListExperimentTargetAccountConfigurationsCommand.js +47 -0
- package/dist-es/commands/ListTargetAccountConfigurationsCommand.js +47 -0
- package/dist-es/commands/UpdateTargetAccountConfigurationCommand.js +47 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/pagination/ListExperimentResolvedTargetsPaginator.js +25 -0
- package/dist-es/pagination/ListTargetAccountConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +473 -1
- package/dist-types/Fis.d.ts +56 -0
- package/dist-types/FisClient.d.ts +10 -2
- package/dist-types/commands/CreateExperimentTemplateCommand.d.ts +10 -1
- package/dist-types/commands/CreateTargetAccountConfigurationCommand.d.ts +97 -0
- package/dist-types/commands/DeleteExperimentTemplateCommand.d.ts +5 -0
- package/dist-types/commands/DeleteTargetAccountConfigurationCommand.d.ts +84 -0
- package/dist-types/commands/GetExperimentCommand.d.ts +6 -1
- package/dist-types/commands/GetExperimentTargetAccountConfigurationCommand.d.ts +84 -0
- package/dist-types/commands/GetExperimentTemplateCommand.d.ts +5 -0
- package/dist-types/commands/GetTargetAccountConfigurationCommand.d.ts +84 -0
- package/dist-types/commands/ListExperimentResolvedTargetsCommand.d.ts +91 -0
- package/dist-types/commands/ListExperimentTargetAccountConfigurationsCommand.d.ts +87 -0
- package/dist-types/commands/ListTargetAccountConfigurationsCommand.d.ts +88 -0
- package/dist-types/commands/StartExperimentCommand.d.ts +6 -1
- package/dist-types/commands/StopExperimentCommand.d.ts +6 -1
- package/dist-types/commands/UpdateExperimentTemplateCommand.d.ts +8 -0
- package/dist-types/commands/UpdateTargetAccountConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +479 -0
- package/dist-types/pagination/ListExperimentResolvedTargetsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTargetAccountConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/Fis.d.ts +148 -0
- package/dist-types/ts3.4/FisClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/CreateTargetAccountConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteTargetAccountConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetExperimentTargetAccountConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTargetAccountConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListExperimentResolvedTargetsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListExperimentTargetAccountConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTargetAccountConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateTargetAccountConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +126 -0
- package/dist-types/ts3.4/pagination/ListExperimentResolvedTargetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTargetAccountConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { FisServiceException as __BaseException } from "../models/FisServiceException";
|
|
5
5
|
import { ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
@@ -14,6 +14,7 @@ export const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
|
14
14
|
actions: (_) => _json(_),
|
|
15
15
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
16
|
description: [],
|
|
17
|
+
experimentOptions: (_) => _json(_),
|
|
17
18
|
logConfiguration: (_) => _json(_),
|
|
18
19
|
roleArn: [],
|
|
19
20
|
stopConditions: (_) => _json(_),
|
|
@@ -30,6 +31,31 @@ export const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
|
30
31
|
body,
|
|
31
32
|
});
|
|
32
33
|
};
|
|
34
|
+
export const se_CreateTargetAccountConfigurationCommand = async (input, context) => {
|
|
35
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
|
+
const headers = {
|
|
37
|
+
"content-type": "application/json",
|
|
38
|
+
};
|
|
39
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
40
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
42
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
43
|
+
let body;
|
|
44
|
+
body = JSON.stringify(take(input, {
|
|
45
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
46
|
+
description: [],
|
|
47
|
+
roleArn: [],
|
|
48
|
+
}));
|
|
49
|
+
return new __HttpRequest({
|
|
50
|
+
protocol,
|
|
51
|
+
hostname,
|
|
52
|
+
port,
|
|
53
|
+
method: "POST",
|
|
54
|
+
headers,
|
|
55
|
+
path: resolvedPath,
|
|
56
|
+
body,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
33
59
|
export const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
34
60
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
61
|
const headers = {};
|
|
@@ -46,6 +72,24 @@ export const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
|
46
72
|
body,
|
|
47
73
|
});
|
|
48
74
|
};
|
|
75
|
+
export const se_DeleteTargetAccountConfigurationCommand = async (input, context) => {
|
|
76
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
|
+
const headers = {};
|
|
78
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
79
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
80
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
81
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
82
|
+
let body;
|
|
83
|
+
return new __HttpRequest({
|
|
84
|
+
protocol,
|
|
85
|
+
hostname,
|
|
86
|
+
port,
|
|
87
|
+
method: "DELETE",
|
|
88
|
+
headers,
|
|
89
|
+
path: resolvedPath,
|
|
90
|
+
body,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
49
93
|
export const se_GetActionCommand = async (input, context) => {
|
|
50
94
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
95
|
const headers = {};
|
|
@@ -78,6 +122,24 @@ export const se_GetExperimentCommand = async (input, context) => {
|
|
|
78
122
|
body,
|
|
79
123
|
});
|
|
80
124
|
};
|
|
125
|
+
export const se_GetExperimentTargetAccountConfigurationCommand = async (input, context) => {
|
|
126
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
|
+
const headers = {};
|
|
128
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
129
|
+
"/experiments/{experimentId}/targetAccountConfigurations/{accountId}";
|
|
130
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
131
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
132
|
+
let body;
|
|
133
|
+
return new __HttpRequest({
|
|
134
|
+
protocol,
|
|
135
|
+
hostname,
|
|
136
|
+
port,
|
|
137
|
+
method: "GET",
|
|
138
|
+
headers,
|
|
139
|
+
path: resolvedPath,
|
|
140
|
+
body,
|
|
141
|
+
});
|
|
142
|
+
};
|
|
81
143
|
export const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
82
144
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
145
|
const headers = {};
|
|
@@ -94,6 +156,24 @@ export const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
|
94
156
|
body,
|
|
95
157
|
});
|
|
96
158
|
};
|
|
159
|
+
export const se_GetTargetAccountConfigurationCommand = async (input, context) => {
|
|
160
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
|
+
const headers = {};
|
|
162
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
163
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
164
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
165
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
166
|
+
let body;
|
|
167
|
+
return new __HttpRequest({
|
|
168
|
+
protocol,
|
|
169
|
+
hostname,
|
|
170
|
+
port,
|
|
171
|
+
method: "GET",
|
|
172
|
+
headers,
|
|
173
|
+
path: resolvedPath,
|
|
174
|
+
body,
|
|
175
|
+
});
|
|
176
|
+
};
|
|
97
177
|
export const se_GetTargetResourceTypeCommand = async (input, context) => {
|
|
98
178
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
179
|
const headers = {};
|
|
@@ -130,6 +210,29 @@ export const se_ListActionsCommand = async (input, context) => {
|
|
|
130
210
|
body,
|
|
131
211
|
});
|
|
132
212
|
};
|
|
213
|
+
export const se_ListExperimentResolvedTargetsCommand = async (input, context) => {
|
|
214
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
215
|
+
const headers = {};
|
|
216
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
217
|
+
"/experiments/{experimentId}/resolvedTargets";
|
|
218
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
219
|
+
const query = map({
|
|
220
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
221
|
+
nextToken: [, input.nextToken],
|
|
222
|
+
targetName: [, input.targetName],
|
|
223
|
+
});
|
|
224
|
+
let body;
|
|
225
|
+
return new __HttpRequest({
|
|
226
|
+
protocol,
|
|
227
|
+
hostname,
|
|
228
|
+
port,
|
|
229
|
+
method: "GET",
|
|
230
|
+
headers,
|
|
231
|
+
path: resolvedPath,
|
|
232
|
+
query,
|
|
233
|
+
body,
|
|
234
|
+
});
|
|
235
|
+
};
|
|
133
236
|
export const se_ListExperimentsCommand = async (input, context) => {
|
|
134
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
135
238
|
const headers = {};
|
|
@@ -150,6 +253,27 @@ export const se_ListExperimentsCommand = async (input, context) => {
|
|
|
150
253
|
body,
|
|
151
254
|
});
|
|
152
255
|
};
|
|
256
|
+
export const se_ListExperimentTargetAccountConfigurationsCommand = async (input, context) => {
|
|
257
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
258
|
+
const headers = {};
|
|
259
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
260
|
+
"/experiments/{experimentId}/targetAccountConfigurations";
|
|
261
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
262
|
+
const query = map({
|
|
263
|
+
nextToken: [, input.nextToken],
|
|
264
|
+
});
|
|
265
|
+
let body;
|
|
266
|
+
return new __HttpRequest({
|
|
267
|
+
protocol,
|
|
268
|
+
hostname,
|
|
269
|
+
port,
|
|
270
|
+
method: "GET",
|
|
271
|
+
headers,
|
|
272
|
+
path: resolvedPath,
|
|
273
|
+
query,
|
|
274
|
+
body,
|
|
275
|
+
});
|
|
276
|
+
};
|
|
153
277
|
export const se_ListExperimentTemplatesCommand = async (input, context) => {
|
|
154
278
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
279
|
const headers = {};
|
|
@@ -186,6 +310,28 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
186
310
|
body,
|
|
187
311
|
});
|
|
188
312
|
};
|
|
313
|
+
export const se_ListTargetAccountConfigurationsCommand = async (input, context) => {
|
|
314
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
|
+
const headers = {};
|
|
316
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
317
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations";
|
|
318
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
319
|
+
const query = map({
|
|
320
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
321
|
+
nextToken: [, input.nextToken],
|
|
322
|
+
});
|
|
323
|
+
let body;
|
|
324
|
+
return new __HttpRequest({
|
|
325
|
+
protocol,
|
|
326
|
+
hostname,
|
|
327
|
+
port,
|
|
328
|
+
method: "GET",
|
|
329
|
+
headers,
|
|
330
|
+
path: resolvedPath,
|
|
331
|
+
query,
|
|
332
|
+
body,
|
|
333
|
+
});
|
|
334
|
+
};
|
|
189
335
|
export const se_ListTargetResourceTypesCommand = async (input, context) => {
|
|
190
336
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
337
|
const headers = {};
|
|
@@ -296,6 +442,7 @@ export const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
|
296
442
|
body = JSON.stringify(take(input, {
|
|
297
443
|
actions: (_) => _json(_),
|
|
298
444
|
description: [],
|
|
445
|
+
experimentOptions: (_) => _json(_),
|
|
299
446
|
logConfiguration: (_) => _json(_),
|
|
300
447
|
roleArn: [],
|
|
301
448
|
stopConditions: (_) => _json(_),
|
|
@@ -311,6 +458,30 @@ export const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
|
311
458
|
body,
|
|
312
459
|
});
|
|
313
460
|
};
|
|
461
|
+
export const se_UpdateTargetAccountConfigurationCommand = async (input, context) => {
|
|
462
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
|
+
const headers = {
|
|
464
|
+
"content-type": "application/json",
|
|
465
|
+
};
|
|
466
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
467
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
468
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
469
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify(take(input, {
|
|
472
|
+
description: [],
|
|
473
|
+
roleArn: [],
|
|
474
|
+
}));
|
|
475
|
+
return new __HttpRequest({
|
|
476
|
+
protocol,
|
|
477
|
+
hostname,
|
|
478
|
+
port,
|
|
479
|
+
method: "PATCH",
|
|
480
|
+
headers,
|
|
481
|
+
path: resolvedPath,
|
|
482
|
+
body,
|
|
483
|
+
});
|
|
484
|
+
};
|
|
314
485
|
export const de_CreateExperimentTemplateCommand = async (output, context) => {
|
|
315
486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
487
|
return de_CreateExperimentTemplateCommandError(output, context);
|
|
@@ -353,6 +524,48 @@ const de_CreateExperimentTemplateCommandError = async (output, context) => {
|
|
|
353
524
|
});
|
|
354
525
|
}
|
|
355
526
|
};
|
|
527
|
+
export const de_CreateTargetAccountConfigurationCommand = async (output, context) => {
|
|
528
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
+
return de_CreateTargetAccountConfigurationCommandError(output, context);
|
|
530
|
+
}
|
|
531
|
+
const contents = map({
|
|
532
|
+
$metadata: deserializeMetadata(output),
|
|
533
|
+
});
|
|
534
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
535
|
+
const doc = take(data, {
|
|
536
|
+
targetAccountConfiguration: _json,
|
|
537
|
+
});
|
|
538
|
+
Object.assign(contents, doc);
|
|
539
|
+
return contents;
|
|
540
|
+
};
|
|
541
|
+
const de_CreateTargetAccountConfigurationCommandError = async (output, context) => {
|
|
542
|
+
const parsedOutput = {
|
|
543
|
+
...output,
|
|
544
|
+
body: await parseErrorBody(output.body, context),
|
|
545
|
+
};
|
|
546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
switch (errorCode) {
|
|
548
|
+
case "ConflictException":
|
|
549
|
+
case "com.amazonaws.fis#ConflictException":
|
|
550
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
551
|
+
case "ResourceNotFoundException":
|
|
552
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
553
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
554
|
+
case "ServiceQuotaExceededException":
|
|
555
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
556
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
557
|
+
case "ValidationException":
|
|
558
|
+
case "com.amazonaws.fis#ValidationException":
|
|
559
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
|
+
default:
|
|
561
|
+
const parsedBody = parsedOutput.body;
|
|
562
|
+
return throwDefaultError({
|
|
563
|
+
output,
|
|
564
|
+
parsedBody,
|
|
565
|
+
errorCode,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
};
|
|
356
569
|
export const de_DeleteExperimentTemplateCommand = async (output, context) => {
|
|
357
570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
358
571
|
return de_DeleteExperimentTemplateCommandError(output, context);
|
|
@@ -389,6 +602,42 @@ const de_DeleteExperimentTemplateCommandError = async (output, context) => {
|
|
|
389
602
|
});
|
|
390
603
|
}
|
|
391
604
|
};
|
|
605
|
+
export const de_DeleteTargetAccountConfigurationCommand = async (output, context) => {
|
|
606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
+
return de_DeleteTargetAccountConfigurationCommandError(output, context);
|
|
608
|
+
}
|
|
609
|
+
const contents = map({
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
});
|
|
612
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
|
+
const doc = take(data, {
|
|
614
|
+
targetAccountConfiguration: _json,
|
|
615
|
+
});
|
|
616
|
+
Object.assign(contents, doc);
|
|
617
|
+
return contents;
|
|
618
|
+
};
|
|
619
|
+
const de_DeleteTargetAccountConfigurationCommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
switch (errorCode) {
|
|
626
|
+
case "ResourceNotFoundException":
|
|
627
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
628
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
629
|
+
case "ValidationException":
|
|
630
|
+
case "com.amazonaws.fis#ValidationException":
|
|
631
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
632
|
+
default:
|
|
633
|
+
const parsedBody = parsedOutput.body;
|
|
634
|
+
return throwDefaultError({
|
|
635
|
+
output,
|
|
636
|
+
parsedBody,
|
|
637
|
+
errorCode,
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
};
|
|
392
641
|
export const de_GetActionCommand = async (output, context) => {
|
|
393
642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
643
|
return de_GetActionCommandError(output, context);
|
|
@@ -461,6 +710,42 @@ const de_GetExperimentCommandError = async (output, context) => {
|
|
|
461
710
|
});
|
|
462
711
|
}
|
|
463
712
|
};
|
|
713
|
+
export const de_GetExperimentTargetAccountConfigurationCommand = async (output, context) => {
|
|
714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
+
return de_GetExperimentTargetAccountConfigurationCommandError(output, context);
|
|
716
|
+
}
|
|
717
|
+
const contents = map({
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
});
|
|
720
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
721
|
+
const doc = take(data, {
|
|
722
|
+
targetAccountConfiguration: _json,
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
725
|
+
return contents;
|
|
726
|
+
};
|
|
727
|
+
const de_GetExperimentTargetAccountConfigurationCommandError = async (output, context) => {
|
|
728
|
+
const parsedOutput = {
|
|
729
|
+
...output,
|
|
730
|
+
body: await parseErrorBody(output.body, context),
|
|
731
|
+
};
|
|
732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
+
switch (errorCode) {
|
|
734
|
+
case "ResourceNotFoundException":
|
|
735
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
736
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
737
|
+
case "ValidationException":
|
|
738
|
+
case "com.amazonaws.fis#ValidationException":
|
|
739
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
+
default:
|
|
741
|
+
const parsedBody = parsedOutput.body;
|
|
742
|
+
return throwDefaultError({
|
|
743
|
+
output,
|
|
744
|
+
parsedBody,
|
|
745
|
+
errorCode,
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
};
|
|
464
749
|
export const de_GetExperimentTemplateCommand = async (output, context) => {
|
|
465
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
751
|
return de_GetExperimentTemplateCommandError(output, context);
|
|
@@ -497,6 +782,42 @@ const de_GetExperimentTemplateCommandError = async (output, context) => {
|
|
|
497
782
|
});
|
|
498
783
|
}
|
|
499
784
|
};
|
|
785
|
+
export const de_GetTargetAccountConfigurationCommand = async (output, context) => {
|
|
786
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
787
|
+
return de_GetTargetAccountConfigurationCommandError(output, context);
|
|
788
|
+
}
|
|
789
|
+
const contents = map({
|
|
790
|
+
$metadata: deserializeMetadata(output),
|
|
791
|
+
});
|
|
792
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
793
|
+
const doc = take(data, {
|
|
794
|
+
targetAccountConfiguration: _json,
|
|
795
|
+
});
|
|
796
|
+
Object.assign(contents, doc);
|
|
797
|
+
return contents;
|
|
798
|
+
};
|
|
799
|
+
const de_GetTargetAccountConfigurationCommandError = async (output, context) => {
|
|
800
|
+
const parsedOutput = {
|
|
801
|
+
...output,
|
|
802
|
+
body: await parseErrorBody(output.body, context),
|
|
803
|
+
};
|
|
804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
+
switch (errorCode) {
|
|
806
|
+
case "ResourceNotFoundException":
|
|
807
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
808
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
|
+
case "ValidationException":
|
|
810
|
+
case "com.amazonaws.fis#ValidationException":
|
|
811
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
|
+
default:
|
|
813
|
+
const parsedBody = parsedOutput.body;
|
|
814
|
+
return throwDefaultError({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
errorCode,
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
};
|
|
500
821
|
export const de_GetTargetResourceTypeCommand = async (output, context) => {
|
|
501
822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
823
|
return de_GetTargetResourceTypeCommandError(output, context);
|
|
@@ -567,6 +888,43 @@ const de_ListActionsCommandError = async (output, context) => {
|
|
|
567
888
|
});
|
|
568
889
|
}
|
|
569
890
|
};
|
|
891
|
+
export const de_ListExperimentResolvedTargetsCommand = async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
+
return de_ListExperimentResolvedTargetsCommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = map({
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
});
|
|
898
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
899
|
+
const doc = take(data, {
|
|
900
|
+
nextToken: __expectString,
|
|
901
|
+
resolvedTargets: _json,
|
|
902
|
+
});
|
|
903
|
+
Object.assign(contents, doc);
|
|
904
|
+
return contents;
|
|
905
|
+
};
|
|
906
|
+
const de_ListExperimentResolvedTargetsCommandError = async (output, context) => {
|
|
907
|
+
const parsedOutput = {
|
|
908
|
+
...output,
|
|
909
|
+
body: await parseErrorBody(output.body, context),
|
|
910
|
+
};
|
|
911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
+
switch (errorCode) {
|
|
913
|
+
case "ResourceNotFoundException":
|
|
914
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
915
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
916
|
+
case "ValidationException":
|
|
917
|
+
case "com.amazonaws.fis#ValidationException":
|
|
918
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
|
+
default:
|
|
920
|
+
const parsedBody = parsedOutput.body;
|
|
921
|
+
return throwDefaultError({
|
|
922
|
+
output,
|
|
923
|
+
parsedBody,
|
|
924
|
+
errorCode,
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
};
|
|
570
928
|
export const de_ListExperimentsCommand = async (output, context) => {
|
|
571
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
572
930
|
return de_ListExperimentsCommandError(output, context);
|
|
@@ -601,6 +959,43 @@ const de_ListExperimentsCommandError = async (output, context) => {
|
|
|
601
959
|
});
|
|
602
960
|
}
|
|
603
961
|
};
|
|
962
|
+
export const de_ListExperimentTargetAccountConfigurationsCommand = async (output, context) => {
|
|
963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
+
return de_ListExperimentTargetAccountConfigurationsCommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
const contents = map({
|
|
967
|
+
$metadata: deserializeMetadata(output),
|
|
968
|
+
});
|
|
969
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
970
|
+
const doc = take(data, {
|
|
971
|
+
nextToken: __expectString,
|
|
972
|
+
targetAccountConfigurations: _json,
|
|
973
|
+
});
|
|
974
|
+
Object.assign(contents, doc);
|
|
975
|
+
return contents;
|
|
976
|
+
};
|
|
977
|
+
const de_ListExperimentTargetAccountConfigurationsCommandError = async (output, context) => {
|
|
978
|
+
const parsedOutput = {
|
|
979
|
+
...output,
|
|
980
|
+
body: await parseErrorBody(output.body, context),
|
|
981
|
+
};
|
|
982
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
+
switch (errorCode) {
|
|
984
|
+
case "ResourceNotFoundException":
|
|
985
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
986
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
987
|
+
case "ValidationException":
|
|
988
|
+
case "com.amazonaws.fis#ValidationException":
|
|
989
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
+
default:
|
|
991
|
+
const parsedBody = parsedOutput.body;
|
|
992
|
+
return throwDefaultError({
|
|
993
|
+
output,
|
|
994
|
+
parsedBody,
|
|
995
|
+
errorCode,
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
};
|
|
604
999
|
export const de_ListExperimentTemplatesCommand = async (output, context) => {
|
|
605
1000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
606
1001
|
return de_ListExperimentTemplatesCommandError(output, context);
|
|
@@ -662,6 +1057,43 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
662
1057
|
errorCode,
|
|
663
1058
|
});
|
|
664
1059
|
};
|
|
1060
|
+
export const de_ListTargetAccountConfigurationsCommand = async (output, context) => {
|
|
1061
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1062
|
+
return de_ListTargetAccountConfigurationsCommandError(output, context);
|
|
1063
|
+
}
|
|
1064
|
+
const contents = map({
|
|
1065
|
+
$metadata: deserializeMetadata(output),
|
|
1066
|
+
});
|
|
1067
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1068
|
+
const doc = take(data, {
|
|
1069
|
+
nextToken: __expectString,
|
|
1070
|
+
targetAccountConfigurations: _json,
|
|
1071
|
+
});
|
|
1072
|
+
Object.assign(contents, doc);
|
|
1073
|
+
return contents;
|
|
1074
|
+
};
|
|
1075
|
+
const de_ListTargetAccountConfigurationsCommandError = async (output, context) => {
|
|
1076
|
+
const parsedOutput = {
|
|
1077
|
+
...output,
|
|
1078
|
+
body: await parseErrorBody(output.body, context),
|
|
1079
|
+
};
|
|
1080
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
+
switch (errorCode) {
|
|
1082
|
+
case "ResourceNotFoundException":
|
|
1083
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1084
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "ValidationException":
|
|
1086
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
+
default:
|
|
1089
|
+
const parsedBody = parsedOutput.body;
|
|
1090
|
+
return throwDefaultError({
|
|
1091
|
+
output,
|
|
1092
|
+
parsedBody,
|
|
1093
|
+
errorCode,
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
665
1097
|
export const de_ListTargetResourceTypesCommand = async (output, context) => {
|
|
666
1098
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
1099
|
return de_ListTargetResourceTypesCommandError(output, context);
|
|
@@ -859,6 +1291,42 @@ const de_UpdateExperimentTemplateCommandError = async (output, context) => {
|
|
|
859
1291
|
});
|
|
860
1292
|
}
|
|
861
1293
|
};
|
|
1294
|
+
export const de_UpdateTargetAccountConfigurationCommand = async (output, context) => {
|
|
1295
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
|
+
return de_UpdateTargetAccountConfigurationCommandError(output, context);
|
|
1297
|
+
}
|
|
1298
|
+
const contents = map({
|
|
1299
|
+
$metadata: deserializeMetadata(output),
|
|
1300
|
+
});
|
|
1301
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1302
|
+
const doc = take(data, {
|
|
1303
|
+
targetAccountConfiguration: _json,
|
|
1304
|
+
});
|
|
1305
|
+
Object.assign(contents, doc);
|
|
1306
|
+
return contents;
|
|
1307
|
+
};
|
|
1308
|
+
const de_UpdateTargetAccountConfigurationCommandError = async (output, context) => {
|
|
1309
|
+
const parsedOutput = {
|
|
1310
|
+
...output,
|
|
1311
|
+
body: await parseErrorBody(output.body, context),
|
|
1312
|
+
};
|
|
1313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
+
switch (errorCode) {
|
|
1315
|
+
case "ResourceNotFoundException":
|
|
1316
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1317
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
+
case "ValidationException":
|
|
1319
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1320
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1321
|
+
default:
|
|
1322
|
+
const parsedBody = parsedOutput.body;
|
|
1323
|
+
return throwDefaultError({
|
|
1324
|
+
output,
|
|
1325
|
+
parsedBody,
|
|
1326
|
+
errorCode,
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
862
1330
|
const throwDefaultError = withBaseException(__BaseException);
|
|
863
1331
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
864
1332
|
const contents = map({});
|
|
@@ -917,6 +1385,7 @@ const de_Experiment = (output, context) => {
|
|
|
917
1385
|
actions: (_) => de_ExperimentActionMap(_, context),
|
|
918
1386
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
919
1387
|
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1388
|
+
experimentOptions: _json,
|
|
920
1389
|
experimentTemplateId: __expectString,
|
|
921
1390
|
id: __expectString,
|
|
922
1391
|
logConfiguration: _json,
|
|
@@ -925,6 +1394,7 @@ const de_Experiment = (output, context) => {
|
|
|
925
1394
|
state: _json,
|
|
926
1395
|
stopConditions: _json,
|
|
927
1396
|
tags: _json,
|
|
1397
|
+
targetAccountConfigurationsCount: __expectLong,
|
|
928
1398
|
targets: _json,
|
|
929
1399
|
});
|
|
930
1400
|
};
|
|
@@ -971,12 +1441,14 @@ const de_ExperimentTemplate = (output, context) => {
|
|
|
971
1441
|
actions: _json,
|
|
972
1442
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
973
1443
|
description: __expectString,
|
|
1444
|
+
experimentOptions: _json,
|
|
974
1445
|
id: __expectString,
|
|
975
1446
|
lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
976
1447
|
logConfiguration: _json,
|
|
977
1448
|
roleArn: __expectString,
|
|
978
1449
|
stopConditions: _json,
|
|
979
1450
|
tags: _json,
|
|
1451
|
+
targetAccountConfigurationsCount: __expectLong,
|
|
980
1452
|
targets: _json,
|
|
981
1453
|
});
|
|
982
1454
|
};
|