@aws-sdk/client-bedrock-runtime 3.699.0 → 3.705.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/index.js +484 -116
- package/dist-es/BedrockRuntime.js +6 -0
- package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
- package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +156 -72
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +200 -2
- package/dist-types/BedrockRuntime.d.ts +22 -0
- package/dist-types/BedrockRuntimeClient.d.ts +5 -2
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +12 -5
- package/dist-types/commands/ConverseCommand.d.ts +73 -9
- package/dist-types/commands/ConverseStreamCommand.d.ts +53 -9
- package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
- package/dist-types/commands/InvokeModelCommand.d.ts +26 -9
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +26 -9
- package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
- package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +652 -97
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +254 -42
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +4 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { BedrockRuntimeServiceException as __BaseException } from "../models/BedrockRuntimeServiceException";
|
|
5
|
-
import { AccessDeniedException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, ConflictException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, VideoSource, } from "../models/models_0";
|
|
6
7
|
export const se_ApplyGuardrailCommand = async (input, context) => {
|
|
7
8
|
const b = rb(input, context);
|
|
8
9
|
const headers = {
|
|
@@ -33,7 +34,9 @@ export const se_ConverseCommand = async (input, context) => {
|
|
|
33
34
|
guardrailConfig: (_) => _json(_),
|
|
34
35
|
inferenceConfig: (_) => se_InferenceConfiguration(_, context),
|
|
35
36
|
messages: (_) => se_Messages(_, context),
|
|
37
|
+
performanceConfig: (_) => _json(_),
|
|
36
38
|
promptVariables: (_) => _json(_),
|
|
39
|
+
requestMetadata: (_) => _json(_),
|
|
37
40
|
system: (_) => _json(_),
|
|
38
41
|
toolConfig: (_) => se_ToolConfiguration(_, context),
|
|
39
42
|
}));
|
|
@@ -54,13 +57,24 @@ export const se_ConverseStreamCommand = async (input, context) => {
|
|
|
54
57
|
guardrailConfig: (_) => _json(_),
|
|
55
58
|
inferenceConfig: (_) => se_InferenceConfiguration(_, context),
|
|
56
59
|
messages: (_) => se_Messages(_, context),
|
|
60
|
+
performanceConfig: (_) => _json(_),
|
|
57
61
|
promptVariables: (_) => _json(_),
|
|
62
|
+
requestMetadata: (_) => _json(_),
|
|
58
63
|
system: (_) => _json(_),
|
|
59
64
|
toolConfig: (_) => se_ToolConfiguration(_, context),
|
|
60
65
|
}));
|
|
61
66
|
b.m("POST").h(headers).b(body);
|
|
62
67
|
return b.build();
|
|
63
68
|
};
|
|
69
|
+
export const se_GetAsyncInvokeCommand = async (input, context) => {
|
|
70
|
+
const b = rb(input, context);
|
|
71
|
+
const headers = {};
|
|
72
|
+
b.bp("/async-invoke/{invocationArn}");
|
|
73
|
+
b.p("invocationArn", () => input.invocationArn, "{invocationArn}", false);
|
|
74
|
+
let body;
|
|
75
|
+
b.m("GET").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
77
|
+
};
|
|
64
78
|
export const se_InvokeModelCommand = async (input, context) => {
|
|
65
79
|
const b = rb(input, context);
|
|
66
80
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -69,6 +83,7 @@ export const se_InvokeModelCommand = async (input, context) => {
|
|
|
69
83
|
[_xabt]: input[_t],
|
|
70
84
|
[_xabg]: input[_gI],
|
|
71
85
|
[_xabg_]: input[_gV],
|
|
86
|
+
[_xabpl]: input[_pCL],
|
|
72
87
|
});
|
|
73
88
|
b.bp("/model/{modelId}/invoke");
|
|
74
89
|
b.p("modelId", () => input.modelId, "{modelId}", false);
|
|
@@ -87,6 +102,7 @@ export const se_InvokeModelWithResponseStreamCommand = async (input, context) =>
|
|
|
87
102
|
[_xabt]: input[_t],
|
|
88
103
|
[_xabg]: input[_gI],
|
|
89
104
|
[_xabg_]: input[_gV],
|
|
105
|
+
[_xabpl]: input[_pCL],
|
|
90
106
|
});
|
|
91
107
|
b.bp("/model/{modelId}/invoke-with-response-stream");
|
|
92
108
|
b.p("modelId", () => input.modelId, "{modelId}", false);
|
|
@@ -97,6 +113,40 @@ export const se_InvokeModelWithResponseStreamCommand = async (input, context) =>
|
|
|
97
113
|
b.m("POST").h(headers).b(body);
|
|
98
114
|
return b.build();
|
|
99
115
|
};
|
|
116
|
+
export const se_ListAsyncInvokesCommand = async (input, context) => {
|
|
117
|
+
const b = rb(input, context);
|
|
118
|
+
const headers = {};
|
|
119
|
+
b.bp("/async-invoke");
|
|
120
|
+
const query = map({
|
|
121
|
+
[_sTA]: [() => input.submitTimeAfter !== void 0, () => __serializeDateTime(input[_sTA]).toString()],
|
|
122
|
+
[_sTB]: [() => input.submitTimeBefore !== void 0, () => __serializeDateTime(input[_sTB]).toString()],
|
|
123
|
+
[_sE]: [, input[_sE]],
|
|
124
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
125
|
+
[_nT]: [, input[_nT]],
|
|
126
|
+
[_sB]: [, input[_sB]],
|
|
127
|
+
[_sO]: [, input[_sO]],
|
|
128
|
+
});
|
|
129
|
+
let body;
|
|
130
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
131
|
+
return b.build();
|
|
132
|
+
};
|
|
133
|
+
export const se_StartAsyncInvokeCommand = async (input, context) => {
|
|
134
|
+
const b = rb(input, context);
|
|
135
|
+
const headers = {
|
|
136
|
+
"content-type": "application/json",
|
|
137
|
+
};
|
|
138
|
+
b.bp("/async-invoke");
|
|
139
|
+
let body;
|
|
140
|
+
body = JSON.stringify(take(input, {
|
|
141
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
142
|
+
modelId: [],
|
|
143
|
+
modelInput: (_) => se_ModelInputPayload(_, context),
|
|
144
|
+
outputDataConfig: (_) => _json(_),
|
|
145
|
+
tags: (_) => _json(_),
|
|
146
|
+
}));
|
|
147
|
+
b.m("POST").h(headers).b(body);
|
|
148
|
+
return b.build();
|
|
149
|
+
};
|
|
100
150
|
export const de_ApplyGuardrailCommand = async (output, context) => {
|
|
101
151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
102
152
|
return de_CommandError(output, context);
|
|
@@ -127,6 +177,7 @@ export const de_ConverseCommand = async (output, context) => {
|
|
|
127
177
|
additionalModelResponseFields: (_) => de_Document(_, context),
|
|
128
178
|
metrics: _json,
|
|
129
179
|
output: (_) => de_ConverseOutput(__expectUnion(_), context),
|
|
180
|
+
performanceConfig: _json,
|
|
130
181
|
stopReason: __expectString,
|
|
131
182
|
trace: (_) => de_ConverseTrace(_, context),
|
|
132
183
|
usage: _json,
|
|
@@ -145,6 +196,28 @@ export const de_ConverseStreamCommand = async (output, context) => {
|
|
|
145
196
|
contents.stream = de_ConverseStreamOutput(data, context);
|
|
146
197
|
return contents;
|
|
147
198
|
};
|
|
199
|
+
export const de_GetAsyncInvokeCommand = async (output, context) => {
|
|
200
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
201
|
+
return de_CommandError(output, context);
|
|
202
|
+
}
|
|
203
|
+
const contents = map({
|
|
204
|
+
$metadata: deserializeMetadata(output),
|
|
205
|
+
});
|
|
206
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
207
|
+
const doc = take(data, {
|
|
208
|
+
clientRequestToken: __expectString,
|
|
209
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
210
|
+
failureMessage: __expectString,
|
|
211
|
+
invocationArn: __expectString,
|
|
212
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
213
|
+
modelArn: __expectString,
|
|
214
|
+
outputDataConfig: (_) => _json(__expectUnion(_)),
|
|
215
|
+
status: __expectString,
|
|
216
|
+
submitTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
217
|
+
});
|
|
218
|
+
Object.assign(contents, doc);
|
|
219
|
+
return contents;
|
|
220
|
+
};
|
|
148
221
|
export const de_InvokeModelCommand = async (output, context) => {
|
|
149
222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
150
223
|
return de_CommandError(output, context);
|
|
@@ -152,6 +225,7 @@ export const de_InvokeModelCommand = async (output, context) => {
|
|
|
152
225
|
const contents = map({
|
|
153
226
|
$metadata: deserializeMetadata(output),
|
|
154
227
|
[_cT]: [, output.headers[_ct]],
|
|
228
|
+
[_pCL]: [, output.headers[_xabpl]],
|
|
155
229
|
});
|
|
156
230
|
const data = await collectBody(output.body, context);
|
|
157
231
|
contents.body = data;
|
|
@@ -164,11 +238,41 @@ export const de_InvokeModelWithResponseStreamCommand = async (output, context) =
|
|
|
164
238
|
const contents = map({
|
|
165
239
|
$metadata: deserializeMetadata(output),
|
|
166
240
|
[_cT]: [, output.headers[_xabct]],
|
|
241
|
+
[_pCL]: [, output.headers[_xabpl]],
|
|
167
242
|
});
|
|
168
243
|
const data = output.body;
|
|
169
244
|
contents.body = de_ResponseStream(data, context);
|
|
170
245
|
return contents;
|
|
171
246
|
};
|
|
247
|
+
export const de_ListAsyncInvokesCommand = async (output, context) => {
|
|
248
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
+
return de_CommandError(output, context);
|
|
250
|
+
}
|
|
251
|
+
const contents = map({
|
|
252
|
+
$metadata: deserializeMetadata(output),
|
|
253
|
+
});
|
|
254
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
255
|
+
const doc = take(data, {
|
|
256
|
+
asyncInvokeSummaries: (_) => de_AsyncInvokeSummaries(_, context),
|
|
257
|
+
nextToken: __expectString,
|
|
258
|
+
});
|
|
259
|
+
Object.assign(contents, doc);
|
|
260
|
+
return contents;
|
|
261
|
+
};
|
|
262
|
+
export const de_StartAsyncInvokeCommand = async (output, context) => {
|
|
263
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
264
|
+
return de_CommandError(output, context);
|
|
265
|
+
}
|
|
266
|
+
const contents = map({
|
|
267
|
+
$metadata: deserializeMetadata(output),
|
|
268
|
+
});
|
|
269
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
270
|
+
const doc = take(data, {
|
|
271
|
+
invocationArn: __expectString,
|
|
272
|
+
});
|
|
273
|
+
Object.assign(contents, doc);
|
|
274
|
+
return contents;
|
|
275
|
+
};
|
|
172
276
|
const de_CommandError = async (output, context) => {
|
|
173
277
|
const parsedOutput = {
|
|
174
278
|
...output,
|
|
@@ -209,6 +313,9 @@ const de_CommandError = async (output, context) => {
|
|
|
209
313
|
case "ModelStreamErrorException":
|
|
210
314
|
case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
|
|
211
315
|
throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
|
|
316
|
+
case "ConflictException":
|
|
317
|
+
case "com.amazonaws.bedrockruntime#ConflictException":
|
|
318
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
212
319
|
default:
|
|
213
320
|
const parsedBody = parsedOutput.body;
|
|
214
321
|
return throwDefaultError({
|
|
@@ -232,6 +339,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
232
339
|
});
|
|
233
340
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
234
341
|
};
|
|
342
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
343
|
+
const contents = map({});
|
|
344
|
+
const data = parsedOutput.body;
|
|
345
|
+
const doc = take(data, {
|
|
346
|
+
message: __expectString,
|
|
347
|
+
});
|
|
348
|
+
Object.assign(contents, doc);
|
|
349
|
+
const exception = new ConflictException({
|
|
350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
351
|
+
...contents,
|
|
352
|
+
});
|
|
353
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
354
|
+
};
|
|
235
355
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
236
356
|
const contents = map({});
|
|
237
357
|
const data = parsedOutput.body;
|
|
@@ -558,6 +678,7 @@ const se_ContentBlock = (input, context) => {
|
|
|
558
678
|
text: (value) => ({ text: value }),
|
|
559
679
|
toolResult: (value) => ({ toolResult: se_ToolResultBlock(value, context) }),
|
|
560
680
|
toolUse: (value) => ({ toolUse: se_ToolUseBlock(value, context) }),
|
|
681
|
+
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
561
682
|
_: (name, value) => ({ name: value }),
|
|
562
683
|
});
|
|
563
684
|
};
|
|
@@ -614,6 +735,9 @@ const se_Messages = (input, context) => {
|
|
|
614
735
|
return se_Message(entry, context);
|
|
615
736
|
});
|
|
616
737
|
};
|
|
738
|
+
const se_ModelInputPayload = (input, context) => {
|
|
739
|
+
return input;
|
|
740
|
+
};
|
|
617
741
|
const se_Tool = (input, context) => {
|
|
618
742
|
return Tool.visit(input, {
|
|
619
743
|
toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
|
|
@@ -645,6 +769,7 @@ const se_ToolResultContentBlock = (input, context) => {
|
|
|
645
769
|
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
646
770
|
json: (value) => ({ json: se_Document(value, context) }),
|
|
647
771
|
text: (value) => ({ text: value }),
|
|
772
|
+
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
648
773
|
_: (name, value) => ({ name: value }),
|
|
649
774
|
});
|
|
650
775
|
};
|
|
@@ -676,9 +801,43 @@ const se_ToolUseBlock = (input, context) => {
|
|
|
676
801
|
toolUseId: [],
|
|
677
802
|
});
|
|
678
803
|
};
|
|
804
|
+
const se_VideoBlock = (input, context) => {
|
|
805
|
+
return take(input, {
|
|
806
|
+
format: [],
|
|
807
|
+
source: (_) => se_VideoSource(_, context),
|
|
808
|
+
});
|
|
809
|
+
};
|
|
810
|
+
const se_VideoSource = (input, context) => {
|
|
811
|
+
return VideoSource.visit(input, {
|
|
812
|
+
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
813
|
+
s3Location: (value) => ({ s3Location: _json(value) }),
|
|
814
|
+
_: (name, value) => ({ name: value }),
|
|
815
|
+
});
|
|
816
|
+
};
|
|
679
817
|
const se_Document = (input, context) => {
|
|
680
818
|
return input;
|
|
681
819
|
};
|
|
820
|
+
const de_AsyncInvokeSummaries = (output, context) => {
|
|
821
|
+
const retVal = (output || [])
|
|
822
|
+
.filter((e) => e != null)
|
|
823
|
+
.map((entry) => {
|
|
824
|
+
return de_AsyncInvokeSummary(entry, context);
|
|
825
|
+
});
|
|
826
|
+
return retVal;
|
|
827
|
+
};
|
|
828
|
+
const de_AsyncInvokeSummary = (output, context) => {
|
|
829
|
+
return take(output, {
|
|
830
|
+
clientRequestToken: __expectString,
|
|
831
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
832
|
+
failureMessage: __expectString,
|
|
833
|
+
invocationArn: __expectString,
|
|
834
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
835
|
+
modelArn: __expectString,
|
|
836
|
+
outputDataConfig: (_) => _json(__expectUnion(_)),
|
|
837
|
+
status: __expectString,
|
|
838
|
+
submitTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
839
|
+
});
|
|
840
|
+
};
|
|
682
841
|
const de_ContentBlock = (output, context) => {
|
|
683
842
|
if (output.document != null) {
|
|
684
843
|
return {
|
|
@@ -708,6 +867,11 @@ const de_ContentBlock = (output, context) => {
|
|
|
708
867
|
toolUse: de_ToolUseBlock(output.toolUse, context),
|
|
709
868
|
};
|
|
710
869
|
}
|
|
870
|
+
if (output.video != null) {
|
|
871
|
+
return {
|
|
872
|
+
video: de_VideoBlock(output.video, context),
|
|
873
|
+
};
|
|
874
|
+
}
|
|
711
875
|
return { $unknown: Object.entries(output)[0] };
|
|
712
876
|
};
|
|
713
877
|
const de_ContentBlocks = (output, context) => {
|
|
@@ -729,6 +893,7 @@ const de_ConverseOutput = (output, context) => {
|
|
|
729
893
|
const de_ConverseStreamMetadataEvent = (output, context) => {
|
|
730
894
|
return take(output, {
|
|
731
895
|
metrics: _json,
|
|
896
|
+
performanceConfig: _json,
|
|
732
897
|
trace: (_) => de_ConverseStreamTrace(_, context),
|
|
733
898
|
usage: _json,
|
|
734
899
|
});
|
|
@@ -879,6 +1044,11 @@ const de_ToolResultContentBlock = (output, context) => {
|
|
|
879
1044
|
if (__expectString(output.text) !== undefined) {
|
|
880
1045
|
return { text: __expectString(output.text) };
|
|
881
1046
|
}
|
|
1047
|
+
if (output.video != null) {
|
|
1048
|
+
return {
|
|
1049
|
+
video: de_VideoBlock(output.video, context),
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
882
1052
|
return { $unknown: Object.entries(output)[0] };
|
|
883
1053
|
};
|
|
884
1054
|
const de_ToolResultContentBlocks = (output, context) => {
|
|
@@ -896,6 +1066,25 @@ const de_ToolUseBlock = (output, context) => {
|
|
|
896
1066
|
toolUseId: __expectString,
|
|
897
1067
|
});
|
|
898
1068
|
};
|
|
1069
|
+
const de_VideoBlock = (output, context) => {
|
|
1070
|
+
return take(output, {
|
|
1071
|
+
format: __expectString,
|
|
1072
|
+
source: (_) => de_VideoSource(__expectUnion(_), context),
|
|
1073
|
+
});
|
|
1074
|
+
};
|
|
1075
|
+
const de_VideoSource = (output, context) => {
|
|
1076
|
+
if (output.bytes != null) {
|
|
1077
|
+
return {
|
|
1078
|
+
bytes: context.base64Decoder(output.bytes),
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
if (output.s3Location != null) {
|
|
1082
|
+
return {
|
|
1083
|
+
s3Location: _json(output.s3Location),
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1087
|
+
};
|
|
899
1088
|
const de_Document = (output, context) => {
|
|
900
1089
|
return output;
|
|
901
1090
|
};
|
|
@@ -911,9 +1100,18 @@ const _cT = "contentType";
|
|
|
911
1100
|
const _ct = "content-type";
|
|
912
1101
|
const _gI = "guardrailIdentifier";
|
|
913
1102
|
const _gV = "guardrailVersion";
|
|
1103
|
+
const _mR = "maxResults";
|
|
1104
|
+
const _nT = "nextToken";
|
|
1105
|
+
const _pCL = "performanceConfigLatency";
|
|
1106
|
+
const _sB = "sortBy";
|
|
1107
|
+
const _sE = "statusEquals";
|
|
1108
|
+
const _sO = "sortOrder";
|
|
1109
|
+
const _sTA = "submitTimeAfter";
|
|
1110
|
+
const _sTB = "submitTimeBefore";
|
|
914
1111
|
const _t = "trace";
|
|
915
1112
|
const _xaba = "x-amzn-bedrock-accept";
|
|
916
1113
|
const _xabct = "x-amzn-bedrock-content-type";
|
|
917
1114
|
const _xabg = "x-amzn-bedrock-guardrailidentifier";
|
|
918
1115
|
const _xabg_ = "x-amzn-bedrock-guardrailversion";
|
|
1116
|
+
const _xabpl = "x-amzn-bedrock-performanceconfig-latency";
|
|
919
1117
|
const _xabt = "x-amzn-bedrock-trace";
|
|
@@ -3,8 +3,11 @@ import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
|
|
|
3
3
|
import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
|
|
4
4
|
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
5
5
|
import { ConverseStreamCommandInput, ConverseStreamCommandOutput } from "./commands/ConverseStreamCommand";
|
|
6
|
+
import { GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput } from "./commands/GetAsyncInvokeCommand";
|
|
6
7
|
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
|
|
7
8
|
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "./commands/InvokeModelWithResponseStreamCommand";
|
|
9
|
+
import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput } from "./commands/ListAsyncInvokesCommand";
|
|
10
|
+
import { StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput } from "./commands/StartAsyncInvokeCommand";
|
|
8
11
|
export interface BedrockRuntime {
|
|
9
12
|
/**
|
|
10
13
|
* @see {@link ApplyGuardrailCommand}
|
|
@@ -24,6 +27,12 @@ export interface BedrockRuntime {
|
|
|
24
27
|
converseStream(args: ConverseStreamCommandInput, options?: __HttpHandlerOptions): Promise<ConverseStreamCommandOutput>;
|
|
25
28
|
converseStream(args: ConverseStreamCommandInput, cb: (err: any, data?: ConverseStreamCommandOutput) => void): void;
|
|
26
29
|
converseStream(args: ConverseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConverseStreamCommandOutput) => void): void;
|
|
30
|
+
/**
|
|
31
|
+
* @see {@link GetAsyncInvokeCommand}
|
|
32
|
+
*/
|
|
33
|
+
getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: __HttpHandlerOptions): Promise<GetAsyncInvokeCommandOutput>;
|
|
34
|
+
getAsyncInvoke(args: GetAsyncInvokeCommandInput, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void): void;
|
|
35
|
+
getAsyncInvoke(args: GetAsyncInvokeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void): void;
|
|
27
36
|
/**
|
|
28
37
|
* @see {@link InvokeModelCommand}
|
|
29
38
|
*/
|
|
@@ -36,6 +45,19 @@ export interface BedrockRuntime {
|
|
|
36
45
|
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeModelWithResponseStreamCommandOutput>;
|
|
37
46
|
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void;
|
|
38
47
|
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link ListAsyncInvokesCommand}
|
|
50
|
+
*/
|
|
51
|
+
listAsyncInvokes(): Promise<ListAsyncInvokesCommandOutput>;
|
|
52
|
+
listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: __HttpHandlerOptions): Promise<ListAsyncInvokesCommandOutput>;
|
|
53
|
+
listAsyncInvokes(args: ListAsyncInvokesCommandInput, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void): void;
|
|
54
|
+
listAsyncInvokes(args: ListAsyncInvokesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link StartAsyncInvokeCommand}
|
|
57
|
+
*/
|
|
58
|
+
startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: __HttpHandlerOptions): Promise<StartAsyncInvokeCommandOutput>;
|
|
59
|
+
startAsyncInvoke(args: StartAsyncInvokeCommandInput, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void;
|
|
60
|
+
startAsyncInvoke(args: StartAsyncInvokeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void;
|
|
39
61
|
}
|
|
40
62
|
/**
|
|
41
63
|
* <p>Describes the API operations for running inference using Amazon Bedrock models.</p>
|
|
@@ -11,19 +11,22 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
11
11
|
import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
|
|
12
12
|
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
13
13
|
import { ConverseStreamCommandInput, ConverseStreamCommandOutput } from "./commands/ConverseStreamCommand";
|
|
14
|
+
import { GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput } from "./commands/GetAsyncInvokeCommand";
|
|
14
15
|
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
|
|
15
16
|
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "./commands/InvokeModelWithResponseStreamCommand";
|
|
17
|
+
import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput } from "./commands/ListAsyncInvokesCommand";
|
|
18
|
+
import { StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput } from "./commands/StartAsyncInvokeCommand";
|
|
16
19
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
17
20
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
18
21
|
export { __Client };
|
|
19
22
|
/**
|
|
20
23
|
* @public
|
|
21
24
|
*/
|
|
22
|
-
export type ServiceInputTypes = ApplyGuardrailCommandInput | ConverseCommandInput | ConverseStreamCommandInput | InvokeModelCommandInput | InvokeModelWithResponseStreamCommandInput;
|
|
25
|
+
export type ServiceInputTypes = ApplyGuardrailCommandInput | ConverseCommandInput | ConverseStreamCommandInput | GetAsyncInvokeCommandInput | InvokeModelCommandInput | InvokeModelWithResponseStreamCommandInput | ListAsyncInvokesCommandInput | StartAsyncInvokeCommandInput;
|
|
23
26
|
/**
|
|
24
27
|
* @public
|
|
25
28
|
*/
|
|
26
|
-
export type ServiceOutputTypes = ApplyGuardrailCommandOutput | ConverseCommandOutput | ConverseStreamCommandOutput | InvokeModelCommandOutput | InvokeModelWithResponseStreamCommandOutput;
|
|
29
|
+
export type ServiceOutputTypes = ApplyGuardrailCommandOutput | ConverseCommandOutput | ConverseStreamCommandOutput | GetAsyncInvokeCommandOutput | InvokeModelCommandOutput | InvokeModelWithResponseStreamCommandOutput | ListAsyncInvokesCommandOutput | StartAsyncInvokeCommandOutput;
|
|
27
30
|
/**
|
|
28
31
|
* @public
|
|
29
32
|
*/
|
|
@@ -28,6 +28,8 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>The action to apply a guardrail.</p>
|
|
31
|
+
* <p>For troubleshooting some of the common errors you might encounter when using the <code>ApplyGuardrail</code> API,
|
|
32
|
+
* see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html">Troubleshooting Amazon Bedrock API Error Codes</a> in the Amazon Bedrock User Guide</p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -165,22 +167,27 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
165
167
|
* @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
|
|
166
168
|
*
|
|
167
169
|
* @throws {@link AccessDeniedException} (client fault)
|
|
168
|
-
* <p>The request is denied because
|
|
170
|
+
* <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error,
|
|
171
|
+
* 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>
|
|
169
172
|
*
|
|
170
173
|
* @throws {@link InternalServerException} (server fault)
|
|
171
|
-
* <p>An internal server error occurred.
|
|
174
|
+
* <p>An internal server error occurred. For troubleshooting this error,
|
|
175
|
+
* 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>
|
|
172
176
|
*
|
|
173
177
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
174
|
-
* <p>The specified resource ARN was not found.
|
|
178
|
+
* <p>The specified resource ARN was not found. For troubleshooting this error,
|
|
179
|
+
* 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>
|
|
175
180
|
*
|
|
176
181
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
177
182
|
* <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>
|
|
178
183
|
*
|
|
179
184
|
* @throws {@link ThrottlingException} (client fault)
|
|
180
|
-
* <p>Your request was
|
|
185
|
+
* <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
|
|
186
|
+
* 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>
|
|
181
187
|
*
|
|
182
188
|
* @throws {@link ValidationException} (client fault)
|
|
183
|
-
* <p>
|
|
189
|
+
* <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
|
|
190
|
+
* 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>
|
|
184
191
|
*
|
|
185
192
|
* @throws {@link BedrockRuntimeServiceException}
|
|
186
193
|
* <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
|
|
@@ -42,6 +42,15 @@ declare const ConverseCommand_base: {
|
|
|
42
42
|
* <p>For example code, see <i>Converse API examples</i> in the <i>Amazon Bedrock User Guide</i>.
|
|
43
43
|
* </p>
|
|
44
44
|
* <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action. </p>
|
|
45
|
+
* <important>
|
|
46
|
+
* <p>To deny all inference access to resources that you specify in the modelId field, you
|
|
47
|
+
* need to deny access to the <code>bedrock:InvokeModel</code> and
|
|
48
|
+
* <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies
|
|
49
|
+
* access to the resource through the base inference actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html">InvokeModel</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html">InvokeModelWithResponseStream</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>.
|
|
50
|
+
* </p>
|
|
51
|
+
* </important>
|
|
52
|
+
* <p>For troubleshooting some of the common errors you might encounter when using the <code>Converse</code> API,
|
|
53
|
+
* see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html">Troubleshooting Amazon Bedrock API Error Codes</a> in the Amazon Bedrock User Guide</p>
|
|
45
54
|
* @example
|
|
46
55
|
* Use a bare-bones client and the command you need to make an API call.
|
|
47
56
|
* ```javascript
|
|
@@ -69,6 +78,16 @@ declare const ConverseCommand_base: {
|
|
|
69
78
|
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
70
79
|
* },
|
|
71
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
|
+
* },
|
|
72
91
|
* toolUse: { // ToolUseBlock
|
|
73
92
|
* toolUseId: "STRING_VALUE", // required
|
|
74
93
|
* name: "STRING_VALUE", // required
|
|
@@ -93,6 +112,16 @@ declare const ConverseCommand_base: {
|
|
|
93
112
|
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
94
113
|
* },
|
|
95
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
|
+
* },
|
|
96
125
|
* },
|
|
97
126
|
* ],
|
|
98
127
|
* status: "success" || "error",
|
|
@@ -164,6 +193,12 @@ declare const ConverseCommand_base: {
|
|
|
164
193
|
* additionalModelResponseFieldPaths: [ // AdditionalModelResponseFieldPaths
|
|
165
194
|
* "STRING_VALUE",
|
|
166
195
|
* ],
|
|
196
|
+
* requestMetadata: { // RequestMetadata
|
|
197
|
+
* "<keys>": "STRING_VALUE",
|
|
198
|
+
* },
|
|
199
|
+
* performanceConfig: { // PerformanceConfiguration
|
|
200
|
+
* latency: "standard" || "optimized",
|
|
201
|
+
* },
|
|
167
202
|
* };
|
|
168
203
|
* const command = new ConverseCommand(input);
|
|
169
204
|
* const response = await client.send(command);
|
|
@@ -187,6 +222,16 @@ declare const ConverseCommand_base: {
|
|
|
187
222
|
* // bytes: new Uint8Array(),
|
|
188
223
|
* // },
|
|
189
224
|
* // },
|
|
225
|
+
* // video: { // VideoBlock
|
|
226
|
+
* // format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
|
|
227
|
+
* // source: { // VideoSource Union: only one key present
|
|
228
|
+
* // bytes: new Uint8Array(),
|
|
229
|
+
* // s3Location: { // S3Location
|
|
230
|
+
* // uri: "STRING_VALUE", // required
|
|
231
|
+
* // bucketOwner: "STRING_VALUE",
|
|
232
|
+
* // },
|
|
233
|
+
* // },
|
|
234
|
+
* // },
|
|
190
235
|
* // toolUse: { // ToolUseBlock
|
|
191
236
|
* // toolUseId: "STRING_VALUE", // required
|
|
192
237
|
* // name: "STRING_VALUE", // required
|
|
@@ -211,6 +256,16 @@ declare const ConverseCommand_base: {
|
|
|
211
256
|
* // bytes: new Uint8Array(),
|
|
212
257
|
* // },
|
|
213
258
|
* // },
|
|
259
|
+
* // video: {
|
|
260
|
+
* // format: "mkv" || "mov" || "mp4" || "webm" || "flv" || "mpeg" || "mpg" || "wmv" || "three_gp", // required
|
|
261
|
+
* // source: {// Union: only one key present
|
|
262
|
+
* // bytes: new Uint8Array(),
|
|
263
|
+
* // s3Location: {
|
|
264
|
+
* // uri: "STRING_VALUE", // required
|
|
265
|
+
* // bucketOwner: "STRING_VALUE",
|
|
266
|
+
* // },
|
|
267
|
+
* // },
|
|
268
|
+
* // },
|
|
214
269
|
* // },
|
|
215
270
|
* // ],
|
|
216
271
|
* // status: "success" || "error",
|
|
@@ -410,6 +465,9 @@ declare const ConverseCommand_base: {
|
|
|
410
465
|
* // },
|
|
411
466
|
* // },
|
|
412
467
|
* // },
|
|
468
|
+
* // performanceConfig: { // PerformanceConfiguration
|
|
469
|
+
* // latency: "standard" || "optimized",
|
|
470
|
+
* // },
|
|
413
471
|
* // };
|
|
414
472
|
*
|
|
415
473
|
* ```
|
|
@@ -421,34 +479,40 @@ declare const ConverseCommand_base: {
|
|
|
421
479
|
* @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
|
|
422
480
|
*
|
|
423
481
|
* @throws {@link AccessDeniedException} (client fault)
|
|
424
|
-
* <p>The request is denied because
|
|
482
|
+
* <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error,
|
|
483
|
+
* 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>
|
|
425
484
|
*
|
|
426
485
|
* @throws {@link InternalServerException} (server fault)
|
|
427
|
-
* <p>An internal server error occurred.
|
|
486
|
+
* <p>An internal server error occurred. For troubleshooting this error,
|
|
487
|
+
* 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>
|
|
428
488
|
*
|
|
429
489
|
* @throws {@link ModelErrorException} (client fault)
|
|
430
490
|
* <p>The request failed due to an error while processing the model.</p>
|
|
431
491
|
*
|
|
432
492
|
* @throws {@link ModelNotReadyException} (client fault)
|
|
433
493
|
* <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
494
|
+
* will automatically retry the operation up to 5 times. For information about configuring
|
|
495
|
+
* automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
|
|
496
|
+
* reference guide.</p>
|
|
437
497
|
*
|
|
438
498
|
* @throws {@link ModelTimeoutException} (client fault)
|
|
439
499
|
* <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
|
|
440
500
|
*
|
|
441
501
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
442
|
-
* <p>The specified resource ARN was not found.
|
|
502
|
+
* <p>The specified resource ARN was not found. For troubleshooting this error,
|
|
503
|
+
* 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>
|
|
443
504
|
*
|
|
444
505
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
445
|
-
* <p>The service isn't currently available.
|
|
506
|
+
* <p>The service isn't currently available. For troubleshooting this error,
|
|
507
|
+
* 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>
|
|
446
508
|
*
|
|
447
509
|
* @throws {@link ThrottlingException} (client fault)
|
|
448
|
-
* <p>Your request was
|
|
510
|
+
* <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For
|
|
511
|
+
* 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>
|
|
449
512
|
*
|
|
450
513
|
* @throws {@link ValidationException} (client fault)
|
|
451
|
-
* <p>
|
|
514
|
+
* <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error,
|
|
515
|
+
* 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>
|
|
452
516
|
*
|
|
453
517
|
* @throws {@link BedrockRuntimeServiceException}
|
|
454
518
|
* <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
|