@aws-sdk/client-bedrock-agentcore 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BedrockAgentCoreServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class BedrockAgentCoreServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, BedrockAgentCoreServiceException.prototype);
10
+ }
11
+ }
12
+ exports.BedrockAgentCoreServiceException = BedrockAgentCoreServiceException;
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetryableConflictException = exports.InvalidInputException = exports.ThrottledException = exports.ServiceException = exports.DuplicateIdException = exports.UnauthorizedException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.RuntimeClientError = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
+ const BedrockAgentCoreServiceException_1 = require("./BedrockAgentCoreServiceException");
5
+ class AccessDeniedException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class InternalServerException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
19
+ name = "InternalServerException";
20
+ $fault = "server";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InternalServerException",
24
+ $fault: "server",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InternalServerException.prototype);
28
+ }
29
+ }
30
+ exports.InternalServerException = InternalServerException;
31
+ class ResourceNotFoundException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
32
+ name = "ResourceNotFoundException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ResourceNotFoundException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
41
+ }
42
+ }
43
+ exports.ResourceNotFoundException = ResourceNotFoundException;
44
+ class RuntimeClientError extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
45
+ name = "RuntimeClientError";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "RuntimeClientError",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, RuntimeClientError.prototype);
54
+ }
55
+ }
56
+ exports.RuntimeClientError = RuntimeClientError;
57
+ class ServiceQuotaExceededException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
58
+ name = "ServiceQuotaExceededException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ServiceQuotaExceededException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
67
+ }
68
+ }
69
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
70
+ class ThrottlingException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
71
+ name = "ThrottlingException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "ThrottlingException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
80
+ }
81
+ }
82
+ exports.ThrottlingException = ThrottlingException;
83
+ class ValidationException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
84
+ name = "ValidationException";
85
+ $fault = "client";
86
+ reason;
87
+ fieldList;
88
+ constructor(opts) {
89
+ super({
90
+ name: "ValidationException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ValidationException.prototype);
95
+ this.reason = opts.reason;
96
+ this.fieldList = opts.fieldList;
97
+ }
98
+ }
99
+ exports.ValidationException = ValidationException;
100
+ class ConflictException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
101
+ name = "ConflictException";
102
+ $fault = "client";
103
+ constructor(opts) {
104
+ super({
105
+ name: "ConflictException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, ConflictException.prototype);
110
+ }
111
+ }
112
+ exports.ConflictException = ConflictException;
113
+ class UnauthorizedException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
114
+ name = "UnauthorizedException";
115
+ $fault = "client";
116
+ constructor(opts) {
117
+ super({
118
+ name: "UnauthorizedException",
119
+ $fault: "client",
120
+ ...opts,
121
+ });
122
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
123
+ }
124
+ }
125
+ exports.UnauthorizedException = UnauthorizedException;
126
+ class DuplicateIdException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
127
+ name = "DuplicateIdException";
128
+ $fault = "client";
129
+ constructor(opts) {
130
+ super({
131
+ name: "DuplicateIdException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, DuplicateIdException.prototype);
136
+ }
137
+ }
138
+ exports.DuplicateIdException = DuplicateIdException;
139
+ class ServiceException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
140
+ name = "ServiceException";
141
+ $fault = "server";
142
+ constructor(opts) {
143
+ super({
144
+ name: "ServiceException",
145
+ $fault: "server",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, ServiceException.prototype);
149
+ }
150
+ }
151
+ exports.ServiceException = ServiceException;
152
+ class ThrottledException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
153
+ name = "ThrottledException";
154
+ $fault = "client";
155
+ constructor(opts) {
156
+ super({
157
+ name: "ThrottledException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, ThrottledException.prototype);
162
+ }
163
+ }
164
+ exports.ThrottledException = ThrottledException;
165
+ class InvalidInputException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
166
+ name = "InvalidInputException";
167
+ $fault = "client";
168
+ constructor(opts) {
169
+ super({
170
+ name: "InvalidInputException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
175
+ }
176
+ }
177
+ exports.InvalidInputException = InvalidInputException;
178
+ class RetryableConflictException extends BedrockAgentCoreServiceException_1.BedrockAgentCoreServiceException {
179
+ name = "RetryableConflictException";
180
+ $fault = "client";
181
+ $retryable = {};
182
+ constructor(opts) {
183
+ super({
184
+ name: "RetryableConflictException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ Object.setPrototypeOf(this, RetryableConflictException.prototype);
189
+ }
190
+ }
191
+ exports.RetryableConflictException = RetryableConflictException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2024-02-28",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.bedrockagentcore",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  version: "2024-02-28",
34
36
  serviceTarget: "AmazonBedrockAgentCore",
35
37
  },