@aws-sdk/client-bedrock-data-automation 3.750.0 → 3.759.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.
Files changed (37) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/BedrockDataAutomation.js +6 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +5 -3
  8. package/dist-cjs/protocols/Aws_restJson1.js +88 -3
  9. package/dist-es/BedrockDataAutomation.js +6 -0
  10. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  11. package/dist-es/commands/TagResourceCommand.js +22 -0
  12. package/dist-es/commands/UntagResourceCommand.js +22 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +5 -3
  15. package/dist-es/protocols/Aws_restJson1.js +81 -2
  16. package/dist-types/BedrockDataAutomation.d.ts +21 -0
  17. package/dist-types/BedrockDataAutomationClient.d.ts +5 -2
  18. package/dist-types/commands/CreateBlueprintCommand.d.ts +6 -0
  19. package/dist-types/commands/CreateDataAutomationProjectCommand.d.ts +11 -5
  20. package/dist-types/commands/GetDataAutomationProjectCommand.d.ts +5 -5
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
  22. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  23. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  24. package/dist-types/commands/UpdateBlueprintCommand.d.ts +6 -0
  25. package/dist-types/commands/UpdateDataAutomationProjectCommand.d.ts +14 -5
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/models/models_0.d.ts +101 -3
  28. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  29. package/dist-types/ts3.4/BedrockDataAutomation.d.ts +51 -0
  30. package/dist-types/ts3.4/BedrockDataAutomationClient.d.ts +18 -0
  31. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  33. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +29 -3
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  37. package/package.json +12 -12
package/README.md CHANGED
@@ -274,6 +274,30 @@ ListDataAutomationProjects
274
274
 
275
275
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/ListDataAutomationProjectsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListDataAutomationProjectsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListDataAutomationProjectsCommandOutput/)
276
276
 
277
+ </details>
278
+ <details>
279
+ <summary>
280
+ ListTagsForResource
281
+ </summary>
282
+
283
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/ListTagsForResourceCommandOutput/)
284
+
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ TagResource
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/TagResourceCommandOutput/)
292
+
293
+ </details>
294
+ <details>
295
+ <summary>
296
+ UntagResource
297
+ </summary>
298
+
299
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation/Interface/UntagResourceCommandOutput/)
300
+
277
301
  </details>
278
302
  <details>
279
303
  <summary>
@@ -12,6 +12,9 @@ const GetBlueprintCommand_1 = require("./commands/GetBlueprintCommand");
12
12
  const GetDataAutomationProjectCommand_1 = require("./commands/GetDataAutomationProjectCommand");
13
13
  const ListBlueprintsCommand_1 = require("./commands/ListBlueprintsCommand");
14
14
  const ListDataAutomationProjectsCommand_1 = require("./commands/ListDataAutomationProjectsCommand");
15
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
16
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
17
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
15
18
  const UpdateBlueprintCommand_1 = require("./commands/UpdateBlueprintCommand");
16
19
  const UpdateDataAutomationProjectCommand_1 = require("./commands/UpdateDataAutomationProjectCommand");
17
20
  const commands = {
@@ -24,6 +27,9 @@ const commands = {
24
27
  GetDataAutomationProjectCommand: GetDataAutomationProjectCommand_1.GetDataAutomationProjectCommand,
25
28
  ListBlueprintsCommand: ListBlueprintsCommand_1.ListBlueprintsCommand,
26
29
  ListDataAutomationProjectsCommand: ListDataAutomationProjectsCommand_1.ListDataAutomationProjectsCommand,
30
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
31
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
32
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
27
33
  UpdateBlueprintCommand: UpdateBlueprintCommand_1.UpdateBlueprintCommand,
28
34
  UpdateDataAutomationProjectCommand: UpdateDataAutomationProjectCommand_1.UpdateDataAutomationProjectCommand,
29
35
  };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTagsForResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListTagsForResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonBedrockKeystoneBuildTimeService", "ListTagsForResource", {})
20
+ .n("BedrockDataAutomationClient", "ListTagsForResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_ListTagsForResourceCommand)
23
+ .de(Aws_restJson1_1.de_ListTagsForResourceCommand)
24
+ .build() {
25
+ }
26
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class TagResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonBedrockKeystoneBuildTimeService", "TagResource", {})
20
+ .n("BedrockDataAutomationClient", "TagResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_TagResourceCommand)
23
+ .de(Aws_restJson1_1.de_TagResourceCommand)
24
+ .build() {
25
+ }
26
+ exports.TagResourceCommand = TagResourceCommand;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UntagResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonBedrockKeystoneBuildTimeService", "UntagResource", {})
20
+ .n("BedrockDataAutomationClient", "UntagResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_UntagResourceCommand)
23
+ .de(Aws_restJson1_1.de_UntagResourceCommand)
24
+ .build() {
25
+ }
26
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -10,5 +10,8 @@ tslib_1.__exportStar(require("./GetBlueprintCommand"), exports);
10
10
  tslib_1.__exportStar(require("./GetDataAutomationProjectCommand"), exports);
11
11
  tslib_1.__exportStar(require("./ListBlueprintsCommand"), exports);
12
12
  tslib_1.__exportStar(require("./ListDataAutomationProjectsCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
14
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
15
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
13
16
  tslib_1.__exportStar(require("./UpdateBlueprintCommand"), exports);
14
17
  tslib_1.__exportStar(require("./UpdateDataAutomationProjectCommand"), exports);
@@ -123,13 +123,13 @@ exports.State = {
123
123
  };
124
124
  exports.AudioExtractionCategoryType = {
125
125
  AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION",
126
- CHAPTER_CONTENT_MODERATION: "CHAPTER_CONTENT_MODERATION",
126
+ TOPIC_CONTENT_MODERATION: "TOPIC_CONTENT_MODERATION",
127
127
  TRANSCRIPT: "TRANSCRIPT",
128
128
  };
129
129
  exports.AudioStandardGenerativeFieldType = {
130
130
  AUDIO_SUMMARY: "AUDIO_SUMMARY",
131
- CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
132
131
  IAB: "IAB",
132
+ TOPIC_SUMMARY: "TOPIC_SUMMARY",
133
133
  };
134
134
  exports.DocumentExtractionGranularityType = {
135
135
  DOCUMENT: "DOCUMENT",
@@ -146,6 +146,7 @@ exports.DocumentOutputTextFormatType = {
146
146
  };
147
147
  exports.ImageExtractionCategoryType = {
148
148
  CONTENT_MODERATION: "CONTENT_MODERATION",
149
+ LOGOS: "LOGOS",
149
150
  TEXT_DETECTION: "TEXT_DETECTION",
150
151
  };
151
152
  exports.ImageStandardGenerativeFieldType = {
@@ -154,12 +155,13 @@ exports.ImageStandardGenerativeFieldType = {
154
155
  };
155
156
  exports.VideoExtractionCategoryType = {
156
157
  CONTENT_MODERATION: "CONTENT_MODERATION",
158
+ LOGOS: "LOGOS",
157
159
  TEXT_DETECTION: "TEXT_DETECTION",
158
160
  TRANSCRIPT: "TRANSCRIPT",
159
161
  };
160
162
  exports.VideoStandardGenerativeFieldType = {
163
+ CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
161
164
  IAB: "IAB",
162
- SCENE_SUMMARY: "SCENE_SUMMARY",
163
165
  VIDEO_SUMMARY: "VIDEO_SUMMARY",
164
166
  };
165
167
  exports.DataAutomationProjectStatus = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateDataAutomationProjectCommand = exports.de_UpdateBlueprintCommand = 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_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;
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
4
  const core_1 = require("@aws-sdk/core");
5
5
  const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -20,6 +20,7 @@ const se_CreateBlueprintCommand = async (input, context) => {
20
20
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
21
21
  encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
22
22
  schema: [],
23
+ tags: (_) => (0, smithy_client_1._json)(_),
23
24
  type: [],
24
25
  }));
25
26
  b.m("PUT").h(headers).b(body);
@@ -57,6 +58,7 @@ const se_CreateDataAutomationProjectCommand = async (input, context) => {
57
58
  projectName: [],
58
59
  projectStage: [],
59
60
  standardOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
61
+ tags: (_) => (0, smithy_client_1._json)(_),
60
62
  }));
61
63
  b.m("PUT").h(headers).b(body);
62
64
  return b.build();
@@ -153,6 +155,50 @@ const se_ListDataAutomationProjectsCommand = async (input, context) => {
153
155
  return b.build();
154
156
  };
155
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;
156
202
  const se_UpdateBlueprintCommand = async (input, context) => {
157
203
  const b = (0, core_2.requestBuilder)(input, context);
158
204
  const headers = {
@@ -163,6 +209,7 @@ const se_UpdateBlueprintCommand = async (input, context) => {
163
209
  let body;
164
210
  body = JSON.stringify((0, smithy_client_1.take)(input, {
165
211
  blueprintStage: [],
212
+ encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
166
213
  schema: [],
167
214
  }));
168
215
  b.m("PUT").h(headers).b(body);
@@ -179,6 +226,7 @@ const se_UpdateDataAutomationProjectCommand = async (input, context) => {
179
226
  let body;
180
227
  body = JSON.stringify((0, smithy_client_1.take)(input, {
181
228
  customOutputConfiguration: (_) => (0, smithy_client_1._json)(_),
229
+ encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
182
230
  overrideConfiguration: (_) => (0, smithy_client_1._json)(_),
183
231
  projectDescription: [],
184
232
  projectStage: [],
@@ -236,7 +284,7 @@ const de_CreateDataAutomationProjectCommand = async (output, context) => {
236
284
  };
237
285
  exports.de_CreateDataAutomationProjectCommand = de_CreateDataAutomationProjectCommand;
238
286
  const de_DeleteBlueprintCommand = async (output, context) => {
239
- if (output.statusCode !== 204 && output.statusCode >= 300) {
287
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
240
288
  return de_CommandError(output, context);
241
289
  }
242
290
  const contents = (0, smithy_client_1.map)({
@@ -247,7 +295,7 @@ const de_DeleteBlueprintCommand = async (output, context) => {
247
295
  };
248
296
  exports.de_DeleteBlueprintCommand = de_DeleteBlueprintCommand;
249
297
  const de_DeleteDataAutomationProjectCommand = async (output, context) => {
250
- if (output.statusCode !== 204 && output.statusCode >= 300) {
298
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
251
299
  return de_CommandError(output, context);
252
300
  }
253
301
  const contents = (0, smithy_client_1.map)({
@@ -324,6 +372,43 @@ const de_ListDataAutomationProjectsCommand = async (output, context) => {
324
372
  return contents;
325
373
  };
326
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;
327
412
  const de_UpdateBlueprintCommand = async (output, context) => {
328
413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
329
414
  return de_CommandError(output, context);
@@ -9,6 +9,9 @@ import { GetBlueprintCommand, } from "./commands/GetBlueprintCommand";
9
9
  import { GetDataAutomationProjectCommand, } from "./commands/GetDataAutomationProjectCommand";
10
10
  import { ListBlueprintsCommand, } from "./commands/ListBlueprintsCommand";
11
11
  import { ListDataAutomationProjectsCommand, } from "./commands/ListDataAutomationProjectsCommand";
12
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
13
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
14
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
12
15
  import { UpdateBlueprintCommand, } from "./commands/UpdateBlueprintCommand";
13
16
  import { UpdateDataAutomationProjectCommand, } from "./commands/UpdateDataAutomationProjectCommand";
14
17
  const commands = {
@@ -21,6 +24,9 @@ const commands = {
21
24
  GetDataAutomationProjectCommand,
22
25
  ListBlueprintsCommand,
23
26
  ListDataAutomationProjectsCommand,
27
+ ListTagsForResourceCommand,
28
+ TagResourceCommand,
29
+ UntagResourceCommand,
24
30
  UpdateBlueprintCommand,
25
31
  UpdateDataAutomationProjectCommand,
26
32
  };
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockKeystoneBuildTimeService", "ListTagsForResource", {})
17
+ .n("BedrockDataAutomationClient", "ListTagsForResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTagsForResourceCommand)
20
+ .de(de_ListTagsForResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockKeystoneBuildTimeService", "TagResource", {})
17
+ .n("BedrockDataAutomationClient", "TagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_TagResourceCommand)
20
+ .de(de_TagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockKeystoneBuildTimeService", "UntagResource", {})
17
+ .n("BedrockDataAutomationClient", "UntagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UntagResourceCommand)
20
+ .de(de_UntagResourceCommand)
21
+ .build() {
22
+ }
@@ -7,5 +7,8 @@ export * from "./GetBlueprintCommand";
7
7
  export * from "./GetDataAutomationProjectCommand";
8
8
  export * from "./ListBlueprintsCommand";
9
9
  export * from "./ListDataAutomationProjectsCommand";
10
+ export * from "./ListTagsForResourceCommand";
11
+ export * from "./TagResourceCommand";
12
+ export * from "./UntagResourceCommand";
10
13
  export * from "./UpdateBlueprintCommand";
11
14
  export * from "./UpdateDataAutomationProjectCommand";
@@ -113,13 +113,13 @@ export const State = {
113
113
  };
114
114
  export const AudioExtractionCategoryType = {
115
115
  AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION",
116
- CHAPTER_CONTENT_MODERATION: "CHAPTER_CONTENT_MODERATION",
116
+ TOPIC_CONTENT_MODERATION: "TOPIC_CONTENT_MODERATION",
117
117
  TRANSCRIPT: "TRANSCRIPT",
118
118
  };
119
119
  export const AudioStandardGenerativeFieldType = {
120
120
  AUDIO_SUMMARY: "AUDIO_SUMMARY",
121
- CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
122
121
  IAB: "IAB",
122
+ TOPIC_SUMMARY: "TOPIC_SUMMARY",
123
123
  };
124
124
  export const DocumentExtractionGranularityType = {
125
125
  DOCUMENT: "DOCUMENT",
@@ -136,6 +136,7 @@ export const DocumentOutputTextFormatType = {
136
136
  };
137
137
  export const ImageExtractionCategoryType = {
138
138
  CONTENT_MODERATION: "CONTENT_MODERATION",
139
+ LOGOS: "LOGOS",
139
140
  TEXT_DETECTION: "TEXT_DETECTION",
140
141
  };
141
142
  export const ImageStandardGenerativeFieldType = {
@@ -144,12 +145,13 @@ export const ImageStandardGenerativeFieldType = {
144
145
  };
145
146
  export const VideoExtractionCategoryType = {
146
147
  CONTENT_MODERATION: "CONTENT_MODERATION",
148
+ LOGOS: "LOGOS",
147
149
  TEXT_DETECTION: "TEXT_DETECTION",
148
150
  TRANSCRIPT: "TRANSCRIPT",
149
151
  };
150
152
  export const VideoStandardGenerativeFieldType = {
153
+ CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
151
154
  IAB: "IAB",
152
- SCENE_SUMMARY: "SCENE_SUMMARY",
153
155
  VIDEO_SUMMARY: "VIDEO_SUMMARY",
154
156
  };
155
157
  export const DataAutomationProjectStatus = {
@@ -17,6 +17,7 @@ export const se_CreateBlueprintCommand = async (input, context) => {
17
17
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
18
18
  encryptionConfiguration: (_) => _json(_),
19
19
  schema: [],
20
+ tags: (_) => _json(_),
20
21
  type: [],
21
22
  }));
22
23
  b.m("PUT").h(headers).b(body);
@@ -52,6 +53,7 @@ export const se_CreateDataAutomationProjectCommand = async (input, context) => {
52
53
  projectName: [],
53
54
  projectStage: [],
54
55
  standardOutputConfiguration: (_) => _json(_),
56
+ tags: (_) => _json(_),
55
57
  }));
56
58
  b.m("PUT").h(headers).b(body);
57
59
  return b.build();
@@ -141,6 +143,47 @@ export const se_ListDataAutomationProjectsCommand = async (input, context) => {
141
143
  b.m("POST").h(headers).b(body);
142
144
  return b.build();
143
145
  };
146
+ export const se_ListTagsForResourceCommand = async (input, context) => {
147
+ const b = rb(input, context);
148
+ const headers = {
149
+ "content-type": "application/json",
150
+ };
151
+ b.bp("/listTagsForResource");
152
+ let body;
153
+ body = JSON.stringify(take(input, {
154
+ resourceARN: [],
155
+ }));
156
+ b.m("POST").h(headers).b(body);
157
+ return b.build();
158
+ };
159
+ export const se_TagResourceCommand = async (input, context) => {
160
+ const b = rb(input, context);
161
+ const headers = {
162
+ "content-type": "application/json",
163
+ };
164
+ b.bp("/tagResource");
165
+ let body;
166
+ body = JSON.stringify(take(input, {
167
+ resourceARN: [],
168
+ tags: (_) => _json(_),
169
+ }));
170
+ b.m("POST").h(headers).b(body);
171
+ return b.build();
172
+ };
173
+ export const se_UntagResourceCommand = async (input, context) => {
174
+ const b = rb(input, context);
175
+ const headers = {
176
+ "content-type": "application/json",
177
+ };
178
+ b.bp("/untagResource");
179
+ let body;
180
+ body = JSON.stringify(take(input, {
181
+ resourceARN: [],
182
+ tagKeys: (_) => _json(_),
183
+ }));
184
+ b.m("POST").h(headers).b(body);
185
+ return b.build();
186
+ };
144
187
  export const se_UpdateBlueprintCommand = async (input, context) => {
145
188
  const b = rb(input, context);
146
189
  const headers = {
@@ -151,6 +194,7 @@ export const se_UpdateBlueprintCommand = async (input, context) => {
151
194
  let body;
152
195
  body = JSON.stringify(take(input, {
153
196
  blueprintStage: [],
197
+ encryptionConfiguration: (_) => _json(_),
154
198
  schema: [],
155
199
  }));
156
200
  b.m("PUT").h(headers).b(body);
@@ -166,6 +210,7 @@ export const se_UpdateDataAutomationProjectCommand = async (input, context) => {
166
210
  let body;
167
211
  body = JSON.stringify(take(input, {
168
212
  customOutputConfiguration: (_) => _json(_),
213
+ encryptionConfiguration: (_) => _json(_),
169
214
  overrideConfiguration: (_) => _json(_),
170
215
  projectDescription: [],
171
216
  projectStage: [],
@@ -219,7 +264,7 @@ export const de_CreateDataAutomationProjectCommand = async (output, context) =>
219
264
  return contents;
220
265
  };
221
266
  export const de_DeleteBlueprintCommand = async (output, context) => {
222
- if (output.statusCode !== 204 && output.statusCode >= 300) {
267
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
223
268
  return de_CommandError(output, context);
224
269
  }
225
270
  const contents = map({
@@ -229,7 +274,7 @@ export const de_DeleteBlueprintCommand = async (output, context) => {
229
274
  return contents;
230
275
  };
231
276
  export const de_DeleteDataAutomationProjectCommand = async (output, context) => {
232
- if (output.statusCode !== 204 && output.statusCode >= 300) {
277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
233
278
  return de_CommandError(output, context);
234
279
  }
235
280
  const contents = map({
@@ -301,6 +346,40 @@ export const de_ListDataAutomationProjectsCommand = async (output, context) => {
301
346
  Object.assign(contents, doc);
302
347
  return contents;
303
348
  };
349
+ export const de_ListTagsForResourceCommand = async (output, context) => {
350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
351
+ return de_CommandError(output, context);
352
+ }
353
+ const contents = map({
354
+ $metadata: deserializeMetadata(output),
355
+ });
356
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
357
+ const doc = take(data, {
358
+ tags: _json,
359
+ });
360
+ Object.assign(contents, doc);
361
+ return contents;
362
+ };
363
+ export const de_TagResourceCommand = async (output, context) => {
364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
365
+ return de_CommandError(output, context);
366
+ }
367
+ const contents = map({
368
+ $metadata: deserializeMetadata(output),
369
+ });
370
+ await collectBody(output.body, context);
371
+ return contents;
372
+ };
373
+ export const de_UntagResourceCommand = async (output, context) => {
374
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
375
+ return de_CommandError(output, context);
376
+ }
377
+ const contents = map({
378
+ $metadata: deserializeMetadata(output),
379
+ });
380
+ await collectBody(output.body, context);
381
+ return contents;
382
+ };
304
383
  export const de_UpdateBlueprintCommand = async (output, context) => {
305
384
  if (output.statusCode !== 200 && output.statusCode >= 300) {
306
385
  return de_CommandError(output, context);
@@ -9,6 +9,9 @@ import { GetBlueprintCommandInput, GetBlueprintCommandOutput } from "./commands/
9
9
  import { GetDataAutomationProjectCommandInput, GetDataAutomationProjectCommandOutput } from "./commands/GetDataAutomationProjectCommand";
10
10
  import { ListBlueprintsCommandInput, ListBlueprintsCommandOutput } from "./commands/ListBlueprintsCommand";
11
11
  import { ListDataAutomationProjectsCommandInput, ListDataAutomationProjectsCommandOutput } from "./commands/ListDataAutomationProjectsCommand";
12
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
13
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
14
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
12
15
  import { UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput } from "./commands/UpdateBlueprintCommand";
13
16
  import { UpdateDataAutomationProjectCommandInput, UpdateDataAutomationProjectCommandOutput } from "./commands/UpdateDataAutomationProjectCommand";
14
17
  export interface BedrockDataAutomation {
@@ -68,6 +71,24 @@ export interface BedrockDataAutomation {
68
71
  listDataAutomationProjects(args: ListDataAutomationProjectsCommandInput, options?: __HttpHandlerOptions): Promise<ListDataAutomationProjectsCommandOutput>;
69
72
  listDataAutomationProjects(args: ListDataAutomationProjectsCommandInput, cb: (err: any, data?: ListDataAutomationProjectsCommandOutput) => void): void;
70
73
  listDataAutomationProjects(args: ListDataAutomationProjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDataAutomationProjectsCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link ListTagsForResourceCommand}
76
+ */
77
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
78
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
79
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
80
+ /**
81
+ * @see {@link TagResourceCommand}
82
+ */
83
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
84
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
85
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
86
+ /**
87
+ * @see {@link UntagResourceCommand}
88
+ */
89
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
90
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
91
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
71
92
  /**
72
93
  * @see {@link UpdateBlueprintCommand}
73
94
  */