@aws-sdk/client-bedrock-data-automation-runtime 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.
- package/README.md +31 -7
- package/dist-cjs/BedrockDataAutomationRuntime.js +6 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +66 -1
- package/dist-es/BedrockDataAutomationRuntime.js +6 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +59 -0
- package/dist-types/BedrockDataAutomationRuntime.d.ts +21 -0
- package/dist-types/BedrockDataAutomationRuntimeClient.d.ts +5 -2
- package/dist-types/commands/InvokeDataAutomationAsyncCommand.d.ts +8 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
- package/dist-types/commands/TagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +89 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/BedrockDataAutomationRuntime.d.ts +51 -0
- package/dist-types/ts3.4/BedrockDataAutomationRuntimeClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -23,13 +23,13 @@ using your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `BedrockDataAutomationRuntimeClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `ListTagsForResourceCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
30
|
const {
|
|
31
31
|
BedrockDataAutomationRuntimeClient,
|
|
32
|
-
|
|
32
|
+
ListTagsForResourceCommand,
|
|
33
33
|
} = require("@aws-sdk/client-bedrock-data-automation-runtime");
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ const {
|
|
|
37
37
|
// ES6+ example
|
|
38
38
|
import {
|
|
39
39
|
BedrockDataAutomationRuntimeClient,
|
|
40
|
-
|
|
40
|
+
ListTagsForResourceCommand,
|
|
41
41
|
} from "@aws-sdk/client-bedrock-data-automation-runtime";
|
|
42
42
|
```
|
|
43
43
|
|
|
@@ -57,7 +57,7 @@ const client = new BedrockDataAutomationRuntimeClient({ region: "REGION" });
|
|
|
57
57
|
const params = {
|
|
58
58
|
/** input parameters */
|
|
59
59
|
};
|
|
60
|
-
const command = new
|
|
60
|
+
const command = new ListTagsForResourceCommand(params);
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
#### Async/await
|
|
@@ -136,7 +136,7 @@ const client = new AWS.BedrockDataAutomationRuntime({ region: "REGION" });
|
|
|
136
136
|
|
|
137
137
|
// async/await.
|
|
138
138
|
try {
|
|
139
|
-
const data = await client.
|
|
139
|
+
const data = await client.listTagsForResource(params);
|
|
140
140
|
// process data.
|
|
141
141
|
} catch (error) {
|
|
142
142
|
// error handling.
|
|
@@ -144,7 +144,7 @@ try {
|
|
|
144
144
|
|
|
145
145
|
// Promises.
|
|
146
146
|
client
|
|
147
|
-
.
|
|
147
|
+
.listTagsForResource(params)
|
|
148
148
|
.then((data) => {
|
|
149
149
|
// process data.
|
|
150
150
|
})
|
|
@@ -153,7 +153,7 @@ client
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
// callbacks.
|
|
156
|
-
client.
|
|
156
|
+
client.listTagsForResource(params, (err, data) => {
|
|
157
157
|
// process err and data.
|
|
158
158
|
});
|
|
159
159
|
```
|
|
@@ -225,3 +225,27 @@ InvokeDataAutomationAsync
|
|
|
225
225
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/InvokeDataAutomationAsyncCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/InvokeDataAutomationAsyncCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/InvokeDataAutomationAsyncCommandOutput/)
|
|
226
226
|
|
|
227
227
|
</details>
|
|
228
|
+
<details>
|
|
229
|
+
<summary>
|
|
230
|
+
ListTagsForResource
|
|
231
|
+
</summary>
|
|
232
|
+
|
|
233
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/ListTagsForResourceCommandOutput/)
|
|
234
|
+
|
|
235
|
+
</details>
|
|
236
|
+
<details>
|
|
237
|
+
<summary>
|
|
238
|
+
TagResource
|
|
239
|
+
</summary>
|
|
240
|
+
|
|
241
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/TagResourceCommandOutput/)
|
|
242
|
+
|
|
243
|
+
</details>
|
|
244
|
+
<details>
|
|
245
|
+
<summary>
|
|
246
|
+
UntagResource
|
|
247
|
+
</summary>
|
|
248
|
+
|
|
249
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/UntagResourceCommandOutput/)
|
|
250
|
+
|
|
251
|
+
</details>
|
|
@@ -5,9 +5,15 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const BedrockDataAutomationRuntimeClient_1 = require("./BedrockDataAutomationRuntimeClient");
|
|
6
6
|
const GetDataAutomationStatusCommand_1 = require("./commands/GetDataAutomationStatusCommand");
|
|
7
7
|
const InvokeDataAutomationAsyncCommand_1 = require("./commands/InvokeDataAutomationAsyncCommand");
|
|
8
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
9
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
10
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
8
11
|
const commands = {
|
|
9
12
|
GetDataAutomationStatusCommand: GetDataAutomationStatusCommand_1.GetDataAutomationStatusCommand,
|
|
10
13
|
InvokeDataAutomationAsyncCommand: InvokeDataAutomationAsyncCommand_1.InvokeDataAutomationAsyncCommand,
|
|
14
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
15
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
16
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
11
17
|
};
|
|
12
18
|
class BedrockDataAutomationRuntime extends BedrockDataAutomationRuntimeClient_1.BedrockDataAutomationRuntimeClient {
|
|
13
19
|
}
|
|
@@ -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_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
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("AmazonBedrockKeystoneRuntimeService", "ListTagsForResource", {})
|
|
20
|
+
.n("BedrockDataAutomationRuntimeClient", "ListTagsForResourceCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_json1_1_1.se_ListTagsForResourceCommand)
|
|
23
|
+
.de(Aws_json1_1_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_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
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("AmazonBedrockKeystoneRuntimeService", "TagResource", {})
|
|
20
|
+
.n("BedrockDataAutomationRuntimeClient", "TagResourceCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_json1_1_1.se_TagResourceCommand)
|
|
23
|
+
.de(Aws_json1_1_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_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
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("AmazonBedrockKeystoneRuntimeService", "UntagResource", {})
|
|
20
|
+
.n("BedrockDataAutomationRuntimeClient", "UntagResourceCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_json1_1_1.se_UntagResourceCommand)
|
|
23
|
+
.de(Aws_json1_1_1.de_UntagResourceCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -3,3 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./GetDataAutomationStatusCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./InvokeDataAutomationAsyncCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_InvokeDataAutomationAsyncCommand = exports.de_GetDataAutomationStatusCommand = exports.se_InvokeDataAutomationAsyncCommand = exports.se_GetDataAutomationStatusCommand = void 0;
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_InvokeDataAutomationAsyncCommand = exports.de_GetDataAutomationStatusCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_InvokeDataAutomationAsyncCommand = exports.se_GetDataAutomationStatusCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -21,6 +21,27 @@ const se_InvokeDataAutomationAsyncCommand = async (input, context) => {
|
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
exports.se_InvokeDataAutomationAsyncCommand = se_InvokeDataAutomationAsyncCommand;
|
|
24
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
25
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
+
};
|
|
30
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
31
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("TagResource");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
37
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
38
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
39
|
+
const headers = sharedHeaders("UntagResource");
|
|
40
|
+
let body;
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
+
};
|
|
44
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
24
45
|
const de_GetDataAutomationStatusCommand = async (output, context) => {
|
|
25
46
|
if (output.statusCode >= 300) {
|
|
26
47
|
return de_CommandError(output, context);
|
|
@@ -49,6 +70,48 @@ const de_InvokeDataAutomationAsyncCommand = async (output, context) => {
|
|
|
49
70
|
return response;
|
|
50
71
|
};
|
|
51
72
|
exports.de_InvokeDataAutomationAsyncCommand = de_InvokeDataAutomationAsyncCommand;
|
|
73
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
74
|
+
if (output.statusCode >= 300) {
|
|
75
|
+
return de_CommandError(output, context);
|
|
76
|
+
}
|
|
77
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
78
|
+
let contents = {};
|
|
79
|
+
contents = (0, smithy_client_1._json)(data);
|
|
80
|
+
const response = {
|
|
81
|
+
$metadata: deserializeMetadata(output),
|
|
82
|
+
...contents,
|
|
83
|
+
};
|
|
84
|
+
return response;
|
|
85
|
+
};
|
|
86
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
87
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
88
|
+
if (output.statusCode >= 300) {
|
|
89
|
+
return de_CommandError(output, context);
|
|
90
|
+
}
|
|
91
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
92
|
+
let contents = {};
|
|
93
|
+
contents = (0, smithy_client_1._json)(data);
|
|
94
|
+
const response = {
|
|
95
|
+
$metadata: deserializeMetadata(output),
|
|
96
|
+
...contents,
|
|
97
|
+
};
|
|
98
|
+
return response;
|
|
99
|
+
};
|
|
100
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
101
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
102
|
+
if (output.statusCode >= 300) {
|
|
103
|
+
return de_CommandError(output, context);
|
|
104
|
+
}
|
|
105
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
106
|
+
let contents = {};
|
|
107
|
+
contents = (0, smithy_client_1._json)(data);
|
|
108
|
+
const response = {
|
|
109
|
+
$metadata: deserializeMetadata(output),
|
|
110
|
+
...contents,
|
|
111
|
+
};
|
|
112
|
+
return response;
|
|
113
|
+
};
|
|
114
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
52
115
|
const de_CommandError = async (output, context) => {
|
|
53
116
|
const parsedOutput = {
|
|
54
117
|
...output,
|
|
@@ -142,10 +205,12 @@ const se_InvokeDataAutomationAsyncRequest = (input, context) => {
|
|
|
142
205
|
blueprints: smithy_client_1._json,
|
|
143
206
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
144
207
|
dataAutomationConfiguration: smithy_client_1._json,
|
|
208
|
+
dataAutomationProfileArn: [],
|
|
145
209
|
encryptionConfiguration: smithy_client_1._json,
|
|
146
210
|
inputConfiguration: smithy_client_1._json,
|
|
147
211
|
notificationConfiguration: smithy_client_1._json,
|
|
148
212
|
outputConfiguration: smithy_client_1._json,
|
|
213
|
+
tags: smithy_client_1._json,
|
|
149
214
|
});
|
|
150
215
|
};
|
|
151
216
|
const deserializeMetadata = (output) => ({
|
|
@@ -2,9 +2,15 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
2
2
|
import { BedrockDataAutomationRuntimeClient, } from "./BedrockDataAutomationRuntimeClient";
|
|
3
3
|
import { GetDataAutomationStatusCommand, } from "./commands/GetDataAutomationStatusCommand";
|
|
4
4
|
import { InvokeDataAutomationAsyncCommand, } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
5
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
6
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
7
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
5
8
|
const commands = {
|
|
6
9
|
GetDataAutomationStatusCommand,
|
|
7
10
|
InvokeDataAutomationAsyncCommand,
|
|
11
|
+
ListTagsForResourceCommand,
|
|
12
|
+
TagResourceCommand,
|
|
13
|
+
UntagResourceCommand,
|
|
8
14
|
};
|
|
9
15
|
export class BedrockDataAutomationRuntime extends BedrockDataAutomationRuntimeClient {
|
|
10
16
|
}
|
|
@@ -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_json1_1";
|
|
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("AmazonBedrockKeystoneRuntimeService", "ListTagsForResource", {})
|
|
17
|
+
.n("BedrockDataAutomationRuntimeClient", "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_json1_1";
|
|
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("AmazonBedrockKeystoneRuntimeService", "TagResource", {})
|
|
17
|
+
.n("BedrockDataAutomationRuntimeClient", "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_json1_1";
|
|
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("AmazonBedrockKeystoneRuntimeService", "UntagResource", {})
|
|
17
|
+
.n("BedrockDataAutomationRuntimeClient", "UntagResourceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UntagResourceCommand)
|
|
20
|
+
.de(de_UntagResourceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -16,6 +16,24 @@ export const se_InvokeDataAutomationAsyncCommand = async (input, context) => {
|
|
|
16
16
|
body = JSON.stringify(se_InvokeDataAutomationAsyncRequest(input, context));
|
|
17
17
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
18
|
};
|
|
19
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
20
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
21
|
+
let body;
|
|
22
|
+
body = JSON.stringify(_json(input));
|
|
23
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
+
};
|
|
25
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
26
|
+
const headers = sharedHeaders("TagResource");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify(_json(input));
|
|
29
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
+
};
|
|
31
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("UntagResource");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(_json(input));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
19
37
|
export const de_GetDataAutomationStatusCommand = async (output, context) => {
|
|
20
38
|
if (output.statusCode >= 300) {
|
|
21
39
|
return de_CommandError(output, context);
|
|
@@ -42,6 +60,45 @@ export const de_InvokeDataAutomationAsyncCommand = async (output, context) => {
|
|
|
42
60
|
};
|
|
43
61
|
return response;
|
|
44
62
|
};
|
|
63
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
64
|
+
if (output.statusCode >= 300) {
|
|
65
|
+
return de_CommandError(output, context);
|
|
66
|
+
}
|
|
67
|
+
const data = await parseBody(output.body, context);
|
|
68
|
+
let contents = {};
|
|
69
|
+
contents = _json(data);
|
|
70
|
+
const response = {
|
|
71
|
+
$metadata: deserializeMetadata(output),
|
|
72
|
+
...contents,
|
|
73
|
+
};
|
|
74
|
+
return response;
|
|
75
|
+
};
|
|
76
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
77
|
+
if (output.statusCode >= 300) {
|
|
78
|
+
return de_CommandError(output, context);
|
|
79
|
+
}
|
|
80
|
+
const data = await parseBody(output.body, context);
|
|
81
|
+
let contents = {};
|
|
82
|
+
contents = _json(data);
|
|
83
|
+
const response = {
|
|
84
|
+
$metadata: deserializeMetadata(output),
|
|
85
|
+
...contents,
|
|
86
|
+
};
|
|
87
|
+
return response;
|
|
88
|
+
};
|
|
89
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
90
|
+
if (output.statusCode >= 300) {
|
|
91
|
+
return de_CommandError(output, context);
|
|
92
|
+
}
|
|
93
|
+
const data = await parseBody(output.body, context);
|
|
94
|
+
let contents = {};
|
|
95
|
+
contents = _json(data);
|
|
96
|
+
const response = {
|
|
97
|
+
$metadata: deserializeMetadata(output),
|
|
98
|
+
...contents,
|
|
99
|
+
};
|
|
100
|
+
return response;
|
|
101
|
+
};
|
|
45
102
|
const de_CommandError = async (output, context) => {
|
|
46
103
|
const parsedOutput = {
|
|
47
104
|
...output,
|
|
@@ -135,10 +192,12 @@ const se_InvokeDataAutomationAsyncRequest = (input, context) => {
|
|
|
135
192
|
blueprints: _json,
|
|
136
193
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
137
194
|
dataAutomationConfiguration: _json,
|
|
195
|
+
dataAutomationProfileArn: [],
|
|
138
196
|
encryptionConfiguration: _json,
|
|
139
197
|
inputConfiguration: _json,
|
|
140
198
|
notificationConfiguration: _json,
|
|
141
199
|
outputConfiguration: _json,
|
|
200
|
+
tags: _json,
|
|
142
201
|
});
|
|
143
202
|
};
|
|
144
203
|
const deserializeMetadata = (output) => ({
|
|
@@ -2,6 +2,9 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { BedrockDataAutomationRuntimeClient } from "./BedrockDataAutomationRuntimeClient";
|
|
3
3
|
import { GetDataAutomationStatusCommandInput, GetDataAutomationStatusCommandOutput } from "./commands/GetDataAutomationStatusCommand";
|
|
4
4
|
import { InvokeDataAutomationAsyncCommandInput, InvokeDataAutomationAsyncCommandOutput } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
5
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
6
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
7
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
5
8
|
export interface BedrockDataAutomationRuntime {
|
|
6
9
|
/**
|
|
7
10
|
* @see {@link GetDataAutomationStatusCommand}
|
|
@@ -15,6 +18,24 @@ export interface BedrockDataAutomationRuntime {
|
|
|
15
18
|
invokeDataAutomationAsync(args: InvokeDataAutomationAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeDataAutomationAsyncCommandOutput>;
|
|
16
19
|
invokeDataAutomationAsync(args: InvokeDataAutomationAsyncCommandInput, cb: (err: any, data?: InvokeDataAutomationAsyncCommandOutput) => void): void;
|
|
17
20
|
invokeDataAutomationAsync(args: InvokeDataAutomationAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeDataAutomationAsyncCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link ListTagsForResourceCommand}
|
|
23
|
+
*/
|
|
24
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
25
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
26
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link TagResourceCommand}
|
|
29
|
+
*/
|
|
30
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
31
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
32
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link UntagResourceCommand}
|
|
35
|
+
*/
|
|
36
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
37
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
38
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
18
39
|
}
|
|
19
40
|
/**
|
|
20
41
|
* Amazon Bedrock Data Automation Runtime
|
|
@@ -9,17 +9,20 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetDataAutomationStatusCommandInput, GetDataAutomationStatusCommandOutput } from "./commands/GetDataAutomationStatusCommand";
|
|
11
11
|
import { InvokeDataAutomationAsyncCommandInput, InvokeDataAutomationAsyncCommandOutput } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
12
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
13
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
12
15
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
16
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
14
17
|
export { __Client };
|
|
15
18
|
/**
|
|
16
19
|
* @public
|
|
17
20
|
*/
|
|
18
|
-
export type ServiceInputTypes = GetDataAutomationStatusCommandInput | InvokeDataAutomationAsyncCommandInput;
|
|
21
|
+
export type ServiceInputTypes = GetDataAutomationStatusCommandInput | InvokeDataAutomationAsyncCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
19
22
|
/**
|
|
20
23
|
* @public
|
|
21
24
|
*/
|
|
22
|
-
export type ServiceOutputTypes = GetDataAutomationStatusCommandOutput | InvokeDataAutomationAsyncCommandOutput;
|
|
25
|
+
export type ServiceOutputTypes = GetDataAutomationStatusCommandOutput | InvokeDataAutomationAsyncCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
23
26
|
/**
|
|
24
27
|
* @public
|
|
25
28
|
*/
|
|
@@ -43,7 +43,7 @@ declare const InvokeDataAutomationAsyncCommand_base: {
|
|
|
43
43
|
* s3Uri: "STRING_VALUE", // required
|
|
44
44
|
* },
|
|
45
45
|
* dataAutomationConfiguration: { // DataAutomationConfiguration
|
|
46
|
-
*
|
|
46
|
+
* dataAutomationProjectArn: "STRING_VALUE", // required
|
|
47
47
|
* stage: "LIVE" || "DEVELOPMENT",
|
|
48
48
|
* },
|
|
49
49
|
* encryptionConfiguration: { // EncryptionConfiguration
|
|
@@ -64,6 +64,13 @@ declare const InvokeDataAutomationAsyncCommand_base: {
|
|
|
64
64
|
* stage: "DEVELOPMENT" || "LIVE",
|
|
65
65
|
* },
|
|
66
66
|
* ],
|
|
67
|
+
* dataAutomationProfileArn: "STRING_VALUE", // required
|
|
68
|
+
* tags: [ // TagList
|
|
69
|
+
* { // Tag
|
|
70
|
+
* key: "STRING_VALUE", // required
|
|
71
|
+
* value: "STRING_VALUE", // required
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
67
74
|
* };
|
|
68
75
|
* const command = new InvokeDataAutomationAsyncCommand(input);
|
|
69
76
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockDataAutomationRuntimeClient";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListTagsForResourceCommand_base: {
|
|
25
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* List tags for an Amazon Bedrock Data Automation resource
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockDataAutomationRuntimeClient, ListTagsForResourceCommand } from "@aws-sdk/client-bedrock-data-automation-runtime"; // ES Modules import
|
|
35
|
+
* // const { BedrockDataAutomationRuntimeClient, ListTagsForResourceCommand } = require("@aws-sdk/client-bedrock-data-automation-runtime"); // CommonJS import
|
|
36
|
+
* const client = new BedrockDataAutomationRuntimeClient(config);
|
|
37
|
+
* const input = { // ListTagsForResourceRequest
|
|
38
|
+
* resourceARN: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListTagsForResourceResponse
|
|
43
|
+
* // tags: [ // TagList
|
|
44
|
+
* // { // Tag
|
|
45
|
+
* // key: "STRING_VALUE", // required
|
|
46
|
+
* // value: "STRING_VALUE", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // ],
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
54
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
55
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BedrockDataAutomationRuntimeClientResolvedConfig | config} for BedrockDataAutomationRuntimeClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* This exception will be thrown when customer does not have access to API.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* This exception is for any internal un-expected service errors.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* This exception will be thrown when resource provided from customer not found.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* This exception will be thrown when customer reached API TPS limit.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* This exception will be thrown when customer provided invalid parameters.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BedrockDataAutomationRuntimeServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from BedrockDataAutomationRuntime service.</p>
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: ListTagsForResourceRequest;
|
|
84
|
+
output: ListTagsForResourceResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: ListTagsForResourceCommandInput;
|
|
88
|
+
output: ListTagsForResourceCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|