@aws-sdk/client-bedrock-agent-runtime 3.1070.0 → 3.1072.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 +14 -0
- package/dist-cjs/index.js +93 -8
- package/dist-cjs/models/errors.js +42 -42
- package/dist-cjs/runtimeConfig.js +5 -2
- package/dist-cjs/schemas/schemas_0.js +567 -139
- package/dist-es/BedrockAgentRuntime.js +4 -0
- package/dist-es/commands/AgenticRetrieveStreamCommand.js +20 -0
- package/dist-es/commands/GetDocumentContentCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +50 -7
- package/dist-es/models/errors.js +42 -42
- package/dist-es/runtimeConfig.js +5 -2
- package/dist-es/schemas/schemas_0.js +521 -139
- package/dist-types/BedrockAgentRuntime.d.ts +14 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +4 -2
- package/dist-types/commands/AgenticRetrieveStreamCommand.d.ts +338 -0
- package/dist-types/commands/GetDocumentContentCommand.d.ts +99 -0
- package/dist-types/commands/GetInvocationStepCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +55 -4
- package/dist-types/commands/InvokeFlowCommand.d.ts +14 -2
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +78 -8
- package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +14 -2
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvocationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -1
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +45 -3
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +52 -4
- package/dist-types/commands/RetrieveCommand.d.ts +45 -2
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSessionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +163 -16
- package/dist-types/models/errors.d.ts +45 -45
- package/dist-types/models/models_0.d.ts +4105 -4355
- package/dist-types/models/models_1.d.ts +1396 -2
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +48 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +34 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/AgenticRetrieveStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDocumentContentCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +74 -11
- package/dist-types/ts3.4/models/errors.d.ts +28 -28
- package/dist-types/ts3.4/models/models_0.d.ts +448 -541
- package/dist-types/ts3.4/models/models_1.d.ts +602 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +48 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -179,6 +179,13 @@ see LICENSE for more information.
|
|
|
179
179
|
|
|
180
180
|
## Client Commands (Operations List)
|
|
181
181
|
|
|
182
|
+
<details>
|
|
183
|
+
<summary>
|
|
184
|
+
AgenticRetrieveStream
|
|
185
|
+
</summary>
|
|
186
|
+
|
|
187
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent-runtime/command/AgenticRetrieveStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent-runtime/Interface/AgenticRetrieveStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent-runtime/Interface/AgenticRetrieveStreamCommandOutput/)
|
|
188
|
+
</details>
|
|
182
189
|
<details>
|
|
183
190
|
<summary>
|
|
184
191
|
CreateInvocation
|
|
@@ -230,6 +237,13 @@ GetAgentMemory
|
|
|
230
237
|
</details>
|
|
231
238
|
<details>
|
|
232
239
|
<summary>
|
|
240
|
+
GetDocumentContent
|
|
241
|
+
</summary>
|
|
242
|
+
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent-runtime/command/GetDocumentContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent-runtime/Interface/GetDocumentContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent-runtime/Interface/GetDocumentContentCommandOutput/)
|
|
244
|
+
</details>
|
|
245
|
+
<details>
|
|
246
|
+
<summary>
|
|
233
247
|
GetExecutionFlowSnapshot
|
|
234
248
|
</summary>
|
|
235
249
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
|
12
12
|
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
13
|
const { resolveHttpAuthSchemeConfig, defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
14
|
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
15
|
-
const { CreateInvocation$, CreateSession$, DeleteAgentMemory$, DeleteSession$, EndSession$, GenerateQuery$, GetAgentMemory$, GetExecutionFlowSnapshot$, GetFlowExecution$, GetInvocationStep$, GetSession$, InvokeAgent$, InvokeFlow$, InvokeInlineAgent$, ListFlowExecutionEvents$, ListFlowExecutions$, ListInvocations$, ListInvocationSteps$, ListSessions$, ListTagsForResource$, OptimizePrompt$, PutInvocationStep$, Rerank$, RetrieveAndGenerate$, RetrieveAndGenerateStream$, Retrieve$, StartFlowExecution$, StopFlowExecution$, TagResource$, UntagResource$, UpdateSession$ } = require("./schemas/schemas_0");
|
|
15
|
+
const { AgenticRetrieveStream$, CreateInvocation$, CreateSession$, DeleteAgentMemory$, DeleteSession$, EndSession$, GenerateQuery$, GetAgentMemory$, GetDocumentContent$, GetExecutionFlowSnapshot$, GetFlowExecution$, GetInvocationStep$, GetSession$, InvokeAgent$, InvokeFlow$, InvokeInlineAgent$, ListFlowExecutionEvents$, ListFlowExecutions$, ListInvocations$, ListInvocationSteps$, ListSessions$, ListTagsForResource$, OptimizePrompt$, PutInvocationStep$, Rerank$, RetrieveAndGenerate$, RetrieveAndGenerateStream$, Retrieve$, StartFlowExecution$, StopFlowExecution$, TagResource$, UntagResource$, UpdateSession$ } = require("./schemas/schemas_0");
|
|
16
16
|
__exportStar(require("./schemas/schemas_0"), exports);
|
|
17
17
|
__exportStar(require("./models/errors"), exports);
|
|
18
18
|
const { BedrockAgentRuntimeServiceException } = require("./models/BedrockAgentRuntimeServiceException");
|
|
@@ -113,6 +113,22 @@ class BedrockAgentRuntimeClient extends Client {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
class AgenticRetrieveStreamCommand extends Command
|
|
117
|
+
.classBuilder()
|
|
118
|
+
.ep(commonParams)
|
|
119
|
+
.m(function (Command, cs, config, o) {
|
|
120
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
121
|
+
})
|
|
122
|
+
.s("AmazonBedrockAgentRunTimeService", "AgenticRetrieveStream", {
|
|
123
|
+
eventStream: {
|
|
124
|
+
output: true,
|
|
125
|
+
},
|
|
126
|
+
})
|
|
127
|
+
.n("BedrockAgentRuntimeClient", "AgenticRetrieveStreamCommand")
|
|
128
|
+
.sc(AgenticRetrieveStream$)
|
|
129
|
+
.build() {
|
|
130
|
+
}
|
|
131
|
+
|
|
116
132
|
class CreateInvocationCommand extends Command
|
|
117
133
|
.classBuilder()
|
|
118
134
|
.ep(commonParams)
|
|
@@ -197,6 +213,18 @@ class GetAgentMemoryCommand extends Command
|
|
|
197
213
|
.build() {
|
|
198
214
|
}
|
|
199
215
|
|
|
216
|
+
class GetDocumentContentCommand extends Command
|
|
217
|
+
.classBuilder()
|
|
218
|
+
.ep(commonParams)
|
|
219
|
+
.m(function (Command, cs, config, o) {
|
|
220
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
221
|
+
})
|
|
222
|
+
.s("AmazonBedrockAgentRunTimeService", "GetDocumentContent", {})
|
|
223
|
+
.n("BedrockAgentRuntimeClient", "GetDocumentContentCommand")
|
|
224
|
+
.sc(GetDocumentContent$)
|
|
225
|
+
.build() {
|
|
226
|
+
}
|
|
227
|
+
|
|
200
228
|
class GetExecutionFlowSnapshotCommand extends Command
|
|
201
229
|
.classBuilder()
|
|
202
230
|
.ep(commonParams)
|
|
@@ -522,6 +550,7 @@ const paginateRerank = createPaginator(BedrockAgentRuntimeClient, RerankCommand,
|
|
|
522
550
|
const paginateRetrieve = createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
|
|
523
551
|
|
|
524
552
|
const commands = {
|
|
553
|
+
AgenticRetrieveStreamCommand,
|
|
525
554
|
CreateInvocationCommand,
|
|
526
555
|
CreateSessionCommand,
|
|
527
556
|
DeleteAgentMemoryCommand,
|
|
@@ -529,6 +558,7 @@ const commands = {
|
|
|
529
558
|
EndSessionCommand,
|
|
530
559
|
GenerateQueryCommand,
|
|
531
560
|
GetAgentMemoryCommand,
|
|
561
|
+
GetDocumentContentCommand,
|
|
532
562
|
GetExecutionFlowSnapshotCommand,
|
|
533
563
|
GetFlowExecutionCommand,
|
|
534
564
|
GetInvocationStepCommand,
|
|
@@ -621,10 +651,43 @@ const PayloadType = {
|
|
|
621
651
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
622
652
|
TEXT: "TEXT",
|
|
623
653
|
};
|
|
654
|
+
const FoundationModelConfigurationType = {
|
|
655
|
+
BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL",
|
|
656
|
+
};
|
|
657
|
+
const FoundationModelType = {
|
|
658
|
+
CUSTOM: "CUSTOM",
|
|
659
|
+
MANAGED: "MANAGED",
|
|
660
|
+
};
|
|
661
|
+
const AgenticRetrieveRerankingConfigurationType = {
|
|
662
|
+
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
|
|
663
|
+
};
|
|
664
|
+
const AgenticRetrieveRerankingModelType = {
|
|
665
|
+
CUSTOM: "CUSTOM",
|
|
666
|
+
MANAGED: "MANAGED",
|
|
667
|
+
NONE: "NONE",
|
|
668
|
+
};
|
|
624
669
|
const GuardrailAction = {
|
|
625
670
|
INTERVENED: "INTERVENED",
|
|
626
671
|
NONE: "NONE",
|
|
627
672
|
};
|
|
673
|
+
const ConversationRole = {
|
|
674
|
+
ASSISTANT: "assistant",
|
|
675
|
+
USER: "user",
|
|
676
|
+
};
|
|
677
|
+
const AgenticRetrieveType = {
|
|
678
|
+
BEDROCK_KNOWLEDGE_BASE: "BedrockKnowledgeBase",
|
|
679
|
+
};
|
|
680
|
+
const AgenticRetrieveStatus = {
|
|
681
|
+
FAILED: "FAILED",
|
|
682
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
683
|
+
SUCCEEDED: "SUCCEEDED",
|
|
684
|
+
};
|
|
685
|
+
const AgenticRetrieveStep = {
|
|
686
|
+
FULL_DOCUMENT_EXPANSION: "FullDocumentExpansion",
|
|
687
|
+
PLANNING: "Planning",
|
|
688
|
+
RETRIEVAL: "Retrieval",
|
|
689
|
+
SPECULATIVE_RETRIEVAL: "SpeculativeRetrieval",
|
|
690
|
+
};
|
|
628
691
|
const GuardrailContentPolicyAction = {
|
|
629
692
|
BLOCKED: "BLOCKED",
|
|
630
693
|
};
|
|
@@ -727,7 +790,9 @@ const RetrievalResultContentType = {
|
|
|
727
790
|
const RetrievalResultLocationType = {
|
|
728
791
|
CONFLUENCE: "CONFLUENCE",
|
|
729
792
|
CUSTOM: "CUSTOM",
|
|
793
|
+
GOOGLEDRIVE: "GOOGLEDRIVE",
|
|
730
794
|
KENDRA: "KENDRA",
|
|
795
|
+
ONEDRIVE: "ONEDRIVE",
|
|
731
796
|
S3: "S3",
|
|
732
797
|
SALESFORCE: "SALESFORCE",
|
|
733
798
|
SHAREPOINT: "SHAREPOINT",
|
|
@@ -817,9 +882,9 @@ const TextToSqlConfigurationType = {
|
|
|
817
882
|
const GeneratedQueryType = {
|
|
818
883
|
REDSHIFT_SQL: "REDSHIFT_SQL",
|
|
819
884
|
};
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
885
|
+
const DocumentOutputFormat = {
|
|
886
|
+
EXTRACTED: "EXTRACTED",
|
|
887
|
+
RAW: "RAW",
|
|
823
888
|
};
|
|
824
889
|
const FileSourceType = {
|
|
825
890
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
@@ -829,6 +894,18 @@ const FileUseCase = {
|
|
|
829
894
|
CHAT: "CHAT",
|
|
830
895
|
CODE_INTERPRETER: "CODE_INTERPRETER",
|
|
831
896
|
};
|
|
897
|
+
const RerankingMetadataSelectionMode = {
|
|
898
|
+
ALL: "ALL",
|
|
899
|
+
SELECTIVE: "SELECTIVE",
|
|
900
|
+
};
|
|
901
|
+
const ManagedSearchRerankingConfigurationType = {
|
|
902
|
+
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
|
|
903
|
+
};
|
|
904
|
+
const RerankingModelType = {
|
|
905
|
+
CUSTOM: "CUSTOM",
|
|
906
|
+
MANAGED: "MANAGED",
|
|
907
|
+
NONE: "NONE",
|
|
908
|
+
};
|
|
832
909
|
const AttributeType = {
|
|
833
910
|
BOOLEAN: "BOOLEAN",
|
|
834
911
|
NUMBER: "NUMBER",
|
|
@@ -839,10 +916,6 @@ const SearchType = {
|
|
|
839
916
|
HYBRID: "HYBRID",
|
|
840
917
|
SEMANTIC: "SEMANTIC",
|
|
841
918
|
};
|
|
842
|
-
const RerankingMetadataSelectionMode = {
|
|
843
|
-
ALL: "ALL",
|
|
844
|
-
SELECTIVE: "SELECTIVE",
|
|
845
|
-
};
|
|
846
919
|
const VectorSearchRerankingConfigurationType = {
|
|
847
920
|
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
|
|
848
921
|
};
|
|
@@ -914,6 +987,12 @@ const ImageFormat = {
|
|
|
914
987
|
exports.ActionGroupSignature = ActionGroupSignature;
|
|
915
988
|
exports.ActionInvocationType = ActionInvocationType;
|
|
916
989
|
exports.AgentCollaboration = AgentCollaboration;
|
|
990
|
+
exports.AgenticRetrieveRerankingConfigurationType = AgenticRetrieveRerankingConfigurationType;
|
|
991
|
+
exports.AgenticRetrieveRerankingModelType = AgenticRetrieveRerankingModelType;
|
|
992
|
+
exports.AgenticRetrieveStatus = AgenticRetrieveStatus;
|
|
993
|
+
exports.AgenticRetrieveStep = AgenticRetrieveStep;
|
|
994
|
+
exports.AgenticRetrieveStreamCommand = AgenticRetrieveStreamCommand;
|
|
995
|
+
exports.AgenticRetrieveType = AgenticRetrieveType;
|
|
917
996
|
exports.AttributeType = AttributeType;
|
|
918
997
|
exports.BedrockAgentRuntime = BedrockAgentRuntime;
|
|
919
998
|
exports.BedrockAgentRuntimeClient = BedrockAgentRuntimeClient;
|
|
@@ -925,6 +1004,7 @@ exports.CreationMode = CreationMode;
|
|
|
925
1004
|
exports.CustomControlMethod = CustomControlMethod;
|
|
926
1005
|
exports.DeleteAgentMemoryCommand = DeleteAgentMemoryCommand;
|
|
927
1006
|
exports.DeleteSessionCommand = DeleteSessionCommand;
|
|
1007
|
+
exports.DocumentOutputFormat = DocumentOutputFormat;
|
|
928
1008
|
exports.EndSessionCommand = EndSessionCommand;
|
|
929
1009
|
exports.ExecutionType = ExecutionType;
|
|
930
1010
|
exports.ExternalSourceType = ExternalSourceType;
|
|
@@ -938,9 +1018,12 @@ exports.FlowExecutionEventType = FlowExecutionEventType;
|
|
|
938
1018
|
exports.FlowExecutionStatus = FlowExecutionStatus;
|
|
939
1019
|
exports.FlowNodeIODataType = FlowNodeIODataType;
|
|
940
1020
|
exports.FlowNodeInputCategory = FlowNodeInputCategory;
|
|
1021
|
+
exports.FoundationModelConfigurationType = FoundationModelConfigurationType;
|
|
1022
|
+
exports.FoundationModelType = FoundationModelType;
|
|
941
1023
|
exports.GenerateQueryCommand = GenerateQueryCommand;
|
|
942
1024
|
exports.GeneratedQueryType = GeneratedQueryType;
|
|
943
1025
|
exports.GetAgentMemoryCommand = GetAgentMemoryCommand;
|
|
1026
|
+
exports.GetDocumentContentCommand = GetDocumentContentCommand;
|
|
944
1027
|
exports.GetExecutionFlowSnapshotCommand = GetExecutionFlowSnapshotCommand;
|
|
945
1028
|
exports.GetFlowExecutionCommand = GetFlowExecutionCommand;
|
|
946
1029
|
exports.GetInvocationStepCommand = GetInvocationStepCommand;
|
|
@@ -971,6 +1054,7 @@ exports.ListInvocationStepsCommand = ListInvocationStepsCommand;
|
|
|
971
1054
|
exports.ListInvocationsCommand = ListInvocationsCommand;
|
|
972
1055
|
exports.ListSessionsCommand = ListSessionsCommand;
|
|
973
1056
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1057
|
+
exports.ManagedSearchRerankingConfigurationType = ManagedSearchRerankingConfigurationType;
|
|
974
1058
|
exports.MemoryType = MemoryType;
|
|
975
1059
|
exports.NodeErrorCode = NodeErrorCode;
|
|
976
1060
|
exports.NodeType = NodeType;
|
|
@@ -992,6 +1076,7 @@ exports.RerankQueryContentType = RerankQueryContentType;
|
|
|
992
1076
|
exports.RerankSourceType = RerankSourceType;
|
|
993
1077
|
exports.RerankingConfigurationType = RerankingConfigurationType;
|
|
994
1078
|
exports.RerankingMetadataSelectionMode = RerankingMetadataSelectionMode;
|
|
1079
|
+
exports.RerankingModelType = RerankingModelType;
|
|
995
1080
|
exports.ResponseState = ResponseState;
|
|
996
1081
|
exports.RetrievalResultContentColumnType = RetrievalResultContentColumnType;
|
|
997
1082
|
exports.RetrievalResultContentType = RetrievalResultContentType;
|
|
@@ -11,106 +11,106 @@ exports.AccessDeniedException = class AccessDeniedException extends __BaseExcept
|
|
|
11
11
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
name = "
|
|
14
|
+
exports.BadGatewayException = class BadGatewayException extends __BaseException {
|
|
15
|
+
name = "BadGatewayException";
|
|
16
16
|
$fault = "server";
|
|
17
|
-
|
|
17
|
+
resourceName;
|
|
18
18
|
constructor(opts) {
|
|
19
19
|
super({
|
|
20
|
-
name: "
|
|
20
|
+
name: "BadGatewayException",
|
|
21
21
|
$fault: "server",
|
|
22
22
|
...opts,
|
|
23
23
|
});
|
|
24
|
-
Object.setPrototypeOf(this,
|
|
25
|
-
this.
|
|
24
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
25
|
+
this.resourceName = opts.resourceName;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
name = "
|
|
28
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
29
|
+
name = "ConflictException";
|
|
30
30
|
$fault = "client";
|
|
31
31
|
constructor(opts) {
|
|
32
32
|
super({
|
|
33
|
-
name: "
|
|
33
|
+
name: "ConflictException",
|
|
34
34
|
$fault: "client",
|
|
35
35
|
...opts,
|
|
36
36
|
});
|
|
37
|
-
Object.setPrototypeOf(this,
|
|
37
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
exports.
|
|
41
|
-
name = "
|
|
40
|
+
exports.DependencyFailedException = class DependencyFailedException extends __BaseException {
|
|
41
|
+
name = "DependencyFailedException";
|
|
42
42
|
$fault = "client";
|
|
43
|
+
resourceName;
|
|
43
44
|
constructor(opts) {
|
|
44
45
|
super({
|
|
45
|
-
name: "
|
|
46
|
+
name: "DependencyFailedException",
|
|
46
47
|
$fault: "client",
|
|
47
48
|
...opts,
|
|
48
49
|
});
|
|
49
|
-
Object.setPrototypeOf(this,
|
|
50
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
51
|
+
this.resourceName = opts.resourceName;
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
|
-
exports.
|
|
53
|
-
name = "
|
|
54
|
-
$fault = "
|
|
54
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
55
|
+
name = "InternalServerException";
|
|
56
|
+
$fault = "server";
|
|
57
|
+
reason;
|
|
55
58
|
constructor(opts) {
|
|
56
59
|
super({
|
|
57
|
-
name: "
|
|
58
|
-
$fault: "
|
|
60
|
+
name: "InternalServerException",
|
|
61
|
+
$fault: "server",
|
|
59
62
|
...opts,
|
|
60
63
|
});
|
|
61
|
-
Object.setPrototypeOf(this,
|
|
64
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
65
|
+
this.reason = opts.reason;
|
|
62
66
|
}
|
|
63
67
|
};
|
|
64
|
-
exports.
|
|
65
|
-
name = "
|
|
66
|
-
$fault = "
|
|
67
|
-
resourceName;
|
|
68
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
69
|
+
name = "ResourceNotFoundException";
|
|
70
|
+
$fault = "client";
|
|
68
71
|
constructor(opts) {
|
|
69
72
|
super({
|
|
70
|
-
name: "
|
|
71
|
-
$fault: "
|
|
73
|
+
name: "ResourceNotFoundException",
|
|
74
|
+
$fault: "client",
|
|
72
75
|
...opts,
|
|
73
76
|
});
|
|
74
|
-
Object.setPrototypeOf(this,
|
|
75
|
-
this.resourceName = opts.resourceName;
|
|
77
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
76
78
|
}
|
|
77
79
|
};
|
|
78
|
-
exports.
|
|
79
|
-
name = "
|
|
80
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
81
|
+
name = "ServiceQuotaExceededException";
|
|
80
82
|
$fault = "client";
|
|
81
83
|
constructor(opts) {
|
|
82
84
|
super({
|
|
83
|
-
name: "
|
|
85
|
+
name: "ServiceQuotaExceededException",
|
|
84
86
|
$fault: "client",
|
|
85
87
|
...opts,
|
|
86
88
|
});
|
|
87
|
-
Object.setPrototypeOf(this,
|
|
89
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
|
-
exports.
|
|
91
|
-
name = "
|
|
92
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
93
|
+
name = "ThrottlingException";
|
|
92
94
|
$fault = "client";
|
|
93
|
-
resourceName;
|
|
94
95
|
constructor(opts) {
|
|
95
96
|
super({
|
|
96
|
-
name: "
|
|
97
|
+
name: "ThrottlingException",
|
|
97
98
|
$fault: "client",
|
|
98
99
|
...opts,
|
|
99
100
|
});
|
|
100
|
-
Object.setPrototypeOf(this,
|
|
101
|
-
this.resourceName = opts.resourceName;
|
|
101
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
exports.
|
|
105
|
-
name = "
|
|
104
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
105
|
+
name = "ValidationException";
|
|
106
106
|
$fault = "client";
|
|
107
107
|
constructor(opts) {
|
|
108
108
|
super({
|
|
109
|
-
name: "
|
|
109
|
+
name: "ValidationException",
|
|
110
110
|
$fault: "client",
|
|
111
111
|
...opts,
|
|
112
112
|
});
|
|
113
|
-
Object.setPrototypeOf(this,
|
|
113
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
exports.ModelNotReadyException = class ModelNotReadyException extends __BaseException {
|
|
@@ -7,7 +7,7 @@ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION
|
|
|
7
7
|
const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
|
|
8
8
|
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
9
9
|
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
10
|
-
const {
|
|
10
|
+
const { NodeHttp2Handler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
11
11
|
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
12
12
|
const getRuntimeConfig = (config) => {
|
|
13
13
|
emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -32,7 +32,10 @@ const getRuntimeConfig = (config) => {
|
|
|
32
32
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
33
33
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
34
34
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
-
requestHandler: RequestHandler.create(config?.requestHandler ??
|
|
35
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({
|
|
36
|
+
...await defaultConfigProvider(),
|
|
37
|
+
disableConcurrentStreams: true
|
|
38
|
+
}))),
|
|
36
39
|
retryMode: config?.retryMode ??
|
|
37
40
|
loadNodeConfig({
|
|
38
41
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|