Skip to content

Commit 15f7c5a

Browse files
author
awstools
committed
feat(client-bedrock-data-automation): Renamed and added new StandardConfiguration enums. Added support to update EncryptionConfiguration in UpdateBlueprint and UpdateDataAutomation APIs. Changed HttpStatus code for DeleteBlueprint and DeleteDataAutomationProject APIs to 200 from 204. Added APIs to support tagging.
1 parent 39f03eb commit 15f7c5a

15 files changed

+1080
-38
lines changed

clients/client-bedrock-data-automation/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,30 @@ ListDataAutomationProjects
274274

275275
[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/)
276276

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+
277301
</details>
278302
<details>
279303
<summary>

clients/client-bedrock-data-automation/src/BedrockDataAutomation.ts

+53
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ import {
4848
ListDataAutomationProjectsCommandInput,
4949
ListDataAutomationProjectsCommandOutput,
5050
} from "./commands/ListDataAutomationProjectsCommand";
51+
import {
52+
ListTagsForResourceCommand,
53+
ListTagsForResourceCommandInput,
54+
ListTagsForResourceCommandOutput,
55+
} from "./commands/ListTagsForResourceCommand";
56+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
57+
import {
58+
UntagResourceCommand,
59+
UntagResourceCommandInput,
60+
UntagResourceCommandOutput,
61+
} from "./commands/UntagResourceCommand";
5162
import {
5263
UpdateBlueprintCommand,
5364
UpdateBlueprintCommandInput,
@@ -69,6 +80,9 @@ const commands = {
6980
GetDataAutomationProjectCommand,
7081
ListBlueprintsCommand,
7182
ListDataAutomationProjectsCommand,
83+
ListTagsForResourceCommand,
84+
TagResourceCommand,
85+
UntagResourceCommand,
7286
UpdateBlueprintCommand,
7387
UpdateDataAutomationProjectCommand,
7488
};
@@ -214,6 +228,45 @@ export interface BedrockDataAutomation {
214228
cb: (err: any, data?: ListDataAutomationProjectsCommandOutput) => void
215229
): void;
216230

231+
/**
232+
* @see {@link ListTagsForResourceCommand}
233+
*/
234+
listTagsForResource(
235+
args: ListTagsForResourceCommandInput,
236+
options?: __HttpHandlerOptions
237+
): Promise<ListTagsForResourceCommandOutput>;
238+
listTagsForResource(
239+
args: ListTagsForResourceCommandInput,
240+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
241+
): void;
242+
listTagsForResource(
243+
args: ListTagsForResourceCommandInput,
244+
options: __HttpHandlerOptions,
245+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
246+
): void;
247+
248+
/**
249+
* @see {@link TagResourceCommand}
250+
*/
251+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
252+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
253+
tagResource(
254+
args: TagResourceCommandInput,
255+
options: __HttpHandlerOptions,
256+
cb: (err: any, data?: TagResourceCommandOutput) => void
257+
): void;
258+
259+
/**
260+
* @see {@link UntagResourceCommand}
261+
*/
262+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
263+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
264+
untagResource(
265+
args: UntagResourceCommandInput,
266+
options: __HttpHandlerOptions,
267+
cb: (err: any, data?: UntagResourceCommandOutput) => void
268+
): void;
269+
217270
/**
218271
* @see {@link UpdateBlueprintCommand}
219272
*/

clients/client-bedrock-data-automation/src/BedrockDataAutomationClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ import {
7777
ListDataAutomationProjectsCommandInput,
7878
ListDataAutomationProjectsCommandOutput,
7979
} from "./commands/ListDataAutomationProjectsCommand";
80+
import {
81+
ListTagsForResourceCommandInput,
82+
ListTagsForResourceCommandOutput,
83+
} from "./commands/ListTagsForResourceCommand";
84+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
85+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
8086
import { UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput } from "./commands/UpdateBlueprintCommand";
8187
import {
8288
UpdateDataAutomationProjectCommandInput,
@@ -106,6 +112,9 @@ export type ServiceInputTypes =
106112
| GetDataAutomationProjectCommandInput
107113
| ListBlueprintsCommandInput
108114
| ListDataAutomationProjectsCommandInput
115+
| ListTagsForResourceCommandInput
116+
| TagResourceCommandInput
117+
| UntagResourceCommandInput
109118
| UpdateBlueprintCommandInput
110119
| UpdateDataAutomationProjectCommandInput;
111120

@@ -122,6 +131,9 @@ export type ServiceOutputTypes =
122131
| GetDataAutomationProjectCommandOutput
123132
| ListBlueprintsCommandOutput
124133
| ListDataAutomationProjectsCommandOutput
134+
| ListTagsForResourceCommandOutput
135+
| TagResourceCommandOutput
136+
| UntagResourceCommandOutput
125137
| UpdateBlueprintCommandOutput
126138
| UpdateDataAutomationProjectCommandOutput;
127139

clients/client-bedrock-data-automation/src/commands/CreateBlueprintCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ export interface CreateBlueprintCommandOutput extends CreateBlueprintResponse, _
5656
* "<keys>": "STRING_VALUE",
5757
* },
5858
* },
59+
* tags: [ // TagList
60+
* { // Tag
61+
* key: "STRING_VALUE", // required
62+
* value: "STRING_VALUE", // required
63+
* },
64+
* ],
5965
* };
6066
* const command = new CreateBlueprintCommand(input);
6167
* const response = await client.send(command);

clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts

+11-5
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface CreateDataAutomationProjectCommandOutput
8383
* category: { // ImageExtractionCategory
8484
* state: "ENABLED" || "DISABLED", // required
8585
* types: [ // ImageExtractionCategoryTypes
86-
* "CONTENT_MODERATION" || "TEXT_DETECTION",
86+
* "CONTENT_MODERATION" || "TEXT_DETECTION" || "LOGOS",
8787
* ],
8888
* },
8989
* boundingBox: { // ImageBoundingBox
@@ -102,7 +102,7 @@ export interface CreateDataAutomationProjectCommandOutput
102102
* category: { // VideoExtractionCategory
103103
* state: "ENABLED" || "DISABLED", // required
104104
* types: [ // VideoExtractionCategoryTypes
105-
* "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT",
105+
* "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT" || "LOGOS",
106106
* ],
107107
* },
108108
* boundingBox: { // VideoBoundingBox
@@ -112,7 +112,7 @@ export interface CreateDataAutomationProjectCommandOutput
112112
* generativeField: { // VideoStandardGenerativeField
113113
* state: "ENABLED" || "DISABLED", // required
114114
* types: [ // VideoStandardGenerativeFieldTypes
115-
* "VIDEO_SUMMARY" || "SCENE_SUMMARY" || "IAB",
115+
* "VIDEO_SUMMARY" || "IAB" || "CHAPTER_SUMMARY",
116116
* ],
117117
* },
118118
* },
@@ -121,14 +121,14 @@ export interface CreateDataAutomationProjectCommandOutput
121121
* category: { // AudioExtractionCategory
122122
* state: "ENABLED" || "DISABLED", // required
123123
* types: [ // AudioExtractionCategoryTypes
124-
* "AUDIO_CONTENT_MODERATION" || "CHAPTER_CONTENT_MODERATION" || "TRANSCRIPT",
124+
* "AUDIO_CONTENT_MODERATION" || "TRANSCRIPT" || "TOPIC_CONTENT_MODERATION",
125125
* ],
126126
* },
127127
* },
128128
* generativeField: { // AudioStandardGenerativeField
129129
* state: "ENABLED" || "DISABLED", // required
130130
* types: [ // AudioStandardGenerativeFieldTypes
131-
* "AUDIO_SUMMARY" || "CHAPTER_SUMMARY" || "IAB",
131+
* "AUDIO_SUMMARY" || "IAB" || "TOPIC_SUMMARY",
132132
* ],
133133
* },
134134
* },
@@ -156,6 +156,12 @@ export interface CreateDataAutomationProjectCommandOutput
156156
* "<keys>": "STRING_VALUE",
157157
* },
158158
* },
159+
* tags: [ // TagList
160+
* { // Tag
161+
* key: "STRING_VALUE", // required
162+
* value: "STRING_VALUE", // required
163+
* },
164+
* ],
159165
* };
160166
* const command = new CreateDataAutomationProjectCommand(input);
161167
* const response = await client.send(command);

clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export interface GetDataAutomationProjectCommandOutput extends GetDataAutomation
8888
* // category: { // ImageExtractionCategory
8989
* // state: "ENABLED" || "DISABLED", // required
9090
* // types: [ // ImageExtractionCategoryTypes
91-
* // "CONTENT_MODERATION" || "TEXT_DETECTION",
91+
* // "CONTENT_MODERATION" || "TEXT_DETECTION" || "LOGOS",
9292
* // ],
9393
* // },
9494
* // boundingBox: { // ImageBoundingBox
@@ -107,7 +107,7 @@ export interface GetDataAutomationProjectCommandOutput extends GetDataAutomation
107107
* // category: { // VideoExtractionCategory
108108
* // state: "ENABLED" || "DISABLED", // required
109109
* // types: [ // VideoExtractionCategoryTypes
110-
* // "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT",
110+
* // "CONTENT_MODERATION" || "TEXT_DETECTION" || "TRANSCRIPT" || "LOGOS",
111111
* // ],
112112
* // },
113113
* // boundingBox: { // VideoBoundingBox
@@ -117,7 +117,7 @@ export interface GetDataAutomationProjectCommandOutput extends GetDataAutomation
117117
* // generativeField: { // VideoStandardGenerativeField
118118
* // state: "ENABLED" || "DISABLED", // required
119119
* // types: [ // VideoStandardGenerativeFieldTypes
120-
* // "VIDEO_SUMMARY" || "SCENE_SUMMARY" || "IAB",
120+
* // "VIDEO_SUMMARY" || "IAB" || "CHAPTER_SUMMARY",
121121
* // ],
122122
* // },
123123
* // },
@@ -126,14 +126,14 @@ export interface GetDataAutomationProjectCommandOutput extends GetDataAutomation
126126
* // category: { // AudioExtractionCategory
127127
* // state: "ENABLED" || "DISABLED", // required
128128
* // types: [ // AudioExtractionCategoryTypes
129-
* // "AUDIO_CONTENT_MODERATION" || "CHAPTER_CONTENT_MODERATION" || "TRANSCRIPT",
129+
* // "AUDIO_CONTENT_MODERATION" || "TRANSCRIPT" || "TOPIC_CONTENT_MODERATION",
130130
* // ],
131131
* // },
132132
* // },
133133
* // generativeField: { // AudioStandardGenerativeField
134134
* // state: "ENABLED" || "DISABLED", // required
135135
* // types: [ // AudioStandardGenerativeFieldTypes
136-
* // "AUDIO_SUMMARY" || "CHAPTER_SUMMARY" || "IAB",
136+
* // "AUDIO_SUMMARY" || "IAB" || "TOPIC_SUMMARY",
137137
* // ],
138138
* // },
139139
* // },
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import {
8+
BedrockDataAutomationClientResolvedConfig,
9+
ServiceInputTypes,
10+
ServiceOutputTypes,
11+
} from "../BedrockDataAutomationClient";
12+
import { commonParams } from "../endpoint/EndpointParameters";
13+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
14+
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
15+
16+
/**
17+
* @public
18+
*/
19+
export type { __MetadataBearer };
20+
export { $Command };
21+
/**
22+
* @public
23+
*
24+
* The input for {@link ListTagsForResourceCommand}.
25+
*/
26+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
27+
/**
28+
* @public
29+
*
30+
* The output of {@link ListTagsForResourceCommand}.
31+
*/
32+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
33+
34+
/**
35+
* List tags for an Amazon Bedrock Data Automation resource
36+
* @example
37+
* Use a bare-bones client and the command you need to make an API call.
38+
* ```javascript
39+
* import { BedrockDataAutomationClient, ListTagsForResourceCommand } from "@aws-sdk/client-bedrock-data-automation"; // ES Modules import
40+
* // const { BedrockDataAutomationClient, ListTagsForResourceCommand } = require("@aws-sdk/client-bedrock-data-automation"); // CommonJS import
41+
* const client = new BedrockDataAutomationClient(config);
42+
* const input = { // ListTagsForResourceRequest
43+
* resourceARN: "STRING_VALUE", // required
44+
* };
45+
* const command = new ListTagsForResourceCommand(input);
46+
* const response = await client.send(command);
47+
* // { // ListTagsForResourceResponse
48+
* // tags: [ // TagList
49+
* // { // Tag
50+
* // key: "STRING_VALUE", // required
51+
* // value: "STRING_VALUE", // required
52+
* // },
53+
* // ],
54+
* // };
55+
*
56+
* ```
57+
*
58+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
59+
* @returns {@link ListTagsForResourceCommandOutput}
60+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
61+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
62+
* @see {@link BedrockDataAutomationClientResolvedConfig | config} for BedrockDataAutomationClient's `config` shape.
63+
*
64+
* @throws {@link AccessDeniedException} (client fault)
65+
* This exception is thrown when a request is denied per access permissions
66+
*
67+
* @throws {@link InternalServerException} (server fault)
68+
* This exception is thrown if there was an unexpected error during processing of request
69+
*
70+
* @throws {@link ResourceNotFoundException} (client fault)
71+
* This exception is thrown when a resource referenced by the operation does not exist
72+
*
73+
* @throws {@link ThrottlingException} (client fault)
74+
* This exception is thrown when the number of requests exceeds the limit
75+
*
76+
* @throws {@link ValidationException} (client fault)
77+
* This exception is thrown when the request's input validation fails
78+
*
79+
* @throws {@link BedrockDataAutomationServiceException}
80+
* <p>Base exception class for all service exceptions from BedrockDataAutomation service.</p>
81+
*
82+
* @public
83+
*/
84+
export class ListTagsForResourceCommand extends $Command
85+
.classBuilder<
86+
ListTagsForResourceCommandInput,
87+
ListTagsForResourceCommandOutput,
88+
BedrockDataAutomationClientResolvedConfig,
89+
ServiceInputTypes,
90+
ServiceOutputTypes
91+
>()
92+
.ep(commonParams)
93+
.m(function (this: any, Command: any, cs: any, config: BedrockDataAutomationClientResolvedConfig, o: any) {
94+
return [
95+
getSerdePlugin(config, this.serialize, this.deserialize),
96+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
97+
];
98+
})
99+
.s("AmazonBedrockKeystoneBuildTimeService", "ListTagsForResource", {})
100+
.n("BedrockDataAutomationClient", "ListTagsForResourceCommand")
101+
.f(void 0, void 0)
102+
.ser(se_ListTagsForResourceCommand)
103+
.de(de_ListTagsForResourceCommand)
104+
.build() {
105+
/** @internal type navigation helper, not in runtime. */
106+
protected declare static __types: {
107+
api: {
108+
input: ListTagsForResourceRequest;
109+
output: ListTagsForResourceResponse;
110+
};
111+
sdk: {
112+
input: ListTagsForResourceCommandInput;
113+
output: ListTagsForResourceCommandOutput;
114+
};
115+
};
116+
}

0 commit comments

Comments
 (0)