@aws-sdk/client-fis 3.454.0 → 3.459.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 +80 -16
- 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 +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateExperimentTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExperimentCommand = exports.de_StartExperimentCommand = exports.de_ListTargetResourceTypesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListExperimentTemplatesCommand = exports.de_ListExperimentsCommand = exports.de_ListActionsCommand = exports.de_GetTargetResourceTypeCommand = exports.de_GetExperimentTemplateCommand = exports.de_GetExperimentCommand = exports.de_GetActionCommand = exports.de_DeleteExperimentTemplateCommand = exports.de_CreateExperimentTemplateCommand = exports.se_UpdateExperimentTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExperimentCommand = exports.se_StartExperimentCommand = exports.se_ListTargetResourceTypesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListExperimentTemplatesCommand = exports.se_ListExperimentsCommand = exports.se_ListActionsCommand = exports.se_GetTargetResourceTypeCommand = exports.se_GetExperimentTemplateCommand = exports.se_GetExperimentCommand = exports.se_GetActionCommand = exports.se_DeleteExperimentTemplateCommand = exports.se_CreateExperimentTemplateCommand = void 0;
|
|
3
|
+
exports.de_UpdateTargetAccountConfigurationCommand = exports.de_UpdateExperimentTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExperimentCommand = exports.de_StartExperimentCommand = exports.de_ListTargetResourceTypesCommand = exports.de_ListTargetAccountConfigurationsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListExperimentTemplatesCommand = exports.de_ListExperimentTargetAccountConfigurationsCommand = exports.de_ListExperimentsCommand = exports.de_ListExperimentResolvedTargetsCommand = exports.de_ListActionsCommand = exports.de_GetTargetResourceTypeCommand = exports.de_GetTargetAccountConfigurationCommand = exports.de_GetExperimentTemplateCommand = exports.de_GetExperimentTargetAccountConfigurationCommand = exports.de_GetExperimentCommand = exports.de_GetActionCommand = exports.de_DeleteTargetAccountConfigurationCommand = exports.de_DeleteExperimentTemplateCommand = exports.de_CreateTargetAccountConfigurationCommand = exports.de_CreateExperimentTemplateCommand = exports.se_UpdateTargetAccountConfigurationCommand = exports.se_UpdateExperimentTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExperimentCommand = exports.se_StartExperimentCommand = exports.se_ListTargetResourceTypesCommand = exports.se_ListTargetAccountConfigurationsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListExperimentTemplatesCommand = exports.se_ListExperimentTargetAccountConfigurationsCommand = exports.se_ListExperimentsCommand = exports.se_ListExperimentResolvedTargetsCommand = exports.se_ListActionsCommand = exports.se_GetTargetResourceTypeCommand = exports.se_GetTargetAccountConfigurationCommand = exports.se_GetExperimentTemplateCommand = exports.se_GetExperimentTargetAccountConfigurationCommand = exports.se_GetExperimentCommand = exports.se_GetActionCommand = exports.se_DeleteTargetAccountConfigurationCommand = exports.se_DeleteExperimentTemplateCommand = exports.se_CreateTargetAccountConfigurationCommand = exports.se_CreateExperimentTemplateCommand = 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 uuid_1 = require("uuid");
|
|
@@ -17,6 +17,7 @@ const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
|
17
17
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
18
18
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
19
|
description: [],
|
|
20
|
+
experimentOptions: (_) => (0, smithy_client_1._json)(_),
|
|
20
21
|
logConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
21
22
|
roleArn: [],
|
|
22
23
|
stopConditions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -34,6 +35,32 @@ const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
37
|
exports.se_CreateExperimentTemplateCommand = se_CreateExperimentTemplateCommand;
|
|
38
|
+
const se_CreateTargetAccountConfigurationCommand = async (input, context) => {
|
|
39
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
40
|
+
const headers = {
|
|
41
|
+
"content-type": "application/json",
|
|
42
|
+
};
|
|
43
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
44
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
45
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
46
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
50
|
+
description: [],
|
|
51
|
+
roleArn: [],
|
|
52
|
+
}));
|
|
53
|
+
return new protocol_http_1.HttpRequest({
|
|
54
|
+
protocol,
|
|
55
|
+
hostname,
|
|
56
|
+
port,
|
|
57
|
+
method: "POST",
|
|
58
|
+
headers,
|
|
59
|
+
path: resolvedPath,
|
|
60
|
+
body,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
exports.se_CreateTargetAccountConfigurationCommand = se_CreateTargetAccountConfigurationCommand;
|
|
37
64
|
const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
38
65
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
66
|
const headers = {};
|
|
@@ -51,6 +78,25 @@ const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
|
51
78
|
});
|
|
52
79
|
};
|
|
53
80
|
exports.se_DeleteExperimentTemplateCommand = se_DeleteExperimentTemplateCommand;
|
|
81
|
+
const se_DeleteTargetAccountConfigurationCommand = async (input, context) => {
|
|
82
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
|
+
const headers = {};
|
|
84
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
85
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
86
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
87
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
88
|
+
let body;
|
|
89
|
+
return new protocol_http_1.HttpRequest({
|
|
90
|
+
protocol,
|
|
91
|
+
hostname,
|
|
92
|
+
port,
|
|
93
|
+
method: "DELETE",
|
|
94
|
+
headers,
|
|
95
|
+
path: resolvedPath,
|
|
96
|
+
body,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
exports.se_DeleteTargetAccountConfigurationCommand = se_DeleteTargetAccountConfigurationCommand;
|
|
54
100
|
const se_GetActionCommand = async (input, context) => {
|
|
55
101
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
102
|
const headers = {};
|
|
@@ -85,6 +131,25 @@ const se_GetExperimentCommand = async (input, context) => {
|
|
|
85
131
|
});
|
|
86
132
|
};
|
|
87
133
|
exports.se_GetExperimentCommand = se_GetExperimentCommand;
|
|
134
|
+
const se_GetExperimentTargetAccountConfigurationCommand = async (input, context) => {
|
|
135
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
|
+
const headers = {};
|
|
137
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
138
|
+
"/experiments/{experimentId}/targetAccountConfigurations/{accountId}";
|
|
139
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
140
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
141
|
+
let body;
|
|
142
|
+
return new protocol_http_1.HttpRequest({
|
|
143
|
+
protocol,
|
|
144
|
+
hostname,
|
|
145
|
+
port,
|
|
146
|
+
method: "GET",
|
|
147
|
+
headers,
|
|
148
|
+
path: resolvedPath,
|
|
149
|
+
body,
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
exports.se_GetExperimentTargetAccountConfigurationCommand = se_GetExperimentTargetAccountConfigurationCommand;
|
|
88
153
|
const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
89
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
155
|
const headers = {};
|
|
@@ -102,6 +167,25 @@ const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
|
102
167
|
});
|
|
103
168
|
};
|
|
104
169
|
exports.se_GetExperimentTemplateCommand = se_GetExperimentTemplateCommand;
|
|
170
|
+
const se_GetTargetAccountConfigurationCommand = async (input, context) => {
|
|
171
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
|
+
const headers = {};
|
|
173
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
174
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
175
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
176
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
177
|
+
let body;
|
|
178
|
+
return new protocol_http_1.HttpRequest({
|
|
179
|
+
protocol,
|
|
180
|
+
hostname,
|
|
181
|
+
port,
|
|
182
|
+
method: "GET",
|
|
183
|
+
headers,
|
|
184
|
+
path: resolvedPath,
|
|
185
|
+
body,
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
exports.se_GetTargetAccountConfigurationCommand = se_GetTargetAccountConfigurationCommand;
|
|
105
189
|
const se_GetTargetResourceTypeCommand = async (input, context) => {
|
|
106
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
191
|
const headers = {};
|
|
@@ -140,6 +224,30 @@ const se_ListActionsCommand = async (input, context) => {
|
|
|
140
224
|
});
|
|
141
225
|
};
|
|
142
226
|
exports.se_ListActionsCommand = se_ListActionsCommand;
|
|
227
|
+
const se_ListExperimentResolvedTargetsCommand = async (input, context) => {
|
|
228
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
|
+
const headers = {};
|
|
230
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
231
|
+
"/experiments/{experimentId}/resolvedTargets";
|
|
232
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
233
|
+
const query = (0, smithy_client_1.map)({
|
|
234
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
235
|
+
nextToken: [, input.nextToken],
|
|
236
|
+
targetName: [, input.targetName],
|
|
237
|
+
});
|
|
238
|
+
let body;
|
|
239
|
+
return new protocol_http_1.HttpRequest({
|
|
240
|
+
protocol,
|
|
241
|
+
hostname,
|
|
242
|
+
port,
|
|
243
|
+
method: "GET",
|
|
244
|
+
headers,
|
|
245
|
+
path: resolvedPath,
|
|
246
|
+
query,
|
|
247
|
+
body,
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
exports.se_ListExperimentResolvedTargetsCommand = se_ListExperimentResolvedTargetsCommand;
|
|
143
251
|
const se_ListExperimentsCommand = async (input, context) => {
|
|
144
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
145
253
|
const headers = {};
|
|
@@ -161,6 +269,28 @@ const se_ListExperimentsCommand = async (input, context) => {
|
|
|
161
269
|
});
|
|
162
270
|
};
|
|
163
271
|
exports.se_ListExperimentsCommand = se_ListExperimentsCommand;
|
|
272
|
+
const se_ListExperimentTargetAccountConfigurationsCommand = async (input, context) => {
|
|
273
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
|
+
const headers = {};
|
|
275
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
276
|
+
"/experiments/{experimentId}/targetAccountConfigurations";
|
|
277
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
278
|
+
const query = (0, smithy_client_1.map)({
|
|
279
|
+
nextToken: [, input.nextToken],
|
|
280
|
+
});
|
|
281
|
+
let body;
|
|
282
|
+
return new protocol_http_1.HttpRequest({
|
|
283
|
+
protocol,
|
|
284
|
+
hostname,
|
|
285
|
+
port,
|
|
286
|
+
method: "GET",
|
|
287
|
+
headers,
|
|
288
|
+
path: resolvedPath,
|
|
289
|
+
query,
|
|
290
|
+
body,
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
exports.se_ListExperimentTargetAccountConfigurationsCommand = se_ListExperimentTargetAccountConfigurationsCommand;
|
|
164
294
|
const se_ListExperimentTemplatesCommand = async (input, context) => {
|
|
165
295
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
296
|
const headers = {};
|
|
@@ -199,6 +329,29 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
199
329
|
});
|
|
200
330
|
};
|
|
201
331
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
332
|
+
const se_ListTargetAccountConfigurationsCommand = async (input, context) => {
|
|
333
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
|
+
const headers = {};
|
|
335
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
336
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations";
|
|
337
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
338
|
+
const query = (0, smithy_client_1.map)({
|
|
339
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
340
|
+
nextToken: [, input.nextToken],
|
|
341
|
+
});
|
|
342
|
+
let body;
|
|
343
|
+
return new protocol_http_1.HttpRequest({
|
|
344
|
+
protocol,
|
|
345
|
+
hostname,
|
|
346
|
+
port,
|
|
347
|
+
method: "GET",
|
|
348
|
+
headers,
|
|
349
|
+
path: resolvedPath,
|
|
350
|
+
query,
|
|
351
|
+
body,
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
exports.se_ListTargetAccountConfigurationsCommand = se_ListTargetAccountConfigurationsCommand;
|
|
202
355
|
const se_ListTargetResourceTypesCommand = async (input, context) => {
|
|
203
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
357
|
const headers = {};
|
|
@@ -314,6 +467,7 @@ const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
|
314
467
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
315
468
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
316
469
|
description: [],
|
|
470
|
+
experimentOptions: (_) => (0, smithy_client_1._json)(_),
|
|
317
471
|
logConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
318
472
|
roleArn: [],
|
|
319
473
|
stopConditions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -330,6 +484,31 @@ const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
|
330
484
|
});
|
|
331
485
|
};
|
|
332
486
|
exports.se_UpdateExperimentTemplateCommand = se_UpdateExperimentTemplateCommand;
|
|
487
|
+
const se_UpdateTargetAccountConfigurationCommand = async (input, context) => {
|
|
488
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
489
|
+
const headers = {
|
|
490
|
+
"content-type": "application/json",
|
|
491
|
+
};
|
|
492
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
493
|
+
"/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}";
|
|
494
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
495
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
496
|
+
let body;
|
|
497
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
498
|
+
description: [],
|
|
499
|
+
roleArn: [],
|
|
500
|
+
}));
|
|
501
|
+
return new protocol_http_1.HttpRequest({
|
|
502
|
+
protocol,
|
|
503
|
+
hostname,
|
|
504
|
+
port,
|
|
505
|
+
method: "PATCH",
|
|
506
|
+
headers,
|
|
507
|
+
path: resolvedPath,
|
|
508
|
+
body,
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
exports.se_UpdateTargetAccountConfigurationCommand = se_UpdateTargetAccountConfigurationCommand;
|
|
333
512
|
const de_CreateExperimentTemplateCommand = async (output, context) => {
|
|
334
513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
514
|
return de_CreateExperimentTemplateCommandError(output, context);
|
|
@@ -373,6 +552,49 @@ const de_CreateExperimentTemplateCommandError = async (output, context) => {
|
|
|
373
552
|
});
|
|
374
553
|
}
|
|
375
554
|
};
|
|
555
|
+
const de_CreateTargetAccountConfigurationCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
+
return de_CreateTargetAccountConfigurationCommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
const contents = (0, smithy_client_1.map)({
|
|
560
|
+
$metadata: deserializeMetadata(output),
|
|
561
|
+
});
|
|
562
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
563
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
564
|
+
targetAccountConfiguration: smithy_client_1._json,
|
|
565
|
+
});
|
|
566
|
+
Object.assign(contents, doc);
|
|
567
|
+
return contents;
|
|
568
|
+
};
|
|
569
|
+
exports.de_CreateTargetAccountConfigurationCommand = de_CreateTargetAccountConfigurationCommand;
|
|
570
|
+
const de_CreateTargetAccountConfigurationCommandError = async (output, context) => {
|
|
571
|
+
const parsedOutput = {
|
|
572
|
+
...output,
|
|
573
|
+
body: await parseErrorBody(output.body, context),
|
|
574
|
+
};
|
|
575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
+
switch (errorCode) {
|
|
577
|
+
case "ConflictException":
|
|
578
|
+
case "com.amazonaws.fis#ConflictException":
|
|
579
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
580
|
+
case "ResourceNotFoundException":
|
|
581
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
582
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
583
|
+
case "ServiceQuotaExceededException":
|
|
584
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
585
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
586
|
+
case "ValidationException":
|
|
587
|
+
case "com.amazonaws.fis#ValidationException":
|
|
588
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
+
default:
|
|
590
|
+
const parsedBody = parsedOutput.body;
|
|
591
|
+
return throwDefaultError({
|
|
592
|
+
output,
|
|
593
|
+
parsedBody,
|
|
594
|
+
errorCode,
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
};
|
|
376
598
|
const de_DeleteExperimentTemplateCommand = async (output, context) => {
|
|
377
599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
378
600
|
return de_DeleteExperimentTemplateCommandError(output, context);
|
|
@@ -410,6 +632,43 @@ const de_DeleteExperimentTemplateCommandError = async (output, context) => {
|
|
|
410
632
|
});
|
|
411
633
|
}
|
|
412
634
|
};
|
|
635
|
+
const de_DeleteTargetAccountConfigurationCommand = async (output, context) => {
|
|
636
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
+
return de_DeleteTargetAccountConfigurationCommandError(output, context);
|
|
638
|
+
}
|
|
639
|
+
const contents = (0, smithy_client_1.map)({
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
});
|
|
642
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
643
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
644
|
+
targetAccountConfiguration: smithy_client_1._json,
|
|
645
|
+
});
|
|
646
|
+
Object.assign(contents, doc);
|
|
647
|
+
return contents;
|
|
648
|
+
};
|
|
649
|
+
exports.de_DeleteTargetAccountConfigurationCommand = de_DeleteTargetAccountConfigurationCommand;
|
|
650
|
+
const de_DeleteTargetAccountConfigurationCommandError = async (output, context) => {
|
|
651
|
+
const parsedOutput = {
|
|
652
|
+
...output,
|
|
653
|
+
body: await parseErrorBody(output.body, context),
|
|
654
|
+
};
|
|
655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
+
switch (errorCode) {
|
|
657
|
+
case "ResourceNotFoundException":
|
|
658
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
659
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
|
+
case "ValidationException":
|
|
661
|
+
case "com.amazonaws.fis#ValidationException":
|
|
662
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
|
+
default:
|
|
664
|
+
const parsedBody = parsedOutput.body;
|
|
665
|
+
return throwDefaultError({
|
|
666
|
+
output,
|
|
667
|
+
parsedBody,
|
|
668
|
+
errorCode,
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
};
|
|
413
672
|
const de_GetActionCommand = async (output, context) => {
|
|
414
673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
674
|
return de_GetActionCommandError(output, context);
|
|
@@ -484,6 +743,43 @@ const de_GetExperimentCommandError = async (output, context) => {
|
|
|
484
743
|
});
|
|
485
744
|
}
|
|
486
745
|
};
|
|
746
|
+
const de_GetExperimentTargetAccountConfigurationCommand = async (output, context) => {
|
|
747
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
748
|
+
return de_GetExperimentTargetAccountConfigurationCommandError(output, context);
|
|
749
|
+
}
|
|
750
|
+
const contents = (0, smithy_client_1.map)({
|
|
751
|
+
$metadata: deserializeMetadata(output),
|
|
752
|
+
});
|
|
753
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
754
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
755
|
+
targetAccountConfiguration: smithy_client_1._json,
|
|
756
|
+
});
|
|
757
|
+
Object.assign(contents, doc);
|
|
758
|
+
return contents;
|
|
759
|
+
};
|
|
760
|
+
exports.de_GetExperimentTargetAccountConfigurationCommand = de_GetExperimentTargetAccountConfigurationCommand;
|
|
761
|
+
const de_GetExperimentTargetAccountConfigurationCommandError = async (output, context) => {
|
|
762
|
+
const parsedOutput = {
|
|
763
|
+
...output,
|
|
764
|
+
body: await parseErrorBody(output.body, context),
|
|
765
|
+
};
|
|
766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
+
switch (errorCode) {
|
|
768
|
+
case "ResourceNotFoundException":
|
|
769
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
770
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
771
|
+
case "ValidationException":
|
|
772
|
+
case "com.amazonaws.fis#ValidationException":
|
|
773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
774
|
+
default:
|
|
775
|
+
const parsedBody = parsedOutput.body;
|
|
776
|
+
return throwDefaultError({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
errorCode,
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
};
|
|
487
783
|
const de_GetExperimentTemplateCommand = async (output, context) => {
|
|
488
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
785
|
return de_GetExperimentTemplateCommandError(output, context);
|
|
@@ -521,6 +817,43 @@ const de_GetExperimentTemplateCommandError = async (output, context) => {
|
|
|
521
817
|
});
|
|
522
818
|
}
|
|
523
819
|
};
|
|
820
|
+
const de_GetTargetAccountConfigurationCommand = async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_GetTargetAccountConfigurationCommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = (0, smithy_client_1.map)({
|
|
825
|
+
$metadata: deserializeMetadata(output),
|
|
826
|
+
});
|
|
827
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
829
|
+
targetAccountConfiguration: smithy_client_1._json,
|
|
830
|
+
});
|
|
831
|
+
Object.assign(contents, doc);
|
|
832
|
+
return contents;
|
|
833
|
+
};
|
|
834
|
+
exports.de_GetTargetAccountConfigurationCommand = de_GetTargetAccountConfigurationCommand;
|
|
835
|
+
const de_GetTargetAccountConfigurationCommandError = async (output, context) => {
|
|
836
|
+
const parsedOutput = {
|
|
837
|
+
...output,
|
|
838
|
+
body: await parseErrorBody(output.body, context),
|
|
839
|
+
};
|
|
840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
switch (errorCode) {
|
|
842
|
+
case "ResourceNotFoundException":
|
|
843
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
844
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
845
|
+
case "ValidationException":
|
|
846
|
+
case "com.amazonaws.fis#ValidationException":
|
|
847
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
|
+
default:
|
|
849
|
+
const parsedBody = parsedOutput.body;
|
|
850
|
+
return throwDefaultError({
|
|
851
|
+
output,
|
|
852
|
+
parsedBody,
|
|
853
|
+
errorCode,
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
};
|
|
524
857
|
const de_GetTargetResourceTypeCommand = async (output, context) => {
|
|
525
858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
526
859
|
return de_GetTargetResourceTypeCommandError(output, context);
|
|
@@ -593,6 +926,44 @@ const de_ListActionsCommandError = async (output, context) => {
|
|
|
593
926
|
});
|
|
594
927
|
}
|
|
595
928
|
};
|
|
929
|
+
const de_ListExperimentResolvedTargetsCommand = async (output, context) => {
|
|
930
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
+
return de_ListExperimentResolvedTargetsCommandError(output, context);
|
|
932
|
+
}
|
|
933
|
+
const contents = (0, smithy_client_1.map)({
|
|
934
|
+
$metadata: deserializeMetadata(output),
|
|
935
|
+
});
|
|
936
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
937
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
938
|
+
nextToken: smithy_client_1.expectString,
|
|
939
|
+
resolvedTargets: smithy_client_1._json,
|
|
940
|
+
});
|
|
941
|
+
Object.assign(contents, doc);
|
|
942
|
+
return contents;
|
|
943
|
+
};
|
|
944
|
+
exports.de_ListExperimentResolvedTargetsCommand = de_ListExperimentResolvedTargetsCommand;
|
|
945
|
+
const de_ListExperimentResolvedTargetsCommandError = async (output, context) => {
|
|
946
|
+
const parsedOutput = {
|
|
947
|
+
...output,
|
|
948
|
+
body: await parseErrorBody(output.body, context),
|
|
949
|
+
};
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
switch (errorCode) {
|
|
952
|
+
case "ResourceNotFoundException":
|
|
953
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ValidationException":
|
|
956
|
+
case "com.amazonaws.fis#ValidationException":
|
|
957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
958
|
+
default:
|
|
959
|
+
const parsedBody = parsedOutput.body;
|
|
960
|
+
return throwDefaultError({
|
|
961
|
+
output,
|
|
962
|
+
parsedBody,
|
|
963
|
+
errorCode,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
};
|
|
596
967
|
const de_ListExperimentsCommand = async (output, context) => {
|
|
597
968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
969
|
return de_ListExperimentsCommandError(output, context);
|
|
@@ -628,6 +999,44 @@ const de_ListExperimentsCommandError = async (output, context) => {
|
|
|
628
999
|
});
|
|
629
1000
|
}
|
|
630
1001
|
};
|
|
1002
|
+
const de_ListExperimentTargetAccountConfigurationsCommand = async (output, context) => {
|
|
1003
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1004
|
+
return de_ListExperimentTargetAccountConfigurationsCommandError(output, context);
|
|
1005
|
+
}
|
|
1006
|
+
const contents = (0, smithy_client_1.map)({
|
|
1007
|
+
$metadata: deserializeMetadata(output),
|
|
1008
|
+
});
|
|
1009
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1010
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1011
|
+
nextToken: smithy_client_1.expectString,
|
|
1012
|
+
targetAccountConfigurations: smithy_client_1._json,
|
|
1013
|
+
});
|
|
1014
|
+
Object.assign(contents, doc);
|
|
1015
|
+
return contents;
|
|
1016
|
+
};
|
|
1017
|
+
exports.de_ListExperimentTargetAccountConfigurationsCommand = de_ListExperimentTargetAccountConfigurationsCommand;
|
|
1018
|
+
const de_ListExperimentTargetAccountConfigurationsCommandError = async (output, context) => {
|
|
1019
|
+
const parsedOutput = {
|
|
1020
|
+
...output,
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
|
+
};
|
|
1023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
+
switch (errorCode) {
|
|
1025
|
+
case "ResourceNotFoundException":
|
|
1026
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1027
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1028
|
+
case "ValidationException":
|
|
1029
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1030
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
|
+
default:
|
|
1032
|
+
const parsedBody = parsedOutput.body;
|
|
1033
|
+
return throwDefaultError({
|
|
1034
|
+
output,
|
|
1035
|
+
parsedBody,
|
|
1036
|
+
errorCode,
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
631
1040
|
const de_ListExperimentTemplatesCommand = async (output, context) => {
|
|
632
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
1042
|
return de_ListExperimentTemplatesCommandError(output, context);
|
|
@@ -691,6 +1100,44 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
691
1100
|
errorCode,
|
|
692
1101
|
});
|
|
693
1102
|
};
|
|
1103
|
+
const de_ListTargetAccountConfigurationsCommand = async (output, context) => {
|
|
1104
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
|
+
return de_ListTargetAccountConfigurationsCommandError(output, context);
|
|
1106
|
+
}
|
|
1107
|
+
const contents = (0, smithy_client_1.map)({
|
|
1108
|
+
$metadata: deserializeMetadata(output),
|
|
1109
|
+
});
|
|
1110
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1111
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1112
|
+
nextToken: smithy_client_1.expectString,
|
|
1113
|
+
targetAccountConfigurations: smithy_client_1._json,
|
|
1114
|
+
});
|
|
1115
|
+
Object.assign(contents, doc);
|
|
1116
|
+
return contents;
|
|
1117
|
+
};
|
|
1118
|
+
exports.de_ListTargetAccountConfigurationsCommand = de_ListTargetAccountConfigurationsCommand;
|
|
1119
|
+
const de_ListTargetAccountConfigurationsCommandError = async (output, context) => {
|
|
1120
|
+
const parsedOutput = {
|
|
1121
|
+
...output,
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
|
+
};
|
|
1124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
+
switch (errorCode) {
|
|
1126
|
+
case "ResourceNotFoundException":
|
|
1127
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1128
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
+
case "ValidationException":
|
|
1130
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1131
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
|
+
default:
|
|
1133
|
+
const parsedBody = parsedOutput.body;
|
|
1134
|
+
return throwDefaultError({
|
|
1135
|
+
output,
|
|
1136
|
+
parsedBody,
|
|
1137
|
+
errorCode,
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
694
1141
|
const de_ListTargetResourceTypesCommand = async (output, context) => {
|
|
695
1142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
1143
|
return de_ListTargetResourceTypesCommandError(output, context);
|
|
@@ -894,6 +1341,43 @@ const de_UpdateExperimentTemplateCommandError = async (output, context) => {
|
|
|
894
1341
|
});
|
|
895
1342
|
}
|
|
896
1343
|
};
|
|
1344
|
+
const de_UpdateTargetAccountConfigurationCommand = async (output, context) => {
|
|
1345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
+
return de_UpdateTargetAccountConfigurationCommandError(output, context);
|
|
1347
|
+
}
|
|
1348
|
+
const contents = (0, smithy_client_1.map)({
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
});
|
|
1351
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1352
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1353
|
+
targetAccountConfiguration: smithy_client_1._json,
|
|
1354
|
+
});
|
|
1355
|
+
Object.assign(contents, doc);
|
|
1356
|
+
return contents;
|
|
1357
|
+
};
|
|
1358
|
+
exports.de_UpdateTargetAccountConfigurationCommand = de_UpdateTargetAccountConfigurationCommand;
|
|
1359
|
+
const de_UpdateTargetAccountConfigurationCommandError = async (output, context) => {
|
|
1360
|
+
const parsedOutput = {
|
|
1361
|
+
...output,
|
|
1362
|
+
body: await parseErrorBody(output.body, context),
|
|
1363
|
+
};
|
|
1364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
+
switch (errorCode) {
|
|
1366
|
+
case "ResourceNotFoundException":
|
|
1367
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1368
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "ValidationException":
|
|
1370
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1371
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
|
+
default:
|
|
1373
|
+
const parsedBody = parsedOutput.body;
|
|
1374
|
+
return throwDefaultError({
|
|
1375
|
+
output,
|
|
1376
|
+
parsedBody,
|
|
1377
|
+
errorCode,
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
897
1381
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(FisServiceException_1.FisServiceException);
|
|
898
1382
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
899
1383
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -952,6 +1436,7 @@ const de_Experiment = (output, context) => {
|
|
|
952
1436
|
actions: (_) => de_ExperimentActionMap(_, context),
|
|
953
1437
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
954
1438
|
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1439
|
+
experimentOptions: smithy_client_1._json,
|
|
955
1440
|
experimentTemplateId: smithy_client_1.expectString,
|
|
956
1441
|
id: smithy_client_1.expectString,
|
|
957
1442
|
logConfiguration: smithy_client_1._json,
|
|
@@ -960,6 +1445,7 @@ const de_Experiment = (output, context) => {
|
|
|
960
1445
|
state: smithy_client_1._json,
|
|
961
1446
|
stopConditions: smithy_client_1._json,
|
|
962
1447
|
tags: smithy_client_1._json,
|
|
1448
|
+
targetAccountConfigurationsCount: smithy_client_1.expectLong,
|
|
963
1449
|
targets: smithy_client_1._json,
|
|
964
1450
|
});
|
|
965
1451
|
};
|
|
@@ -1006,12 +1492,14 @@ const de_ExperimentTemplate = (output, context) => {
|
|
|
1006
1492
|
actions: smithy_client_1._json,
|
|
1007
1493
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1008
1494
|
description: smithy_client_1.expectString,
|
|
1495
|
+
experimentOptions: smithy_client_1._json,
|
|
1009
1496
|
id: smithy_client_1.expectString,
|
|
1010
1497
|
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1011
1498
|
logConfiguration: smithy_client_1._json,
|
|
1012
1499
|
roleArn: smithy_client_1.expectString,
|
|
1013
1500
|
stopConditions: smithy_client_1._json,
|
|
1014
1501
|
tags: smithy_client_1._json,
|
|
1502
|
+
targetAccountConfigurationsCount: smithy_client_1.expectLong,
|
|
1015
1503
|
targets: smithy_client_1._json,
|
|
1016
1504
|
});
|
|
1017
1505
|
};
|