@aws-sdk/client-bedrock-runtime 3.704.0 → 3.706.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 (43) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +711 -135
  3. package/dist-es/BedrockRuntime.js +6 -0
  4. package/dist-es/commands/ApplyGuardrailCommand.js +2 -1
  5. package/dist-es/commands/ConverseCommand.js +2 -2
  6. package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
  7. package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
  8. package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
  9. package/dist-es/commands/index.js +3 -0
  10. package/dist-es/index.js +1 -0
  11. package/dist-es/models/models_0.js +264 -76
  12. package/dist-es/pagination/Interfaces.js +1 -0
  13. package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +2 -0
  15. package/dist-es/protocols/Aws_restJson1.js +283 -7
  16. package/dist-types/BedrockRuntime.d.ts +22 -0
  17. package/dist-types/BedrockRuntimeClient.d.ts +5 -2
  18. package/dist-types/commands/ApplyGuardrailCommand.d.ts +16 -0
  19. package/dist-types/commands/ConverseCommand.d.ts +72 -0
  20. package/dist-types/commands/ConverseStreamCommand.d.ts +46 -0
  21. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  22. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
  23. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/models/models_0.d.ts +828 -119
  27. package/dist-types/pagination/Interfaces.d.ts +8 -0
  28. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +2 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
  32. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
  33. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +356 -42
  39. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  40. package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  43. package/package.json +4 -2
@@ -78,6 +78,16 @@ declare const ConverseCommand_base: {
78
78
  * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
79
79
  * },
80
80
  * },
81
+ * video: { // VideoBlock
82
+ * format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
83
+ * source: { // VideoSource Union: only one key present
84
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
85
+ * s3Location: { // S3Location
86
+ * uri: "STRING_VALUE", // required
87
+ * bucketOwner: "STRING_VALUE",
88
+ * },
89
+ * },
90
+ * },
81
91
  * toolUse: { // ToolUseBlock
82
92
  * toolUseId: "STRING_VALUE", // required
83
93
  * name: "STRING_VALUE", // required
@@ -102,6 +112,16 @@ declare const ConverseCommand_base: {
102
112
  * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
103
113
  * },
104
114
  * },
115
+ * video: {
116
+ * format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
117
+ * source: {// Union: only one key present
118
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
119
+ * s3Location: {
120
+ * uri: "STRING_VALUE", // required
121
+ * bucketOwner: "STRING_VALUE",
122
+ * },
123
+ * },
124
+ * },
105
125
  * },
106
126
  * ],
107
127
  * status: "success" || "error",
@@ -113,6 +133,12 @@ declare const ConverseCommand_base: {
113
133
  * "grounding_source" || "query" || "guard_content",
114
134
  * ],
115
135
  * },
136
+ * image: { // GuardrailConverseImageBlock
137
+ * format: "png" || "jpeg", // required
138
+ * source: { // GuardrailConverseImageSource Union: only one key present
139
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
140
+ * },
141
+ * },
116
142
  * },
117
143
  * },
118
144
  * ],
@@ -128,6 +154,12 @@ declare const ConverseCommand_base: {
128
154
  * "grounding_source" || "query" || "guard_content",
129
155
  * ],
130
156
  * },
157
+ * image: {
158
+ * format: "png" || "jpeg", // required
159
+ * source: {// Union: only one key present
160
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
161
+ * },
162
+ * },
131
163
  * },
132
164
  * },
133
165
  * ],
@@ -173,6 +205,9 @@ declare const ConverseCommand_base: {
173
205
  * additionalModelResponseFieldPaths: [ // AdditionalModelResponseFieldPaths
174
206
  * "STRING_VALUE",
175
207
  * ],
208
+ * requestMetadata: { // RequestMetadata
209
+ * "<keys>": "STRING_VALUE",
210
+ * },
176
211
  * performanceConfig: { // PerformanceConfiguration
177
212
  * latency: "standard" || "optimized",
178
213
  * },
@@ -199,6 +234,16 @@ declare const ConverseCommand_base: {
199
234
  * // bytes: new Uint8Array(),
200
235
  * // },
201
236
  * // },
237
+ * // video: { // VideoBlock
238
+ * // format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
239
+ * // source: { // VideoSource Union: only one key present
240
+ * // bytes: new Uint8Array(),
241
+ * // s3Location: { // S3Location
242
+ * // uri: "STRING_VALUE", // required
243
+ * // bucketOwner: "STRING_VALUE",
244
+ * // },
245
+ * // },
246
+ * // },
202
247
  * // toolUse: { // ToolUseBlock
203
248
  * // toolUseId: "STRING_VALUE", // required
204
249
  * // name: "STRING_VALUE", // required
@@ -223,6 +268,16 @@ declare const ConverseCommand_base: {
223
268
  * // bytes: new Uint8Array(),
224
269
  * // },
225
270
  * // },
271
+ * // video: {
272
+ * // format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
273
+ * // source: {// Union: only one key present
274
+ * // bytes: new Uint8Array(),
275
+ * // s3Location: {
276
+ * // uri: "STRING_VALUE", // required
277
+ * // bucketOwner: "STRING_VALUE",
278
+ * // },
279
+ * // },
280
+ * // },
226
281
  * // },
227
282
  * // ],
228
283
  * // status: "success" || "error",
@@ -234,6 +289,12 @@ declare const ConverseCommand_base: {
234
289
  * // "grounding_source" || "query" || "guard_content",
235
290
  * // ],
236
291
  * // },
292
+ * // image: { // GuardrailConverseImageBlock
293
+ * // format: "png" || "jpeg", // required
294
+ * // source: { // GuardrailConverseImageSource Union: only one key present
295
+ * // bytes: new Uint8Array(),
296
+ * // },
297
+ * // },
237
298
  * // },
238
299
  * // },
239
300
  * // ],
@@ -332,6 +393,10 @@ declare const ConverseCommand_base: {
332
393
  * // guarded: Number("int"),
333
394
  * // total: Number("int"),
334
395
  * // },
396
+ * // images: { // GuardrailImageCoverage
397
+ * // guarded: Number("int"),
398
+ * // total: Number("int"),
399
+ * // },
335
400
  * // },
336
401
  * // },
337
402
  * // },
@@ -415,12 +480,19 @@ declare const ConverseCommand_base: {
415
480
  * // guarded: Number("int"),
416
481
  * // total: Number("int"),
417
482
  * // },
483
+ * // images: {
484
+ * // guarded: Number("int"),
485
+ * // total: Number("int"),
486
+ * // },
418
487
  * // },
419
488
  * // },
420
489
  * // },
421
490
  * // ],
422
491
  * // },
423
492
  * // },
493
+ * // promptRouter: { // PromptRouterTrace
494
+ * // invokedModelId: "STRING_VALUE",
495
+ * // },
424
496
  * // },
425
497
  * // performanceConfig: { // PerformanceConfiguration
426
498
  * // latency: "standard" || "optimized",
@@ -84,6 +84,16 @@ declare const ConverseStreamCommand_base: {
84
84
  * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
85
85
  * },
86
86
  * },
87
+ * video: { // VideoBlock
88
+ * format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
89
+ * source: { // VideoSource Union: only one key present
90
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
91
+ * s3Location: { // S3Location
92
+ * uri: "STRING_VALUE", // required
93
+ * bucketOwner: "STRING_VALUE",
94
+ * },
95
+ * },
96
+ * },
87
97
  * toolUse: { // ToolUseBlock
88
98
  * toolUseId: "STRING_VALUE", // required
89
99
  * name: "STRING_VALUE", // required
@@ -108,6 +118,16 @@ declare const ConverseStreamCommand_base: {
108
118
  * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
109
119
  * },
110
120
  * },
121
+ * video: {
122
+ * format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
123
+ * source: {// Union: only one key present
124
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
125
+ * s3Location: {
126
+ * uri: "STRING_VALUE", // required
127
+ * bucketOwner: "STRING_VALUE",
128
+ * },
129
+ * },
130
+ * },
111
131
  * },
112
132
  * ],
113
133
  * status: "success" || "error",
@@ -119,6 +139,12 @@ declare const ConverseStreamCommand_base: {
119
139
  * "grounding_source" || "query" || "guard_content",
120
140
  * ],
121
141
  * },
142
+ * image: { // GuardrailConverseImageBlock
143
+ * format: "png" || "jpeg", // required
144
+ * source: { // GuardrailConverseImageSource Union: only one key present
145
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
146
+ * },
147
+ * },
122
148
  * },
123
149
  * },
124
150
  * ],
@@ -134,6 +160,12 @@ declare const ConverseStreamCommand_base: {
134
160
  * "grounding_source" || "query" || "guard_content",
135
161
  * ],
136
162
  * },
163
+ * image: {
164
+ * format: "png" || "jpeg", // required
165
+ * source: {// Union: only one key present
166
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
167
+ * },
168
+ * },
137
169
  * },
138
170
  * },
139
171
  * ],
@@ -180,6 +212,9 @@ declare const ConverseStreamCommand_base: {
180
212
  * additionalModelResponseFieldPaths: [ // AdditionalModelResponseFieldPaths
181
213
  * "STRING_VALUE",
182
214
  * ],
215
+ * requestMetadata: { // RequestMetadata
216
+ * "<keys>": "STRING_VALUE",
217
+ * },
183
218
  * performanceConfig: { // PerformanceConfiguration
184
219
  * latency: "standard" || "optimized",
185
220
  * },
@@ -308,6 +343,10 @@ declare const ConverseStreamCommand_base: {
308
343
  * // guarded: Number("int"),
309
344
  * // total: Number("int"),
310
345
  * // },
346
+ * // images: { // GuardrailImageCoverage
347
+ * // guarded: Number("int"),
348
+ * // total: Number("int"),
349
+ * // },
311
350
  * // },
312
351
  * // },
313
352
  * // },
@@ -391,12 +430,19 @@ declare const ConverseStreamCommand_base: {
391
430
  * // guarded: Number("int"),
392
431
  * // total: Number("int"),
393
432
  * // },
433
+ * // images: {
434
+ * // guarded: Number("int"),
435
+ * // total: Number("int"),
436
+ * // },
394
437
  * // },
395
438
  * // },
396
439
  * // },
397
440
  * // ],
398
441
  * // },
399
442
  * // },
443
+ * // promptRouter: { // PromptRouterTrace
444
+ * // invokedModelId: "STRING_VALUE",
445
+ * // },
400
446
  * // },
401
447
  * // performanceConfig: { // PerformanceConfiguration
402
448
  * // latency: "standard" || "optimized",
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
4
+ import { GetAsyncInvokeRequest, GetAsyncInvokeResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAsyncInvokeCommand}.
14
+ */
15
+ export interface GetAsyncInvokeCommandInput extends GetAsyncInvokeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAsyncInvokeCommand}.
21
+ */
22
+ export interface GetAsyncInvokeCommandOutput extends GetAsyncInvokeResponse, __MetadataBearer {
23
+ }
24
+ declare const GetAsyncInvokeCommand_base: {
25
+ new (input: GetAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieve information about an asynchronous invocation.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockRuntimeClient, GetAsyncInvokeCommand } from "@aws-sdk/client-bedrock-runtime"; // ES Modules import
35
+ * // const { BedrockRuntimeClient, GetAsyncInvokeCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
36
+ * const client = new BedrockRuntimeClient(config);
37
+ * const input = { // GetAsyncInvokeRequest
38
+ * invocationArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetAsyncInvokeCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetAsyncInvokeResponse
43
+ * // invocationArn: "STRING_VALUE", // required
44
+ * // modelArn: "STRING_VALUE", // required
45
+ * // clientRequestToken: "STRING_VALUE",
46
+ * // status: "InProgress" || "Completed" || "Failed", // required
47
+ * // failureMessage: "STRING_VALUE",
48
+ * // submitTime: new Date("TIMESTAMP"), // required
49
+ * // lastModifiedTime: new Date("TIMESTAMP"),
50
+ * // endTime: new Date("TIMESTAMP"),
51
+ * // outputDataConfig: { // AsyncInvokeOutputDataConfig Union: only one key present
52
+ * // s3OutputDataConfig: { // AsyncInvokeS3OutputDataConfig
53
+ * // s3Uri: "STRING_VALUE", // required
54
+ * // kmsKeyId: "STRING_VALUE",
55
+ * // bucketOwner: "STRING_VALUE",
56
+ * // },
57
+ * // },
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param GetAsyncInvokeCommandInput - {@link GetAsyncInvokeCommandInput}
63
+ * @returns {@link GetAsyncInvokeCommandOutput}
64
+ * @see {@link GetAsyncInvokeCommandInput} for command's `input` shape.
65
+ * @see {@link GetAsyncInvokeCommandOutput} for command's `response` shape.
66
+ * @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error,
70
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-access-denied">AccessDeniedException</a> in the Amazon Bedrock User Guide</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>An internal server error occurred. For troubleshooting this error,
74
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
78
+ * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
82
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
83
+ *
84
+ * @throws {@link BedrockRuntimeServiceException}
85
+ * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class GetAsyncInvokeCommand extends GetAsyncInvokeCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: GetAsyncInvokeRequest;
94
+ output: GetAsyncInvokeResponse;
95
+ };
96
+ sdk: {
97
+ input: GetAsyncInvokeCommandInput;
98
+ output: GetAsyncInvokeCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -0,0 +1,112 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
4
+ import { ListAsyncInvokesRequest, ListAsyncInvokesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAsyncInvokesCommand}.
14
+ */
15
+ export interface ListAsyncInvokesCommandInput extends ListAsyncInvokesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAsyncInvokesCommand}.
21
+ */
22
+ export interface ListAsyncInvokesCommandOutput extends ListAsyncInvokesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListAsyncInvokesCommand_base: {
25
+ new (input: ListAsyncInvokesCommandInput): import("@smithy/smithy-client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListAsyncInvokesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists asynchronous invocations.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockRuntimeClient, ListAsyncInvokesCommand } from "@aws-sdk/client-bedrock-runtime"; // ES Modules import
35
+ * // const { BedrockRuntimeClient, ListAsyncInvokesCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
36
+ * const client = new BedrockRuntimeClient(config);
37
+ * const input = { // ListAsyncInvokesRequest
38
+ * submitTimeAfter: new Date("TIMESTAMP"),
39
+ * submitTimeBefore: new Date("TIMESTAMP"),
40
+ * statusEquals: "InProgress" || "Completed" || "Failed",
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * sortBy: "SubmissionTime",
44
+ * sortOrder: "Ascending" || "Descending",
45
+ * };
46
+ * const command = new ListAsyncInvokesCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListAsyncInvokesResponse
49
+ * // nextToken: "STRING_VALUE",
50
+ * // asyncInvokeSummaries: [ // AsyncInvokeSummaries
51
+ * // { // AsyncInvokeSummary
52
+ * // invocationArn: "STRING_VALUE", // required
53
+ * // modelArn: "STRING_VALUE", // required
54
+ * // clientRequestToken: "STRING_VALUE",
55
+ * // status: "InProgress" || "Completed" || "Failed",
56
+ * // failureMessage: "STRING_VALUE",
57
+ * // submitTime: new Date("TIMESTAMP"), // required
58
+ * // lastModifiedTime: new Date("TIMESTAMP"),
59
+ * // endTime: new Date("TIMESTAMP"),
60
+ * // outputDataConfig: { // AsyncInvokeOutputDataConfig Union: only one key present
61
+ * // s3OutputDataConfig: { // AsyncInvokeS3OutputDataConfig
62
+ * // s3Uri: "STRING_VALUE", // required
63
+ * // kmsKeyId: "STRING_VALUE",
64
+ * // bucketOwner: "STRING_VALUE",
65
+ * // },
66
+ * // },
67
+ * // },
68
+ * // ],
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param ListAsyncInvokesCommandInput - {@link ListAsyncInvokesCommandInput}
74
+ * @returns {@link ListAsyncInvokesCommandOutput}
75
+ * @see {@link ListAsyncInvokesCommandInput} for command's `input` shape.
76
+ * @see {@link ListAsyncInvokesCommandOutput} for command's `response` shape.
77
+ * @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error,
81
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-access-denied">AccessDeniedException</a> in the Amazon Bedrock User Guide</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>An internal server error occurred. For troubleshooting this error,
85
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
86
+ *
87
+ * @throws {@link ThrottlingException} (client fault)
88
+ * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
89
+ * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
93
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
94
+ *
95
+ * @throws {@link BedrockRuntimeServiceException}
96
+ * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
97
+ *
98
+ * @public
99
+ */
100
+ export declare class ListAsyncInvokesCommand extends ListAsyncInvokesCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: ListAsyncInvokesRequest;
105
+ output: ListAsyncInvokesResponse;
106
+ };
107
+ sdk: {
108
+ input: ListAsyncInvokesCommandInput;
109
+ output: ListAsyncInvokesCommandOutput;
110
+ };
111
+ };
112
+ }
@@ -0,0 +1,124 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
4
+ import { StartAsyncInvokeRequest, StartAsyncInvokeResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartAsyncInvokeCommand}.
14
+ */
15
+ export interface StartAsyncInvokeCommandInput extends StartAsyncInvokeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartAsyncInvokeCommand}.
21
+ */
22
+ export interface StartAsyncInvokeCommandOutput extends StartAsyncInvokeResponse, __MetadataBearer {
23
+ }
24
+ declare const StartAsyncInvokeCommand_base: {
25
+ new (input: StartAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: StartAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Starts an asynchronous invocation.</p>
31
+ * <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action.</p>
32
+ * <important>
33
+ * <p>To deny all inference access to resources that you specify in the modelId field, you
34
+ * need to deny access to the <code>bedrock:InvokeModel</code> and
35
+ * <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies
36
+ * access to the resource through the Converse API actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>). For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference">Deny access for inference on specific models</a>.
37
+ * </p>
38
+ * </important>
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { BedrockRuntimeClient, StartAsyncInvokeCommand } from "@aws-sdk/client-bedrock-runtime"; // ES Modules import
43
+ * // const { BedrockRuntimeClient, StartAsyncInvokeCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
44
+ * const client = new BedrockRuntimeClient(config);
45
+ * const input = { // StartAsyncInvokeRequest
46
+ * clientRequestToken: "STRING_VALUE",
47
+ * modelId: "STRING_VALUE", // required
48
+ * modelInput: "DOCUMENT_VALUE", // required
49
+ * outputDataConfig: { // AsyncInvokeOutputDataConfig Union: only one key present
50
+ * s3OutputDataConfig: { // AsyncInvokeS3OutputDataConfig
51
+ * s3Uri: "STRING_VALUE", // required
52
+ * kmsKeyId: "STRING_VALUE",
53
+ * bucketOwner: "STRING_VALUE",
54
+ * },
55
+ * },
56
+ * tags: [ // TagList
57
+ * { // Tag
58
+ * key: "STRING_VALUE", // required
59
+ * value: "STRING_VALUE", // required
60
+ * },
61
+ * ],
62
+ * };
63
+ * const command = new StartAsyncInvokeCommand(input);
64
+ * const response = await client.send(command);
65
+ * // { // StartAsyncInvokeResponse
66
+ * // invocationArn: "STRING_VALUE", // required
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param StartAsyncInvokeCommandInput - {@link StartAsyncInvokeCommandInput}
72
+ * @returns {@link StartAsyncInvokeCommandOutput}
73
+ * @see {@link StartAsyncInvokeCommandInput} for command's `input` shape.
74
+ * @see {@link StartAsyncInvokeCommandOutput} for command's `response` shape.
75
+ * @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error,
79
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-access-denied">AccessDeniedException</a> in the Amazon Bedrock User Guide</p>
80
+ *
81
+ * @throws {@link ConflictException} (client fault)
82
+ * <p>Error occurred because of a conflict while performing an operation.</p>
83
+ *
84
+ * @throws {@link InternalServerException} (server fault)
85
+ * <p>An internal server error occurred. For troubleshooting this error,
86
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>The specified resource ARN was not found. For troubleshooting this error,
90
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-resource-not-found">ResourceNotFound</a> in the Amazon Bedrock User Guide</p>
91
+ *
92
+ * @throws {@link ServiceQuotaExceededException} (client fault)
93
+ * <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
94
+ *
95
+ * @throws {@link ServiceUnavailableException} (server fault)
96
+ * <p>The service isn't currently available. For troubleshooting this error,
97
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
101
+ * troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
102
+ *
103
+ * @throws {@link ValidationException} (client fault)
104
+ * <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
105
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
106
+ *
107
+ * @throws {@link BedrockRuntimeServiceException}
108
+ * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
109
+ *
110
+ * @public
111
+ */
112
+ export declare class StartAsyncInvokeCommand extends StartAsyncInvokeCommand_base {
113
+ /** @internal type navigation helper, not in runtime. */
114
+ protected static __types: {
115
+ api: {
116
+ input: StartAsyncInvokeRequest;
117
+ output: StartAsyncInvokeResponse;
118
+ };
119
+ sdk: {
120
+ input: StartAsyncInvokeCommandInput;
121
+ output: StartAsyncInvokeCommandOutput;
122
+ };
123
+ };
124
+ }
@@ -1,5 +1,8 @@
1
1
  export * from "./ApplyGuardrailCommand";
2
2
  export * from "./ConverseCommand";
3
3
  export * from "./ConverseStreamCommand";
4
+ export * from "./GetAsyncInvokeCommand";
4
5
  export * from "./InvokeModelCommand";
5
6
  export * from "./InvokeModelWithResponseStreamCommand";
7
+ export * from "./ListAsyncInvokesCommand";
8
+ export * from "./StartAsyncInvokeCommand";
@@ -9,5 +9,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export * from "./pagination";
12
13
  export * from "./models";
13
14
  export { BedrockRuntimeServiceException } from "./models/BedrockRuntimeServiceException";