@aws-sdk/client-synthetics 3.928.0 → 3.929.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/index.js +988 -1115
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SyntheticsClient.js +2 -0
- package/dist-es/commands/AssociateResourceCommand.js +3 -9
- package/dist-es/commands/CreateCanaryCommand.js +3 -9
- package/dist-es/commands/CreateGroupCommand.js +3 -9
- package/dist-es/commands/DeleteCanaryCommand.js +3 -9
- package/dist-es/commands/DeleteGroupCommand.js +3 -9
- package/dist-es/commands/DescribeCanariesCommand.js +3 -9
- package/dist-es/commands/DescribeCanariesLastRunCommand.js +3 -9
- package/dist-es/commands/DescribeRuntimeVersionsCommand.js +3 -9
- package/dist-es/commands/DisassociateResourceCommand.js +3 -9
- package/dist-es/commands/GetCanaryCommand.js +3 -9
- package/dist-es/commands/GetCanaryRunsCommand.js +3 -9
- package/dist-es/commands/GetGroupCommand.js +3 -9
- package/dist-es/commands/ListAssociatedGroupsCommand.js +3 -9
- package/dist-es/commands/ListGroupResourcesCommand.js +3 -9
- package/dist-es/commands/ListGroupsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartCanaryCommand.js +3 -9
- package/dist-es/commands/StartCanaryDryRunCommand.js +3 -9
- package/dist-es/commands/StopCanaryCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCanaryCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +927 -0
- package/dist-types/SyntheticsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +133 -0
- package/dist-types/ts3.4/SyntheticsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +138 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -935
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -269
|
@@ -1,935 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
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";
|
|
4
|
-
import { AccessDeniedException, BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
|
|
6
|
-
export const se_AssociateResourceCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/group/{GroupIdentifier}/associate");
|
|
12
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ResourceArn: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("PATCH").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_CreateCanaryCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/canary");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
ArtifactConfig: (_) => _json(_),
|
|
29
|
-
ArtifactS3Location: [],
|
|
30
|
-
BrowserConfigs: (_) => _json(_),
|
|
31
|
-
Code: (_) => se_CanaryCodeInput(_, context),
|
|
32
|
-
ExecutionRoleArn: [],
|
|
33
|
-
FailureRetentionPeriodInDays: [],
|
|
34
|
-
Name: [],
|
|
35
|
-
ProvisionedResourceCleanup: [],
|
|
36
|
-
ResourcesToReplicateTags: (_) => _json(_),
|
|
37
|
-
RunConfig: (_) => _json(_),
|
|
38
|
-
RuntimeVersion: [],
|
|
39
|
-
Schedule: (_) => _json(_),
|
|
40
|
-
SuccessRetentionPeriodInDays: [],
|
|
41
|
-
Tags: (_) => _json(_),
|
|
42
|
-
VpcConfig: (_) => _json(_),
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
export const se_CreateGroupCommand = async (input, context) => {
|
|
48
|
-
const b = rb(input, context);
|
|
49
|
-
const headers = {
|
|
50
|
-
"content-type": "application/json",
|
|
51
|
-
};
|
|
52
|
-
b.bp("/group");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify(take(input, {
|
|
55
|
-
Name: [],
|
|
56
|
-
Tags: (_) => _json(_),
|
|
57
|
-
}));
|
|
58
|
-
b.m("POST").h(headers).b(body);
|
|
59
|
-
return b.build();
|
|
60
|
-
};
|
|
61
|
-
export const se_DeleteCanaryCommand = async (input, context) => {
|
|
62
|
-
const b = rb(input, context);
|
|
63
|
-
const headers = {};
|
|
64
|
-
b.bp("/canary/{Name}");
|
|
65
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
66
|
-
const query = map({
|
|
67
|
-
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
|
|
68
|
-
});
|
|
69
|
-
let body;
|
|
70
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
71
|
-
return b.build();
|
|
72
|
-
};
|
|
73
|
-
export const se_DeleteGroupCommand = async (input, context) => {
|
|
74
|
-
const b = rb(input, context);
|
|
75
|
-
const headers = {};
|
|
76
|
-
b.bp("/group/{GroupIdentifier}");
|
|
77
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
78
|
-
let body;
|
|
79
|
-
b.m("DELETE").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_DescribeCanariesCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/canaries");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
MaxResults: [],
|
|
91
|
-
Names: (_) => _json(_),
|
|
92
|
-
NextToken: [],
|
|
93
|
-
}));
|
|
94
|
-
b.m("POST").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/canaries/last-run");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
BrowserType: [],
|
|
106
|
-
MaxResults: [],
|
|
107
|
-
Names: (_) => _json(_),
|
|
108
|
-
NextToken: [],
|
|
109
|
-
}));
|
|
110
|
-
b.m("POST").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
export const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
114
|
-
const b = rb(input, context);
|
|
115
|
-
const headers = {
|
|
116
|
-
"content-type": "application/json",
|
|
117
|
-
};
|
|
118
|
-
b.bp("/runtime-versions");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify(take(input, {
|
|
121
|
-
MaxResults: [],
|
|
122
|
-
NextToken: [],
|
|
123
|
-
}));
|
|
124
|
-
b.m("POST").h(headers).b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
export const se_DisassociateResourceCommand = async (input, context) => {
|
|
128
|
-
const b = rb(input, context);
|
|
129
|
-
const headers = {
|
|
130
|
-
"content-type": "application/json",
|
|
131
|
-
};
|
|
132
|
-
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
133
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(take(input, {
|
|
136
|
-
ResourceArn: [],
|
|
137
|
-
}));
|
|
138
|
-
b.m("PATCH").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
export const se_GetCanaryCommand = async (input, context) => {
|
|
142
|
-
const b = rb(input, context);
|
|
143
|
-
const headers = {};
|
|
144
|
-
b.bp("/canary/{Name}");
|
|
145
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
146
|
-
const query = map({
|
|
147
|
-
[_dRI]: [, input[_DRI]],
|
|
148
|
-
});
|
|
149
|
-
let body;
|
|
150
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
export const se_GetCanaryRunsCommand = async (input, context) => {
|
|
154
|
-
const b = rb(input, context);
|
|
155
|
-
const headers = {
|
|
156
|
-
"content-type": "application/json",
|
|
157
|
-
};
|
|
158
|
-
b.bp("/canary/{Name}/runs");
|
|
159
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify(take(input, {
|
|
162
|
-
DryRunId: [],
|
|
163
|
-
MaxResults: [],
|
|
164
|
-
NextToken: [],
|
|
165
|
-
RunType: [],
|
|
166
|
-
}));
|
|
167
|
-
b.m("POST").h(headers).b(body);
|
|
168
|
-
return b.build();
|
|
169
|
-
};
|
|
170
|
-
export const se_GetGroupCommand = async (input, context) => {
|
|
171
|
-
const b = rb(input, context);
|
|
172
|
-
const headers = {};
|
|
173
|
-
b.bp("/group/{GroupIdentifier}");
|
|
174
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
175
|
-
let body;
|
|
176
|
-
b.m("GET").h(headers).b(body);
|
|
177
|
-
return b.build();
|
|
178
|
-
};
|
|
179
|
-
export const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
180
|
-
const b = rb(input, context);
|
|
181
|
-
const headers = {
|
|
182
|
-
"content-type": "application/json",
|
|
183
|
-
};
|
|
184
|
-
b.bp("/resource/{ResourceArn}/groups");
|
|
185
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify(take(input, {
|
|
188
|
-
MaxResults: [],
|
|
189
|
-
NextToken: [],
|
|
190
|
-
}));
|
|
191
|
-
b.m("POST").h(headers).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
export const se_ListGroupResourcesCommand = async (input, context) => {
|
|
195
|
-
const b = rb(input, context);
|
|
196
|
-
const headers = {
|
|
197
|
-
"content-type": "application/json",
|
|
198
|
-
};
|
|
199
|
-
b.bp("/group/{GroupIdentifier}/resources");
|
|
200
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(take(input, {
|
|
203
|
-
MaxResults: [],
|
|
204
|
-
NextToken: [],
|
|
205
|
-
}));
|
|
206
|
-
b.m("POST").h(headers).b(body);
|
|
207
|
-
return b.build();
|
|
208
|
-
};
|
|
209
|
-
export const se_ListGroupsCommand = async (input, context) => {
|
|
210
|
-
const b = rb(input, context);
|
|
211
|
-
const headers = {
|
|
212
|
-
"content-type": "application/json",
|
|
213
|
-
};
|
|
214
|
-
b.bp("/groups");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify(take(input, {
|
|
217
|
-
MaxResults: [],
|
|
218
|
-
NextToken: [],
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST").h(headers).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/tags/{ResourceArn}");
|
|
227
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
228
|
-
let body;
|
|
229
|
-
b.m("GET").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
export const se_StartCanaryCommand = async (input, context) => {
|
|
233
|
-
const b = rb(input, context);
|
|
234
|
-
const headers = {};
|
|
235
|
-
b.bp("/canary/{Name}/start");
|
|
236
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
237
|
-
let body;
|
|
238
|
-
b.m("POST").h(headers).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
export const se_StartCanaryDryRunCommand = async (input, context) => {
|
|
242
|
-
const b = rb(input, context);
|
|
243
|
-
const headers = {
|
|
244
|
-
"content-type": "application/json",
|
|
245
|
-
};
|
|
246
|
-
b.bp("/canary/{Name}/dry-run/start");
|
|
247
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(take(input, {
|
|
250
|
-
ArtifactConfig: (_) => _json(_),
|
|
251
|
-
ArtifactS3Location: [],
|
|
252
|
-
BrowserConfigs: (_) => _json(_),
|
|
253
|
-
Code: (_) => se_CanaryCodeInput(_, context),
|
|
254
|
-
ExecutionRoleArn: [],
|
|
255
|
-
FailureRetentionPeriodInDays: [],
|
|
256
|
-
ProvisionedResourceCleanup: [],
|
|
257
|
-
RunConfig: (_) => _json(_),
|
|
258
|
-
RuntimeVersion: [],
|
|
259
|
-
SuccessRetentionPeriodInDays: [],
|
|
260
|
-
VisualReference: (_) => _json(_),
|
|
261
|
-
VisualReferences: (_) => _json(_),
|
|
262
|
-
VpcConfig: (_) => _json(_),
|
|
263
|
-
}));
|
|
264
|
-
b.m("POST").h(headers).b(body);
|
|
265
|
-
return b.build();
|
|
266
|
-
};
|
|
267
|
-
export const se_StopCanaryCommand = async (input, context) => {
|
|
268
|
-
const b = rb(input, context);
|
|
269
|
-
const headers = {};
|
|
270
|
-
b.bp("/canary/{Name}/stop");
|
|
271
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
272
|
-
let body;
|
|
273
|
-
b.m("POST").h(headers).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
277
|
-
const b = rb(input, context);
|
|
278
|
-
const headers = {
|
|
279
|
-
"content-type": "application/json",
|
|
280
|
-
};
|
|
281
|
-
b.bp("/tags/{ResourceArn}");
|
|
282
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
283
|
-
let body;
|
|
284
|
-
body = JSON.stringify(take(input, {
|
|
285
|
-
Tags: (_) => _json(_),
|
|
286
|
-
}));
|
|
287
|
-
b.m("POST").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
291
|
-
const b = rb(input, context);
|
|
292
|
-
const headers = {};
|
|
293
|
-
b.bp("/tags/{ResourceArn}");
|
|
294
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
295
|
-
const query = map({
|
|
296
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
297
|
-
});
|
|
298
|
-
let body;
|
|
299
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
export const se_UpdateCanaryCommand = async (input, context) => {
|
|
303
|
-
const b = rb(input, context);
|
|
304
|
-
const headers = {
|
|
305
|
-
"content-type": "application/json",
|
|
306
|
-
};
|
|
307
|
-
b.bp("/canary/{Name}");
|
|
308
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(take(input, {
|
|
311
|
-
ArtifactConfig: (_) => _json(_),
|
|
312
|
-
ArtifactS3Location: [],
|
|
313
|
-
BrowserConfigs: (_) => _json(_),
|
|
314
|
-
Code: (_) => se_CanaryCodeInput(_, context),
|
|
315
|
-
DryRunId: [],
|
|
316
|
-
ExecutionRoleArn: [],
|
|
317
|
-
FailureRetentionPeriodInDays: [],
|
|
318
|
-
ProvisionedResourceCleanup: [],
|
|
319
|
-
RunConfig: (_) => _json(_),
|
|
320
|
-
RuntimeVersion: [],
|
|
321
|
-
Schedule: (_) => _json(_),
|
|
322
|
-
SuccessRetentionPeriodInDays: [],
|
|
323
|
-
VisualReference: (_) => _json(_),
|
|
324
|
-
VisualReferences: (_) => _json(_),
|
|
325
|
-
VpcConfig: (_) => _json(_),
|
|
326
|
-
}));
|
|
327
|
-
b.m("PATCH").h(headers).b(body);
|
|
328
|
-
return b.build();
|
|
329
|
-
};
|
|
330
|
-
export const de_AssociateResourceCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
-
return de_CommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const contents = map({
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
});
|
|
337
|
-
await collectBody(output.body, context);
|
|
338
|
-
return contents;
|
|
339
|
-
};
|
|
340
|
-
export const de_CreateCanaryCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
342
|
-
return de_CommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const contents = map({
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
});
|
|
347
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
348
|
-
const doc = take(data, {
|
|
349
|
-
Canary: (_) => de_Canary(_, context),
|
|
350
|
-
});
|
|
351
|
-
Object.assign(contents, doc);
|
|
352
|
-
return contents;
|
|
353
|
-
};
|
|
354
|
-
export const de_CreateGroupCommand = async (output, context) => {
|
|
355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
356
|
-
return de_CommandError(output, context);
|
|
357
|
-
}
|
|
358
|
-
const contents = map({
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
});
|
|
361
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
362
|
-
const doc = take(data, {
|
|
363
|
-
Group: (_) => de_Group(_, context),
|
|
364
|
-
});
|
|
365
|
-
Object.assign(contents, doc);
|
|
366
|
-
return contents;
|
|
367
|
-
};
|
|
368
|
-
export const de_DeleteCanaryCommand = async (output, context) => {
|
|
369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return de_CommandError(output, context);
|
|
371
|
-
}
|
|
372
|
-
const contents = map({
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
});
|
|
375
|
-
await collectBody(output.body, context);
|
|
376
|
-
return contents;
|
|
377
|
-
};
|
|
378
|
-
export const de_DeleteGroupCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
-
return de_CommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const contents = map({
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
});
|
|
385
|
-
await collectBody(output.body, context);
|
|
386
|
-
return contents;
|
|
387
|
-
};
|
|
388
|
-
export const de_DescribeCanariesCommand = async (output, context) => {
|
|
389
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
390
|
-
return de_CommandError(output, context);
|
|
391
|
-
}
|
|
392
|
-
const contents = map({
|
|
393
|
-
$metadata: deserializeMetadata(output),
|
|
394
|
-
});
|
|
395
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
396
|
-
const doc = take(data, {
|
|
397
|
-
Canaries: (_) => de_Canaries(_, context),
|
|
398
|
-
NextToken: __expectString,
|
|
399
|
-
});
|
|
400
|
-
Object.assign(contents, doc);
|
|
401
|
-
return contents;
|
|
402
|
-
};
|
|
403
|
-
export const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
404
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
405
|
-
return de_CommandError(output, context);
|
|
406
|
-
}
|
|
407
|
-
const contents = map({
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
});
|
|
410
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
411
|
-
const doc = take(data, {
|
|
412
|
-
CanariesLastRun: (_) => de_CanariesLastRun(_, context),
|
|
413
|
-
NextToken: __expectString,
|
|
414
|
-
});
|
|
415
|
-
Object.assign(contents, doc);
|
|
416
|
-
return contents;
|
|
417
|
-
};
|
|
418
|
-
export const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
419
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
420
|
-
return de_CommandError(output, context);
|
|
421
|
-
}
|
|
422
|
-
const contents = map({
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
});
|
|
425
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
426
|
-
const doc = take(data, {
|
|
427
|
-
NextToken: __expectString,
|
|
428
|
-
RuntimeVersions: (_) => de_RuntimeVersionList(_, context),
|
|
429
|
-
});
|
|
430
|
-
Object.assign(contents, doc);
|
|
431
|
-
return contents;
|
|
432
|
-
};
|
|
433
|
-
export const de_DisassociateResourceCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
435
|
-
return de_CommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const contents = map({
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
});
|
|
440
|
-
await collectBody(output.body, context);
|
|
441
|
-
return contents;
|
|
442
|
-
};
|
|
443
|
-
export const de_GetCanaryCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return de_CommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const contents = map({
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
});
|
|
450
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
451
|
-
const doc = take(data, {
|
|
452
|
-
Canary: (_) => de_Canary(_, context),
|
|
453
|
-
});
|
|
454
|
-
Object.assign(contents, doc);
|
|
455
|
-
return contents;
|
|
456
|
-
};
|
|
457
|
-
export const de_GetCanaryRunsCommand = async (output, context) => {
|
|
458
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
-
return de_CommandError(output, context);
|
|
460
|
-
}
|
|
461
|
-
const contents = map({
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
});
|
|
464
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
465
|
-
const doc = take(data, {
|
|
466
|
-
CanaryRuns: (_) => de_CanaryRuns(_, context),
|
|
467
|
-
NextToken: __expectString,
|
|
468
|
-
});
|
|
469
|
-
Object.assign(contents, doc);
|
|
470
|
-
return contents;
|
|
471
|
-
};
|
|
472
|
-
export const de_GetGroupCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const contents = map({
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
});
|
|
479
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
480
|
-
const doc = take(data, {
|
|
481
|
-
Group: (_) => de_Group(_, context),
|
|
482
|
-
});
|
|
483
|
-
Object.assign(contents, doc);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
|
-
export const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const contents = map({
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
});
|
|
493
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
494
|
-
const doc = take(data, {
|
|
495
|
-
Groups: _json,
|
|
496
|
-
NextToken: __expectString,
|
|
497
|
-
});
|
|
498
|
-
Object.assign(contents, doc);
|
|
499
|
-
return contents;
|
|
500
|
-
};
|
|
501
|
-
export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return de_CommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const contents = map({
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
});
|
|
508
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
509
|
-
const doc = take(data, {
|
|
510
|
-
NextToken: __expectString,
|
|
511
|
-
Resources: _json,
|
|
512
|
-
});
|
|
513
|
-
Object.assign(contents, doc);
|
|
514
|
-
return contents;
|
|
515
|
-
};
|
|
516
|
-
export const de_ListGroupsCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const contents = map({
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
});
|
|
523
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
524
|
-
const doc = take(data, {
|
|
525
|
-
Groups: _json,
|
|
526
|
-
NextToken: __expectString,
|
|
527
|
-
});
|
|
528
|
-
Object.assign(contents, doc);
|
|
529
|
-
return contents;
|
|
530
|
-
};
|
|
531
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
532
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
-
return de_CommandError(output, context);
|
|
534
|
-
}
|
|
535
|
-
const contents = map({
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
});
|
|
538
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
539
|
-
const doc = take(data, {
|
|
540
|
-
Tags: _json,
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
};
|
|
545
|
-
export const de_StartCanaryCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const contents = map({
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
});
|
|
552
|
-
await collectBody(output.body, context);
|
|
553
|
-
return contents;
|
|
554
|
-
};
|
|
555
|
-
export const de_StartCanaryDryRunCommand = async (output, context) => {
|
|
556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
-
return de_CommandError(output, context);
|
|
558
|
-
}
|
|
559
|
-
const contents = map({
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
});
|
|
562
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
563
|
-
const doc = take(data, {
|
|
564
|
-
DryRunConfig: _json,
|
|
565
|
-
});
|
|
566
|
-
Object.assign(contents, doc);
|
|
567
|
-
return contents;
|
|
568
|
-
};
|
|
569
|
-
export const de_StopCanaryCommand = async (output, context) => {
|
|
570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
-
return de_CommandError(output, context);
|
|
572
|
-
}
|
|
573
|
-
const contents = map({
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
});
|
|
576
|
-
await collectBody(output.body, context);
|
|
577
|
-
return contents;
|
|
578
|
-
};
|
|
579
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
580
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
-
return de_CommandError(output, context);
|
|
582
|
-
}
|
|
583
|
-
const contents = map({
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
});
|
|
586
|
-
await collectBody(output.body, context);
|
|
587
|
-
return contents;
|
|
588
|
-
};
|
|
589
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const contents = map({
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
});
|
|
596
|
-
await collectBody(output.body, context);
|
|
597
|
-
return contents;
|
|
598
|
-
};
|
|
599
|
-
export const de_UpdateCanaryCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const contents = map({
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
});
|
|
606
|
-
await collectBody(output.body, context);
|
|
607
|
-
return contents;
|
|
608
|
-
};
|
|
609
|
-
const de_CommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "ConflictException":
|
|
617
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
618
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
619
|
-
case "InternalServerException":
|
|
620
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ResourceNotFoundException":
|
|
623
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
624
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ServiceQuotaExceededException":
|
|
626
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
627
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ValidationException":
|
|
629
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
-
case "RequestEntityTooLargeException":
|
|
632
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
633
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
634
|
-
case "BadRequestException":
|
|
635
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
636
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
637
|
-
case "InternalFailureException":
|
|
638
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
639
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
640
|
-
case "NotFoundException":
|
|
641
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
642
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
643
|
-
case "TooManyRequestsException":
|
|
644
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
645
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
646
|
-
case "AccessDeniedException":
|
|
647
|
-
case "com.amazonaws.synthetics#AccessDeniedException":
|
|
648
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
649
|
-
default:
|
|
650
|
-
const parsedBody = parsedOutput.body;
|
|
651
|
-
return throwDefaultError({
|
|
652
|
-
output,
|
|
653
|
-
parsedBody,
|
|
654
|
-
errorCode,
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
659
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
660
|
-
const contents = map({});
|
|
661
|
-
const data = parsedOutput.body;
|
|
662
|
-
const doc = take(data, {
|
|
663
|
-
Message: __expectString,
|
|
664
|
-
});
|
|
665
|
-
Object.assign(contents, doc);
|
|
666
|
-
const exception = new AccessDeniedException({
|
|
667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
668
|
-
...contents,
|
|
669
|
-
});
|
|
670
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
671
|
-
};
|
|
672
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
673
|
-
const contents = map({});
|
|
674
|
-
const data = parsedOutput.body;
|
|
675
|
-
const doc = take(data, {
|
|
676
|
-
Message: __expectString,
|
|
677
|
-
});
|
|
678
|
-
Object.assign(contents, doc);
|
|
679
|
-
const exception = new BadRequestException({
|
|
680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
-
...contents,
|
|
682
|
-
});
|
|
683
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
684
|
-
};
|
|
685
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
686
|
-
const contents = map({});
|
|
687
|
-
const data = parsedOutput.body;
|
|
688
|
-
const doc = take(data, {
|
|
689
|
-
Message: __expectString,
|
|
690
|
-
});
|
|
691
|
-
Object.assign(contents, doc);
|
|
692
|
-
const exception = new ConflictException({
|
|
693
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
694
|
-
...contents,
|
|
695
|
-
});
|
|
696
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
697
|
-
};
|
|
698
|
-
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
699
|
-
const contents = map({});
|
|
700
|
-
const data = parsedOutput.body;
|
|
701
|
-
const doc = take(data, {
|
|
702
|
-
Message: __expectString,
|
|
703
|
-
});
|
|
704
|
-
Object.assign(contents, doc);
|
|
705
|
-
const exception = new InternalFailureException({
|
|
706
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
707
|
-
...contents,
|
|
708
|
-
});
|
|
709
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
710
|
-
};
|
|
711
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
712
|
-
const contents = map({});
|
|
713
|
-
const data = parsedOutput.body;
|
|
714
|
-
const doc = take(data, {
|
|
715
|
-
Message: __expectString,
|
|
716
|
-
});
|
|
717
|
-
Object.assign(contents, doc);
|
|
718
|
-
const exception = new InternalServerException({
|
|
719
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
720
|
-
...contents,
|
|
721
|
-
});
|
|
722
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
723
|
-
};
|
|
724
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
725
|
-
const contents = map({});
|
|
726
|
-
const data = parsedOutput.body;
|
|
727
|
-
const doc = take(data, {
|
|
728
|
-
Message: __expectString,
|
|
729
|
-
});
|
|
730
|
-
Object.assign(contents, doc);
|
|
731
|
-
const exception = new NotFoundException({
|
|
732
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
733
|
-
...contents,
|
|
734
|
-
});
|
|
735
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
736
|
-
};
|
|
737
|
-
const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
738
|
-
const contents = map({});
|
|
739
|
-
const data = parsedOutput.body;
|
|
740
|
-
const doc = take(data, {
|
|
741
|
-
Message: __expectString,
|
|
742
|
-
});
|
|
743
|
-
Object.assign(contents, doc);
|
|
744
|
-
const exception = new RequestEntityTooLargeException({
|
|
745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
746
|
-
...contents,
|
|
747
|
-
});
|
|
748
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
749
|
-
};
|
|
750
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
751
|
-
const contents = map({});
|
|
752
|
-
const data = parsedOutput.body;
|
|
753
|
-
const doc = take(data, {
|
|
754
|
-
Message: __expectString,
|
|
755
|
-
});
|
|
756
|
-
Object.assign(contents, doc);
|
|
757
|
-
const exception = new ResourceNotFoundException({
|
|
758
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
759
|
-
...contents,
|
|
760
|
-
});
|
|
761
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
762
|
-
};
|
|
763
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
764
|
-
const contents = map({});
|
|
765
|
-
const data = parsedOutput.body;
|
|
766
|
-
const doc = take(data, {
|
|
767
|
-
Message: __expectString,
|
|
768
|
-
});
|
|
769
|
-
Object.assign(contents, doc);
|
|
770
|
-
const exception = new ServiceQuotaExceededException({
|
|
771
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
772
|
-
...contents,
|
|
773
|
-
});
|
|
774
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
775
|
-
};
|
|
776
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
777
|
-
const contents = map({});
|
|
778
|
-
const data = parsedOutput.body;
|
|
779
|
-
const doc = take(data, {
|
|
780
|
-
Message: __expectString,
|
|
781
|
-
});
|
|
782
|
-
Object.assign(contents, doc);
|
|
783
|
-
const exception = new TooManyRequestsException({
|
|
784
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
785
|
-
...contents,
|
|
786
|
-
});
|
|
787
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
788
|
-
};
|
|
789
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
790
|
-
const contents = map({});
|
|
791
|
-
const data = parsedOutput.body;
|
|
792
|
-
const doc = take(data, {
|
|
793
|
-
Message: __expectString,
|
|
794
|
-
});
|
|
795
|
-
Object.assign(contents, doc);
|
|
796
|
-
const exception = new ValidationException({
|
|
797
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
798
|
-
...contents,
|
|
799
|
-
});
|
|
800
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
801
|
-
};
|
|
802
|
-
const se_CanaryCodeInput = (input, context) => {
|
|
803
|
-
return take(input, {
|
|
804
|
-
BlueprintTypes: _json,
|
|
805
|
-
Dependencies: _json,
|
|
806
|
-
Handler: [],
|
|
807
|
-
S3Bucket: [],
|
|
808
|
-
S3Key: [],
|
|
809
|
-
S3Version: [],
|
|
810
|
-
ZipFile: context.base64Encoder,
|
|
811
|
-
});
|
|
812
|
-
};
|
|
813
|
-
const de_Canaries = (output, context) => {
|
|
814
|
-
const retVal = (output || [])
|
|
815
|
-
.filter((e) => e != null)
|
|
816
|
-
.map((entry) => {
|
|
817
|
-
return de_Canary(entry, context);
|
|
818
|
-
});
|
|
819
|
-
return retVal;
|
|
820
|
-
};
|
|
821
|
-
const de_CanariesLastRun = (output, context) => {
|
|
822
|
-
const retVal = (output || [])
|
|
823
|
-
.filter((e) => e != null)
|
|
824
|
-
.map((entry) => {
|
|
825
|
-
return de_CanaryLastRun(entry, context);
|
|
826
|
-
});
|
|
827
|
-
return retVal;
|
|
828
|
-
};
|
|
829
|
-
const de_Canary = (output, context) => {
|
|
830
|
-
return take(output, {
|
|
831
|
-
ArtifactConfig: _json,
|
|
832
|
-
ArtifactS3Location: __expectString,
|
|
833
|
-
BrowserConfigs: _json,
|
|
834
|
-
Code: _json,
|
|
835
|
-
DryRunConfig: _json,
|
|
836
|
-
EngineArn: __expectString,
|
|
837
|
-
EngineConfigs: _json,
|
|
838
|
-
ExecutionRoleArn: __expectString,
|
|
839
|
-
FailureRetentionPeriodInDays: __expectInt32,
|
|
840
|
-
Id: __expectString,
|
|
841
|
-
Name: __expectString,
|
|
842
|
-
ProvisionedResourceCleanup: __expectString,
|
|
843
|
-
RunConfig: _json,
|
|
844
|
-
RuntimeVersion: __expectString,
|
|
845
|
-
Schedule: _json,
|
|
846
|
-
Status: _json,
|
|
847
|
-
SuccessRetentionPeriodInDays: __expectInt32,
|
|
848
|
-
Tags: _json,
|
|
849
|
-
Timeline: (_) => de_CanaryTimeline(_, context),
|
|
850
|
-
VisualReference: _json,
|
|
851
|
-
VisualReferences: _json,
|
|
852
|
-
VpcConfig: _json,
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
const de_CanaryLastRun = (output, context) => {
|
|
856
|
-
return take(output, {
|
|
857
|
-
CanaryName: __expectString,
|
|
858
|
-
LastRun: (_) => de_CanaryRun(_, context),
|
|
859
|
-
});
|
|
860
|
-
};
|
|
861
|
-
const de_CanaryRun = (output, context) => {
|
|
862
|
-
return take(output, {
|
|
863
|
-
ArtifactS3Location: __expectString,
|
|
864
|
-
BrowserType: __expectString,
|
|
865
|
-
DryRunConfig: _json,
|
|
866
|
-
Id: __expectString,
|
|
867
|
-
Name: __expectString,
|
|
868
|
-
RetryAttempt: __expectInt32,
|
|
869
|
-
ScheduledRunId: __expectString,
|
|
870
|
-
Status: _json,
|
|
871
|
-
Timeline: (_) => de_CanaryRunTimeline(_, context),
|
|
872
|
-
});
|
|
873
|
-
};
|
|
874
|
-
const de_CanaryRuns = (output, context) => {
|
|
875
|
-
const retVal = (output || [])
|
|
876
|
-
.filter((e) => e != null)
|
|
877
|
-
.map((entry) => {
|
|
878
|
-
return de_CanaryRun(entry, context);
|
|
879
|
-
});
|
|
880
|
-
return retVal;
|
|
881
|
-
};
|
|
882
|
-
const de_CanaryRunTimeline = (output, context) => {
|
|
883
|
-
return take(output, {
|
|
884
|
-
Completed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
885
|
-
MetricTimestampForRunAndRetries: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
886
|
-
Started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
887
|
-
});
|
|
888
|
-
};
|
|
889
|
-
const de_CanaryTimeline = (output, context) => {
|
|
890
|
-
return take(output, {
|
|
891
|
-
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
892
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
893
|
-
LastStarted: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
894
|
-
LastStopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
const de_Group = (output, context) => {
|
|
898
|
-
return take(output, {
|
|
899
|
-
Arn: __expectString,
|
|
900
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
901
|
-
Id: __expectString,
|
|
902
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
903
|
-
Name: __expectString,
|
|
904
|
-
Tags: _json,
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
|
-
const de_RuntimeVersion = (output, context) => {
|
|
908
|
-
return take(output, {
|
|
909
|
-
DeprecationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
910
|
-
Description: __expectString,
|
|
911
|
-
ReleaseDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
912
|
-
VersionName: __expectString,
|
|
913
|
-
});
|
|
914
|
-
};
|
|
915
|
-
const de_RuntimeVersionList = (output, context) => {
|
|
916
|
-
const retVal = (output || [])
|
|
917
|
-
.filter((e) => e != null)
|
|
918
|
-
.map((entry) => {
|
|
919
|
-
return de_RuntimeVersion(entry, context);
|
|
920
|
-
});
|
|
921
|
-
return retVal;
|
|
922
|
-
};
|
|
923
|
-
const deserializeMetadata = (output) => ({
|
|
924
|
-
httpStatusCode: output.statusCode,
|
|
925
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
926
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
927
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
928
|
-
});
|
|
929
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
930
|
-
const _DL = "DeleteLambda";
|
|
931
|
-
const _DRI = "DryRunId";
|
|
932
|
-
const _TK = "TagKeys";
|
|
933
|
-
const _dL = "deleteLambda";
|
|
934
|
-
const _dRI = "dryRunId";
|
|
935
|
-
const _tK = "tagKeys";
|