@aws-sdk/client-bedrock 3.489.0 → 3.495.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/dist-cjs/Bedrock.js +1 -51
- package/dist-cjs/BedrockClient.js +1 -43
- package/dist-cjs/commands/CreateModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/GetCustomModelCommand.js +1 -28
- package/dist-cjs/commands/GetFoundationModelCommand.js +1 -28
- package/dist-cjs/commands/GetModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/GetModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/ListCustomModelsCommand.js +1 -28
- package/dist-cjs/commands/ListFoundationModelsCommand.js +1 -28
- package/dist-cjs/commands/ListModelCustomizationJobsCommand.js +1 -28
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/StopModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -23
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2273 -11
- package/dist-cjs/models/BedrockServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -167
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCustomModelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListModelCustomizationJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1505
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2274 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
Bedrock: () => Bedrock,
|
|
26
|
+
BedrockClient: () => BedrockClient,
|
|
27
|
+
BedrockServiceException: () => BedrockServiceException,
|
|
28
|
+
CommitmentDuration: () => CommitmentDuration,
|
|
29
|
+
ConflictException: () => ConflictException,
|
|
30
|
+
CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
|
|
31
|
+
CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
|
|
32
|
+
CustomizationType: () => CustomizationType,
|
|
33
|
+
DeleteCustomModelCommand: () => DeleteCustomModelCommand,
|
|
34
|
+
DeleteModelInvocationLoggingConfigurationCommand: () => DeleteModelInvocationLoggingConfigurationCommand,
|
|
35
|
+
DeleteProvisionedModelThroughputCommand: () => DeleteProvisionedModelThroughputCommand,
|
|
36
|
+
FineTuningJobStatus: () => FineTuningJobStatus,
|
|
37
|
+
FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
|
|
38
|
+
GetCustomModelCommand: () => GetCustomModelCommand,
|
|
39
|
+
GetFoundationModelCommand: () => GetFoundationModelCommand,
|
|
40
|
+
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
41
|
+
GetModelInvocationLoggingConfigurationCommand: () => GetModelInvocationLoggingConfigurationCommand,
|
|
42
|
+
GetProvisionedModelThroughputCommand: () => GetProvisionedModelThroughputCommand,
|
|
43
|
+
InferenceType: () => InferenceType,
|
|
44
|
+
InternalServerException: () => InternalServerException,
|
|
45
|
+
ListCustomModelsCommand: () => ListCustomModelsCommand,
|
|
46
|
+
ListFoundationModelsCommand: () => ListFoundationModelsCommand,
|
|
47
|
+
ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
|
|
48
|
+
ListProvisionedModelThroughputsCommand: () => ListProvisionedModelThroughputsCommand,
|
|
49
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
50
|
+
ModelCustomization: () => ModelCustomization,
|
|
51
|
+
ModelCustomizationJobStatus: () => ModelCustomizationJobStatus,
|
|
52
|
+
ModelModality: () => ModelModality,
|
|
53
|
+
ProvisionedModelStatus: () => ProvisionedModelStatus,
|
|
54
|
+
PutModelInvocationLoggingConfigurationCommand: () => PutModelInvocationLoggingConfigurationCommand,
|
|
55
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
56
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
57
|
+
SortByProvisionedModels: () => SortByProvisionedModels,
|
|
58
|
+
SortJobsBy: () => SortJobsBy,
|
|
59
|
+
SortModelsBy: () => SortModelsBy,
|
|
60
|
+
SortOrder: () => SortOrder,
|
|
61
|
+
StopModelCustomizationJobCommand: () => StopModelCustomizationJobCommand,
|
|
62
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
63
|
+
ThrottlingException: () => ThrottlingException,
|
|
64
|
+
TooManyTagsException: () => TooManyTagsException,
|
|
65
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
66
|
+
UpdateProvisionedModelThroughputCommand: () => UpdateProvisionedModelThroughputCommand,
|
|
67
|
+
ValidationException: () => ValidationException,
|
|
68
|
+
__Client: () => import_smithy_client.Client,
|
|
69
|
+
paginateListCustomModels: () => paginateListCustomModels,
|
|
70
|
+
paginateListModelCustomizationJobs: () => paginateListModelCustomizationJobs,
|
|
71
|
+
paginateListProvisionedModelThroughputs: () => paginateListProvisionedModelThroughputs
|
|
72
|
+
});
|
|
73
|
+
module.exports = __toCommonJS(src_exports);
|
|
74
|
+
|
|
75
|
+
// src/BedrockClient.ts
|
|
76
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
77
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
78
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
79
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
80
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
81
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
82
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
83
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
84
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
// src/endpoint/EndpointParameters.ts
|
|
88
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
89
|
+
return {
|
|
90
|
+
...options,
|
|
91
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
92
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
93
|
+
defaultSigningName: "bedrock"
|
|
94
|
+
};
|
|
95
|
+
}, "resolveClientEndpointParameters");
|
|
96
|
+
var commonParams = {
|
|
97
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
98
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
99
|
+
Region: { type: "builtInParams", name: "region" },
|
|
100
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/BedrockClient.ts
|
|
104
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
105
|
+
|
|
106
|
+
// src/runtimeExtensions.ts
|
|
107
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
108
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
109
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
110
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
111
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
112
|
+
const extensionConfiguration = {
|
|
113
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
114
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
115
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
116
|
+
};
|
|
117
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
118
|
+
return {
|
|
119
|
+
...runtimeConfig,
|
|
120
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
121
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
122
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
123
|
+
};
|
|
124
|
+
}, "resolveRuntimeExtensions");
|
|
125
|
+
|
|
126
|
+
// src/BedrockClient.ts
|
|
127
|
+
var _BedrockClient = class _BedrockClient extends import_smithy_client.Client {
|
|
128
|
+
constructor(...[configuration]) {
|
|
129
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
130
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
131
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
132
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
133
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
134
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
135
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
136
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
137
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
138
|
+
super(_config_8);
|
|
139
|
+
this.config = _config_8;
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
144
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
145
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
146
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
150
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
151
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
152
|
+
*/
|
|
153
|
+
destroy() {
|
|
154
|
+
super.destroy();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__name(_BedrockClient, "BedrockClient");
|
|
158
|
+
var BedrockClient = _BedrockClient;
|
|
159
|
+
|
|
160
|
+
// src/Bedrock.ts
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
// src/commands/CreateModelCustomizationJobCommand.ts
|
|
164
|
+
|
|
165
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
166
|
+
|
|
167
|
+
var import_types = require("@smithy/types");
|
|
168
|
+
|
|
169
|
+
// src/protocols/Aws_restJson1.ts
|
|
170
|
+
var import_core = require("@smithy/core");
|
|
171
|
+
|
|
172
|
+
var import_uuid = require("uuid");
|
|
173
|
+
|
|
174
|
+
// src/models/BedrockServiceException.ts
|
|
175
|
+
|
|
176
|
+
var _BedrockServiceException = class _BedrockServiceException extends import_smithy_client.ServiceException {
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
constructor(options) {
|
|
181
|
+
super(options);
|
|
182
|
+
Object.setPrototypeOf(this, _BedrockServiceException.prototype);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
__name(_BedrockServiceException, "BedrockServiceException");
|
|
186
|
+
var BedrockServiceException = _BedrockServiceException;
|
|
187
|
+
|
|
188
|
+
// src/models/models_0.ts
|
|
189
|
+
var _AccessDeniedException = class _AccessDeniedException extends BedrockServiceException {
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "AccessDeniedException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts
|
|
198
|
+
});
|
|
199
|
+
this.name = "AccessDeniedException";
|
|
200
|
+
this.$fault = "client";
|
|
201
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
205
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
206
|
+
var _InternalServerException = class _InternalServerException extends BedrockServiceException {
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "InternalServerException",
|
|
213
|
+
$fault: "server",
|
|
214
|
+
...opts
|
|
215
|
+
});
|
|
216
|
+
this.name = "InternalServerException";
|
|
217
|
+
this.$fault = "server";
|
|
218
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
__name(_InternalServerException, "InternalServerException");
|
|
222
|
+
var InternalServerException = _InternalServerException;
|
|
223
|
+
var _ThrottlingException = class _ThrottlingException extends BedrockServiceException {
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "ThrottlingException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts
|
|
232
|
+
});
|
|
233
|
+
this.name = "ThrottlingException";
|
|
234
|
+
this.$fault = "client";
|
|
235
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
239
|
+
var ThrottlingException = _ThrottlingException;
|
|
240
|
+
var _ValidationException = class _ValidationException extends BedrockServiceException {
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
constructor(opts) {
|
|
245
|
+
super({
|
|
246
|
+
name: "ValidationException",
|
|
247
|
+
$fault: "client",
|
|
248
|
+
...opts
|
|
249
|
+
});
|
|
250
|
+
this.name = "ValidationException";
|
|
251
|
+
this.$fault = "client";
|
|
252
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
__name(_ValidationException, "ValidationException");
|
|
256
|
+
var ValidationException = _ValidationException;
|
|
257
|
+
var _ConflictException = class _ConflictException extends BedrockServiceException {
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "ConflictException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts
|
|
266
|
+
});
|
|
267
|
+
this.name = "ConflictException";
|
|
268
|
+
this.$fault = "client";
|
|
269
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
__name(_ConflictException, "ConflictException");
|
|
273
|
+
var ConflictException = _ConflictException;
|
|
274
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockServiceException {
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
constructor(opts) {
|
|
279
|
+
super({
|
|
280
|
+
name: "ResourceNotFoundException",
|
|
281
|
+
$fault: "client",
|
|
282
|
+
...opts
|
|
283
|
+
});
|
|
284
|
+
this.name = "ResourceNotFoundException";
|
|
285
|
+
this.$fault = "client";
|
|
286
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
290
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
291
|
+
var CustomizationType = {
|
|
292
|
+
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
293
|
+
FINE_TUNING: "FINE_TUNING"
|
|
294
|
+
};
|
|
295
|
+
var ModelCustomization = {
|
|
296
|
+
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
297
|
+
FINE_TUNING: "FINE_TUNING"
|
|
298
|
+
};
|
|
299
|
+
var InferenceType = {
|
|
300
|
+
ON_DEMAND: "ON_DEMAND",
|
|
301
|
+
PROVISIONED: "PROVISIONED"
|
|
302
|
+
};
|
|
303
|
+
var ModelModality = {
|
|
304
|
+
EMBEDDING: "EMBEDDING",
|
|
305
|
+
IMAGE: "IMAGE",
|
|
306
|
+
TEXT: "TEXT"
|
|
307
|
+
};
|
|
308
|
+
var FoundationModelLifecycleStatus = {
|
|
309
|
+
ACTIVE: "ACTIVE",
|
|
310
|
+
LEGACY: "LEGACY"
|
|
311
|
+
};
|
|
312
|
+
var SortModelsBy = {
|
|
313
|
+
CREATION_TIME: "CreationTime"
|
|
314
|
+
};
|
|
315
|
+
var SortOrder = {
|
|
316
|
+
ASCENDING: "Ascending",
|
|
317
|
+
DESCENDING: "Descending"
|
|
318
|
+
};
|
|
319
|
+
var CommitmentDuration = {
|
|
320
|
+
ONE_MONTH: "OneMonth",
|
|
321
|
+
SIX_MONTHS: "SixMonths"
|
|
322
|
+
};
|
|
323
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
constructor(opts) {
|
|
328
|
+
super({
|
|
329
|
+
name: "ServiceQuotaExceededException",
|
|
330
|
+
$fault: "client",
|
|
331
|
+
...opts
|
|
332
|
+
});
|
|
333
|
+
this.name = "ServiceQuotaExceededException";
|
|
334
|
+
this.$fault = "client";
|
|
335
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
339
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
340
|
+
var _TooManyTagsException = class _TooManyTagsException extends BedrockServiceException {
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
*/
|
|
344
|
+
constructor(opts) {
|
|
345
|
+
super({
|
|
346
|
+
name: "TooManyTagsException",
|
|
347
|
+
$fault: "client",
|
|
348
|
+
...opts
|
|
349
|
+
});
|
|
350
|
+
this.name = "TooManyTagsException";
|
|
351
|
+
this.$fault = "client";
|
|
352
|
+
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
353
|
+
this.resourceName = opts.resourceName;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
__name(_TooManyTagsException, "TooManyTagsException");
|
|
357
|
+
var TooManyTagsException = _TooManyTagsException;
|
|
358
|
+
var ProvisionedModelStatus = {
|
|
359
|
+
CREATING: "Creating",
|
|
360
|
+
FAILED: "Failed",
|
|
361
|
+
IN_SERVICE: "InService",
|
|
362
|
+
UPDATING: "Updating"
|
|
363
|
+
};
|
|
364
|
+
var SortByProvisionedModels = {
|
|
365
|
+
CREATION_TIME: "CreationTime"
|
|
366
|
+
};
|
|
367
|
+
var ModelCustomizationJobStatus = {
|
|
368
|
+
COMPLETED: "Completed",
|
|
369
|
+
FAILED: "Failed",
|
|
370
|
+
IN_PROGRESS: "InProgress",
|
|
371
|
+
STOPPED: "Stopped",
|
|
372
|
+
STOPPING: "Stopping"
|
|
373
|
+
};
|
|
374
|
+
var SortJobsBy = {
|
|
375
|
+
CREATION_TIME: "CreationTime"
|
|
376
|
+
};
|
|
377
|
+
var FineTuningJobStatus = {
|
|
378
|
+
COMPLETED: "Completed",
|
|
379
|
+
FAILED: "Failed",
|
|
380
|
+
IN_PROGRESS: "InProgress",
|
|
381
|
+
STOPPED: "Stopped",
|
|
382
|
+
STOPPING: "Stopping"
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
// src/protocols/Aws_restJson1.ts
|
|
386
|
+
var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
387
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
388
|
+
const headers = {
|
|
389
|
+
"content-type": "application/json"
|
|
390
|
+
};
|
|
391
|
+
b.bp("/model-customization-jobs");
|
|
392
|
+
let body;
|
|
393
|
+
body = JSON.stringify(
|
|
394
|
+
(0, import_smithy_client.take)(input, {
|
|
395
|
+
baseModelIdentifier: [],
|
|
396
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
397
|
+
customModelKmsKeyId: [],
|
|
398
|
+
customModelName: [],
|
|
399
|
+
customModelTags: (_) => (0, import_smithy_client._json)(_),
|
|
400
|
+
customizationType: [],
|
|
401
|
+
hyperParameters: (_) => (0, import_smithy_client._json)(_),
|
|
402
|
+
jobName: [],
|
|
403
|
+
jobTags: (_) => (0, import_smithy_client._json)(_),
|
|
404
|
+
outputDataConfig: (_) => (0, import_smithy_client._json)(_),
|
|
405
|
+
roleArn: [],
|
|
406
|
+
trainingDataConfig: (_) => (0, import_smithy_client._json)(_),
|
|
407
|
+
validationDataConfig: (_) => (0, import_smithy_client._json)(_),
|
|
408
|
+
vpcConfig: (_) => (0, import_smithy_client._json)(_)
|
|
409
|
+
})
|
|
410
|
+
);
|
|
411
|
+
b.m("POST").h(headers).b(body);
|
|
412
|
+
return b.build();
|
|
413
|
+
}, "se_CreateModelCustomizationJobCommand");
|
|
414
|
+
var se_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
415
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
416
|
+
const headers = {
|
|
417
|
+
"content-type": "application/json"
|
|
418
|
+
};
|
|
419
|
+
b.bp("/provisioned-model-throughput");
|
|
420
|
+
let body;
|
|
421
|
+
body = JSON.stringify(
|
|
422
|
+
(0, import_smithy_client.take)(input, {
|
|
423
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
424
|
+
commitmentDuration: [],
|
|
425
|
+
modelId: [],
|
|
426
|
+
modelUnits: [],
|
|
427
|
+
provisionedModelName: [],
|
|
428
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
429
|
+
})
|
|
430
|
+
);
|
|
431
|
+
b.m("POST").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
433
|
+
}, "se_CreateProvisionedModelThroughputCommand");
|
|
434
|
+
var se_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
435
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
436
|
+
const headers = {};
|
|
437
|
+
b.bp("/custom-models/{modelIdentifier}");
|
|
438
|
+
b.p("modelIdentifier", () => input.modelIdentifier, "{modelIdentifier}", false);
|
|
439
|
+
let body;
|
|
440
|
+
b.m("DELETE").h(headers).b(body);
|
|
441
|
+
return b.build();
|
|
442
|
+
}, "se_DeleteCustomModelCommand");
|
|
443
|
+
var se_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
444
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
445
|
+
const headers = {
|
|
446
|
+
"content-type": "application/json"
|
|
447
|
+
};
|
|
448
|
+
b.bp("/logging/modelinvocations");
|
|
449
|
+
let body;
|
|
450
|
+
body = "";
|
|
451
|
+
b.m("DELETE").h(headers).b(body);
|
|
452
|
+
return b.build();
|
|
453
|
+
}, "se_DeleteModelInvocationLoggingConfigurationCommand");
|
|
454
|
+
var se_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
456
|
+
const headers = {};
|
|
457
|
+
b.bp("/provisioned-model-throughput/{provisionedModelId}");
|
|
458
|
+
b.p("provisionedModelId", () => input.provisionedModelId, "{provisionedModelId}", false);
|
|
459
|
+
let body;
|
|
460
|
+
b.m("DELETE").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
462
|
+
}, "se_DeleteProvisionedModelThroughputCommand");
|
|
463
|
+
var se_GetCustomModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
465
|
+
const headers = {};
|
|
466
|
+
b.bp("/custom-models/{modelIdentifier}");
|
|
467
|
+
b.p("modelIdentifier", () => input.modelIdentifier, "{modelIdentifier}", false);
|
|
468
|
+
let body;
|
|
469
|
+
b.m("GET").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
471
|
+
}, "se_GetCustomModelCommand");
|
|
472
|
+
var se_GetFoundationModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
473
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
474
|
+
const headers = {};
|
|
475
|
+
b.bp("/foundation-models/{modelIdentifier}");
|
|
476
|
+
b.p("modelIdentifier", () => input.modelIdentifier, "{modelIdentifier}", false);
|
|
477
|
+
let body;
|
|
478
|
+
b.m("GET").h(headers).b(body);
|
|
479
|
+
return b.build();
|
|
480
|
+
}, "se_GetFoundationModelCommand");
|
|
481
|
+
var se_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
483
|
+
const headers = {};
|
|
484
|
+
b.bp("/model-customization-jobs/{jobIdentifier}");
|
|
485
|
+
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
|
|
486
|
+
let body;
|
|
487
|
+
b.m("GET").h(headers).b(body);
|
|
488
|
+
return b.build();
|
|
489
|
+
}, "se_GetModelCustomizationJobCommand");
|
|
490
|
+
var se_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
491
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
492
|
+
const headers = {
|
|
493
|
+
"content-type": "application/json"
|
|
494
|
+
};
|
|
495
|
+
b.bp("/logging/modelinvocations");
|
|
496
|
+
let body;
|
|
497
|
+
body = "";
|
|
498
|
+
b.m("GET").h(headers).b(body);
|
|
499
|
+
return b.build();
|
|
500
|
+
}, "se_GetModelInvocationLoggingConfigurationCommand");
|
|
501
|
+
var se_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
502
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
503
|
+
const headers = {};
|
|
504
|
+
b.bp("/provisioned-model-throughput/{provisionedModelId}");
|
|
505
|
+
b.p("provisionedModelId", () => input.provisionedModelId, "{provisionedModelId}", false);
|
|
506
|
+
let body;
|
|
507
|
+
b.m("GET").h(headers).b(body);
|
|
508
|
+
return b.build();
|
|
509
|
+
}, "se_GetProvisionedModelThroughputCommand");
|
|
510
|
+
var se_ListCustomModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
511
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
512
|
+
const headers = {};
|
|
513
|
+
b.bp("/custom-models");
|
|
514
|
+
const query = (0, import_smithy_client.map)({
|
|
515
|
+
[_cTB]: [
|
|
516
|
+
() => input.creationTimeBefore !== void 0,
|
|
517
|
+
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
518
|
+
],
|
|
519
|
+
[_cTA]: [
|
|
520
|
+
() => input.creationTimeAfter !== void 0,
|
|
521
|
+
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
522
|
+
],
|
|
523
|
+
[_nC]: [, input[_nC]],
|
|
524
|
+
[_bMAE]: [, input[_bMAE]],
|
|
525
|
+
[_fMAE]: [, input[_fMAE]],
|
|
526
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
527
|
+
[_nT]: [, input[_nT]],
|
|
528
|
+
[_sB]: [, input[_sB]],
|
|
529
|
+
[_sO]: [, input[_sO]]
|
|
530
|
+
});
|
|
531
|
+
let body;
|
|
532
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
533
|
+
return b.build();
|
|
534
|
+
}, "se_ListCustomModelsCommand");
|
|
535
|
+
var se_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
536
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
537
|
+
const headers = {};
|
|
538
|
+
b.bp("/foundation-models");
|
|
539
|
+
const query = (0, import_smithy_client.map)({
|
|
540
|
+
[_bP]: [, input[_bP]],
|
|
541
|
+
[_bCT]: [, input[_bCT]],
|
|
542
|
+
[_bOM]: [, input[_bOM]],
|
|
543
|
+
[_bIT]: [, input[_bIT]]
|
|
544
|
+
});
|
|
545
|
+
let body;
|
|
546
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
547
|
+
return b.build();
|
|
548
|
+
}, "se_ListFoundationModelsCommand");
|
|
549
|
+
var se_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
550
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
551
|
+
const headers = {};
|
|
552
|
+
b.bp("/model-customization-jobs");
|
|
553
|
+
const query = (0, import_smithy_client.map)({
|
|
554
|
+
[_cTA]: [
|
|
555
|
+
() => input.creationTimeAfter !== void 0,
|
|
556
|
+
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
557
|
+
],
|
|
558
|
+
[_cTB]: [
|
|
559
|
+
() => input.creationTimeBefore !== void 0,
|
|
560
|
+
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
561
|
+
],
|
|
562
|
+
[_sE]: [, input[_sE]],
|
|
563
|
+
[_nC]: [, input[_nC]],
|
|
564
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
565
|
+
[_nT]: [, input[_nT]],
|
|
566
|
+
[_sB]: [, input[_sB]],
|
|
567
|
+
[_sO]: [, input[_sO]]
|
|
568
|
+
});
|
|
569
|
+
let body;
|
|
570
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
571
|
+
return b.build();
|
|
572
|
+
}, "se_ListModelCustomizationJobsCommand");
|
|
573
|
+
var se_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
574
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
575
|
+
const headers = {};
|
|
576
|
+
b.bp("/provisioned-model-throughputs");
|
|
577
|
+
const query = (0, import_smithy_client.map)({
|
|
578
|
+
[_cTA]: [
|
|
579
|
+
() => input.creationTimeAfter !== void 0,
|
|
580
|
+
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
581
|
+
],
|
|
582
|
+
[_cTB]: [
|
|
583
|
+
() => input.creationTimeBefore !== void 0,
|
|
584
|
+
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
585
|
+
],
|
|
586
|
+
[_sE]: [, input[_sE]],
|
|
587
|
+
[_mAE]: [, input[_mAE]],
|
|
588
|
+
[_nC]: [, input[_nC]],
|
|
589
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
590
|
+
[_nT]: [, input[_nT]],
|
|
591
|
+
[_sB]: [, input[_sB]],
|
|
592
|
+
[_sO]: [, input[_sO]]
|
|
593
|
+
});
|
|
594
|
+
let body;
|
|
595
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
596
|
+
return b.build();
|
|
597
|
+
}, "se_ListProvisionedModelThroughputsCommand");
|
|
598
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
600
|
+
const headers = {
|
|
601
|
+
"content-type": "application/json"
|
|
602
|
+
};
|
|
603
|
+
b.bp("/listTagsForResource");
|
|
604
|
+
let body;
|
|
605
|
+
body = JSON.stringify(
|
|
606
|
+
(0, import_smithy_client.take)(input, {
|
|
607
|
+
resourceARN: []
|
|
608
|
+
})
|
|
609
|
+
);
|
|
610
|
+
b.m("POST").h(headers).b(body);
|
|
611
|
+
return b.build();
|
|
612
|
+
}, "se_ListTagsForResourceCommand");
|
|
613
|
+
var se_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
614
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
615
|
+
const headers = {
|
|
616
|
+
"content-type": "application/json"
|
|
617
|
+
};
|
|
618
|
+
b.bp("/logging/modelinvocations");
|
|
619
|
+
let body;
|
|
620
|
+
body = JSON.stringify(
|
|
621
|
+
(0, import_smithy_client.take)(input, {
|
|
622
|
+
loggingConfig: (_) => (0, import_smithy_client._json)(_)
|
|
623
|
+
})
|
|
624
|
+
);
|
|
625
|
+
b.m("PUT").h(headers).b(body);
|
|
626
|
+
return b.build();
|
|
627
|
+
}, "se_PutModelInvocationLoggingConfigurationCommand");
|
|
628
|
+
var se_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
|
+
const headers = {};
|
|
631
|
+
b.bp("/model-customization-jobs/{jobIdentifier}/stop");
|
|
632
|
+
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
|
|
633
|
+
let body;
|
|
634
|
+
b.m("POST").h(headers).b(body);
|
|
635
|
+
return b.build();
|
|
636
|
+
}, "se_StopModelCustomizationJobCommand");
|
|
637
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
639
|
+
const headers = {
|
|
640
|
+
"content-type": "application/json"
|
|
641
|
+
};
|
|
642
|
+
b.bp("/tagResource");
|
|
643
|
+
let body;
|
|
644
|
+
body = JSON.stringify(
|
|
645
|
+
(0, import_smithy_client.take)(input, {
|
|
646
|
+
resourceARN: [],
|
|
647
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
648
|
+
})
|
|
649
|
+
);
|
|
650
|
+
b.m("POST").h(headers).b(body);
|
|
651
|
+
return b.build();
|
|
652
|
+
}, "se_TagResourceCommand");
|
|
653
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
655
|
+
const headers = {
|
|
656
|
+
"content-type": "application/json"
|
|
657
|
+
};
|
|
658
|
+
b.bp("/untagResource");
|
|
659
|
+
let body;
|
|
660
|
+
body = JSON.stringify(
|
|
661
|
+
(0, import_smithy_client.take)(input, {
|
|
662
|
+
resourceARN: [],
|
|
663
|
+
tagKeys: (_) => (0, import_smithy_client._json)(_)
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
b.m("POST").h(headers).b(body);
|
|
667
|
+
return b.build();
|
|
668
|
+
}, "se_UntagResourceCommand");
|
|
669
|
+
var se_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
670
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
671
|
+
const headers = {
|
|
672
|
+
"content-type": "application/json"
|
|
673
|
+
};
|
|
674
|
+
b.bp("/provisioned-model-throughput/{provisionedModelId}");
|
|
675
|
+
b.p("provisionedModelId", () => input.provisionedModelId, "{provisionedModelId}", false);
|
|
676
|
+
let body;
|
|
677
|
+
body = JSON.stringify(
|
|
678
|
+
(0, import_smithy_client.take)(input, {
|
|
679
|
+
desiredModelId: [],
|
|
680
|
+
desiredProvisionedModelName: []
|
|
681
|
+
})
|
|
682
|
+
);
|
|
683
|
+
b.m("PATCH").h(headers).b(body);
|
|
684
|
+
return b.build();
|
|
685
|
+
}, "se_UpdateProvisionedModelThroughputCommand");
|
|
686
|
+
var de_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
688
|
+
return de_CreateModelCustomizationJobCommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const contents = (0, import_smithy_client.map)({
|
|
691
|
+
$metadata: deserializeMetadata(output)
|
|
692
|
+
});
|
|
693
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
694
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
695
|
+
jobArn: import_smithy_client.expectString
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
return contents;
|
|
699
|
+
}, "de_CreateModelCustomizationJobCommand");
|
|
700
|
+
var de_CreateModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
+
const parsedOutput = {
|
|
702
|
+
...output,
|
|
703
|
+
body: await parseErrorBody(output.body, context)
|
|
704
|
+
};
|
|
705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
|
+
switch (errorCode) {
|
|
707
|
+
case "AccessDeniedException":
|
|
708
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
709
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
|
+
case "ConflictException":
|
|
711
|
+
case "com.amazonaws.bedrock#ConflictException":
|
|
712
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
713
|
+
case "InternalServerException":
|
|
714
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
|
+
case "ResourceNotFoundException":
|
|
717
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ServiceQuotaExceededException":
|
|
720
|
+
case "com.amazonaws.bedrock#ServiceQuotaExceededException":
|
|
721
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ThrottlingException":
|
|
723
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
724
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
725
|
+
case "TooManyTagsException":
|
|
726
|
+
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
727
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
728
|
+
case "ValidationException":
|
|
729
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
730
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
+
default:
|
|
732
|
+
const parsedBody = parsedOutput.body;
|
|
733
|
+
return throwDefaultError({
|
|
734
|
+
output,
|
|
735
|
+
parsedBody,
|
|
736
|
+
errorCode
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}, "de_CreateModelCustomizationJobCommandError");
|
|
740
|
+
var de_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
741
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
742
|
+
return de_CreateProvisionedModelThroughputCommandError(output, context);
|
|
743
|
+
}
|
|
744
|
+
const contents = (0, import_smithy_client.map)({
|
|
745
|
+
$metadata: deserializeMetadata(output)
|
|
746
|
+
});
|
|
747
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
748
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
749
|
+
provisionedModelArn: import_smithy_client.expectString
|
|
750
|
+
});
|
|
751
|
+
Object.assign(contents, doc);
|
|
752
|
+
return contents;
|
|
753
|
+
}, "de_CreateProvisionedModelThroughputCommand");
|
|
754
|
+
var de_CreateProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
|
+
const parsedOutput = {
|
|
756
|
+
...output,
|
|
757
|
+
body: await parseErrorBody(output.body, context)
|
|
758
|
+
};
|
|
759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
+
switch (errorCode) {
|
|
761
|
+
case "AccessDeniedException":
|
|
762
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
763
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
764
|
+
case "InternalServerException":
|
|
765
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
766
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
767
|
+
case "ResourceNotFoundException":
|
|
768
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
769
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
770
|
+
case "ServiceQuotaExceededException":
|
|
771
|
+
case "com.amazonaws.bedrock#ServiceQuotaExceededException":
|
|
772
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ThrottlingException":
|
|
774
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
775
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
+
case "TooManyTagsException":
|
|
777
|
+
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
778
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
779
|
+
case "ValidationException":
|
|
780
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
781
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
+
default:
|
|
783
|
+
const parsedBody = parsedOutput.body;
|
|
784
|
+
return throwDefaultError({
|
|
785
|
+
output,
|
|
786
|
+
parsedBody,
|
|
787
|
+
errorCode
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
}, "de_CreateProvisionedModelThroughputCommandError");
|
|
791
|
+
var de_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
792
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
+
return de_DeleteCustomModelCommandError(output, context);
|
|
794
|
+
}
|
|
795
|
+
const contents = (0, import_smithy_client.map)({
|
|
796
|
+
$metadata: deserializeMetadata(output)
|
|
797
|
+
});
|
|
798
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
799
|
+
return contents;
|
|
800
|
+
}, "de_DeleteCustomModelCommand");
|
|
801
|
+
var de_DeleteCustomModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
+
const parsedOutput = {
|
|
803
|
+
...output,
|
|
804
|
+
body: await parseErrorBody(output.body, context)
|
|
805
|
+
};
|
|
806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
|
+
switch (errorCode) {
|
|
808
|
+
case "AccessDeniedException":
|
|
809
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
810
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
811
|
+
case "ConflictException":
|
|
812
|
+
case "com.amazonaws.bedrock#ConflictException":
|
|
813
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
814
|
+
case "InternalServerException":
|
|
815
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
816
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
+
case "ResourceNotFoundException":
|
|
818
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
819
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ThrottlingException":
|
|
821
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
822
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
+
case "ValidationException":
|
|
824
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
825
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
+
default:
|
|
827
|
+
const parsedBody = parsedOutput.body;
|
|
828
|
+
return throwDefaultError({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
errorCode
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}, "de_DeleteCustomModelCommandError");
|
|
835
|
+
var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
+
return de_DeleteModelInvocationLoggingConfigurationCommandError(output, context);
|
|
838
|
+
}
|
|
839
|
+
const contents = (0, import_smithy_client.map)({
|
|
840
|
+
$metadata: deserializeMetadata(output)
|
|
841
|
+
});
|
|
842
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
843
|
+
return contents;
|
|
844
|
+
}, "de_DeleteModelInvocationLoggingConfigurationCommand");
|
|
845
|
+
var de_DeleteModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
+
const parsedOutput = {
|
|
847
|
+
...output,
|
|
848
|
+
body: await parseErrorBody(output.body, context)
|
|
849
|
+
};
|
|
850
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
+
switch (errorCode) {
|
|
852
|
+
case "AccessDeniedException":
|
|
853
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
855
|
+
case "InternalServerException":
|
|
856
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
857
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
858
|
+
case "ThrottlingException":
|
|
859
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
860
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
+
default:
|
|
862
|
+
const parsedBody = parsedOutput.body;
|
|
863
|
+
return throwDefaultError({
|
|
864
|
+
output,
|
|
865
|
+
parsedBody,
|
|
866
|
+
errorCode
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
}, "de_DeleteModelInvocationLoggingConfigurationCommandError");
|
|
870
|
+
var de_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
+
return de_DeleteProvisionedModelThroughputCommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const contents = (0, import_smithy_client.map)({
|
|
875
|
+
$metadata: deserializeMetadata(output)
|
|
876
|
+
});
|
|
877
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
878
|
+
return contents;
|
|
879
|
+
}, "de_DeleteProvisionedModelThroughputCommand");
|
|
880
|
+
var de_DeleteProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
|
+
const parsedOutput = {
|
|
882
|
+
...output,
|
|
883
|
+
body: await parseErrorBody(output.body, context)
|
|
884
|
+
};
|
|
885
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
+
switch (errorCode) {
|
|
887
|
+
case "AccessDeniedException":
|
|
888
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
889
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
890
|
+
case "ConflictException":
|
|
891
|
+
case "com.amazonaws.bedrock#ConflictException":
|
|
892
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
893
|
+
case "InternalServerException":
|
|
894
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
895
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
+
case "ResourceNotFoundException":
|
|
897
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
898
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
+
case "ThrottlingException":
|
|
900
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
901
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
902
|
+
case "ValidationException":
|
|
903
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
904
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
|
+
default:
|
|
906
|
+
const parsedBody = parsedOutput.body;
|
|
907
|
+
return throwDefaultError({
|
|
908
|
+
output,
|
|
909
|
+
parsedBody,
|
|
910
|
+
errorCode
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
}, "de_DeleteProvisionedModelThroughputCommandError");
|
|
914
|
+
var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
|
+
return de_GetCustomModelCommandError(output, context);
|
|
917
|
+
}
|
|
918
|
+
const contents = (0, import_smithy_client.map)({
|
|
919
|
+
$metadata: deserializeMetadata(output)
|
|
920
|
+
});
|
|
921
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
922
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
923
|
+
baseModelArn: import_smithy_client.expectString,
|
|
924
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
925
|
+
customizationType: import_smithy_client.expectString,
|
|
926
|
+
hyperParameters: import_smithy_client._json,
|
|
927
|
+
jobArn: import_smithy_client.expectString,
|
|
928
|
+
jobName: import_smithy_client.expectString,
|
|
929
|
+
modelArn: import_smithy_client.expectString,
|
|
930
|
+
modelKmsKeyArn: import_smithy_client.expectString,
|
|
931
|
+
modelName: import_smithy_client.expectString,
|
|
932
|
+
outputDataConfig: import_smithy_client._json,
|
|
933
|
+
trainingDataConfig: import_smithy_client._json,
|
|
934
|
+
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
935
|
+
validationDataConfig: import_smithy_client._json,
|
|
936
|
+
validationMetrics: (_) => de_ValidationMetrics(_, context)
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
return contents;
|
|
940
|
+
}, "de_GetCustomModelCommand");
|
|
941
|
+
var de_GetCustomModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
+
const parsedOutput = {
|
|
943
|
+
...output,
|
|
944
|
+
body: await parseErrorBody(output.body, context)
|
|
945
|
+
};
|
|
946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
+
switch (errorCode) {
|
|
948
|
+
case "AccessDeniedException":
|
|
949
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
950
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
+
case "InternalServerException":
|
|
952
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
953
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
954
|
+
case "ResourceNotFoundException":
|
|
955
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
956
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
957
|
+
case "ThrottlingException":
|
|
958
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
959
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ValidationException":
|
|
961
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
962
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
|
+
default:
|
|
964
|
+
const parsedBody = parsedOutput.body;
|
|
965
|
+
return throwDefaultError({
|
|
966
|
+
output,
|
|
967
|
+
parsedBody,
|
|
968
|
+
errorCode
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
}, "de_GetCustomModelCommandError");
|
|
972
|
+
var de_GetFoundationModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
+
return de_GetFoundationModelCommandError(output, context);
|
|
975
|
+
}
|
|
976
|
+
const contents = (0, import_smithy_client.map)({
|
|
977
|
+
$metadata: deserializeMetadata(output)
|
|
978
|
+
});
|
|
979
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
980
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
981
|
+
modelDetails: import_smithy_client._json
|
|
982
|
+
});
|
|
983
|
+
Object.assign(contents, doc);
|
|
984
|
+
return contents;
|
|
985
|
+
}, "de_GetFoundationModelCommand");
|
|
986
|
+
var de_GetFoundationModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
+
const parsedOutput = {
|
|
988
|
+
...output,
|
|
989
|
+
body: await parseErrorBody(output.body, context)
|
|
990
|
+
};
|
|
991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
+
switch (errorCode) {
|
|
993
|
+
case "AccessDeniedException":
|
|
994
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
995
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
+
case "InternalServerException":
|
|
997
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
998
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
999
|
+
case "ResourceNotFoundException":
|
|
1000
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
+
case "ThrottlingException":
|
|
1003
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1004
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1005
|
+
case "ValidationException":
|
|
1006
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1007
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
+
default:
|
|
1009
|
+
const parsedBody = parsedOutput.body;
|
|
1010
|
+
return throwDefaultError({
|
|
1011
|
+
output,
|
|
1012
|
+
parsedBody,
|
|
1013
|
+
errorCode
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
}, "de_GetFoundationModelCommandError");
|
|
1017
|
+
var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
+
return de_GetModelCustomizationJobCommandError(output, context);
|
|
1020
|
+
}
|
|
1021
|
+
const contents = (0, import_smithy_client.map)({
|
|
1022
|
+
$metadata: deserializeMetadata(output)
|
|
1023
|
+
});
|
|
1024
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1025
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1026
|
+
baseModelArn: import_smithy_client.expectString,
|
|
1027
|
+
clientRequestToken: import_smithy_client.expectString,
|
|
1028
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1029
|
+
customizationType: import_smithy_client.expectString,
|
|
1030
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1031
|
+
failureMessage: import_smithy_client.expectString,
|
|
1032
|
+
hyperParameters: import_smithy_client._json,
|
|
1033
|
+
jobArn: import_smithy_client.expectString,
|
|
1034
|
+
jobName: import_smithy_client.expectString,
|
|
1035
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1036
|
+
outputDataConfig: import_smithy_client._json,
|
|
1037
|
+
outputModelArn: import_smithy_client.expectString,
|
|
1038
|
+
outputModelKmsKeyArn: import_smithy_client.expectString,
|
|
1039
|
+
outputModelName: import_smithy_client.expectString,
|
|
1040
|
+
roleArn: import_smithy_client.expectString,
|
|
1041
|
+
status: import_smithy_client.expectString,
|
|
1042
|
+
trainingDataConfig: import_smithy_client._json,
|
|
1043
|
+
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
1044
|
+
validationDataConfig: import_smithy_client._json,
|
|
1045
|
+
validationMetrics: (_) => de_ValidationMetrics(_, context),
|
|
1046
|
+
vpcConfig: import_smithy_client._json
|
|
1047
|
+
});
|
|
1048
|
+
Object.assign(contents, doc);
|
|
1049
|
+
return contents;
|
|
1050
|
+
}, "de_GetModelCustomizationJobCommand");
|
|
1051
|
+
var de_GetModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
+
const parsedOutput = {
|
|
1053
|
+
...output,
|
|
1054
|
+
body: await parseErrorBody(output.body, context)
|
|
1055
|
+
};
|
|
1056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
switch (errorCode) {
|
|
1058
|
+
case "AccessDeniedException":
|
|
1059
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1060
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "InternalServerException":
|
|
1062
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1063
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "ResourceNotFoundException":
|
|
1065
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1066
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "ThrottlingException":
|
|
1068
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1069
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "ValidationException":
|
|
1071
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1072
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
+
default:
|
|
1074
|
+
const parsedBody = parsedOutput.body;
|
|
1075
|
+
return throwDefaultError({
|
|
1076
|
+
output,
|
|
1077
|
+
parsedBody,
|
|
1078
|
+
errorCode
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
}, "de_GetModelCustomizationJobCommandError");
|
|
1082
|
+
var de_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
+
return de_GetModelInvocationLoggingConfigurationCommandError(output, context);
|
|
1085
|
+
}
|
|
1086
|
+
const contents = (0, import_smithy_client.map)({
|
|
1087
|
+
$metadata: deserializeMetadata(output)
|
|
1088
|
+
});
|
|
1089
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1090
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1091
|
+
loggingConfig: import_smithy_client._json
|
|
1092
|
+
});
|
|
1093
|
+
Object.assign(contents, doc);
|
|
1094
|
+
return contents;
|
|
1095
|
+
}, "de_GetModelInvocationLoggingConfigurationCommand");
|
|
1096
|
+
var de_GetModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1097
|
+
const parsedOutput = {
|
|
1098
|
+
...output,
|
|
1099
|
+
body: await parseErrorBody(output.body, context)
|
|
1100
|
+
};
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
+
switch (errorCode) {
|
|
1103
|
+
case "AccessDeniedException":
|
|
1104
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1105
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "InternalServerException":
|
|
1107
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1108
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "ThrottlingException":
|
|
1110
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1111
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1112
|
+
default:
|
|
1113
|
+
const parsedBody = parsedOutput.body;
|
|
1114
|
+
return throwDefaultError({
|
|
1115
|
+
output,
|
|
1116
|
+
parsedBody,
|
|
1117
|
+
errorCode
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}, "de_GetModelInvocationLoggingConfigurationCommandError");
|
|
1121
|
+
var de_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1122
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
|
+
return de_GetProvisionedModelThroughputCommandError(output, context);
|
|
1124
|
+
}
|
|
1125
|
+
const contents = (0, import_smithy_client.map)({
|
|
1126
|
+
$metadata: deserializeMetadata(output)
|
|
1127
|
+
});
|
|
1128
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1129
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1130
|
+
commitmentDuration: import_smithy_client.expectString,
|
|
1131
|
+
commitmentExpirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1132
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1133
|
+
desiredModelArn: import_smithy_client.expectString,
|
|
1134
|
+
desiredModelUnits: import_smithy_client.expectInt32,
|
|
1135
|
+
failureMessage: import_smithy_client.expectString,
|
|
1136
|
+
foundationModelArn: import_smithy_client.expectString,
|
|
1137
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1138
|
+
modelArn: import_smithy_client.expectString,
|
|
1139
|
+
modelUnits: import_smithy_client.expectInt32,
|
|
1140
|
+
provisionedModelArn: import_smithy_client.expectString,
|
|
1141
|
+
provisionedModelName: import_smithy_client.expectString,
|
|
1142
|
+
status: import_smithy_client.expectString
|
|
1143
|
+
});
|
|
1144
|
+
Object.assign(contents, doc);
|
|
1145
|
+
return contents;
|
|
1146
|
+
}, "de_GetProvisionedModelThroughputCommand");
|
|
1147
|
+
var de_GetProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
|
+
const parsedOutput = {
|
|
1149
|
+
...output,
|
|
1150
|
+
body: await parseErrorBody(output.body, context)
|
|
1151
|
+
};
|
|
1152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
switch (errorCode) {
|
|
1154
|
+
case "AccessDeniedException":
|
|
1155
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1156
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "InternalServerException":
|
|
1158
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1159
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "ResourceNotFoundException":
|
|
1161
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1162
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
+
case "ThrottlingException":
|
|
1164
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1165
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "ValidationException":
|
|
1167
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1168
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
+
default:
|
|
1170
|
+
const parsedBody = parsedOutput.body;
|
|
1171
|
+
return throwDefaultError({
|
|
1172
|
+
output,
|
|
1173
|
+
parsedBody,
|
|
1174
|
+
errorCode
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
}, "de_GetProvisionedModelThroughputCommandError");
|
|
1178
|
+
var de_ListCustomModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1179
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
+
return de_ListCustomModelsCommandError(output, context);
|
|
1181
|
+
}
|
|
1182
|
+
const contents = (0, import_smithy_client.map)({
|
|
1183
|
+
$metadata: deserializeMetadata(output)
|
|
1184
|
+
});
|
|
1185
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1186
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1187
|
+
modelSummaries: (_) => de_CustomModelSummaryList(_, context),
|
|
1188
|
+
nextToken: import_smithy_client.expectString
|
|
1189
|
+
});
|
|
1190
|
+
Object.assign(contents, doc);
|
|
1191
|
+
return contents;
|
|
1192
|
+
}, "de_ListCustomModelsCommand");
|
|
1193
|
+
var de_ListCustomModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
+
const parsedOutput = {
|
|
1195
|
+
...output,
|
|
1196
|
+
body: await parseErrorBody(output.body, context)
|
|
1197
|
+
};
|
|
1198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
+
switch (errorCode) {
|
|
1200
|
+
case "AccessDeniedException":
|
|
1201
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1202
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "InternalServerException":
|
|
1204
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1205
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "ThrottlingException":
|
|
1207
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1208
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "ValidationException":
|
|
1210
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1211
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
+
default:
|
|
1213
|
+
const parsedBody = parsedOutput.body;
|
|
1214
|
+
return throwDefaultError({
|
|
1215
|
+
output,
|
|
1216
|
+
parsedBody,
|
|
1217
|
+
errorCode
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
}, "de_ListCustomModelsCommandError");
|
|
1221
|
+
var de_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
+
return de_ListFoundationModelsCommandError(output, context);
|
|
1224
|
+
}
|
|
1225
|
+
const contents = (0, import_smithy_client.map)({
|
|
1226
|
+
$metadata: deserializeMetadata(output)
|
|
1227
|
+
});
|
|
1228
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1229
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1230
|
+
modelSummaries: import_smithy_client._json
|
|
1231
|
+
});
|
|
1232
|
+
Object.assign(contents, doc);
|
|
1233
|
+
return contents;
|
|
1234
|
+
}, "de_ListFoundationModelsCommand");
|
|
1235
|
+
var de_ListFoundationModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
|
+
const parsedOutput = {
|
|
1237
|
+
...output,
|
|
1238
|
+
body: await parseErrorBody(output.body, context)
|
|
1239
|
+
};
|
|
1240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
switch (errorCode) {
|
|
1242
|
+
case "AccessDeniedException":
|
|
1243
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1244
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "InternalServerException":
|
|
1246
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1247
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "ThrottlingException":
|
|
1249
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1250
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "ValidationException":
|
|
1252
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1253
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
+
default:
|
|
1255
|
+
const parsedBody = parsedOutput.body;
|
|
1256
|
+
return throwDefaultError({
|
|
1257
|
+
output,
|
|
1258
|
+
parsedBody,
|
|
1259
|
+
errorCode
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
}, "de_ListFoundationModelsCommandError");
|
|
1263
|
+
var de_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
+
return de_ListModelCustomizationJobsCommandError(output, context);
|
|
1266
|
+
}
|
|
1267
|
+
const contents = (0, import_smithy_client.map)({
|
|
1268
|
+
$metadata: deserializeMetadata(output)
|
|
1269
|
+
});
|
|
1270
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1272
|
+
modelCustomizationJobSummaries: (_) => de_ModelCustomizationJobSummaries(_, context),
|
|
1273
|
+
nextToken: import_smithy_client.expectString
|
|
1274
|
+
});
|
|
1275
|
+
Object.assign(contents, doc);
|
|
1276
|
+
return contents;
|
|
1277
|
+
}, "de_ListModelCustomizationJobsCommand");
|
|
1278
|
+
var de_ListModelCustomizationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1279
|
+
const parsedOutput = {
|
|
1280
|
+
...output,
|
|
1281
|
+
body: await parseErrorBody(output.body, context)
|
|
1282
|
+
};
|
|
1283
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
+
switch (errorCode) {
|
|
1285
|
+
case "AccessDeniedException":
|
|
1286
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1287
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "InternalServerException":
|
|
1289
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1290
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "ThrottlingException":
|
|
1292
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1293
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "ValidationException":
|
|
1295
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1296
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
|
+
default:
|
|
1298
|
+
const parsedBody = parsedOutput.body;
|
|
1299
|
+
return throwDefaultError({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
errorCode
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}, "de_ListModelCustomizationJobsCommandError");
|
|
1306
|
+
var de_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
+
return de_ListProvisionedModelThroughputsCommandError(output, context);
|
|
1309
|
+
}
|
|
1310
|
+
const contents = (0, import_smithy_client.map)({
|
|
1311
|
+
$metadata: deserializeMetadata(output)
|
|
1312
|
+
});
|
|
1313
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1314
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1315
|
+
nextToken: import_smithy_client.expectString,
|
|
1316
|
+
provisionedModelSummaries: (_) => de_ProvisionedModelSummaries(_, context)
|
|
1317
|
+
});
|
|
1318
|
+
Object.assign(contents, doc);
|
|
1319
|
+
return contents;
|
|
1320
|
+
}, "de_ListProvisionedModelThroughputsCommand");
|
|
1321
|
+
var de_ListProvisionedModelThroughputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
|
+
const parsedOutput = {
|
|
1323
|
+
...output,
|
|
1324
|
+
body: await parseErrorBody(output.body, context)
|
|
1325
|
+
};
|
|
1326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
+
switch (errorCode) {
|
|
1328
|
+
case "AccessDeniedException":
|
|
1329
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1330
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "InternalServerException":
|
|
1332
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1333
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1334
|
+
case "ThrottlingException":
|
|
1335
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1336
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "ValidationException":
|
|
1338
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1339
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
+
default:
|
|
1341
|
+
const parsedBody = parsedOutput.body;
|
|
1342
|
+
return throwDefaultError({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
errorCode
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
}, "de_ListProvisionedModelThroughputsCommandError");
|
|
1349
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1352
|
+
}
|
|
1353
|
+
const contents = (0, import_smithy_client.map)({
|
|
1354
|
+
$metadata: deserializeMetadata(output)
|
|
1355
|
+
});
|
|
1356
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1357
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1358
|
+
tags: import_smithy_client._json
|
|
1359
|
+
});
|
|
1360
|
+
Object.assign(contents, doc);
|
|
1361
|
+
return contents;
|
|
1362
|
+
}, "de_ListTagsForResourceCommand");
|
|
1363
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
|
+
const parsedOutput = {
|
|
1365
|
+
...output,
|
|
1366
|
+
body: await parseErrorBody(output.body, context)
|
|
1367
|
+
};
|
|
1368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
+
switch (errorCode) {
|
|
1370
|
+
case "AccessDeniedException":
|
|
1371
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1372
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "InternalServerException":
|
|
1374
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1375
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "ResourceNotFoundException":
|
|
1377
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1378
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "ThrottlingException":
|
|
1380
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1381
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "ValidationException":
|
|
1383
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1384
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
|
+
default:
|
|
1386
|
+
const parsedBody = parsedOutput.body;
|
|
1387
|
+
return throwDefaultError({
|
|
1388
|
+
output,
|
|
1389
|
+
parsedBody,
|
|
1390
|
+
errorCode
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1394
|
+
var de_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
+
return de_PutModelInvocationLoggingConfigurationCommandError(output, context);
|
|
1397
|
+
}
|
|
1398
|
+
const contents = (0, import_smithy_client.map)({
|
|
1399
|
+
$metadata: deserializeMetadata(output)
|
|
1400
|
+
});
|
|
1401
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1402
|
+
return contents;
|
|
1403
|
+
}, "de_PutModelInvocationLoggingConfigurationCommand");
|
|
1404
|
+
var de_PutModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1405
|
+
const parsedOutput = {
|
|
1406
|
+
...output,
|
|
1407
|
+
body: await parseErrorBody(output.body, context)
|
|
1408
|
+
};
|
|
1409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
+
switch (errorCode) {
|
|
1411
|
+
case "AccessDeniedException":
|
|
1412
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1413
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
+
case "InternalServerException":
|
|
1415
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1416
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "ThrottlingException":
|
|
1418
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1419
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ValidationException":
|
|
1421
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1422
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1423
|
+
default:
|
|
1424
|
+
const parsedBody = parsedOutput.body;
|
|
1425
|
+
return throwDefaultError({
|
|
1426
|
+
output,
|
|
1427
|
+
parsedBody,
|
|
1428
|
+
errorCode
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
}, "de_PutModelInvocationLoggingConfigurationCommandError");
|
|
1432
|
+
var de_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
+
return de_StopModelCustomizationJobCommandError(output, context);
|
|
1435
|
+
}
|
|
1436
|
+
const contents = (0, import_smithy_client.map)({
|
|
1437
|
+
$metadata: deserializeMetadata(output)
|
|
1438
|
+
});
|
|
1439
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1440
|
+
return contents;
|
|
1441
|
+
}, "de_StopModelCustomizationJobCommand");
|
|
1442
|
+
var de_StopModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1443
|
+
const parsedOutput = {
|
|
1444
|
+
...output,
|
|
1445
|
+
body: await parseErrorBody(output.body, context)
|
|
1446
|
+
};
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
switch (errorCode) {
|
|
1449
|
+
case "AccessDeniedException":
|
|
1450
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1451
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ConflictException":
|
|
1453
|
+
case "com.amazonaws.bedrock#ConflictException":
|
|
1454
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1455
|
+
case "InternalServerException":
|
|
1456
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1457
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1458
|
+
case "ResourceNotFoundException":
|
|
1459
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1460
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
+
case "ThrottlingException":
|
|
1462
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1463
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1464
|
+
case "ValidationException":
|
|
1465
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1466
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1467
|
+
default:
|
|
1468
|
+
const parsedBody = parsedOutput.body;
|
|
1469
|
+
return throwDefaultError({
|
|
1470
|
+
output,
|
|
1471
|
+
parsedBody,
|
|
1472
|
+
errorCode
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
}, "de_StopModelCustomizationJobCommandError");
|
|
1476
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1477
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
|
+
return de_TagResourceCommandError(output, context);
|
|
1479
|
+
}
|
|
1480
|
+
const contents = (0, import_smithy_client.map)({
|
|
1481
|
+
$metadata: deserializeMetadata(output)
|
|
1482
|
+
});
|
|
1483
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1484
|
+
return contents;
|
|
1485
|
+
}, "de_TagResourceCommand");
|
|
1486
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
+
const parsedOutput = {
|
|
1488
|
+
...output,
|
|
1489
|
+
body: await parseErrorBody(output.body, context)
|
|
1490
|
+
};
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
+
switch (errorCode) {
|
|
1493
|
+
case "AccessDeniedException":
|
|
1494
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1495
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "InternalServerException":
|
|
1497
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1498
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "ResourceNotFoundException":
|
|
1500
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1501
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "ThrottlingException":
|
|
1503
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1504
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "TooManyTagsException":
|
|
1506
|
+
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
1507
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "ValidationException":
|
|
1509
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1510
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1511
|
+
default:
|
|
1512
|
+
const parsedBody = parsedOutput.body;
|
|
1513
|
+
return throwDefaultError({
|
|
1514
|
+
output,
|
|
1515
|
+
parsedBody,
|
|
1516
|
+
errorCode
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
}, "de_TagResourceCommandError");
|
|
1520
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1522
|
+
return de_UntagResourceCommandError(output, context);
|
|
1523
|
+
}
|
|
1524
|
+
const contents = (0, import_smithy_client.map)({
|
|
1525
|
+
$metadata: deserializeMetadata(output)
|
|
1526
|
+
});
|
|
1527
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1528
|
+
return contents;
|
|
1529
|
+
}, "de_UntagResourceCommand");
|
|
1530
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
+
const parsedOutput = {
|
|
1532
|
+
...output,
|
|
1533
|
+
body: await parseErrorBody(output.body, context)
|
|
1534
|
+
};
|
|
1535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
+
switch (errorCode) {
|
|
1537
|
+
case "AccessDeniedException":
|
|
1538
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1539
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1540
|
+
case "InternalServerException":
|
|
1541
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1542
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
+
case "ResourceNotFoundException":
|
|
1544
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1545
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
+
case "ThrottlingException":
|
|
1547
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1548
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "ValidationException":
|
|
1550
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1551
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
|
+
default:
|
|
1553
|
+
const parsedBody = parsedOutput.body;
|
|
1554
|
+
return throwDefaultError({
|
|
1555
|
+
output,
|
|
1556
|
+
parsedBody,
|
|
1557
|
+
errorCode
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
}, "de_UntagResourceCommandError");
|
|
1561
|
+
var de_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
+
return de_UpdateProvisionedModelThroughputCommandError(output, context);
|
|
1564
|
+
}
|
|
1565
|
+
const contents = (0, import_smithy_client.map)({
|
|
1566
|
+
$metadata: deserializeMetadata(output)
|
|
1567
|
+
});
|
|
1568
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1569
|
+
return contents;
|
|
1570
|
+
}, "de_UpdateProvisionedModelThroughputCommand");
|
|
1571
|
+
var de_UpdateProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
|
+
const parsedOutput = {
|
|
1573
|
+
...output,
|
|
1574
|
+
body: await parseErrorBody(output.body, context)
|
|
1575
|
+
};
|
|
1576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
+
switch (errorCode) {
|
|
1578
|
+
case "AccessDeniedException":
|
|
1579
|
+
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1580
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1581
|
+
case "InternalServerException":
|
|
1582
|
+
case "com.amazonaws.bedrock#InternalServerException":
|
|
1583
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1584
|
+
case "ResourceNotFoundException":
|
|
1585
|
+
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1586
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1587
|
+
case "ThrottlingException":
|
|
1588
|
+
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1589
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1590
|
+
case "ValidationException":
|
|
1591
|
+
case "com.amazonaws.bedrock#ValidationException":
|
|
1592
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1593
|
+
default:
|
|
1594
|
+
const parsedBody = parsedOutput.body;
|
|
1595
|
+
return throwDefaultError({
|
|
1596
|
+
output,
|
|
1597
|
+
parsedBody,
|
|
1598
|
+
errorCode
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
}, "de_UpdateProvisionedModelThroughputCommandError");
|
|
1602
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockServiceException);
|
|
1603
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1604
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1605
|
+
const data = parsedOutput.body;
|
|
1606
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1607
|
+
message: import_smithy_client.expectString
|
|
1608
|
+
});
|
|
1609
|
+
Object.assign(contents, doc);
|
|
1610
|
+
const exception = new AccessDeniedException({
|
|
1611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1612
|
+
...contents
|
|
1613
|
+
});
|
|
1614
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1615
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1616
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1617
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1618
|
+
const data = parsedOutput.body;
|
|
1619
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1620
|
+
message: import_smithy_client.expectString
|
|
1621
|
+
});
|
|
1622
|
+
Object.assign(contents, doc);
|
|
1623
|
+
const exception = new ConflictException({
|
|
1624
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1625
|
+
...contents
|
|
1626
|
+
});
|
|
1627
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1628
|
+
}, "de_ConflictExceptionRes");
|
|
1629
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1630
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1631
|
+
const data = parsedOutput.body;
|
|
1632
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1633
|
+
message: import_smithy_client.expectString
|
|
1634
|
+
});
|
|
1635
|
+
Object.assign(contents, doc);
|
|
1636
|
+
const exception = new InternalServerException({
|
|
1637
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1638
|
+
...contents
|
|
1639
|
+
});
|
|
1640
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1641
|
+
}, "de_InternalServerExceptionRes");
|
|
1642
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1643
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1644
|
+
const data = parsedOutput.body;
|
|
1645
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1646
|
+
message: import_smithy_client.expectString
|
|
1647
|
+
});
|
|
1648
|
+
Object.assign(contents, doc);
|
|
1649
|
+
const exception = new ResourceNotFoundException({
|
|
1650
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
|
+
...contents
|
|
1652
|
+
});
|
|
1653
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1654
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1655
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1656
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1657
|
+
const data = parsedOutput.body;
|
|
1658
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1659
|
+
message: import_smithy_client.expectString
|
|
1660
|
+
});
|
|
1661
|
+
Object.assign(contents, doc);
|
|
1662
|
+
const exception = new ServiceQuotaExceededException({
|
|
1663
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1664
|
+
...contents
|
|
1665
|
+
});
|
|
1666
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1667
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1668
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1669
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1670
|
+
const data = parsedOutput.body;
|
|
1671
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1672
|
+
message: import_smithy_client.expectString
|
|
1673
|
+
});
|
|
1674
|
+
Object.assign(contents, doc);
|
|
1675
|
+
const exception = new ThrottlingException({
|
|
1676
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1677
|
+
...contents
|
|
1678
|
+
});
|
|
1679
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1680
|
+
}, "de_ThrottlingExceptionRes");
|
|
1681
|
+
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1682
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1683
|
+
const data = parsedOutput.body;
|
|
1684
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1685
|
+
message: import_smithy_client.expectString,
|
|
1686
|
+
resourceName: import_smithy_client.expectString
|
|
1687
|
+
});
|
|
1688
|
+
Object.assign(contents, doc);
|
|
1689
|
+
const exception = new TooManyTagsException({
|
|
1690
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1691
|
+
...contents
|
|
1692
|
+
});
|
|
1693
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1694
|
+
}, "de_TooManyTagsExceptionRes");
|
|
1695
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1696
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1697
|
+
const data = parsedOutput.body;
|
|
1698
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1699
|
+
message: import_smithy_client.expectString
|
|
1700
|
+
});
|
|
1701
|
+
Object.assign(contents, doc);
|
|
1702
|
+
const exception = new ValidationException({
|
|
1703
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1704
|
+
...contents
|
|
1705
|
+
});
|
|
1706
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1707
|
+
}, "de_ValidationExceptionRes");
|
|
1708
|
+
var de_CustomModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1709
|
+
return (0, import_smithy_client.take)(output, {
|
|
1710
|
+
baseModelArn: import_smithy_client.expectString,
|
|
1711
|
+
baseModelName: import_smithy_client.expectString,
|
|
1712
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1713
|
+
customizationType: import_smithy_client.expectString,
|
|
1714
|
+
modelArn: import_smithy_client.expectString,
|
|
1715
|
+
modelName: import_smithy_client.expectString
|
|
1716
|
+
});
|
|
1717
|
+
}, "de_CustomModelSummary");
|
|
1718
|
+
var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1719
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1720
|
+
return de_CustomModelSummary(entry, context);
|
|
1721
|
+
});
|
|
1722
|
+
return retVal;
|
|
1723
|
+
}, "de_CustomModelSummaryList");
|
|
1724
|
+
var de_ModelCustomizationJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1725
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1726
|
+
return de_ModelCustomizationJobSummary(entry, context);
|
|
1727
|
+
});
|
|
1728
|
+
return retVal;
|
|
1729
|
+
}, "de_ModelCustomizationJobSummaries");
|
|
1730
|
+
var de_ModelCustomizationJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1731
|
+
return (0, import_smithy_client.take)(output, {
|
|
1732
|
+
baseModelArn: import_smithy_client.expectString,
|
|
1733
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1734
|
+
customModelArn: import_smithy_client.expectString,
|
|
1735
|
+
customModelName: import_smithy_client.expectString,
|
|
1736
|
+
customizationType: import_smithy_client.expectString,
|
|
1737
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1738
|
+
jobArn: import_smithy_client.expectString,
|
|
1739
|
+
jobName: import_smithy_client.expectString,
|
|
1740
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1741
|
+
status: import_smithy_client.expectString
|
|
1742
|
+
});
|
|
1743
|
+
}, "de_ModelCustomizationJobSummary");
|
|
1744
|
+
var de_ProvisionedModelSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1745
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1746
|
+
return de_ProvisionedModelSummary(entry, context);
|
|
1747
|
+
});
|
|
1748
|
+
return retVal;
|
|
1749
|
+
}, "de_ProvisionedModelSummaries");
|
|
1750
|
+
var de_ProvisionedModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1751
|
+
return (0, import_smithy_client.take)(output, {
|
|
1752
|
+
commitmentDuration: import_smithy_client.expectString,
|
|
1753
|
+
commitmentExpirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1754
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1755
|
+
desiredModelArn: import_smithy_client.expectString,
|
|
1756
|
+
desiredModelUnits: import_smithy_client.expectInt32,
|
|
1757
|
+
foundationModelArn: import_smithy_client.expectString,
|
|
1758
|
+
lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1759
|
+
modelArn: import_smithy_client.expectString,
|
|
1760
|
+
modelUnits: import_smithy_client.expectInt32,
|
|
1761
|
+
provisionedModelArn: import_smithy_client.expectString,
|
|
1762
|
+
provisionedModelName: import_smithy_client.expectString,
|
|
1763
|
+
status: import_smithy_client.expectString
|
|
1764
|
+
});
|
|
1765
|
+
}, "de_ProvisionedModelSummary");
|
|
1766
|
+
var de_TrainingMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
1767
|
+
return (0, import_smithy_client.take)(output, {
|
|
1768
|
+
trainingLoss: import_smithy_client.limitedParseFloat32
|
|
1769
|
+
});
|
|
1770
|
+
}, "de_TrainingMetrics");
|
|
1771
|
+
var de_ValidationMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
1772
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1773
|
+
return de_ValidatorMetric(entry, context);
|
|
1774
|
+
});
|
|
1775
|
+
return retVal;
|
|
1776
|
+
}, "de_ValidationMetrics");
|
|
1777
|
+
var de_ValidatorMetric = /* @__PURE__ */ __name((output, context) => {
|
|
1778
|
+
return (0, import_smithy_client.take)(output, {
|
|
1779
|
+
validationLoss: import_smithy_client.limitedParseFloat32
|
|
1780
|
+
});
|
|
1781
|
+
}, "de_ValidatorMetric");
|
|
1782
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1783
|
+
httpStatusCode: output.statusCode,
|
|
1784
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1785
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1786
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1787
|
+
}), "deserializeMetadata");
|
|
1788
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1789
|
+
var _bCT = "byCustomizationType";
|
|
1790
|
+
var _bIT = "byInferenceType";
|
|
1791
|
+
var _bMAE = "baseModelArnEquals";
|
|
1792
|
+
var _bOM = "byOutputModality";
|
|
1793
|
+
var _bP = "byProvider";
|
|
1794
|
+
var _cTA = "creationTimeAfter";
|
|
1795
|
+
var _cTB = "creationTimeBefore";
|
|
1796
|
+
var _fMAE = "foundationModelArnEquals";
|
|
1797
|
+
var _mAE = "modelArnEquals";
|
|
1798
|
+
var _mR = "maxResults";
|
|
1799
|
+
var _nC = "nameContains";
|
|
1800
|
+
var _nT = "nextToken";
|
|
1801
|
+
var _sB = "sortBy";
|
|
1802
|
+
var _sE = "statusEquals";
|
|
1803
|
+
var _sO = "sortOrder";
|
|
1804
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1805
|
+
if (encoded.length) {
|
|
1806
|
+
return JSON.parse(encoded);
|
|
1807
|
+
}
|
|
1808
|
+
return {};
|
|
1809
|
+
}), "parseBody");
|
|
1810
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1811
|
+
const value = await parseBody(errorBody, context);
|
|
1812
|
+
value.message = value.message ?? value.Message;
|
|
1813
|
+
return value;
|
|
1814
|
+
}, "parseErrorBody");
|
|
1815
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1816
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1817
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1818
|
+
let cleanValue = rawValue;
|
|
1819
|
+
if (typeof cleanValue === "number") {
|
|
1820
|
+
cleanValue = cleanValue.toString();
|
|
1821
|
+
}
|
|
1822
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1823
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1824
|
+
}
|
|
1825
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1826
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1827
|
+
}
|
|
1828
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1829
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1830
|
+
}
|
|
1831
|
+
return cleanValue;
|
|
1832
|
+
}, "sanitizeErrorCode");
|
|
1833
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1834
|
+
if (headerKey !== void 0) {
|
|
1835
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1836
|
+
}
|
|
1837
|
+
if (data.code !== void 0) {
|
|
1838
|
+
return sanitizeErrorCode(data.code);
|
|
1839
|
+
}
|
|
1840
|
+
if (data["__type"] !== void 0) {
|
|
1841
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1842
|
+
}
|
|
1843
|
+
}, "loadRestJsonErrorCode");
|
|
1844
|
+
|
|
1845
|
+
// src/commands/CreateModelCustomizationJobCommand.ts
|
|
1846
|
+
var _CreateModelCustomizationJobCommand = class _CreateModelCustomizationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1847
|
+
...commonParams
|
|
1848
|
+
}).m(function(Command, cs, config, o) {
|
|
1849
|
+
return [
|
|
1850
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1851
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1852
|
+
];
|
|
1853
|
+
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(void 0, void 0).ser(se_CreateModelCustomizationJobCommand).de(de_CreateModelCustomizationJobCommand).build() {
|
|
1854
|
+
};
|
|
1855
|
+
__name(_CreateModelCustomizationJobCommand, "CreateModelCustomizationJobCommand");
|
|
1856
|
+
var CreateModelCustomizationJobCommand = _CreateModelCustomizationJobCommand;
|
|
1857
|
+
|
|
1858
|
+
// src/commands/CreateProvisionedModelThroughputCommand.ts
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
var _CreateProvisionedModelThroughputCommand = class _CreateProvisionedModelThroughputCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1864
|
+
...commonParams
|
|
1865
|
+
}).m(function(Command, cs, config, o) {
|
|
1866
|
+
return [
|
|
1867
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1868
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1869
|
+
];
|
|
1870
|
+
}).s("AmazonBedrockControlPlaneService", "CreateProvisionedModelThroughput", {}).n("BedrockClient", "CreateProvisionedModelThroughputCommand").f(void 0, void 0).ser(se_CreateProvisionedModelThroughputCommand).de(de_CreateProvisionedModelThroughputCommand).build() {
|
|
1871
|
+
};
|
|
1872
|
+
__name(_CreateProvisionedModelThroughputCommand, "CreateProvisionedModelThroughputCommand");
|
|
1873
|
+
var CreateProvisionedModelThroughputCommand = _CreateProvisionedModelThroughputCommand;
|
|
1874
|
+
|
|
1875
|
+
// src/commands/DeleteCustomModelCommand.ts
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
var _DeleteCustomModelCommand = class _DeleteCustomModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1881
|
+
...commonParams
|
|
1882
|
+
}).m(function(Command, cs, config, o) {
|
|
1883
|
+
return [
|
|
1884
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1885
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1886
|
+
];
|
|
1887
|
+
}).s("AmazonBedrockControlPlaneService", "DeleteCustomModel", {}).n("BedrockClient", "DeleteCustomModelCommand").f(void 0, void 0).ser(se_DeleteCustomModelCommand).de(de_DeleteCustomModelCommand).build() {
|
|
1888
|
+
};
|
|
1889
|
+
__name(_DeleteCustomModelCommand, "DeleteCustomModelCommand");
|
|
1890
|
+
var DeleteCustomModelCommand = _DeleteCustomModelCommand;
|
|
1891
|
+
|
|
1892
|
+
// src/commands/DeleteModelInvocationLoggingConfigurationCommand.ts
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
var _DeleteModelInvocationLoggingConfigurationCommand = class _DeleteModelInvocationLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1898
|
+
...commonParams
|
|
1899
|
+
}).m(function(Command, cs, config, o) {
|
|
1900
|
+
return [
|
|
1901
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1902
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1903
|
+
];
|
|
1904
|
+
}).s("AmazonBedrockControlPlaneService", "DeleteModelInvocationLoggingConfiguration", {}).n("BedrockClient", "DeleteModelInvocationLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteModelInvocationLoggingConfigurationCommand).de(de_DeleteModelInvocationLoggingConfigurationCommand).build() {
|
|
1905
|
+
};
|
|
1906
|
+
__name(_DeleteModelInvocationLoggingConfigurationCommand, "DeleteModelInvocationLoggingConfigurationCommand");
|
|
1907
|
+
var DeleteModelInvocationLoggingConfigurationCommand = _DeleteModelInvocationLoggingConfigurationCommand;
|
|
1908
|
+
|
|
1909
|
+
// src/commands/DeleteProvisionedModelThroughputCommand.ts
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
var _DeleteProvisionedModelThroughputCommand = class _DeleteProvisionedModelThroughputCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1915
|
+
...commonParams
|
|
1916
|
+
}).m(function(Command, cs, config, o) {
|
|
1917
|
+
return [
|
|
1918
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1919
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1920
|
+
];
|
|
1921
|
+
}).s("AmazonBedrockControlPlaneService", "DeleteProvisionedModelThroughput", {}).n("BedrockClient", "DeleteProvisionedModelThroughputCommand").f(void 0, void 0).ser(se_DeleteProvisionedModelThroughputCommand).de(de_DeleteProvisionedModelThroughputCommand).build() {
|
|
1922
|
+
};
|
|
1923
|
+
__name(_DeleteProvisionedModelThroughputCommand, "DeleteProvisionedModelThroughputCommand");
|
|
1924
|
+
var DeleteProvisionedModelThroughputCommand = _DeleteProvisionedModelThroughputCommand;
|
|
1925
|
+
|
|
1926
|
+
// src/commands/GetCustomModelCommand.ts
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
var _GetCustomModelCommand = class _GetCustomModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1932
|
+
...commonParams
|
|
1933
|
+
}).m(function(Command, cs, config, o) {
|
|
1934
|
+
return [
|
|
1935
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1936
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1937
|
+
];
|
|
1938
|
+
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0, void 0).ser(se_GetCustomModelCommand).de(de_GetCustomModelCommand).build() {
|
|
1939
|
+
};
|
|
1940
|
+
__name(_GetCustomModelCommand, "GetCustomModelCommand");
|
|
1941
|
+
var GetCustomModelCommand = _GetCustomModelCommand;
|
|
1942
|
+
|
|
1943
|
+
// src/commands/GetFoundationModelCommand.ts
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
var _GetFoundationModelCommand = class _GetFoundationModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1949
|
+
...commonParams
|
|
1950
|
+
}).m(function(Command, cs, config, o) {
|
|
1951
|
+
return [
|
|
1952
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1953
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1954
|
+
];
|
|
1955
|
+
}).s("AmazonBedrockControlPlaneService", "GetFoundationModel", {}).n("BedrockClient", "GetFoundationModelCommand").f(void 0, void 0).ser(se_GetFoundationModelCommand).de(de_GetFoundationModelCommand).build() {
|
|
1956
|
+
};
|
|
1957
|
+
__name(_GetFoundationModelCommand, "GetFoundationModelCommand");
|
|
1958
|
+
var GetFoundationModelCommand = _GetFoundationModelCommand;
|
|
1959
|
+
|
|
1960
|
+
// src/commands/GetModelCustomizationJobCommand.ts
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
var _GetModelCustomizationJobCommand = class _GetModelCustomizationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1966
|
+
...commonParams
|
|
1967
|
+
}).m(function(Command, cs, config, o) {
|
|
1968
|
+
return [
|
|
1969
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1970
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1971
|
+
];
|
|
1972
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0, void 0).ser(se_GetModelCustomizationJobCommand).de(de_GetModelCustomizationJobCommand).build() {
|
|
1973
|
+
};
|
|
1974
|
+
__name(_GetModelCustomizationJobCommand, "GetModelCustomizationJobCommand");
|
|
1975
|
+
var GetModelCustomizationJobCommand = _GetModelCustomizationJobCommand;
|
|
1976
|
+
|
|
1977
|
+
// src/commands/GetModelInvocationLoggingConfigurationCommand.ts
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
var _GetModelInvocationLoggingConfigurationCommand = class _GetModelInvocationLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1983
|
+
...commonParams
|
|
1984
|
+
}).m(function(Command, cs, config, o) {
|
|
1985
|
+
return [
|
|
1986
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1987
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1988
|
+
];
|
|
1989
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelInvocationLoggingConfiguration", {}).n("BedrockClient", "GetModelInvocationLoggingConfigurationCommand").f(void 0, void 0).ser(se_GetModelInvocationLoggingConfigurationCommand).de(de_GetModelInvocationLoggingConfigurationCommand).build() {
|
|
1990
|
+
};
|
|
1991
|
+
__name(_GetModelInvocationLoggingConfigurationCommand, "GetModelInvocationLoggingConfigurationCommand");
|
|
1992
|
+
var GetModelInvocationLoggingConfigurationCommand = _GetModelInvocationLoggingConfigurationCommand;
|
|
1993
|
+
|
|
1994
|
+
// src/commands/GetProvisionedModelThroughputCommand.ts
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
var _GetProvisionedModelThroughputCommand = class _GetProvisionedModelThroughputCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2000
|
+
...commonParams
|
|
2001
|
+
}).m(function(Command, cs, config, o) {
|
|
2002
|
+
return [
|
|
2003
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2004
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2005
|
+
];
|
|
2006
|
+
}).s("AmazonBedrockControlPlaneService", "GetProvisionedModelThroughput", {}).n("BedrockClient", "GetProvisionedModelThroughputCommand").f(void 0, void 0).ser(se_GetProvisionedModelThroughputCommand).de(de_GetProvisionedModelThroughputCommand).build() {
|
|
2007
|
+
};
|
|
2008
|
+
__name(_GetProvisionedModelThroughputCommand, "GetProvisionedModelThroughputCommand");
|
|
2009
|
+
var GetProvisionedModelThroughputCommand = _GetProvisionedModelThroughputCommand;
|
|
2010
|
+
|
|
2011
|
+
// src/commands/ListCustomModelsCommand.ts
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
var _ListCustomModelsCommand = class _ListCustomModelsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2017
|
+
...commonParams
|
|
2018
|
+
}).m(function(Command, cs, config, o) {
|
|
2019
|
+
return [
|
|
2020
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2021
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2022
|
+
];
|
|
2023
|
+
}).s("AmazonBedrockControlPlaneService", "ListCustomModels", {}).n("BedrockClient", "ListCustomModelsCommand").f(void 0, void 0).ser(se_ListCustomModelsCommand).de(de_ListCustomModelsCommand).build() {
|
|
2024
|
+
};
|
|
2025
|
+
__name(_ListCustomModelsCommand, "ListCustomModelsCommand");
|
|
2026
|
+
var ListCustomModelsCommand = _ListCustomModelsCommand;
|
|
2027
|
+
|
|
2028
|
+
// src/commands/ListFoundationModelsCommand.ts
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
var _ListFoundationModelsCommand = class _ListFoundationModelsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2034
|
+
...commonParams
|
|
2035
|
+
}).m(function(Command, cs, config, o) {
|
|
2036
|
+
return [
|
|
2037
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2038
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2039
|
+
];
|
|
2040
|
+
}).s("AmazonBedrockControlPlaneService", "ListFoundationModels", {}).n("BedrockClient", "ListFoundationModelsCommand").f(void 0, void 0).ser(se_ListFoundationModelsCommand).de(de_ListFoundationModelsCommand).build() {
|
|
2041
|
+
};
|
|
2042
|
+
__name(_ListFoundationModelsCommand, "ListFoundationModelsCommand");
|
|
2043
|
+
var ListFoundationModelsCommand = _ListFoundationModelsCommand;
|
|
2044
|
+
|
|
2045
|
+
// src/commands/ListModelCustomizationJobsCommand.ts
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
var _ListModelCustomizationJobsCommand = class _ListModelCustomizationJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2051
|
+
...commonParams
|
|
2052
|
+
}).m(function(Command, cs, config, o) {
|
|
2053
|
+
return [
|
|
2054
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2055
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2056
|
+
];
|
|
2057
|
+
}).s("AmazonBedrockControlPlaneService", "ListModelCustomizationJobs", {}).n("BedrockClient", "ListModelCustomizationJobsCommand").f(void 0, void 0).ser(se_ListModelCustomizationJobsCommand).de(de_ListModelCustomizationJobsCommand).build() {
|
|
2058
|
+
};
|
|
2059
|
+
__name(_ListModelCustomizationJobsCommand, "ListModelCustomizationJobsCommand");
|
|
2060
|
+
var ListModelCustomizationJobsCommand = _ListModelCustomizationJobsCommand;
|
|
2061
|
+
|
|
2062
|
+
// src/commands/ListProvisionedModelThroughputsCommand.ts
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
var _ListProvisionedModelThroughputsCommand = class _ListProvisionedModelThroughputsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2068
|
+
...commonParams
|
|
2069
|
+
}).m(function(Command, cs, config, o) {
|
|
2070
|
+
return [
|
|
2071
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2072
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2073
|
+
];
|
|
2074
|
+
}).s("AmazonBedrockControlPlaneService", "ListProvisionedModelThroughputs", {}).n("BedrockClient", "ListProvisionedModelThroughputsCommand").f(void 0, void 0).ser(se_ListProvisionedModelThroughputsCommand).de(de_ListProvisionedModelThroughputsCommand).build() {
|
|
2075
|
+
};
|
|
2076
|
+
__name(_ListProvisionedModelThroughputsCommand, "ListProvisionedModelThroughputsCommand");
|
|
2077
|
+
var ListProvisionedModelThroughputsCommand = _ListProvisionedModelThroughputsCommand;
|
|
2078
|
+
|
|
2079
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2085
|
+
...commonParams
|
|
2086
|
+
}).m(function(Command, cs, config, o) {
|
|
2087
|
+
return [
|
|
2088
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2089
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2090
|
+
];
|
|
2091
|
+
}).s("AmazonBedrockControlPlaneService", "ListTagsForResource", {}).n("BedrockClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2092
|
+
};
|
|
2093
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2094
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2095
|
+
|
|
2096
|
+
// src/commands/PutModelInvocationLoggingConfigurationCommand.ts
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
var _PutModelInvocationLoggingConfigurationCommand = class _PutModelInvocationLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2102
|
+
...commonParams
|
|
2103
|
+
}).m(function(Command, cs, config, o) {
|
|
2104
|
+
return [
|
|
2105
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2106
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2107
|
+
];
|
|
2108
|
+
}).s("AmazonBedrockControlPlaneService", "PutModelInvocationLoggingConfiguration", {}).n("BedrockClient", "PutModelInvocationLoggingConfigurationCommand").f(void 0, void 0).ser(se_PutModelInvocationLoggingConfigurationCommand).de(de_PutModelInvocationLoggingConfigurationCommand).build() {
|
|
2109
|
+
};
|
|
2110
|
+
__name(_PutModelInvocationLoggingConfigurationCommand, "PutModelInvocationLoggingConfigurationCommand");
|
|
2111
|
+
var PutModelInvocationLoggingConfigurationCommand = _PutModelInvocationLoggingConfigurationCommand;
|
|
2112
|
+
|
|
2113
|
+
// src/commands/StopModelCustomizationJobCommand.ts
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
var _StopModelCustomizationJobCommand = class _StopModelCustomizationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2119
|
+
...commonParams
|
|
2120
|
+
}).m(function(Command, cs, config, o) {
|
|
2121
|
+
return [
|
|
2122
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2123
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2124
|
+
];
|
|
2125
|
+
}).s("AmazonBedrockControlPlaneService", "StopModelCustomizationJob", {}).n("BedrockClient", "StopModelCustomizationJobCommand").f(void 0, void 0).ser(se_StopModelCustomizationJobCommand).de(de_StopModelCustomizationJobCommand).build() {
|
|
2126
|
+
};
|
|
2127
|
+
__name(_StopModelCustomizationJobCommand, "StopModelCustomizationJobCommand");
|
|
2128
|
+
var StopModelCustomizationJobCommand = _StopModelCustomizationJobCommand;
|
|
2129
|
+
|
|
2130
|
+
// src/commands/TagResourceCommand.ts
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2136
|
+
...commonParams
|
|
2137
|
+
}).m(function(Command, cs, config, o) {
|
|
2138
|
+
return [
|
|
2139
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2140
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2141
|
+
];
|
|
2142
|
+
}).s("AmazonBedrockControlPlaneService", "TagResource", {}).n("BedrockClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2143
|
+
};
|
|
2144
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2145
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2146
|
+
|
|
2147
|
+
// src/commands/UntagResourceCommand.ts
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2153
|
+
...commonParams
|
|
2154
|
+
}).m(function(Command, cs, config, o) {
|
|
2155
|
+
return [
|
|
2156
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2157
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2158
|
+
];
|
|
2159
|
+
}).s("AmazonBedrockControlPlaneService", "UntagResource", {}).n("BedrockClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2160
|
+
};
|
|
2161
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2162
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2163
|
+
|
|
2164
|
+
// src/commands/UpdateProvisionedModelThroughputCommand.ts
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
var _UpdateProvisionedModelThroughputCommand = class _UpdateProvisionedModelThroughputCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2170
|
+
...commonParams
|
|
2171
|
+
}).m(function(Command, cs, config, o) {
|
|
2172
|
+
return [
|
|
2173
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2174
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2175
|
+
];
|
|
2176
|
+
}).s("AmazonBedrockControlPlaneService", "UpdateProvisionedModelThroughput", {}).n("BedrockClient", "UpdateProvisionedModelThroughputCommand").f(void 0, void 0).ser(se_UpdateProvisionedModelThroughputCommand).de(de_UpdateProvisionedModelThroughputCommand).build() {
|
|
2177
|
+
};
|
|
2178
|
+
__name(_UpdateProvisionedModelThroughputCommand, "UpdateProvisionedModelThroughputCommand");
|
|
2179
|
+
var UpdateProvisionedModelThroughputCommand = _UpdateProvisionedModelThroughputCommand;
|
|
2180
|
+
|
|
2181
|
+
// src/Bedrock.ts
|
|
2182
|
+
var commands = {
|
|
2183
|
+
CreateModelCustomizationJobCommand,
|
|
2184
|
+
CreateProvisionedModelThroughputCommand,
|
|
2185
|
+
DeleteCustomModelCommand,
|
|
2186
|
+
DeleteModelInvocationLoggingConfigurationCommand,
|
|
2187
|
+
DeleteProvisionedModelThroughputCommand,
|
|
2188
|
+
GetCustomModelCommand,
|
|
2189
|
+
GetFoundationModelCommand,
|
|
2190
|
+
GetModelCustomizationJobCommand,
|
|
2191
|
+
GetModelInvocationLoggingConfigurationCommand,
|
|
2192
|
+
GetProvisionedModelThroughputCommand,
|
|
2193
|
+
ListCustomModelsCommand,
|
|
2194
|
+
ListFoundationModelsCommand,
|
|
2195
|
+
ListModelCustomizationJobsCommand,
|
|
2196
|
+
ListProvisionedModelThroughputsCommand,
|
|
2197
|
+
ListTagsForResourceCommand,
|
|
2198
|
+
PutModelInvocationLoggingConfigurationCommand,
|
|
2199
|
+
StopModelCustomizationJobCommand,
|
|
2200
|
+
TagResourceCommand,
|
|
2201
|
+
UntagResourceCommand,
|
|
2202
|
+
UpdateProvisionedModelThroughputCommand
|
|
2203
|
+
};
|
|
2204
|
+
var _Bedrock = class _Bedrock extends BedrockClient {
|
|
2205
|
+
};
|
|
2206
|
+
__name(_Bedrock, "Bedrock");
|
|
2207
|
+
var Bedrock = _Bedrock;
|
|
2208
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Bedrock);
|
|
2209
|
+
|
|
2210
|
+
// src/pagination/ListCustomModelsPaginator.ts
|
|
2211
|
+
|
|
2212
|
+
var paginateListCustomModels = (0, import_core.createPaginator)(BedrockClient, ListCustomModelsCommand, "nextToken", "nextToken", "maxResults");
|
|
2213
|
+
|
|
2214
|
+
// src/pagination/ListModelCustomizationJobsPaginator.ts
|
|
2215
|
+
|
|
2216
|
+
var paginateListModelCustomizationJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCustomizationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
2217
|
+
|
|
2218
|
+
// src/pagination/ListProvisionedModelThroughputsPaginator.ts
|
|
2219
|
+
|
|
2220
|
+
var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(BedrockClient, ListProvisionedModelThroughputsCommand, "nextToken", "nextToken", "maxResults");
|
|
2221
|
+
|
|
2222
|
+
// src/index.ts
|
|
2223
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2224
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2225
|
+
0 && (module.exports = {
|
|
2226
|
+
AccessDeniedException,
|
|
2227
|
+
Bedrock,
|
|
2228
|
+
BedrockClient,
|
|
2229
|
+
BedrockServiceException,
|
|
2230
|
+
CommitmentDuration,
|
|
2231
|
+
ConflictException,
|
|
2232
|
+
CreateModelCustomizationJobCommand,
|
|
2233
|
+
CreateProvisionedModelThroughputCommand,
|
|
2234
|
+
CustomizationType,
|
|
2235
|
+
DeleteCustomModelCommand,
|
|
2236
|
+
DeleteModelInvocationLoggingConfigurationCommand,
|
|
2237
|
+
DeleteProvisionedModelThroughputCommand,
|
|
2238
|
+
FineTuningJobStatus,
|
|
2239
|
+
FoundationModelLifecycleStatus,
|
|
2240
|
+
GetCustomModelCommand,
|
|
2241
|
+
GetFoundationModelCommand,
|
|
2242
|
+
GetModelCustomizationJobCommand,
|
|
2243
|
+
GetModelInvocationLoggingConfigurationCommand,
|
|
2244
|
+
GetProvisionedModelThroughputCommand,
|
|
2245
|
+
InferenceType,
|
|
2246
|
+
InternalServerException,
|
|
2247
|
+
ListCustomModelsCommand,
|
|
2248
|
+
ListFoundationModelsCommand,
|
|
2249
|
+
ListModelCustomizationJobsCommand,
|
|
2250
|
+
ListProvisionedModelThroughputsCommand,
|
|
2251
|
+
ListTagsForResourceCommand,
|
|
2252
|
+
ModelCustomization,
|
|
2253
|
+
ModelCustomizationJobStatus,
|
|
2254
|
+
ModelModality,
|
|
2255
|
+
ProvisionedModelStatus,
|
|
2256
|
+
PutModelInvocationLoggingConfigurationCommand,
|
|
2257
|
+
ResourceNotFoundException,
|
|
2258
|
+
ServiceQuotaExceededException,
|
|
2259
|
+
SortByProvisionedModels,
|
|
2260
|
+
SortJobsBy,
|
|
2261
|
+
SortModelsBy,
|
|
2262
|
+
SortOrder,
|
|
2263
|
+
StopModelCustomizationJobCommand,
|
|
2264
|
+
TagResourceCommand,
|
|
2265
|
+
ThrottlingException,
|
|
2266
|
+
TooManyTagsException,
|
|
2267
|
+
UntagResourceCommand,
|
|
2268
|
+
UpdateProvisionedModelThroughputCommand,
|
|
2269
|
+
ValidationException,
|
|
2270
|
+
__Client,
|
|
2271
|
+
paginateListCustomModels,
|
|
2272
|
+
paginateListModelCustomizationJobs,
|
|
2273
|
+
paginateListProvisionedModelThroughputs
|
|
2274
|
+
});
|