@aws-sdk/client-synthetics 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 +107 -252
- package/dist-es/protocols/Aws_restJson1.js +108 -253
- package/package.json +5 -4
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateCanaryCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopCanaryCommand = exports.de_StartCanaryCommand = exports.de_ListTagsForResourceCommand = exports.de_ListGroupsCommand = exports.de_ListGroupResourcesCommand = exports.de_ListAssociatedGroupsCommand = exports.de_GetGroupCommand = exports.de_GetCanaryRunsCommand = exports.de_GetCanaryCommand = exports.de_DisassociateResourceCommand = exports.de_DescribeRuntimeVersionsCommand = exports.de_DescribeCanariesLastRunCommand = exports.de_DescribeCanariesCommand = exports.de_DeleteGroupCommand = exports.de_DeleteCanaryCommand = exports.de_CreateGroupCommand = exports.de_CreateCanaryCommand = exports.de_AssociateResourceCommand = exports.se_UpdateCanaryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopCanaryCommand = exports.se_StartCanaryCommand = exports.se_ListTagsForResourceCommand = exports.se_ListGroupsCommand = exports.se_ListGroupResourcesCommand = exports.se_ListAssociatedGroupsCommand = exports.se_GetGroupCommand = exports.se_GetCanaryRunsCommand = exports.se_GetCanaryCommand = exports.se_DisassociateResourceCommand = exports.se_DescribeRuntimeVersionsCommand = exports.se_DescribeCanariesLastRunCommand = exports.se_DescribeCanariesCommand = exports.se_DeleteGroupCommand = exports.se_DeleteCanaryCommand = exports.se_CreateGroupCommand = exports.se_CreateCanaryCommand = exports.se_AssociateResourceCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SyntheticsServiceException_1 = require("../models/SyntheticsServiceException");
|
|
8
8
|
const se_AssociateResourceCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
b.bp("/group/{GroupIdentifier}/associate");
|
|
14
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
ResourceArn: [],
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "PATCH",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
body,
|
|
27
|
-
});
|
|
19
|
+
b.m("PATCH").h(headers).b(body);
|
|
20
|
+
return b.build();
|
|
28
21
|
};
|
|
29
22
|
exports.se_AssociateResourceCommand = se_AssociateResourceCommand;
|
|
30
23
|
const se_CreateCanaryCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
25
|
const headers = {
|
|
33
26
|
"content-type": "application/json",
|
|
34
27
|
};
|
|
35
|
-
|
|
28
|
+
b.bp("/canary");
|
|
36
29
|
let body;
|
|
37
30
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
31
|
ArtifactConfig: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -48,396 +41,261 @@ const se_CreateCanaryCommand = async (input, context) => {
|
|
|
48
41
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
42
|
VpcConfig: (_) => (0, smithy_client_1._json)(_),
|
|
50
43
|
}));
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
hostname,
|
|
54
|
-
port,
|
|
55
|
-
method: "POST",
|
|
56
|
-
headers,
|
|
57
|
-
path: resolvedPath,
|
|
58
|
-
body,
|
|
59
|
-
});
|
|
44
|
+
b.m("POST").h(headers).b(body);
|
|
45
|
+
return b.build();
|
|
60
46
|
};
|
|
61
47
|
exports.se_CreateCanaryCommand = se_CreateCanaryCommand;
|
|
62
48
|
const se_CreateGroupCommand = async (input, context) => {
|
|
63
|
-
const
|
|
49
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
64
50
|
const headers = {
|
|
65
51
|
"content-type": "application/json",
|
|
66
52
|
};
|
|
67
|
-
|
|
53
|
+
b.bp("/group");
|
|
68
54
|
let body;
|
|
69
55
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
70
56
|
Name: [],
|
|
71
57
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
72
58
|
}));
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
hostname,
|
|
76
|
-
port,
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers,
|
|
79
|
-
path: resolvedPath,
|
|
80
|
-
body,
|
|
81
|
-
});
|
|
59
|
+
b.m("POST").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
82
61
|
};
|
|
83
62
|
exports.se_CreateGroupCommand = se_CreateGroupCommand;
|
|
84
63
|
const se_DeleteCanaryCommand = async (input, context) => {
|
|
85
|
-
const
|
|
64
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
86
65
|
const headers = {};
|
|
87
|
-
|
|
88
|
-
|
|
66
|
+
b.bp("/canary/{Name}");
|
|
67
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
89
68
|
const query = (0, smithy_client_1.map)({
|
|
90
|
-
|
|
69
|
+
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
|
|
91
70
|
});
|
|
92
71
|
let body;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
hostname,
|
|
96
|
-
port,
|
|
97
|
-
method: "DELETE",
|
|
98
|
-
headers,
|
|
99
|
-
path: resolvedPath,
|
|
100
|
-
query,
|
|
101
|
-
body,
|
|
102
|
-
});
|
|
72
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
73
|
+
return b.build();
|
|
103
74
|
};
|
|
104
75
|
exports.se_DeleteCanaryCommand = se_DeleteCanaryCommand;
|
|
105
76
|
const se_DeleteGroupCommand = async (input, context) => {
|
|
106
|
-
const
|
|
77
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
78
|
const headers = {};
|
|
108
|
-
|
|
109
|
-
|
|
79
|
+
b.bp("/group/{GroupIdentifier}");
|
|
80
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
110
81
|
let body;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
hostname,
|
|
114
|
-
port,
|
|
115
|
-
method: "DELETE",
|
|
116
|
-
headers,
|
|
117
|
-
path: resolvedPath,
|
|
118
|
-
body,
|
|
119
|
-
});
|
|
82
|
+
b.m("DELETE").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
120
84
|
};
|
|
121
85
|
exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
|
|
122
86
|
const se_DescribeCanariesCommand = async (input, context) => {
|
|
123
|
-
const
|
|
87
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
124
88
|
const headers = {
|
|
125
89
|
"content-type": "application/json",
|
|
126
90
|
};
|
|
127
|
-
|
|
91
|
+
b.bp("/canaries");
|
|
128
92
|
let body;
|
|
129
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
130
94
|
MaxResults: [],
|
|
131
95
|
Names: (_) => (0, smithy_client_1._json)(_),
|
|
132
96
|
NextToken: [],
|
|
133
97
|
}));
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "POST",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
98
|
+
b.m("POST").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
143
100
|
};
|
|
144
101
|
exports.se_DescribeCanariesCommand = se_DescribeCanariesCommand;
|
|
145
102
|
const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
146
|
-
const
|
|
103
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
104
|
const headers = {
|
|
148
105
|
"content-type": "application/json",
|
|
149
106
|
};
|
|
150
|
-
|
|
107
|
+
b.bp("/canaries/last-run");
|
|
151
108
|
let body;
|
|
152
109
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
110
|
MaxResults: [],
|
|
154
111
|
Names: (_) => (0, smithy_client_1._json)(_),
|
|
155
112
|
NextToken: [],
|
|
156
113
|
}));
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
hostname,
|
|
160
|
-
port,
|
|
161
|
-
method: "POST",
|
|
162
|
-
headers,
|
|
163
|
-
path: resolvedPath,
|
|
164
|
-
body,
|
|
165
|
-
});
|
|
114
|
+
b.m("POST").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
166
116
|
};
|
|
167
117
|
exports.se_DescribeCanariesLastRunCommand = se_DescribeCanariesLastRunCommand;
|
|
168
118
|
const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
169
|
-
const
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
170
120
|
const headers = {
|
|
171
121
|
"content-type": "application/json",
|
|
172
122
|
};
|
|
173
|
-
|
|
123
|
+
b.bp("/runtime-versions");
|
|
174
124
|
let body;
|
|
175
125
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
126
|
MaxResults: [],
|
|
177
127
|
NextToken: [],
|
|
178
128
|
}));
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
hostname,
|
|
182
|
-
port,
|
|
183
|
-
method: "POST",
|
|
184
|
-
headers,
|
|
185
|
-
path: resolvedPath,
|
|
186
|
-
body,
|
|
187
|
-
});
|
|
129
|
+
b.m("POST").h(headers).b(body);
|
|
130
|
+
return b.build();
|
|
188
131
|
};
|
|
189
132
|
exports.se_DescribeRuntimeVersionsCommand = se_DescribeRuntimeVersionsCommand;
|
|
190
133
|
const se_DisassociateResourceCommand = async (input, context) => {
|
|
191
|
-
const
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
192
135
|
const headers = {
|
|
193
136
|
"content-type": "application/json",
|
|
194
137
|
};
|
|
195
|
-
|
|
196
|
-
|
|
138
|
+
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
139
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
197
140
|
let body;
|
|
198
141
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
142
|
ResourceArn: [],
|
|
200
143
|
}));
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
hostname,
|
|
204
|
-
port,
|
|
205
|
-
method: "PATCH",
|
|
206
|
-
headers,
|
|
207
|
-
path: resolvedPath,
|
|
208
|
-
body,
|
|
209
|
-
});
|
|
144
|
+
b.m("PATCH").h(headers).b(body);
|
|
145
|
+
return b.build();
|
|
210
146
|
};
|
|
211
147
|
exports.se_DisassociateResourceCommand = se_DisassociateResourceCommand;
|
|
212
148
|
const se_GetCanaryCommand = async (input, context) => {
|
|
213
|
-
const
|
|
149
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
150
|
const headers = {};
|
|
215
|
-
|
|
216
|
-
|
|
151
|
+
b.bp("/canary/{Name}");
|
|
152
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
217
153
|
let body;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
hostname,
|
|
221
|
-
port,
|
|
222
|
-
method: "GET",
|
|
223
|
-
headers,
|
|
224
|
-
path: resolvedPath,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
154
|
+
b.m("GET").h(headers).b(body);
|
|
155
|
+
return b.build();
|
|
227
156
|
};
|
|
228
157
|
exports.se_GetCanaryCommand = se_GetCanaryCommand;
|
|
229
158
|
const se_GetCanaryRunsCommand = async (input, context) => {
|
|
230
|
-
const
|
|
159
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
231
160
|
const headers = {
|
|
232
161
|
"content-type": "application/json",
|
|
233
162
|
};
|
|
234
|
-
|
|
235
|
-
|
|
163
|
+
b.bp("/canary/{Name}/runs");
|
|
164
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
236
165
|
let body;
|
|
237
166
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
167
|
MaxResults: [],
|
|
239
168
|
NextToken: [],
|
|
240
169
|
}));
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
hostname,
|
|
244
|
-
port,
|
|
245
|
-
method: "POST",
|
|
246
|
-
headers,
|
|
247
|
-
path: resolvedPath,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
170
|
+
b.m("POST").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
250
172
|
};
|
|
251
173
|
exports.se_GetCanaryRunsCommand = se_GetCanaryRunsCommand;
|
|
252
174
|
const se_GetGroupCommand = async (input, context) => {
|
|
253
|
-
const
|
|
175
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
176
|
const headers = {};
|
|
255
|
-
|
|
256
|
-
|
|
177
|
+
b.bp("/group/{GroupIdentifier}");
|
|
178
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
257
179
|
let body;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
hostname,
|
|
261
|
-
port,
|
|
262
|
-
method: "GET",
|
|
263
|
-
headers,
|
|
264
|
-
path: resolvedPath,
|
|
265
|
-
body,
|
|
266
|
-
});
|
|
180
|
+
b.m("GET").h(headers).b(body);
|
|
181
|
+
return b.build();
|
|
267
182
|
};
|
|
268
183
|
exports.se_GetGroupCommand = se_GetGroupCommand;
|
|
269
184
|
const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
270
|
-
const
|
|
185
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
271
186
|
const headers = {
|
|
272
187
|
"content-type": "application/json",
|
|
273
188
|
};
|
|
274
|
-
|
|
275
|
-
|
|
189
|
+
b.bp("/resource/{ResourceArn}/groups");
|
|
190
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
276
191
|
let body;
|
|
277
192
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
193
|
MaxResults: [],
|
|
279
194
|
NextToken: [],
|
|
280
195
|
}));
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
hostname,
|
|
284
|
-
port,
|
|
285
|
-
method: "POST",
|
|
286
|
-
headers,
|
|
287
|
-
path: resolvedPath,
|
|
288
|
-
body,
|
|
289
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
290
198
|
};
|
|
291
199
|
exports.se_ListAssociatedGroupsCommand = se_ListAssociatedGroupsCommand;
|
|
292
200
|
const se_ListGroupResourcesCommand = async (input, context) => {
|
|
293
|
-
const
|
|
201
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
294
202
|
const headers = {
|
|
295
203
|
"content-type": "application/json",
|
|
296
204
|
};
|
|
297
|
-
|
|
298
|
-
|
|
205
|
+
b.bp("/group/{GroupIdentifier}/resources");
|
|
206
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
299
207
|
let body;
|
|
300
208
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
301
209
|
MaxResults: [],
|
|
302
210
|
NextToken: [],
|
|
303
211
|
}));
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "POST",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
body,
|
|
312
|
-
});
|
|
212
|
+
b.m("POST").h(headers).b(body);
|
|
213
|
+
return b.build();
|
|
313
214
|
};
|
|
314
215
|
exports.se_ListGroupResourcesCommand = se_ListGroupResourcesCommand;
|
|
315
216
|
const se_ListGroupsCommand = async (input, context) => {
|
|
316
|
-
const
|
|
217
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
317
218
|
const headers = {
|
|
318
219
|
"content-type": "application/json",
|
|
319
220
|
};
|
|
320
|
-
|
|
221
|
+
b.bp("/groups");
|
|
321
222
|
let body;
|
|
322
223
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
224
|
MaxResults: [],
|
|
324
225
|
NextToken: [],
|
|
325
226
|
}));
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
hostname,
|
|
329
|
-
port,
|
|
330
|
-
method: "POST",
|
|
331
|
-
headers,
|
|
332
|
-
path: resolvedPath,
|
|
333
|
-
body,
|
|
334
|
-
});
|
|
227
|
+
b.m("POST").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
335
229
|
};
|
|
336
230
|
exports.se_ListGroupsCommand = se_ListGroupsCommand;
|
|
337
231
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
338
|
-
const
|
|
232
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
339
233
|
const headers = {};
|
|
340
|
-
|
|
341
|
-
|
|
234
|
+
b.bp("/tags/{ResourceArn}");
|
|
235
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
342
236
|
let body;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
hostname,
|
|
346
|
-
port,
|
|
347
|
-
method: "GET",
|
|
348
|
-
headers,
|
|
349
|
-
path: resolvedPath,
|
|
350
|
-
body,
|
|
351
|
-
});
|
|
237
|
+
b.m("GET").h(headers).b(body);
|
|
238
|
+
return b.build();
|
|
352
239
|
};
|
|
353
240
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
354
241
|
const se_StartCanaryCommand = async (input, context) => {
|
|
355
|
-
const
|
|
242
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
356
243
|
const headers = {};
|
|
357
|
-
|
|
358
|
-
|
|
244
|
+
b.bp("/canary/{Name}/start");
|
|
245
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
359
246
|
let body;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
hostname,
|
|
363
|
-
port,
|
|
364
|
-
method: "POST",
|
|
365
|
-
headers,
|
|
366
|
-
path: resolvedPath,
|
|
367
|
-
body,
|
|
368
|
-
});
|
|
247
|
+
b.m("POST").h(headers).b(body);
|
|
248
|
+
return b.build();
|
|
369
249
|
};
|
|
370
250
|
exports.se_StartCanaryCommand = se_StartCanaryCommand;
|
|
371
251
|
const se_StopCanaryCommand = async (input, context) => {
|
|
372
|
-
const
|
|
252
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
373
253
|
const headers = {};
|
|
374
|
-
|
|
375
|
-
|
|
254
|
+
b.bp("/canary/{Name}/stop");
|
|
255
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
376
256
|
let body;
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
hostname,
|
|
380
|
-
port,
|
|
381
|
-
method: "POST",
|
|
382
|
-
headers,
|
|
383
|
-
path: resolvedPath,
|
|
384
|
-
body,
|
|
385
|
-
});
|
|
257
|
+
b.m("POST").h(headers).b(body);
|
|
258
|
+
return b.build();
|
|
386
259
|
};
|
|
387
260
|
exports.se_StopCanaryCommand = se_StopCanaryCommand;
|
|
388
261
|
const se_TagResourceCommand = async (input, context) => {
|
|
389
|
-
const
|
|
262
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
390
263
|
const headers = {
|
|
391
264
|
"content-type": "application/json",
|
|
392
265
|
};
|
|
393
|
-
|
|
394
|
-
|
|
266
|
+
b.bp("/tags/{ResourceArn}");
|
|
267
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
395
268
|
let body;
|
|
396
269
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
397
270
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
398
271
|
}));
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hostname,
|
|
402
|
-
port,
|
|
403
|
-
method: "POST",
|
|
404
|
-
headers,
|
|
405
|
-
path: resolvedPath,
|
|
406
|
-
body,
|
|
407
|
-
});
|
|
272
|
+
b.m("POST").h(headers).b(body);
|
|
273
|
+
return b.build();
|
|
408
274
|
};
|
|
409
275
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
410
276
|
const se_UntagResourceCommand = async (input, context) => {
|
|
411
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
412
278
|
const headers = {};
|
|
413
|
-
|
|
414
|
-
|
|
279
|
+
b.bp("/tags/{ResourceArn}");
|
|
280
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
415
281
|
const query = (0, smithy_client_1.map)({
|
|
416
|
-
|
|
282
|
+
[_tK]: [
|
|
417
283
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
418
|
-
() => (input
|
|
284
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
419
285
|
],
|
|
420
286
|
});
|
|
421
287
|
let body;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
hostname,
|
|
425
|
-
port,
|
|
426
|
-
method: "DELETE",
|
|
427
|
-
headers,
|
|
428
|
-
path: resolvedPath,
|
|
429
|
-
query,
|
|
430
|
-
body,
|
|
431
|
-
});
|
|
288
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
289
|
+
return b.build();
|
|
432
290
|
};
|
|
433
291
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
434
292
|
const se_UpdateCanaryCommand = async (input, context) => {
|
|
435
|
-
const
|
|
293
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
436
294
|
const headers = {
|
|
437
295
|
"content-type": "application/json",
|
|
438
296
|
};
|
|
439
|
-
|
|
440
|
-
|
|
297
|
+
b.bp("/canary/{Name}");
|
|
298
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
441
299
|
let body;
|
|
442
300
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
443
301
|
ArtifactConfig: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -452,15 +310,8 @@ const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
452
310
|
VisualReference: (_) => (0, smithy_client_1._json)(_),
|
|
453
311
|
VpcConfig: (_) => (0, smithy_client_1._json)(_),
|
|
454
312
|
}));
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
hostname,
|
|
458
|
-
port,
|
|
459
|
-
method: "PATCH",
|
|
460
|
-
headers,
|
|
461
|
-
path: resolvedPath,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
313
|
+
b.m("PATCH").h(headers).b(body);
|
|
314
|
+
return b.build();
|
|
464
315
|
};
|
|
465
316
|
exports.se_UpdateCanaryCommand = se_UpdateCanaryCommand;
|
|
466
317
|
const de_AssociateResourceCommand = async (output, context) => {
|
|
@@ -1565,6 +1416,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1565
1416
|
value !== "" &&
|
|
1566
1417
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1567
1418
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1419
|
+
const _DL = "DeleteLambda";
|
|
1420
|
+
const _TK = "TagKeys";
|
|
1421
|
+
const _dL = "deleteLambda";
|
|
1422
|
+
const _tK = "tagKeys";
|
|
1568
1423
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1569
1424
|
if (encoded.length) {
|
|
1570
1425
|
return JSON.parse(encoded);
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, 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, expectInt32 as __expectInt32, 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 { BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
|
|
5
5
|
export const se_AssociateResourceCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
b.bp("/group/{GroupIdentifier}/associate");
|
|
11
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
ResourceArn: [],
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "PATCH",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("PATCH").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_CreateCanaryCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
b.bp("/canary");
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify(take(input, {
|
|
34
27
|
ArtifactConfig: (_) => _json(_),
|
|
@@ -44,377 +37,242 @@ export const se_CreateCanaryCommand = async (input, context) => {
|
|
|
44
37
|
Tags: (_) => _json(_),
|
|
45
38
|
VpcConfig: (_) => _json(_),
|
|
46
39
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
56
42
|
};
|
|
57
43
|
export const se_CreateGroupCommand = async (input, context) => {
|
|
58
|
-
const
|
|
44
|
+
const b = rb(input, context);
|
|
59
45
|
const headers = {
|
|
60
46
|
"content-type": "application/json",
|
|
61
47
|
};
|
|
62
|
-
|
|
48
|
+
b.bp("/group");
|
|
63
49
|
let body;
|
|
64
50
|
body = JSON.stringify(take(input, {
|
|
65
51
|
Name: [],
|
|
66
52
|
Tags: (_) => _json(_),
|
|
67
53
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
77
56
|
};
|
|
78
57
|
export const se_DeleteCanaryCommand = async (input, context) => {
|
|
79
|
-
const
|
|
58
|
+
const b = rb(input, context);
|
|
80
59
|
const headers = {};
|
|
81
|
-
|
|
82
|
-
|
|
60
|
+
b.bp("/canary/{Name}");
|
|
61
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
83
62
|
const query = map({
|
|
84
|
-
|
|
63
|
+
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
|
|
85
64
|
});
|
|
86
65
|
let body;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "DELETE",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
query,
|
|
95
|
-
body,
|
|
96
|
-
});
|
|
66
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
67
|
+
return b.build();
|
|
97
68
|
};
|
|
98
69
|
export const se_DeleteGroupCommand = async (input, context) => {
|
|
99
|
-
const
|
|
70
|
+
const b = rb(input, context);
|
|
100
71
|
const headers = {};
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
b.bp("/group/{GroupIdentifier}");
|
|
73
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
103
74
|
let body;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
hostname,
|
|
107
|
-
port,
|
|
108
|
-
method: "DELETE",
|
|
109
|
-
headers,
|
|
110
|
-
path: resolvedPath,
|
|
111
|
-
body,
|
|
112
|
-
});
|
|
75
|
+
b.m("DELETE").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
113
77
|
};
|
|
114
78
|
export const se_DescribeCanariesCommand = async (input, context) => {
|
|
115
|
-
const
|
|
79
|
+
const b = rb(input, context);
|
|
116
80
|
const headers = {
|
|
117
81
|
"content-type": "application/json",
|
|
118
82
|
};
|
|
119
|
-
|
|
83
|
+
b.bp("/canaries");
|
|
120
84
|
let body;
|
|
121
85
|
body = JSON.stringify(take(input, {
|
|
122
86
|
MaxResults: [],
|
|
123
87
|
Names: (_) => _json(_),
|
|
124
88
|
NextToken: [],
|
|
125
89
|
}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "POST",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
body,
|
|
134
|
-
});
|
|
90
|
+
b.m("POST").h(headers).b(body);
|
|
91
|
+
return b.build();
|
|
135
92
|
};
|
|
136
93
|
export const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
137
|
-
const
|
|
94
|
+
const b = rb(input, context);
|
|
138
95
|
const headers = {
|
|
139
96
|
"content-type": "application/json",
|
|
140
97
|
};
|
|
141
|
-
|
|
98
|
+
b.bp("/canaries/last-run");
|
|
142
99
|
let body;
|
|
143
100
|
body = JSON.stringify(take(input, {
|
|
144
101
|
MaxResults: [],
|
|
145
102
|
Names: (_) => _json(_),
|
|
146
103
|
NextToken: [],
|
|
147
104
|
}));
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
hostname,
|
|
151
|
-
port,
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers,
|
|
154
|
-
path: resolvedPath,
|
|
155
|
-
body,
|
|
156
|
-
});
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
157
107
|
};
|
|
158
108
|
export const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
159
|
-
const
|
|
109
|
+
const b = rb(input, context);
|
|
160
110
|
const headers = {
|
|
161
111
|
"content-type": "application/json",
|
|
162
112
|
};
|
|
163
|
-
|
|
113
|
+
b.bp("/runtime-versions");
|
|
164
114
|
let body;
|
|
165
115
|
body = JSON.stringify(take(input, {
|
|
166
116
|
MaxResults: [],
|
|
167
117
|
NextToken: [],
|
|
168
118
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
hostname,
|
|
172
|
-
port,
|
|
173
|
-
method: "POST",
|
|
174
|
-
headers,
|
|
175
|
-
path: resolvedPath,
|
|
176
|
-
body,
|
|
177
|
-
});
|
|
119
|
+
b.m("POST").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
178
121
|
};
|
|
179
122
|
export const se_DisassociateResourceCommand = async (input, context) => {
|
|
180
|
-
const
|
|
123
|
+
const b = rb(input, context);
|
|
181
124
|
const headers = {
|
|
182
125
|
"content-type": "application/json",
|
|
183
126
|
};
|
|
184
|
-
|
|
185
|
-
|
|
127
|
+
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
128
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
186
129
|
let body;
|
|
187
130
|
body = JSON.stringify(take(input, {
|
|
188
131
|
ResourceArn: [],
|
|
189
132
|
}));
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
hostname,
|
|
193
|
-
port,
|
|
194
|
-
method: "PATCH",
|
|
195
|
-
headers,
|
|
196
|
-
path: resolvedPath,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
133
|
+
b.m("PATCH").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
199
135
|
};
|
|
200
136
|
export const se_GetCanaryCommand = async (input, context) => {
|
|
201
|
-
const
|
|
137
|
+
const b = rb(input, context);
|
|
202
138
|
const headers = {};
|
|
203
|
-
|
|
204
|
-
|
|
139
|
+
b.bp("/canary/{Name}");
|
|
140
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
205
141
|
let body;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "GET",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
body,
|
|
214
|
-
});
|
|
142
|
+
b.m("GET").h(headers).b(body);
|
|
143
|
+
return b.build();
|
|
215
144
|
};
|
|
216
145
|
export const se_GetCanaryRunsCommand = async (input, context) => {
|
|
217
|
-
const
|
|
146
|
+
const b = rb(input, context);
|
|
218
147
|
const headers = {
|
|
219
148
|
"content-type": "application/json",
|
|
220
149
|
};
|
|
221
|
-
|
|
222
|
-
|
|
150
|
+
b.bp("/canary/{Name}/runs");
|
|
151
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
223
152
|
let body;
|
|
224
153
|
body = JSON.stringify(take(input, {
|
|
225
154
|
MaxResults: [],
|
|
226
155
|
NextToken: [],
|
|
227
156
|
}));
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "POST",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
body,
|
|
236
|
-
});
|
|
157
|
+
b.m("POST").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
237
159
|
};
|
|
238
160
|
export const se_GetGroupCommand = async (input, context) => {
|
|
239
|
-
const
|
|
161
|
+
const b = rb(input, context);
|
|
240
162
|
const headers = {};
|
|
241
|
-
|
|
242
|
-
|
|
163
|
+
b.bp("/group/{GroupIdentifier}");
|
|
164
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
243
165
|
let body;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
hostname,
|
|
247
|
-
port,
|
|
248
|
-
method: "GET",
|
|
249
|
-
headers,
|
|
250
|
-
path: resolvedPath,
|
|
251
|
-
body,
|
|
252
|
-
});
|
|
166
|
+
b.m("GET").h(headers).b(body);
|
|
167
|
+
return b.build();
|
|
253
168
|
};
|
|
254
169
|
export const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
255
|
-
const
|
|
170
|
+
const b = rb(input, context);
|
|
256
171
|
const headers = {
|
|
257
172
|
"content-type": "application/json",
|
|
258
173
|
};
|
|
259
|
-
|
|
260
|
-
|
|
174
|
+
b.bp("/resource/{ResourceArn}/groups");
|
|
175
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
261
176
|
let body;
|
|
262
177
|
body = JSON.stringify(take(input, {
|
|
263
178
|
MaxResults: [],
|
|
264
179
|
NextToken: [],
|
|
265
180
|
}));
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "POST",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
181
|
+
b.m("POST").h(headers).b(body);
|
|
182
|
+
return b.build();
|
|
275
183
|
};
|
|
276
184
|
export const se_ListGroupResourcesCommand = async (input, context) => {
|
|
277
|
-
const
|
|
185
|
+
const b = rb(input, context);
|
|
278
186
|
const headers = {
|
|
279
187
|
"content-type": "application/json",
|
|
280
188
|
};
|
|
281
|
-
|
|
282
|
-
|
|
189
|
+
b.bp("/group/{GroupIdentifier}/resources");
|
|
190
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
283
191
|
let body;
|
|
284
192
|
body = JSON.stringify(take(input, {
|
|
285
193
|
MaxResults: [],
|
|
286
194
|
NextToken: [],
|
|
287
195
|
}));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
hostname,
|
|
291
|
-
port,
|
|
292
|
-
method: "POST",
|
|
293
|
-
headers,
|
|
294
|
-
path: resolvedPath,
|
|
295
|
-
body,
|
|
296
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
297
198
|
};
|
|
298
199
|
export const se_ListGroupsCommand = async (input, context) => {
|
|
299
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
300
201
|
const headers = {
|
|
301
202
|
"content-type": "application/json",
|
|
302
203
|
};
|
|
303
|
-
|
|
204
|
+
b.bp("/groups");
|
|
304
205
|
let body;
|
|
305
206
|
body = JSON.stringify(take(input, {
|
|
306
207
|
MaxResults: [],
|
|
307
208
|
NextToken: [],
|
|
308
209
|
}));
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
hostname,
|
|
312
|
-
port,
|
|
313
|
-
method: "POST",
|
|
314
|
-
headers,
|
|
315
|
-
path: resolvedPath,
|
|
316
|
-
body,
|
|
317
|
-
});
|
|
210
|
+
b.m("POST").h(headers).b(body);
|
|
211
|
+
return b.build();
|
|
318
212
|
};
|
|
319
213
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
320
|
-
const
|
|
214
|
+
const b = rb(input, context);
|
|
321
215
|
const headers = {};
|
|
322
|
-
|
|
323
|
-
|
|
216
|
+
b.bp("/tags/{ResourceArn}");
|
|
217
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
324
218
|
let body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "GET",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
219
|
+
b.m("GET").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
334
221
|
};
|
|
335
222
|
export const se_StartCanaryCommand = async (input, context) => {
|
|
336
|
-
const
|
|
223
|
+
const b = rb(input, context);
|
|
337
224
|
const headers = {};
|
|
338
|
-
|
|
339
|
-
|
|
225
|
+
b.bp("/canary/{Name}/start");
|
|
226
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
340
227
|
let body;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "POST",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
228
|
+
b.m("POST").h(headers).b(body);
|
|
229
|
+
return b.build();
|
|
350
230
|
};
|
|
351
231
|
export const se_StopCanaryCommand = async (input, context) => {
|
|
352
|
-
const
|
|
232
|
+
const b = rb(input, context);
|
|
353
233
|
const headers = {};
|
|
354
|
-
|
|
355
|
-
|
|
234
|
+
b.bp("/canary/{Name}/stop");
|
|
235
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
356
236
|
let body;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
hostname,
|
|
360
|
-
port,
|
|
361
|
-
method: "POST",
|
|
362
|
-
headers,
|
|
363
|
-
path: resolvedPath,
|
|
364
|
-
body,
|
|
365
|
-
});
|
|
237
|
+
b.m("POST").h(headers).b(body);
|
|
238
|
+
return b.build();
|
|
366
239
|
};
|
|
367
240
|
export const se_TagResourceCommand = async (input, context) => {
|
|
368
|
-
const
|
|
241
|
+
const b = rb(input, context);
|
|
369
242
|
const headers = {
|
|
370
243
|
"content-type": "application/json",
|
|
371
244
|
};
|
|
372
|
-
|
|
373
|
-
|
|
245
|
+
b.bp("/tags/{ResourceArn}");
|
|
246
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
374
247
|
let body;
|
|
375
248
|
body = JSON.stringify(take(input, {
|
|
376
249
|
Tags: (_) => _json(_),
|
|
377
250
|
}));
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
hostname,
|
|
381
|
-
port,
|
|
382
|
-
method: "POST",
|
|
383
|
-
headers,
|
|
384
|
-
path: resolvedPath,
|
|
385
|
-
body,
|
|
386
|
-
});
|
|
251
|
+
b.m("POST").h(headers).b(body);
|
|
252
|
+
return b.build();
|
|
387
253
|
};
|
|
388
254
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
389
|
-
const
|
|
255
|
+
const b = rb(input, context);
|
|
390
256
|
const headers = {};
|
|
391
|
-
|
|
392
|
-
|
|
257
|
+
b.bp("/tags/{ResourceArn}");
|
|
258
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
393
259
|
const query = map({
|
|
394
|
-
|
|
260
|
+
[_tK]: [
|
|
395
261
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
396
|
-
() => (input
|
|
262
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
397
263
|
],
|
|
398
264
|
});
|
|
399
265
|
let body;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
hostname,
|
|
403
|
-
port,
|
|
404
|
-
method: "DELETE",
|
|
405
|
-
headers,
|
|
406
|
-
path: resolvedPath,
|
|
407
|
-
query,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
266
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
267
|
+
return b.build();
|
|
410
268
|
};
|
|
411
269
|
export const se_UpdateCanaryCommand = async (input, context) => {
|
|
412
|
-
const
|
|
270
|
+
const b = rb(input, context);
|
|
413
271
|
const headers = {
|
|
414
272
|
"content-type": "application/json",
|
|
415
273
|
};
|
|
416
|
-
|
|
417
|
-
|
|
274
|
+
b.bp("/canary/{Name}");
|
|
275
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
418
276
|
let body;
|
|
419
277
|
body = JSON.stringify(take(input, {
|
|
420
278
|
ArtifactConfig: (_) => _json(_),
|
|
@@ -429,15 +287,8 @@ export const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
429
287
|
VisualReference: (_) => _json(_),
|
|
430
288
|
VpcConfig: (_) => _json(_),
|
|
431
289
|
}));
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
hostname,
|
|
435
|
-
port,
|
|
436
|
-
method: "PATCH",
|
|
437
|
-
headers,
|
|
438
|
-
path: resolvedPath,
|
|
439
|
-
body,
|
|
440
|
-
});
|
|
290
|
+
b.m("PATCH").h(headers).b(body);
|
|
291
|
+
return b.build();
|
|
441
292
|
};
|
|
442
293
|
export const de_AssociateResourceCommand = async (output, context) => {
|
|
443
294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1520,6 +1371,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1520
1371
|
value !== "" &&
|
|
1521
1372
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1522
1373
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1374
|
+
const _DL = "DeleteLambda";
|
|
1375
|
+
const _TK = "TagKeys";
|
|
1376
|
+
const _dL = "deleteLambda";
|
|
1377
|
+
const _tK = "tagKeys";
|
|
1523
1378
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1524
1379
|
if (encoded.length) {
|
|
1525
1380
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-synthetics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Synthetics 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",
|