@aws-sdk/client-bedrock-data-automation 3.893.0 → 3.895.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 +1471 -10
- package/package.json +7 -7
- package/dist-cjs/BedrockDataAutomation.js +0 -39
- package/dist-cjs/BedrockDataAutomationClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/CreateBlueprintCommand.js +0 -27
- package/dist-cjs/commands/CreateBlueprintVersionCommand.js +0 -27
- package/dist-cjs/commands/CreateDataAutomationProjectCommand.js +0 -27
- package/dist-cjs/commands/DeleteBlueprintCommand.js +0 -26
- package/dist-cjs/commands/DeleteDataAutomationProjectCommand.js +0 -26
- package/dist-cjs/commands/GetBlueprintCommand.js +0 -27
- package/dist-cjs/commands/GetDataAutomationProjectCommand.js +0 -27
- package/dist-cjs/commands/ListBlueprintsCommand.js +0 -27
- package/dist-cjs/commands/ListDataAutomationProjectsCommand.js +0 -27
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateBlueprintCommand.js +0 -27
- package/dist-cjs/commands/UpdateDataAutomationProjectCommand.js +0 -27
- package/dist-cjs/commands/index.js +0 -17
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/BedrockDataAutomationServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -263
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListBlueprintsPaginator.js +0 -7
- package/dist-cjs/pagination/ListDataAutomationProjectsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -6
- package/dist-cjs/protocols/Aws_restJson1.js +0 -645
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateDataAutomationProjectCommand = exports.de_UpdateBlueprintCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListDataAutomationProjectsCommand = exports.de_ListBlueprintsCommand = exports.de_GetDataAutomationProjectCommand = exports.de_GetBlueprintCommand = exports.de_DeleteDataAutomationProjectCommand = exports.de_DeleteBlueprintCommand = exports.de_CreateDataAutomationProjectCommand = exports.de_CreateBlueprintVersionCommand = exports.de_CreateBlueprintCommand = exports.se_UpdateDataAutomationProjectCommand = exports.se_UpdateBlueprintCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListDataAutomationProjectsCommand = exports.se_ListBlueprintsCommand = exports.se_GetDataAutomationProjectCommand = exports.se_GetBlueprintCommand = exports.se_DeleteDataAutomationProjectCommand = exports.se_DeleteBlueprintCommand = exports.se_CreateDataAutomationProjectCommand = exports.se_CreateBlueprintVersionCommand = exports.se_CreateBlueprintCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const BedrockDataAutomationServiceException_1 = require("../models/BedrockDataAutomationServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateBlueprintCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/blueprints");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
blueprintName: [],
|
|
19
|
-
blueprintStage: [],
|
|
20
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
21
|
-
encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
schema: [],
|
|
23
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
-
type: [],
|
|
25
|
-
}));
|
|
26
|
-
b.m("PUT").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateBlueprintCommand = se_CreateBlueprintCommand;
|
|
30
|
-
const se_CreateBlueprintVersionCommand = async (input, context) => {
|
|
31
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
32
|
-
const headers = {
|
|
33
|
-
"content-type": "application/json",
|
|
34
|
-
};
|
|
35
|
-
b.bp("/blueprints/{blueprintArn}/versions");
|
|
36
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
37
|
-
let body;
|
|
38
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
40
|
-
}));
|
|
41
|
-
b.m("POST").h(headers).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateBlueprintVersionCommand = se_CreateBlueprintVersionCommand;
|
|
45
|
-
const se_CreateDataAutomationProjectCommand = async (input, context) => {
|
|
46
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/json",
|
|
49
|
-
};
|
|
50
|
-
b.bp("/data-automation-projects");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
53
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
54
|
-
customOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
-
encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
56
|
-
overrideConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
57
|
-
projectDescription: [],
|
|
58
|
-
projectName: [],
|
|
59
|
-
projectStage: [],
|
|
60
|
-
standardOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
-
}));
|
|
63
|
-
b.m("PUT").h(headers).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateDataAutomationProjectCommand = se_CreateDataAutomationProjectCommand;
|
|
67
|
-
const se_DeleteBlueprintCommand = async (input, context) => {
|
|
68
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
69
|
-
const headers = {};
|
|
70
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
71
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
72
|
-
const query = (0, smithy_client_1.map)({
|
|
73
|
-
[_bV]: [, input[_bV]],
|
|
74
|
-
});
|
|
75
|
-
let body;
|
|
76
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
77
|
-
return b.build();
|
|
78
|
-
};
|
|
79
|
-
exports.se_DeleteBlueprintCommand = se_DeleteBlueprintCommand;
|
|
80
|
-
const se_DeleteDataAutomationProjectCommand = async (input, context) => {
|
|
81
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
|
-
const headers = {};
|
|
83
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
84
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
85
|
-
let body;
|
|
86
|
-
b.m("DELETE").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
exports.se_DeleteDataAutomationProjectCommand = se_DeleteDataAutomationProjectCommand;
|
|
90
|
-
const se_GetBlueprintCommand = async (input, context) => {
|
|
91
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
92
|
-
const headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
96
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
99
|
-
blueprintStage: [],
|
|
100
|
-
blueprintVersion: [],
|
|
101
|
-
}));
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_GetBlueprintCommand = se_GetBlueprintCommand;
|
|
106
|
-
const se_GetDataAutomationProjectCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
112
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
115
|
-
projectStage: [],
|
|
116
|
-
}));
|
|
117
|
-
b.m("POST").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
exports.se_GetDataAutomationProjectCommand = se_GetDataAutomationProjectCommand;
|
|
121
|
-
const se_ListBlueprintsCommand = async (input, context) => {
|
|
122
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
123
|
-
const headers = {
|
|
124
|
-
"content-type": "application/json",
|
|
125
|
-
};
|
|
126
|
-
b.bp("/blueprints");
|
|
127
|
-
let body;
|
|
128
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
-
blueprintArn: [],
|
|
130
|
-
blueprintStageFilter: [],
|
|
131
|
-
maxResults: [],
|
|
132
|
-
nextToken: [],
|
|
133
|
-
projectFilter: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
-
resourceOwner: [],
|
|
135
|
-
}));
|
|
136
|
-
b.m("POST").h(headers).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
exports.se_ListBlueprintsCommand = se_ListBlueprintsCommand;
|
|
140
|
-
const se_ListDataAutomationProjectsCommand = async (input, context) => {
|
|
141
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
};
|
|
145
|
-
b.bp("/data-automation-projects");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
148
|
-
blueprintFilter: (_) => (0, smithy_client_1._json)(_),
|
|
149
|
-
maxResults: [],
|
|
150
|
-
nextToken: [],
|
|
151
|
-
projectStageFilter: [],
|
|
152
|
-
resourceOwner: [],
|
|
153
|
-
}));
|
|
154
|
-
b.m("POST").h(headers).b(body);
|
|
155
|
-
return b.build();
|
|
156
|
-
};
|
|
157
|
-
exports.se_ListDataAutomationProjectsCommand = se_ListDataAutomationProjectsCommand;
|
|
158
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
159
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
160
|
-
const headers = {
|
|
161
|
-
"content-type": "application/json",
|
|
162
|
-
};
|
|
163
|
-
b.bp("/listTagsForResource");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
166
|
-
resourceARN: [],
|
|
167
|
-
}));
|
|
168
|
-
b.m("POST").h(headers).b(body);
|
|
169
|
-
return b.build();
|
|
170
|
-
};
|
|
171
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
172
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
173
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
174
|
-
const headers = {
|
|
175
|
-
"content-type": "application/json",
|
|
176
|
-
};
|
|
177
|
-
b.bp("/tagResource");
|
|
178
|
-
let body;
|
|
179
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
180
|
-
resourceARN: [],
|
|
181
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
182
|
-
}));
|
|
183
|
-
b.m("POST").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
187
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
188
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
189
|
-
const headers = {
|
|
190
|
-
"content-type": "application/json",
|
|
191
|
-
};
|
|
192
|
-
b.bp("/untagResource");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
195
|
-
resourceARN: [],
|
|
196
|
-
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
197
|
-
}));
|
|
198
|
-
b.m("POST").h(headers).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
202
|
-
const se_UpdateBlueprintCommand = async (input, context) => {
|
|
203
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
204
|
-
const headers = {
|
|
205
|
-
"content-type": "application/json",
|
|
206
|
-
};
|
|
207
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
208
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
211
|
-
blueprintStage: [],
|
|
212
|
-
encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
213
|
-
schema: [],
|
|
214
|
-
}));
|
|
215
|
-
b.m("PUT").h(headers).b(body);
|
|
216
|
-
return b.build();
|
|
217
|
-
};
|
|
218
|
-
exports.se_UpdateBlueprintCommand = se_UpdateBlueprintCommand;
|
|
219
|
-
const se_UpdateDataAutomationProjectCommand = async (input, context) => {
|
|
220
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
221
|
-
const headers = {
|
|
222
|
-
"content-type": "application/json",
|
|
223
|
-
};
|
|
224
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
225
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
226
|
-
let body;
|
|
227
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
228
|
-
customOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
229
|
-
encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
230
|
-
overrideConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
231
|
-
projectDescription: [],
|
|
232
|
-
projectStage: [],
|
|
233
|
-
standardOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
234
|
-
}));
|
|
235
|
-
b.m("PUT").h(headers).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
exports.se_UpdateDataAutomationProjectCommand = se_UpdateDataAutomationProjectCommand;
|
|
239
|
-
const de_CreateBlueprintCommand = async (output, context) => {
|
|
240
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
241
|
-
return de_CommandError(output, context);
|
|
242
|
-
}
|
|
243
|
-
const contents = (0, smithy_client_1.map)({
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
});
|
|
246
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
247
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
248
|
-
blueprint: (_) => de_Blueprint(_, context),
|
|
249
|
-
});
|
|
250
|
-
Object.assign(contents, doc);
|
|
251
|
-
return contents;
|
|
252
|
-
};
|
|
253
|
-
exports.de_CreateBlueprintCommand = de_CreateBlueprintCommand;
|
|
254
|
-
const de_CreateBlueprintVersionCommand = async (output, context) => {
|
|
255
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
256
|
-
return de_CommandError(output, context);
|
|
257
|
-
}
|
|
258
|
-
const contents = (0, smithy_client_1.map)({
|
|
259
|
-
$metadata: deserializeMetadata(output),
|
|
260
|
-
});
|
|
261
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
262
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
263
|
-
blueprint: (_) => de_Blueprint(_, context),
|
|
264
|
-
});
|
|
265
|
-
Object.assign(contents, doc);
|
|
266
|
-
return contents;
|
|
267
|
-
};
|
|
268
|
-
exports.de_CreateBlueprintVersionCommand = de_CreateBlueprintVersionCommand;
|
|
269
|
-
const de_CreateDataAutomationProjectCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const contents = (0, smithy_client_1.map)({
|
|
274
|
-
$metadata: deserializeMetadata(output),
|
|
275
|
-
});
|
|
276
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
277
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
278
|
-
projectArn: smithy_client_1.expectString,
|
|
279
|
-
projectStage: smithy_client_1.expectString,
|
|
280
|
-
status: smithy_client_1.expectString,
|
|
281
|
-
});
|
|
282
|
-
Object.assign(contents, doc);
|
|
283
|
-
return contents;
|
|
284
|
-
};
|
|
285
|
-
exports.de_CreateDataAutomationProjectCommand = de_CreateDataAutomationProjectCommand;
|
|
286
|
-
const de_DeleteBlueprintCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
-
return de_CommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const contents = (0, smithy_client_1.map)({
|
|
291
|
-
$metadata: deserializeMetadata(output),
|
|
292
|
-
});
|
|
293
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
294
|
-
return contents;
|
|
295
|
-
};
|
|
296
|
-
exports.de_DeleteBlueprintCommand = de_DeleteBlueprintCommand;
|
|
297
|
-
const de_DeleteDataAutomationProjectCommand = async (output, context) => {
|
|
298
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
|
-
return de_CommandError(output, context);
|
|
300
|
-
}
|
|
301
|
-
const contents = (0, smithy_client_1.map)({
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
});
|
|
304
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
305
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
306
|
-
projectArn: smithy_client_1.expectString,
|
|
307
|
-
status: smithy_client_1.expectString,
|
|
308
|
-
});
|
|
309
|
-
Object.assign(contents, doc);
|
|
310
|
-
return contents;
|
|
311
|
-
};
|
|
312
|
-
exports.de_DeleteDataAutomationProjectCommand = de_DeleteDataAutomationProjectCommand;
|
|
313
|
-
const de_GetBlueprintCommand = async (output, context) => {
|
|
314
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
315
|
-
return de_CommandError(output, context);
|
|
316
|
-
}
|
|
317
|
-
const contents = (0, smithy_client_1.map)({
|
|
318
|
-
$metadata: deserializeMetadata(output),
|
|
319
|
-
});
|
|
320
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
321
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
322
|
-
blueprint: (_) => de_Blueprint(_, context),
|
|
323
|
-
});
|
|
324
|
-
Object.assign(contents, doc);
|
|
325
|
-
return contents;
|
|
326
|
-
};
|
|
327
|
-
exports.de_GetBlueprintCommand = de_GetBlueprintCommand;
|
|
328
|
-
const de_GetDataAutomationProjectCommand = async (output, context) => {
|
|
329
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
330
|
-
return de_CommandError(output, context);
|
|
331
|
-
}
|
|
332
|
-
const contents = (0, smithy_client_1.map)({
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
});
|
|
335
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
336
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
337
|
-
project: (_) => de_DataAutomationProject(_, context),
|
|
338
|
-
});
|
|
339
|
-
Object.assign(contents, doc);
|
|
340
|
-
return contents;
|
|
341
|
-
};
|
|
342
|
-
exports.de_GetDataAutomationProjectCommand = de_GetDataAutomationProjectCommand;
|
|
343
|
-
const de_ListBlueprintsCommand = async (output, context) => {
|
|
344
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
345
|
-
return de_CommandError(output, context);
|
|
346
|
-
}
|
|
347
|
-
const contents = (0, smithy_client_1.map)({
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
});
|
|
350
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
351
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
352
|
-
blueprints: (_) => de_Blueprints(_, context),
|
|
353
|
-
nextToken: smithy_client_1.expectString,
|
|
354
|
-
});
|
|
355
|
-
Object.assign(contents, doc);
|
|
356
|
-
return contents;
|
|
357
|
-
};
|
|
358
|
-
exports.de_ListBlueprintsCommand = de_ListBlueprintsCommand;
|
|
359
|
-
const de_ListDataAutomationProjectsCommand = async (output, context) => {
|
|
360
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
|
-
return de_CommandError(output, context);
|
|
362
|
-
}
|
|
363
|
-
const contents = (0, smithy_client_1.map)({
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
});
|
|
366
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
367
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
368
|
-
nextToken: smithy_client_1.expectString,
|
|
369
|
-
projects: (_) => de_DataAutomationProjectSummaries(_, context),
|
|
370
|
-
});
|
|
371
|
-
Object.assign(contents, doc);
|
|
372
|
-
return contents;
|
|
373
|
-
};
|
|
374
|
-
exports.de_ListDataAutomationProjectsCommand = de_ListDataAutomationProjectsCommand;
|
|
375
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
376
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
|
-
return de_CommandError(output, context);
|
|
378
|
-
}
|
|
379
|
-
const contents = (0, smithy_client_1.map)({
|
|
380
|
-
$metadata: deserializeMetadata(output),
|
|
381
|
-
});
|
|
382
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
383
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
384
|
-
tags: smithy_client_1._json,
|
|
385
|
-
});
|
|
386
|
-
Object.assign(contents, doc);
|
|
387
|
-
return contents;
|
|
388
|
-
};
|
|
389
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
390
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
-
return de_CommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const contents = (0, smithy_client_1.map)({
|
|
395
|
-
$metadata: deserializeMetadata(output),
|
|
396
|
-
});
|
|
397
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
398
|
-
return contents;
|
|
399
|
-
};
|
|
400
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
401
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
402
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
-
return de_CommandError(output, context);
|
|
404
|
-
}
|
|
405
|
-
const contents = (0, smithy_client_1.map)({
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
});
|
|
408
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
409
|
-
return contents;
|
|
410
|
-
};
|
|
411
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
412
|
-
const de_UpdateBlueprintCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
|
-
return de_CommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
const contents = (0, smithy_client_1.map)({
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
});
|
|
419
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
420
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
421
|
-
blueprint: (_) => de_Blueprint(_, context),
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
return contents;
|
|
425
|
-
};
|
|
426
|
-
exports.de_UpdateBlueprintCommand = de_UpdateBlueprintCommand;
|
|
427
|
-
const de_UpdateDataAutomationProjectCommand = async (output, context) => {
|
|
428
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
429
|
-
return de_CommandError(output, context);
|
|
430
|
-
}
|
|
431
|
-
const contents = (0, smithy_client_1.map)({
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
});
|
|
434
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
435
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
436
|
-
projectArn: smithy_client_1.expectString,
|
|
437
|
-
projectStage: smithy_client_1.expectString,
|
|
438
|
-
status: smithy_client_1.expectString,
|
|
439
|
-
});
|
|
440
|
-
Object.assign(contents, doc);
|
|
441
|
-
return contents;
|
|
442
|
-
};
|
|
443
|
-
exports.de_UpdateDataAutomationProjectCommand = de_UpdateDataAutomationProjectCommand;
|
|
444
|
-
const de_CommandError = async (output, context) => {
|
|
445
|
-
const parsedOutput = {
|
|
446
|
-
...output,
|
|
447
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
448
|
-
};
|
|
449
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
450
|
-
switch (errorCode) {
|
|
451
|
-
case "AccessDeniedException":
|
|
452
|
-
case "com.amazonaws.bedrockdataautomation#AccessDeniedException":
|
|
453
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ConflictException":
|
|
455
|
-
case "com.amazonaws.bedrockdataautomation#ConflictException":
|
|
456
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
457
|
-
case "InternalServerException":
|
|
458
|
-
case "com.amazonaws.bedrockdataautomation#InternalServerException":
|
|
459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ServiceQuotaExceededException":
|
|
461
|
-
case "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException":
|
|
462
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ThrottlingException":
|
|
464
|
-
case "com.amazonaws.bedrockdataautomation#ThrottlingException":
|
|
465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ValidationException":
|
|
467
|
-
case "com.amazonaws.bedrockdataautomation#ValidationException":
|
|
468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ResourceNotFoundException":
|
|
470
|
-
case "com.amazonaws.bedrockdataautomation#ResourceNotFoundException":
|
|
471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
|
-
default:
|
|
473
|
-
const parsedBody = parsedOutput.body;
|
|
474
|
-
return throwDefaultError({
|
|
475
|
-
output,
|
|
476
|
-
parsedBody,
|
|
477
|
-
errorCode,
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(BedrockDataAutomationServiceException_1.BedrockDataAutomationServiceException);
|
|
482
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
483
|
-
const contents = (0, smithy_client_1.map)({});
|
|
484
|
-
const data = parsedOutput.body;
|
|
485
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
486
|
-
message: smithy_client_1.expectString,
|
|
487
|
-
});
|
|
488
|
-
Object.assign(contents, doc);
|
|
489
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
490
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
491
|
-
...contents,
|
|
492
|
-
});
|
|
493
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
494
|
-
};
|
|
495
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
496
|
-
const contents = (0, smithy_client_1.map)({});
|
|
497
|
-
const data = parsedOutput.body;
|
|
498
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
499
|
-
message: smithy_client_1.expectString,
|
|
500
|
-
});
|
|
501
|
-
Object.assign(contents, doc);
|
|
502
|
-
const exception = new models_0_1.ConflictException({
|
|
503
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
504
|
-
...contents,
|
|
505
|
-
});
|
|
506
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
507
|
-
};
|
|
508
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
509
|
-
const contents = (0, smithy_client_1.map)({});
|
|
510
|
-
const data = parsedOutput.body;
|
|
511
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
512
|
-
message: smithy_client_1.expectString,
|
|
513
|
-
});
|
|
514
|
-
Object.assign(contents, doc);
|
|
515
|
-
const exception = new models_0_1.InternalServerException({
|
|
516
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
517
|
-
...contents,
|
|
518
|
-
});
|
|
519
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
520
|
-
};
|
|
521
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
522
|
-
const contents = (0, smithy_client_1.map)({});
|
|
523
|
-
const data = parsedOutput.body;
|
|
524
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
525
|
-
message: smithy_client_1.expectString,
|
|
526
|
-
});
|
|
527
|
-
Object.assign(contents, doc);
|
|
528
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
529
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
530
|
-
...contents,
|
|
531
|
-
});
|
|
532
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
533
|
-
};
|
|
534
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
535
|
-
const contents = (0, smithy_client_1.map)({});
|
|
536
|
-
const data = parsedOutput.body;
|
|
537
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
538
|
-
message: smithy_client_1.expectString,
|
|
539
|
-
});
|
|
540
|
-
Object.assign(contents, doc);
|
|
541
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
542
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
543
|
-
...contents,
|
|
544
|
-
});
|
|
545
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
546
|
-
};
|
|
547
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
548
|
-
const contents = (0, smithy_client_1.map)({});
|
|
549
|
-
const data = parsedOutput.body;
|
|
550
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
551
|
-
message: smithy_client_1.expectString,
|
|
552
|
-
});
|
|
553
|
-
Object.assign(contents, doc);
|
|
554
|
-
const exception = new models_0_1.ThrottlingException({
|
|
555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
556
|
-
...contents,
|
|
557
|
-
});
|
|
558
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
559
|
-
};
|
|
560
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
561
|
-
const contents = (0, smithy_client_1.map)({});
|
|
562
|
-
const data = parsedOutput.body;
|
|
563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
564
|
-
fieldList: smithy_client_1._json,
|
|
565
|
-
message: smithy_client_1.expectString,
|
|
566
|
-
});
|
|
567
|
-
Object.assign(contents, doc);
|
|
568
|
-
const exception = new models_0_1.ValidationException({
|
|
569
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
570
|
-
...contents,
|
|
571
|
-
});
|
|
572
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
573
|
-
};
|
|
574
|
-
const de_Blueprint = (output, context) => {
|
|
575
|
-
return (0, smithy_client_1.take)(output, {
|
|
576
|
-
blueprintArn: smithy_client_1.expectString,
|
|
577
|
-
blueprintName: smithy_client_1.expectString,
|
|
578
|
-
blueprintStage: smithy_client_1.expectString,
|
|
579
|
-
blueprintVersion: smithy_client_1.expectString,
|
|
580
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
581
|
-
kmsEncryptionContext: smithy_client_1._json,
|
|
582
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
583
|
-
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
584
|
-
schema: smithy_client_1.expectString,
|
|
585
|
-
type: smithy_client_1.expectString,
|
|
586
|
-
});
|
|
587
|
-
};
|
|
588
|
-
const de_Blueprints = (output, context) => {
|
|
589
|
-
const retVal = (output || [])
|
|
590
|
-
.filter((e) => e != null)
|
|
591
|
-
.map((entry) => {
|
|
592
|
-
return de_BlueprintSummary(entry, context);
|
|
593
|
-
});
|
|
594
|
-
return retVal;
|
|
595
|
-
};
|
|
596
|
-
const de_BlueprintSummary = (output, context) => {
|
|
597
|
-
return (0, smithy_client_1.take)(output, {
|
|
598
|
-
blueprintArn: smithy_client_1.expectString,
|
|
599
|
-
blueprintName: smithy_client_1.expectString,
|
|
600
|
-
blueprintStage: smithy_client_1.expectString,
|
|
601
|
-
blueprintVersion: smithy_client_1.expectString,
|
|
602
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
603
|
-
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
604
|
-
});
|
|
605
|
-
};
|
|
606
|
-
const de_DataAutomationProject = (output, context) => {
|
|
607
|
-
return (0, smithy_client_1.take)(output, {
|
|
608
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
609
|
-
customOutputConfiguration: smithy_client_1._json,
|
|
610
|
-
kmsEncryptionContext: smithy_client_1._json,
|
|
611
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
612
|
-
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
613
|
-
overrideConfiguration: smithy_client_1._json,
|
|
614
|
-
projectArn: smithy_client_1.expectString,
|
|
615
|
-
projectDescription: smithy_client_1.expectString,
|
|
616
|
-
projectName: smithy_client_1.expectString,
|
|
617
|
-
projectStage: smithy_client_1.expectString,
|
|
618
|
-
standardOutputConfiguration: smithy_client_1._json,
|
|
619
|
-
status: smithy_client_1.expectString,
|
|
620
|
-
});
|
|
621
|
-
};
|
|
622
|
-
const de_DataAutomationProjectSummaries = (output, context) => {
|
|
623
|
-
const retVal = (output || [])
|
|
624
|
-
.filter((e) => e != null)
|
|
625
|
-
.map((entry) => {
|
|
626
|
-
return de_DataAutomationProjectSummary(entry, context);
|
|
627
|
-
});
|
|
628
|
-
return retVal;
|
|
629
|
-
};
|
|
630
|
-
const de_DataAutomationProjectSummary = (output, context) => {
|
|
631
|
-
return (0, smithy_client_1.take)(output, {
|
|
632
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
633
|
-
projectArn: smithy_client_1.expectString,
|
|
634
|
-
projectName: smithy_client_1.expectString,
|
|
635
|
-
projectStage: smithy_client_1.expectString,
|
|
636
|
-
});
|
|
637
|
-
};
|
|
638
|
-
const deserializeMetadata = (output) => ({
|
|
639
|
-
httpStatusCode: output.statusCode,
|
|
640
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
641
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
642
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
643
|
-
});
|
|
644
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
645
|
-
const _bV = "blueprintVersion";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|