@aws-sdk/client-scheduler 3.928.0 → 3.930.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 +641 -611
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SchedulerClient.js +2 -0
- package/dist-es/commands/CreateScheduleCommand.js +3 -9
- package/dist-es/commands/CreateScheduleGroupCommand.js +3 -9
- package/dist-es/commands/DeleteScheduleCommand.js +3 -9
- package/dist-es/commands/DeleteScheduleGroupCommand.js +3 -9
- package/dist-es/commands/GetScheduleCommand.js +3 -9
- package/dist-es/commands/GetScheduleGroupCommand.js +3 -9
- package/dist-es/commands/ListScheduleGroupsCommand.js +3 -9
- package/dist-es/commands/ListSchedulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateScheduleCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +610 -0
- package/dist-types/SchedulerClient.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 +2 -5
- package/dist-types/schemas/schemas_0.d.ts +75 -0
- package/dist-types/ts3.4/SchedulerClient.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 +80 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -518
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
|
@@ -1,518 +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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { SchedulerServiceException as __BaseException } from "../models/SchedulerServiceException";
|
|
7
|
-
export const se_CreateScheduleCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/schedules/{Name}");
|
|
13
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
ActionAfterCompletion: [],
|
|
17
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
|
-
Description: [],
|
|
19
|
-
EndDate: (_) => _.getTime() / 1_000,
|
|
20
|
-
FlexibleTimeWindow: (_) => _json(_),
|
|
21
|
-
GroupName: [],
|
|
22
|
-
KmsKeyArn: [],
|
|
23
|
-
ScheduleExpression: [],
|
|
24
|
-
ScheduleExpressionTimezone: [],
|
|
25
|
-
StartDate: (_) => _.getTime() / 1_000,
|
|
26
|
-
State: [],
|
|
27
|
-
Target: (_) => _json(_),
|
|
28
|
-
}));
|
|
29
|
-
b.m("POST").h(headers).b(body);
|
|
30
|
-
return b.build();
|
|
31
|
-
};
|
|
32
|
-
export const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
33
|
-
const b = rb(input, context);
|
|
34
|
-
const headers = {
|
|
35
|
-
"content-type": "application/json",
|
|
36
|
-
};
|
|
37
|
-
b.bp("/schedule-groups/{Name}");
|
|
38
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(take(input, {
|
|
41
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
42
|
-
Tags: (_) => _json(_),
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
export const se_DeleteScheduleCommand = async (input, context) => {
|
|
48
|
-
const b = rb(input, context);
|
|
49
|
-
const headers = {};
|
|
50
|
-
b.bp("/schedules/{Name}");
|
|
51
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
52
|
-
const query = map({
|
|
53
|
-
[_gN]: [, input[_GN]],
|
|
54
|
-
[_cT]: [, input[_CT] ?? generateIdempotencyToken()],
|
|
55
|
-
});
|
|
56
|
-
let body;
|
|
57
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
export const se_DeleteScheduleGroupCommand = async (input, context) => {
|
|
61
|
-
const b = rb(input, context);
|
|
62
|
-
const headers = {};
|
|
63
|
-
b.bp("/schedule-groups/{Name}");
|
|
64
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
65
|
-
const query = map({
|
|
66
|
-
[_cT]: [, input[_CT] ?? generateIdempotencyToken()],
|
|
67
|
-
});
|
|
68
|
-
let body;
|
|
69
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
70
|
-
return b.build();
|
|
71
|
-
};
|
|
72
|
-
export const se_GetScheduleCommand = async (input, context) => {
|
|
73
|
-
const b = rb(input, context);
|
|
74
|
-
const headers = {};
|
|
75
|
-
b.bp("/schedules/{Name}");
|
|
76
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
77
|
-
const query = map({
|
|
78
|
-
[_gN]: [, input[_GN]],
|
|
79
|
-
});
|
|
80
|
-
let body;
|
|
81
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_GetScheduleGroupCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {};
|
|
87
|
-
b.bp("/schedule-groups/{Name}");
|
|
88
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
89
|
-
let body;
|
|
90
|
-
b.m("GET").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
export const se_ListScheduleGroupsCommand = async (input, context) => {
|
|
94
|
-
const b = rb(input, context);
|
|
95
|
-
const headers = {};
|
|
96
|
-
b.bp("/schedule-groups");
|
|
97
|
-
const query = map({
|
|
98
|
-
[_NP]: [, input[_NP]],
|
|
99
|
-
[_NT]: [, input[_NT]],
|
|
100
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
101
|
-
});
|
|
102
|
-
let body;
|
|
103
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_ListSchedulesCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/schedules");
|
|
110
|
-
const query = map({
|
|
111
|
-
[_SG]: [, input[_GN]],
|
|
112
|
-
[_NP]: [, input[_NP]],
|
|
113
|
-
[_S]: [, input[_S]],
|
|
114
|
-
[_NT]: [, input[_NT]],
|
|
115
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
116
|
-
});
|
|
117
|
-
let body;
|
|
118
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
122
|
-
const b = rb(input, context);
|
|
123
|
-
const headers = {};
|
|
124
|
-
b.bp("/tags/{ResourceArn}");
|
|
125
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
126
|
-
let body;
|
|
127
|
-
b.m("GET").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {
|
|
133
|
-
"content-type": "application/json",
|
|
134
|
-
};
|
|
135
|
-
b.bp("/tags/{ResourceArn}");
|
|
136
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(take(input, {
|
|
139
|
-
Tags: (_) => _json(_),
|
|
140
|
-
}));
|
|
141
|
-
b.m("POST").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
145
|
-
const b = rb(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/tags/{ResourceArn}");
|
|
148
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
149
|
-
const query = map({
|
|
150
|
-
[_TK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
151
|
-
});
|
|
152
|
-
let body;
|
|
153
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const se_UpdateScheduleCommand = async (input, context) => {
|
|
157
|
-
const b = rb(input, context);
|
|
158
|
-
const headers = {
|
|
159
|
-
"content-type": "application/json",
|
|
160
|
-
};
|
|
161
|
-
b.bp("/schedules/{Name}");
|
|
162
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
163
|
-
let body;
|
|
164
|
-
body = JSON.stringify(take(input, {
|
|
165
|
-
ActionAfterCompletion: [],
|
|
166
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
167
|
-
Description: [],
|
|
168
|
-
EndDate: (_) => _.getTime() / 1_000,
|
|
169
|
-
FlexibleTimeWindow: (_) => _json(_),
|
|
170
|
-
GroupName: [],
|
|
171
|
-
KmsKeyArn: [],
|
|
172
|
-
ScheduleExpression: [],
|
|
173
|
-
ScheduleExpressionTimezone: [],
|
|
174
|
-
StartDate: (_) => _.getTime() / 1_000,
|
|
175
|
-
State: [],
|
|
176
|
-
Target: (_) => _json(_),
|
|
177
|
-
}));
|
|
178
|
-
b.m("PUT").h(headers).b(body);
|
|
179
|
-
return b.build();
|
|
180
|
-
};
|
|
181
|
-
export const de_CreateScheduleCommand = async (output, context) => {
|
|
182
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
183
|
-
return de_CommandError(output, context);
|
|
184
|
-
}
|
|
185
|
-
const contents = map({
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
});
|
|
188
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
189
|
-
const doc = take(data, {
|
|
190
|
-
ScheduleArn: __expectString,
|
|
191
|
-
});
|
|
192
|
-
Object.assign(contents, doc);
|
|
193
|
-
return contents;
|
|
194
|
-
};
|
|
195
|
-
export const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const contents = map({
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
});
|
|
202
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
203
|
-
const doc = take(data, {
|
|
204
|
-
ScheduleGroupArn: __expectString,
|
|
205
|
-
});
|
|
206
|
-
Object.assign(contents, doc);
|
|
207
|
-
return contents;
|
|
208
|
-
};
|
|
209
|
-
export const de_DeleteScheduleCommand = async (output, context) => {
|
|
210
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
211
|
-
return de_CommandError(output, context);
|
|
212
|
-
}
|
|
213
|
-
const contents = map({
|
|
214
|
-
$metadata: deserializeMetadata(output),
|
|
215
|
-
});
|
|
216
|
-
await collectBody(output.body, context);
|
|
217
|
-
return contents;
|
|
218
|
-
};
|
|
219
|
-
export const de_DeleteScheduleGroupCommand = async (output, context) => {
|
|
220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
221
|
-
return de_CommandError(output, context);
|
|
222
|
-
}
|
|
223
|
-
const contents = map({
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
});
|
|
226
|
-
await collectBody(output.body, context);
|
|
227
|
-
return contents;
|
|
228
|
-
};
|
|
229
|
-
export const de_GetScheduleCommand = async (output, context) => {
|
|
230
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
-
return de_CommandError(output, context);
|
|
232
|
-
}
|
|
233
|
-
const contents = map({
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
});
|
|
236
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
237
|
-
const doc = take(data, {
|
|
238
|
-
ActionAfterCompletion: __expectString,
|
|
239
|
-
Arn: __expectString,
|
|
240
|
-
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
241
|
-
Description: __expectString,
|
|
242
|
-
EndDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
243
|
-
FlexibleTimeWindow: _json,
|
|
244
|
-
GroupName: __expectString,
|
|
245
|
-
KmsKeyArn: __expectString,
|
|
246
|
-
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
247
|
-
Name: __expectString,
|
|
248
|
-
ScheduleExpression: __expectString,
|
|
249
|
-
ScheduleExpressionTimezone: __expectString,
|
|
250
|
-
StartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
251
|
-
State: __expectString,
|
|
252
|
-
Target: _json,
|
|
253
|
-
});
|
|
254
|
-
Object.assign(contents, doc);
|
|
255
|
-
return contents;
|
|
256
|
-
};
|
|
257
|
-
export const de_GetScheduleGroupCommand = async (output, context) => {
|
|
258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return de_CommandError(output, context);
|
|
260
|
-
}
|
|
261
|
-
const contents = map({
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
});
|
|
264
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
265
|
-
const doc = take(data, {
|
|
266
|
-
Arn: __expectString,
|
|
267
|
-
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
268
|
-
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
269
|
-
Name: __expectString,
|
|
270
|
-
State: __expectString,
|
|
271
|
-
});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
return contents;
|
|
274
|
-
};
|
|
275
|
-
export const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const contents = map({
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
});
|
|
282
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
const doc = take(data, {
|
|
284
|
-
NextToken: __expectString,
|
|
285
|
-
ScheduleGroups: (_) => de_ScheduleGroupList(_, context),
|
|
286
|
-
});
|
|
287
|
-
Object.assign(contents, doc);
|
|
288
|
-
return contents;
|
|
289
|
-
};
|
|
290
|
-
export const de_ListSchedulesCommand = async (output, context) => {
|
|
291
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return de_CommandError(output, context);
|
|
293
|
-
}
|
|
294
|
-
const contents = map({
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
});
|
|
297
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
298
|
-
const doc = take(data, {
|
|
299
|
-
NextToken: __expectString,
|
|
300
|
-
Schedules: (_) => de_ScheduleList(_, context),
|
|
301
|
-
});
|
|
302
|
-
Object.assign(contents, doc);
|
|
303
|
-
return contents;
|
|
304
|
-
};
|
|
305
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const contents = map({
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
});
|
|
312
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
313
|
-
const doc = take(data, {
|
|
314
|
-
Tags: _json,
|
|
315
|
-
});
|
|
316
|
-
Object.assign(contents, doc);
|
|
317
|
-
return contents;
|
|
318
|
-
};
|
|
319
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const contents = map({
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
});
|
|
326
|
-
await collectBody(output.body, context);
|
|
327
|
-
return contents;
|
|
328
|
-
};
|
|
329
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
331
|
-
return de_CommandError(output, context);
|
|
332
|
-
}
|
|
333
|
-
const contents = map({
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
});
|
|
336
|
-
await collectBody(output.body, context);
|
|
337
|
-
return contents;
|
|
338
|
-
};
|
|
339
|
-
export const de_UpdateScheduleCommand = async (output, context) => {
|
|
340
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
|
-
return de_CommandError(output, context);
|
|
342
|
-
}
|
|
343
|
-
const contents = map({
|
|
344
|
-
$metadata: deserializeMetadata(output),
|
|
345
|
-
});
|
|
346
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
347
|
-
const doc = take(data, {
|
|
348
|
-
ScheduleArn: __expectString,
|
|
349
|
-
});
|
|
350
|
-
Object.assign(contents, doc);
|
|
351
|
-
return contents;
|
|
352
|
-
};
|
|
353
|
-
const de_CommandError = async (output, context) => {
|
|
354
|
-
const parsedOutput = {
|
|
355
|
-
...output,
|
|
356
|
-
body: await parseErrorBody(output.body, context),
|
|
357
|
-
};
|
|
358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
|
-
switch (errorCode) {
|
|
360
|
-
case "ConflictException":
|
|
361
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
362
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
363
|
-
case "InternalServerException":
|
|
364
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
365
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ResourceNotFoundException":
|
|
367
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
368
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ServiceQuotaExceededException":
|
|
370
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
371
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
372
|
-
case "ThrottlingException":
|
|
373
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
374
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
375
|
-
case "ValidationException":
|
|
376
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
377
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
378
|
-
default:
|
|
379
|
-
const parsedBody = parsedOutput.body;
|
|
380
|
-
return throwDefaultError({
|
|
381
|
-
output,
|
|
382
|
-
parsedBody,
|
|
383
|
-
errorCode,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
388
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
389
|
-
const contents = map({});
|
|
390
|
-
const data = parsedOutput.body;
|
|
391
|
-
const doc = take(data, {
|
|
392
|
-
Message: __expectString,
|
|
393
|
-
});
|
|
394
|
-
Object.assign(contents, doc);
|
|
395
|
-
const exception = new ConflictException({
|
|
396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
397
|
-
...contents,
|
|
398
|
-
});
|
|
399
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
400
|
-
};
|
|
401
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
402
|
-
const contents = map({});
|
|
403
|
-
const data = parsedOutput.body;
|
|
404
|
-
const doc = take(data, {
|
|
405
|
-
Message: __expectString,
|
|
406
|
-
});
|
|
407
|
-
Object.assign(contents, doc);
|
|
408
|
-
const exception = new InternalServerException({
|
|
409
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
410
|
-
...contents,
|
|
411
|
-
});
|
|
412
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
413
|
-
};
|
|
414
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
415
|
-
const contents = map({});
|
|
416
|
-
const data = parsedOutput.body;
|
|
417
|
-
const doc = take(data, {
|
|
418
|
-
Message: __expectString,
|
|
419
|
-
});
|
|
420
|
-
Object.assign(contents, doc);
|
|
421
|
-
const exception = new ResourceNotFoundException({
|
|
422
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
423
|
-
...contents,
|
|
424
|
-
});
|
|
425
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
426
|
-
};
|
|
427
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
428
|
-
const contents = map({});
|
|
429
|
-
const data = parsedOutput.body;
|
|
430
|
-
const doc = take(data, {
|
|
431
|
-
Message: __expectString,
|
|
432
|
-
});
|
|
433
|
-
Object.assign(contents, doc);
|
|
434
|
-
const exception = new ServiceQuotaExceededException({
|
|
435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
436
|
-
...contents,
|
|
437
|
-
});
|
|
438
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
439
|
-
};
|
|
440
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
441
|
-
const contents = map({});
|
|
442
|
-
const data = parsedOutput.body;
|
|
443
|
-
const doc = take(data, {
|
|
444
|
-
Message: __expectString,
|
|
445
|
-
});
|
|
446
|
-
Object.assign(contents, doc);
|
|
447
|
-
const exception = new ThrottlingException({
|
|
448
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
449
|
-
...contents,
|
|
450
|
-
});
|
|
451
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
452
|
-
};
|
|
453
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
454
|
-
const contents = map({});
|
|
455
|
-
const data = parsedOutput.body;
|
|
456
|
-
const doc = take(data, {
|
|
457
|
-
Message: __expectString,
|
|
458
|
-
});
|
|
459
|
-
Object.assign(contents, doc);
|
|
460
|
-
const exception = new ValidationException({
|
|
461
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
462
|
-
...contents,
|
|
463
|
-
});
|
|
464
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
465
|
-
};
|
|
466
|
-
const de_ScheduleGroupList = (output, context) => {
|
|
467
|
-
const retVal = (output || [])
|
|
468
|
-
.filter((e) => e != null)
|
|
469
|
-
.map((entry) => {
|
|
470
|
-
return de_ScheduleGroupSummary(entry, context);
|
|
471
|
-
});
|
|
472
|
-
return retVal;
|
|
473
|
-
};
|
|
474
|
-
const de_ScheduleGroupSummary = (output, context) => {
|
|
475
|
-
return take(output, {
|
|
476
|
-
Arn: __expectString,
|
|
477
|
-
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
478
|
-
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
479
|
-
Name: __expectString,
|
|
480
|
-
State: __expectString,
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
const de_ScheduleList = (output, context) => {
|
|
484
|
-
const retVal = (output || [])
|
|
485
|
-
.filter((e) => e != null)
|
|
486
|
-
.map((entry) => {
|
|
487
|
-
return de_ScheduleSummary(entry, context);
|
|
488
|
-
});
|
|
489
|
-
return retVal;
|
|
490
|
-
};
|
|
491
|
-
const de_ScheduleSummary = (output, context) => {
|
|
492
|
-
return take(output, {
|
|
493
|
-
Arn: __expectString,
|
|
494
|
-
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
495
|
-
GroupName: __expectString,
|
|
496
|
-
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
497
|
-
Name: __expectString,
|
|
498
|
-
State: __expectString,
|
|
499
|
-
Target: _json,
|
|
500
|
-
});
|
|
501
|
-
};
|
|
502
|
-
const deserializeMetadata = (output) => ({
|
|
503
|
-
httpStatusCode: output.statusCode,
|
|
504
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
505
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
506
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
507
|
-
});
|
|
508
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
509
|
-
const _CT = "ClientToken";
|
|
510
|
-
const _GN = "GroupName";
|
|
511
|
-
const _MR = "MaxResults";
|
|
512
|
-
const _NP = "NamePrefix";
|
|
513
|
-
const _NT = "NextToken";
|
|
514
|
-
const _S = "State";
|
|
515
|
-
const _SG = "ScheduleGroup";
|
|
516
|
-
const _TK = "TagKeys";
|
|
517
|
-
const _cT = "clientToken";
|
|
518
|
-
const _gN = "groupName";
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateScheduleCommandInput, CreateScheduleCommandOutput } from "../commands/CreateScheduleCommand";
|
|
4
|
-
import { CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput } from "../commands/CreateScheduleGroupCommand";
|
|
5
|
-
import { DeleteScheduleCommandInput, DeleteScheduleCommandOutput } from "../commands/DeleteScheduleCommand";
|
|
6
|
-
import { DeleteScheduleGroupCommandInput, DeleteScheduleGroupCommandOutput } from "../commands/DeleteScheduleGroupCommand";
|
|
7
|
-
import { GetScheduleCommandInput, GetScheduleCommandOutput } from "../commands/GetScheduleCommand";
|
|
8
|
-
import { GetScheduleGroupCommandInput, GetScheduleGroupCommandOutput } from "../commands/GetScheduleGroupCommand";
|
|
9
|
-
import { ListScheduleGroupsCommandInput, ListScheduleGroupsCommandOutput } from "../commands/ListScheduleGroupsCommand";
|
|
10
|
-
import { ListSchedulesCommandInput, ListSchedulesCommandOutput } from "../commands/ListSchedulesCommand";
|
|
11
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
12
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
13
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
14
|
-
import { UpdateScheduleCommandInput, UpdateScheduleCommandOutput } from "../commands/UpdateScheduleCommand";
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1CreateScheduleCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_CreateScheduleCommand: (input: CreateScheduleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1CreateScheduleGroupCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_CreateScheduleGroupCommand: (input: CreateScheduleGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* serializeAws_restJson1DeleteScheduleCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const se_DeleteScheduleCommand: (input: DeleteScheduleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
-
/**
|
|
28
|
-
* serializeAws_restJson1DeleteScheduleGroupCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const se_DeleteScheduleGroupCommand: (input: DeleteScheduleGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
-
/**
|
|
32
|
-
* serializeAws_restJson1GetScheduleCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const se_GetScheduleCommand: (input: GetScheduleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
-
/**
|
|
36
|
-
* serializeAws_restJson1GetScheduleGroupCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const se_GetScheduleGroupCommand: (input: GetScheduleGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
-
/**
|
|
40
|
-
* serializeAws_restJson1ListScheduleGroupsCommand
|
|
41
|
-
*/
|
|
42
|
-
export declare const se_ListScheduleGroupsCommand: (input: ListScheduleGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
-
/**
|
|
44
|
-
* serializeAws_restJson1ListSchedulesCommand
|
|
45
|
-
*/
|
|
46
|
-
export declare const se_ListSchedulesCommand: (input: ListSchedulesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
|
-
/**
|
|
48
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
49
|
-
*/
|
|
50
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
51
|
-
/**
|
|
52
|
-
* serializeAws_restJson1TagResourceCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
|
-
/**
|
|
56
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
57
|
-
*/
|
|
58
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
59
|
-
/**
|
|
60
|
-
* serializeAws_restJson1UpdateScheduleCommand
|
|
61
|
-
*/
|
|
62
|
-
export declare const se_UpdateScheduleCommand: (input: UpdateScheduleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
63
|
-
/**
|
|
64
|
-
* deserializeAws_restJson1CreateScheduleCommand
|
|
65
|
-
*/
|
|
66
|
-
export declare const de_CreateScheduleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateScheduleCommandOutput>;
|
|
67
|
-
/**
|
|
68
|
-
* deserializeAws_restJson1CreateScheduleGroupCommand
|
|
69
|
-
*/
|
|
70
|
-
export declare const de_CreateScheduleGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateScheduleGroupCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* deserializeAws_restJson1DeleteScheduleCommand
|
|
73
|
-
*/
|
|
74
|
-
export declare const de_DeleteScheduleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteScheduleCommandOutput>;
|
|
75
|
-
/**
|
|
76
|
-
* deserializeAws_restJson1DeleteScheduleGroupCommand
|
|
77
|
-
*/
|
|
78
|
-
export declare const de_DeleteScheduleGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteScheduleGroupCommandOutput>;
|
|
79
|
-
/**
|
|
80
|
-
* deserializeAws_restJson1GetScheduleCommand
|
|
81
|
-
*/
|
|
82
|
-
export declare const de_GetScheduleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetScheduleCommandOutput>;
|
|
83
|
-
/**
|
|
84
|
-
* deserializeAws_restJson1GetScheduleGroupCommand
|
|
85
|
-
*/
|
|
86
|
-
export declare const de_GetScheduleGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetScheduleGroupCommandOutput>;
|
|
87
|
-
/**
|
|
88
|
-
* deserializeAws_restJson1ListScheduleGroupsCommand
|
|
89
|
-
*/
|
|
90
|
-
export declare const de_ListScheduleGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListScheduleGroupsCommandOutput>;
|
|
91
|
-
/**
|
|
92
|
-
* deserializeAws_restJson1ListSchedulesCommand
|
|
93
|
-
*/
|
|
94
|
-
export declare const de_ListSchedulesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSchedulesCommandOutput>;
|
|
95
|
-
/**
|
|
96
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
97
|
-
*/
|
|
98
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
99
|
-
/**
|
|
100
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
101
|
-
*/
|
|
102
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
103
|
-
/**
|
|
104
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
105
|
-
*/
|
|
106
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
107
|
-
/**
|
|
108
|
-
* deserializeAws_restJson1UpdateScheduleCommand
|
|
109
|
-
*/
|
|
110
|
-
export declare const de_UpdateScheduleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateScheduleCommandOutput>;
|