@aws-sdk/client-fis 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +139 -319
- package/dist-es/protocols/Aws_restJson1.js +140 -320
- package/package.json +5 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
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, 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";
|
|
6
6
|
export const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/experimentTemplates");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
actions: (_) => _json(_),
|
|
@@ -21,423 +21,254 @@ export const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
|
21
21
|
tags: (_) => _json(_),
|
|
22
22
|
targets: (_) => _json(_),
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
export const se_CreateTargetAccountConfigurationCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = rb(input, context);
|
|
36
29
|
const headers = {
|
|
37
30
|
"content-type": "application/json",
|
|
38
31
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
32
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
33
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
34
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
43
35
|
let body;
|
|
44
36
|
body = JSON.stringify(take(input, {
|
|
45
37
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
46
38
|
description: [],
|
|
47
39
|
roleArn: [],
|
|
48
40
|
}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
hostname,
|
|
52
|
-
port,
|
|
53
|
-
method: "POST",
|
|
54
|
-
headers,
|
|
55
|
-
path: resolvedPath,
|
|
56
|
-
body,
|
|
57
|
-
});
|
|
41
|
+
b.m("POST").h(headers).b(body);
|
|
42
|
+
return b.build();
|
|
58
43
|
};
|
|
59
44
|
export const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
60
|
-
const
|
|
45
|
+
const b = rb(input, context);
|
|
61
46
|
const headers = {};
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
b.bp("/experimentTemplates/{id}");
|
|
48
|
+
b.p("id", () => input.id, "{id}", false);
|
|
64
49
|
let body;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "DELETE",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
50
|
+
b.m("DELETE").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
74
52
|
};
|
|
75
53
|
export const se_DeleteTargetAccountConfigurationCommand = async (input, context) => {
|
|
76
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
77
55
|
const headers = {};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
56
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
57
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
58
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
82
59
|
let body;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
hostname,
|
|
86
|
-
port,
|
|
87
|
-
method: "DELETE",
|
|
88
|
-
headers,
|
|
89
|
-
path: resolvedPath,
|
|
90
|
-
body,
|
|
91
|
-
});
|
|
60
|
+
b.m("DELETE").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
92
62
|
};
|
|
93
63
|
export const se_GetActionCommand = async (input, context) => {
|
|
94
|
-
const
|
|
64
|
+
const b = rb(input, context);
|
|
95
65
|
const headers = {};
|
|
96
|
-
|
|
97
|
-
|
|
66
|
+
b.bp("/actions/{id}");
|
|
67
|
+
b.p("id", () => input.id, "{id}", false);
|
|
98
68
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "GET",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
69
|
+
b.m("GET").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
108
71
|
};
|
|
109
72
|
export const se_GetExperimentCommand = async (input, context) => {
|
|
110
|
-
const
|
|
73
|
+
const b = rb(input, context);
|
|
111
74
|
const headers = {};
|
|
112
|
-
|
|
113
|
-
|
|
75
|
+
b.bp("/experiments/{id}");
|
|
76
|
+
b.p("id", () => input.id, "{id}", false);
|
|
114
77
|
let body;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
hostname,
|
|
118
|
-
port,
|
|
119
|
-
method: "GET",
|
|
120
|
-
headers,
|
|
121
|
-
path: resolvedPath,
|
|
122
|
-
body,
|
|
123
|
-
});
|
|
78
|
+
b.m("GET").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
124
80
|
};
|
|
125
81
|
export const se_GetExperimentTargetAccountConfigurationCommand = async (input, context) => {
|
|
126
|
-
const
|
|
82
|
+
const b = rb(input, context);
|
|
127
83
|
const headers = {};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
84
|
+
b.bp("/experiments/{experimentId}/targetAccountConfigurations/{accountId}");
|
|
85
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
86
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
132
87
|
let body;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
hostname,
|
|
136
|
-
port,
|
|
137
|
-
method: "GET",
|
|
138
|
-
headers,
|
|
139
|
-
path: resolvedPath,
|
|
140
|
-
body,
|
|
141
|
-
});
|
|
88
|
+
b.m("GET").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
142
90
|
};
|
|
143
91
|
export const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
144
|
-
const
|
|
92
|
+
const b = rb(input, context);
|
|
145
93
|
const headers = {};
|
|
146
|
-
|
|
147
|
-
|
|
94
|
+
b.bp("/experimentTemplates/{id}");
|
|
95
|
+
b.p("id", () => input.id, "{id}", false);
|
|
148
96
|
let body;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
hostname,
|
|
152
|
-
port,
|
|
153
|
-
method: "GET",
|
|
154
|
-
headers,
|
|
155
|
-
path: resolvedPath,
|
|
156
|
-
body,
|
|
157
|
-
});
|
|
97
|
+
b.m("GET").h(headers).b(body);
|
|
98
|
+
return b.build();
|
|
158
99
|
};
|
|
159
100
|
export const se_GetTargetAccountConfigurationCommand = async (input, context) => {
|
|
160
|
-
const
|
|
101
|
+
const b = rb(input, context);
|
|
161
102
|
const headers = {};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
103
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
104
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
105
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
166
106
|
let body;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
hostname,
|
|
170
|
-
port,
|
|
171
|
-
method: "GET",
|
|
172
|
-
headers,
|
|
173
|
-
path: resolvedPath,
|
|
174
|
-
body,
|
|
175
|
-
});
|
|
107
|
+
b.m("GET").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
176
109
|
};
|
|
177
110
|
export const se_GetTargetResourceTypeCommand = async (input, context) => {
|
|
178
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
179
112
|
const headers = {};
|
|
180
|
-
|
|
181
|
-
|
|
113
|
+
b.bp("/targetResourceTypes/{resourceType}");
|
|
114
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
182
115
|
let body;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
hostname,
|
|
186
|
-
port,
|
|
187
|
-
method: "GET",
|
|
188
|
-
headers,
|
|
189
|
-
path: resolvedPath,
|
|
190
|
-
body,
|
|
191
|
-
});
|
|
116
|
+
b.m("GET").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
192
118
|
};
|
|
193
119
|
export const se_ListActionsCommand = async (input, context) => {
|
|
194
|
-
const
|
|
120
|
+
const b = rb(input, context);
|
|
195
121
|
const headers = {};
|
|
196
|
-
|
|
122
|
+
b.bp("/actions");
|
|
197
123
|
const query = map({
|
|
198
|
-
|
|
199
|
-
|
|
124
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
125
|
+
[_nT]: [, input[_nT]],
|
|
200
126
|
});
|
|
201
127
|
let body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "GET",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
query,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
128
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
129
|
+
return b.build();
|
|
212
130
|
};
|
|
213
131
|
export const se_ListExperimentResolvedTargetsCommand = async (input, context) => {
|
|
214
|
-
const
|
|
132
|
+
const b = rb(input, context);
|
|
215
133
|
const headers = {};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
134
|
+
b.bp("/experiments/{experimentId}/resolvedTargets");
|
|
135
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
219
136
|
const query = map({
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
137
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
138
|
+
[_nT]: [, input[_nT]],
|
|
139
|
+
[_tN]: [, input[_tN]],
|
|
223
140
|
});
|
|
224
141
|
let body;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "GET",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
query,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
142
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
143
|
+
return b.build();
|
|
235
144
|
};
|
|
236
145
|
export const se_ListExperimentsCommand = async (input, context) => {
|
|
237
|
-
const
|
|
146
|
+
const b = rb(input, context);
|
|
238
147
|
const headers = {};
|
|
239
|
-
|
|
148
|
+
b.bp("/experiments");
|
|
240
149
|
const query = map({
|
|
241
|
-
|
|
242
|
-
|
|
150
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
151
|
+
[_nT]: [, input[_nT]],
|
|
243
152
|
});
|
|
244
153
|
let body;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
hostname,
|
|
248
|
-
port,
|
|
249
|
-
method: "GET",
|
|
250
|
-
headers,
|
|
251
|
-
path: resolvedPath,
|
|
252
|
-
query,
|
|
253
|
-
body,
|
|
254
|
-
});
|
|
154
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
155
|
+
return b.build();
|
|
255
156
|
};
|
|
256
157
|
export const se_ListExperimentTargetAccountConfigurationsCommand = async (input, context) => {
|
|
257
|
-
const
|
|
158
|
+
const b = rb(input, context);
|
|
258
159
|
const headers = {};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "experimentId", () => input.experimentId, "{experimentId}", false);
|
|
160
|
+
b.bp("/experiments/{experimentId}/targetAccountConfigurations");
|
|
161
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
262
162
|
const query = map({
|
|
263
|
-
|
|
163
|
+
[_nT]: [, input[_nT]],
|
|
264
164
|
});
|
|
265
165
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
query,
|
|
274
|
-
body,
|
|
275
|
-
});
|
|
166
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
167
|
+
return b.build();
|
|
276
168
|
};
|
|
277
169
|
export const se_ListExperimentTemplatesCommand = async (input, context) => {
|
|
278
|
-
const
|
|
170
|
+
const b = rb(input, context);
|
|
279
171
|
const headers = {};
|
|
280
|
-
|
|
172
|
+
b.bp("/experimentTemplates");
|
|
281
173
|
const query = map({
|
|
282
|
-
|
|
283
|
-
|
|
174
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
175
|
+
[_nT]: [, input[_nT]],
|
|
284
176
|
});
|
|
285
177
|
let body;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
hostname,
|
|
289
|
-
port,
|
|
290
|
-
method: "GET",
|
|
291
|
-
headers,
|
|
292
|
-
path: resolvedPath,
|
|
293
|
-
query,
|
|
294
|
-
body,
|
|
295
|
-
});
|
|
178
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
179
|
+
return b.build();
|
|
296
180
|
};
|
|
297
181
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
298
|
-
const
|
|
182
|
+
const b = rb(input, context);
|
|
299
183
|
const headers = {};
|
|
300
|
-
|
|
301
|
-
|
|
184
|
+
b.bp("/tags/{resourceArn}");
|
|
185
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
302
186
|
let body;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
hostname,
|
|
306
|
-
port,
|
|
307
|
-
method: "GET",
|
|
308
|
-
headers,
|
|
309
|
-
path: resolvedPath,
|
|
310
|
-
body,
|
|
311
|
-
});
|
|
187
|
+
b.m("GET").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
312
189
|
};
|
|
313
190
|
export const se_ListTargetAccountConfigurationsCommand = async (input, context) => {
|
|
314
|
-
const
|
|
191
|
+
const b = rb(input, context);
|
|
315
192
|
const headers = {};
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
193
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations");
|
|
194
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
319
195
|
const query = map({
|
|
320
|
-
|
|
321
|
-
|
|
196
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
197
|
+
[_nT]: [, input[_nT]],
|
|
322
198
|
});
|
|
323
199
|
let body;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
hostname,
|
|
327
|
-
port,
|
|
328
|
-
method: "GET",
|
|
329
|
-
headers,
|
|
330
|
-
path: resolvedPath,
|
|
331
|
-
query,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
200
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
201
|
+
return b.build();
|
|
334
202
|
};
|
|
335
203
|
export const se_ListTargetResourceTypesCommand = async (input, context) => {
|
|
336
|
-
const
|
|
204
|
+
const b = rb(input, context);
|
|
337
205
|
const headers = {};
|
|
338
|
-
|
|
206
|
+
b.bp("/targetResourceTypes");
|
|
339
207
|
const query = map({
|
|
340
|
-
|
|
341
|
-
|
|
208
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
209
|
+
[_nT]: [, input[_nT]],
|
|
342
210
|
});
|
|
343
211
|
let body;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
hostname,
|
|
347
|
-
port,
|
|
348
|
-
method: "GET",
|
|
349
|
-
headers,
|
|
350
|
-
path: resolvedPath,
|
|
351
|
-
query,
|
|
352
|
-
body,
|
|
353
|
-
});
|
|
212
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
213
|
+
return b.build();
|
|
354
214
|
};
|
|
355
215
|
export const se_StartExperimentCommand = async (input, context) => {
|
|
356
|
-
const
|
|
216
|
+
const b = rb(input, context);
|
|
357
217
|
const headers = {
|
|
358
218
|
"content-type": "application/json",
|
|
359
219
|
};
|
|
360
|
-
|
|
220
|
+
b.bp("/experiments");
|
|
361
221
|
let body;
|
|
362
222
|
body = JSON.stringify(take(input, {
|
|
363
223
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
364
224
|
experimentTemplateId: [],
|
|
365
225
|
tags: (_) => _json(_),
|
|
366
226
|
}));
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
hostname,
|
|
370
|
-
port,
|
|
371
|
-
method: "POST",
|
|
372
|
-
headers,
|
|
373
|
-
path: resolvedPath,
|
|
374
|
-
body,
|
|
375
|
-
});
|
|
227
|
+
b.m("POST").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
376
229
|
};
|
|
377
230
|
export const se_StopExperimentCommand = async (input, context) => {
|
|
378
|
-
const
|
|
231
|
+
const b = rb(input, context);
|
|
379
232
|
const headers = {};
|
|
380
|
-
|
|
381
|
-
|
|
233
|
+
b.bp("/experiments/{id}");
|
|
234
|
+
b.p("id", () => input.id, "{id}", false);
|
|
382
235
|
let body;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
hostname,
|
|
386
|
-
port,
|
|
387
|
-
method: "DELETE",
|
|
388
|
-
headers,
|
|
389
|
-
path: resolvedPath,
|
|
390
|
-
body,
|
|
391
|
-
});
|
|
236
|
+
b.m("DELETE").h(headers).b(body);
|
|
237
|
+
return b.build();
|
|
392
238
|
};
|
|
393
239
|
export const se_TagResourceCommand = async (input, context) => {
|
|
394
|
-
const
|
|
240
|
+
const b = rb(input, context);
|
|
395
241
|
const headers = {
|
|
396
242
|
"content-type": "application/json",
|
|
397
243
|
};
|
|
398
|
-
|
|
399
|
-
|
|
244
|
+
b.bp("/tags/{resourceArn}");
|
|
245
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
400
246
|
let body;
|
|
401
247
|
body = JSON.stringify(take(input, {
|
|
402
248
|
tags: (_) => _json(_),
|
|
403
249
|
}));
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
hostname,
|
|
407
|
-
port,
|
|
408
|
-
method: "POST",
|
|
409
|
-
headers,
|
|
410
|
-
path: resolvedPath,
|
|
411
|
-
body,
|
|
412
|
-
});
|
|
250
|
+
b.m("POST").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
413
252
|
};
|
|
414
253
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
415
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
416
255
|
const headers = {};
|
|
417
|
-
|
|
418
|
-
|
|
256
|
+
b.bp("/tags/{resourceArn}");
|
|
257
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
419
258
|
const query = map({
|
|
420
|
-
|
|
259
|
+
[_tK]: [() => input.tagKeys !== void 0, () => (input[_tK] || []).map((_entry) => _entry)],
|
|
421
260
|
});
|
|
422
261
|
let body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
hostname,
|
|
426
|
-
port,
|
|
427
|
-
method: "DELETE",
|
|
428
|
-
headers,
|
|
429
|
-
path: resolvedPath,
|
|
430
|
-
query,
|
|
431
|
-
body,
|
|
432
|
-
});
|
|
262
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
263
|
+
return b.build();
|
|
433
264
|
};
|
|
434
265
|
export const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
435
|
-
const
|
|
266
|
+
const b = rb(input, context);
|
|
436
267
|
const headers = {
|
|
437
268
|
"content-type": "application/json",
|
|
438
269
|
};
|
|
439
|
-
|
|
440
|
-
|
|
270
|
+
b.bp("/experimentTemplates/{id}");
|
|
271
|
+
b.p("id", () => input.id, "{id}", false);
|
|
441
272
|
let body;
|
|
442
273
|
body = JSON.stringify(take(input, {
|
|
443
274
|
actions: (_) => _json(_),
|
|
@@ -448,39 +279,24 @@ export const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
|
448
279
|
stopConditions: (_) => _json(_),
|
|
449
280
|
targets: (_) => _json(_),
|
|
450
281
|
}));
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
hostname,
|
|
454
|
-
port,
|
|
455
|
-
method: "PATCH",
|
|
456
|
-
headers,
|
|
457
|
-
path: resolvedPath,
|
|
458
|
-
body,
|
|
459
|
-
});
|
|
282
|
+
b.m("PATCH").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
460
284
|
};
|
|
461
285
|
export const se_UpdateTargetAccountConfigurationCommand = async (input, context) => {
|
|
462
|
-
const
|
|
286
|
+
const b = rb(input, context);
|
|
463
287
|
const headers = {
|
|
464
288
|
"content-type": "application/json",
|
|
465
289
|
};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
290
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
291
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
292
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
470
293
|
let body;
|
|
471
294
|
body = JSON.stringify(take(input, {
|
|
472
295
|
description: [],
|
|
473
296
|
roleArn: [],
|
|
474
297
|
}));
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
hostname,
|
|
478
|
-
port,
|
|
479
|
-
method: "PATCH",
|
|
480
|
-
headers,
|
|
481
|
-
path: resolvedPath,
|
|
482
|
-
body,
|
|
483
|
-
});
|
|
298
|
+
b.m("PATCH").h(headers).b(body);
|
|
299
|
+
return b.build();
|
|
484
300
|
};
|
|
485
301
|
export const de_CreateExperimentTemplateCommand = async (output, context) => {
|
|
486
302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1481,6 +1297,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1481
1297
|
value !== "" &&
|
|
1482
1298
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1483
1299
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1300
|
+
const _mR = "maxResults";
|
|
1301
|
+
const _nT = "nextToken";
|
|
1302
|
+
const _tK = "tagKeys";
|
|
1303
|
+
const _tN = "targetName";
|
|
1484
1304
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1485
1305
|
if (encoded.length) {
|
|
1486
1306
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-fis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|