@aws-sdk/client-bedrock 3.703.0 → 3.706.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist-cjs/index.js +717 -30
- package/dist-es/Bedrock.js +18 -0
- package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetPromptRouterCommand.js +23 -0
- package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
- package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
- package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +173 -20
- package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +317 -1
- package/dist-types/Bedrock.d.ts +65 -0
- package/dist-types/BedrockClient.d.ts +11 -2
- package/dist-types/commands/CreateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +1163 -139
- package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Bedrock.d.ts +161 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +363 -44
- package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -43,18 +43,24 @@ __export(src_exports, {
|
|
|
43
43
|
CreateGuardrailVersionRequestFilterSensitiveLog: () => CreateGuardrailVersionRequestFilterSensitiveLog,
|
|
44
44
|
CreateInferenceProfileCommand: () => CreateInferenceProfileCommand,
|
|
45
45
|
CreateInferenceProfileRequestFilterSensitiveLog: () => CreateInferenceProfileRequestFilterSensitiveLog,
|
|
46
|
+
CreateMarketplaceModelEndpointCommand: () => CreateMarketplaceModelEndpointCommand,
|
|
46
47
|
CreateModelCopyJobCommand: () => CreateModelCopyJobCommand,
|
|
47
48
|
CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
|
|
49
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog: () => CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
48
50
|
CreateModelImportJobCommand: () => CreateModelImportJobCommand,
|
|
49
51
|
CreateModelInvocationJobCommand: () => CreateModelInvocationJobCommand,
|
|
50
52
|
CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
|
|
53
|
+
CustomizationConfig: () => CustomizationConfig,
|
|
51
54
|
CustomizationType: () => CustomizationType,
|
|
52
55
|
DeleteCustomModelCommand: () => DeleteCustomModelCommand,
|
|
53
56
|
DeleteGuardrailCommand: () => DeleteGuardrailCommand,
|
|
54
57
|
DeleteImportedModelCommand: () => DeleteImportedModelCommand,
|
|
55
58
|
DeleteInferenceProfileCommand: () => DeleteInferenceProfileCommand,
|
|
59
|
+
DeleteMarketplaceModelEndpointCommand: () => DeleteMarketplaceModelEndpointCommand,
|
|
56
60
|
DeleteModelInvocationLoggingConfigurationCommand: () => DeleteModelInvocationLoggingConfigurationCommand,
|
|
57
61
|
DeleteProvisionedModelThroughputCommand: () => DeleteProvisionedModelThroughputCommand,
|
|
62
|
+
DeregisterMarketplaceModelEndpointCommand: () => DeregisterMarketplaceModelEndpointCommand,
|
|
63
|
+
EndpointConfig: () => EndpointConfig,
|
|
58
64
|
EvaluationBedrockModelFilterSensitiveLog: () => EvaluationBedrockModelFilterSensitiveLog,
|
|
59
65
|
EvaluationConfig: () => EvaluationConfig,
|
|
60
66
|
EvaluationConfigFilterSensitiveLog: () => EvaluationConfigFilterSensitiveLog,
|
|
@@ -77,6 +83,7 @@ __export(src_exports, {
|
|
|
77
83
|
FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
|
|
78
84
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
79
85
|
GetCustomModelCommand: () => GetCustomModelCommand,
|
|
86
|
+
GetCustomModelResponseFilterSensitiveLog: () => GetCustomModelResponseFilterSensitiveLog,
|
|
80
87
|
GetEvaluationJobCommand: () => GetEvaluationJobCommand,
|
|
81
88
|
GetEvaluationJobRequestFilterSensitiveLog: () => GetEvaluationJobRequestFilterSensitiveLog,
|
|
82
89
|
GetEvaluationJobResponseFilterSensitiveLog: () => GetEvaluationJobResponseFilterSensitiveLog,
|
|
@@ -86,17 +93,26 @@ __export(src_exports, {
|
|
|
86
93
|
GetImportedModelCommand: () => GetImportedModelCommand,
|
|
87
94
|
GetInferenceProfileCommand: () => GetInferenceProfileCommand,
|
|
88
95
|
GetInferenceProfileResponseFilterSensitiveLog: () => GetInferenceProfileResponseFilterSensitiveLog,
|
|
96
|
+
GetMarketplaceModelEndpointCommand: () => GetMarketplaceModelEndpointCommand,
|
|
89
97
|
GetModelCopyJobCommand: () => GetModelCopyJobCommand,
|
|
90
98
|
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
99
|
+
GetModelCustomizationJobResponseFilterSensitiveLog: () => GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
91
100
|
GetModelImportJobCommand: () => GetModelImportJobCommand,
|
|
92
101
|
GetModelInvocationJobCommand: () => GetModelInvocationJobCommand,
|
|
93
102
|
GetModelInvocationJobResponseFilterSensitiveLog: () => GetModelInvocationJobResponseFilterSensitiveLog,
|
|
94
103
|
GetModelInvocationLoggingConfigurationCommand: () => GetModelInvocationLoggingConfigurationCommand,
|
|
104
|
+
GetPromptRouterCommand: () => GetPromptRouterCommand,
|
|
105
|
+
GetPromptRouterResponseFilterSensitiveLog: () => GetPromptRouterResponseFilterSensitiveLog,
|
|
95
106
|
GetProvisionedModelThroughputCommand: () => GetProvisionedModelThroughputCommand,
|
|
107
|
+
GuardrailContentFilterConfigFilterSensitiveLog: () => GuardrailContentFilterConfigFilterSensitiveLog,
|
|
108
|
+
GuardrailContentFilterFilterSensitiveLog: () => GuardrailContentFilterFilterSensitiveLog,
|
|
96
109
|
GuardrailContentFilterType: () => GuardrailContentFilterType,
|
|
110
|
+
GuardrailContentPolicyConfigFilterSensitiveLog: () => GuardrailContentPolicyConfigFilterSensitiveLog,
|
|
111
|
+
GuardrailContentPolicyFilterSensitiveLog: () => GuardrailContentPolicyFilterSensitiveLog,
|
|
97
112
|
GuardrailContextualGroundingFilterType: () => GuardrailContextualGroundingFilterType,
|
|
98
113
|
GuardrailFilterStrength: () => GuardrailFilterStrength,
|
|
99
114
|
GuardrailManagedWordsType: () => GuardrailManagedWordsType,
|
|
115
|
+
GuardrailModality: () => GuardrailModality,
|
|
100
116
|
GuardrailPiiEntityType: () => GuardrailPiiEntityType,
|
|
101
117
|
GuardrailSensitiveInformationAction: () => GuardrailSensitiveInformationAction,
|
|
102
118
|
GuardrailStatus: () => GuardrailStatus,
|
|
@@ -115,6 +131,8 @@ __export(src_exports, {
|
|
|
115
131
|
InferenceProfileType: () => InferenceProfileType,
|
|
116
132
|
InferenceType: () => InferenceType,
|
|
117
133
|
InternalServerException: () => InternalServerException,
|
|
134
|
+
InvocationLogSource: () => InvocationLogSource,
|
|
135
|
+
InvocationLogsConfigFilterSensitiveLog: () => InvocationLogsConfigFilterSensitiveLog,
|
|
118
136
|
KnowledgeBaseConfig: () => KnowledgeBaseConfig,
|
|
119
137
|
KnowledgeBaseConfigFilterSensitiveLog: () => KnowledgeBaseConfigFilterSensitiveLog,
|
|
120
138
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
@@ -128,11 +146,14 @@ __export(src_exports, {
|
|
|
128
146
|
ListImportedModelsCommand: () => ListImportedModelsCommand,
|
|
129
147
|
ListInferenceProfilesCommand: () => ListInferenceProfilesCommand,
|
|
130
148
|
ListInferenceProfilesResponseFilterSensitiveLog: () => ListInferenceProfilesResponseFilterSensitiveLog,
|
|
149
|
+
ListMarketplaceModelEndpointsCommand: () => ListMarketplaceModelEndpointsCommand,
|
|
131
150
|
ListModelCopyJobsCommand: () => ListModelCopyJobsCommand,
|
|
132
151
|
ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
|
|
133
152
|
ListModelImportJobsCommand: () => ListModelImportJobsCommand,
|
|
134
153
|
ListModelInvocationJobsCommand: () => ListModelInvocationJobsCommand,
|
|
135
154
|
ListModelInvocationJobsResponseFilterSensitiveLog: () => ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
155
|
+
ListPromptRoutersCommand: () => ListPromptRoutersCommand,
|
|
156
|
+
ListPromptRoutersResponseFilterSensitiveLog: () => ListPromptRoutersResponseFilterSensitiveLog,
|
|
136
157
|
ListProvisionedModelThroughputsCommand: () => ListProvisionedModelThroughputsCommand,
|
|
137
158
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
138
159
|
ModelCopyJobStatus: () => ModelCopyJobStatus,
|
|
@@ -145,12 +166,19 @@ __export(src_exports, {
|
|
|
145
166
|
ModelInvocationJobStatus: () => ModelInvocationJobStatus,
|
|
146
167
|
ModelInvocationJobSummaryFilterSensitiveLog: () => ModelInvocationJobSummaryFilterSensitiveLog,
|
|
147
168
|
ModelModality: () => ModelModality,
|
|
169
|
+
PromptRouterStatus: () => PromptRouterStatus,
|
|
170
|
+
PromptRouterSummaryFilterSensitiveLog: () => PromptRouterSummaryFilterSensitiveLog,
|
|
171
|
+
PromptRouterType: () => PromptRouterType,
|
|
148
172
|
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
149
173
|
ProvisionedModelStatus: () => ProvisionedModelStatus,
|
|
150
174
|
PutModelInvocationLoggingConfigurationCommand: () => PutModelInvocationLoggingConfigurationCommand,
|
|
151
175
|
QueryTransformationType: () => QueryTransformationType,
|
|
152
176
|
RAGConfig: () => RAGConfig,
|
|
153
177
|
RAGConfigFilterSensitiveLog: () => RAGConfigFilterSensitiveLog,
|
|
178
|
+
RegisterMarketplaceModelEndpointCommand: () => RegisterMarketplaceModelEndpointCommand,
|
|
179
|
+
RequestMetadataBaseFiltersFilterSensitiveLog: () => RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
180
|
+
RequestMetadataFilters: () => RequestMetadataFilters,
|
|
181
|
+
RequestMetadataFiltersFilterSensitiveLog: () => RequestMetadataFiltersFilterSensitiveLog,
|
|
154
182
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
155
183
|
RetrievalFilter: () => RetrievalFilter,
|
|
156
184
|
RetrievalFilterFilterSensitiveLog: () => RetrievalFilterFilterSensitiveLog,
|
|
@@ -160,10 +188,12 @@ __export(src_exports, {
|
|
|
160
188
|
S3InputFormat: () => S3InputFormat,
|
|
161
189
|
SearchType: () => SearchType,
|
|
162
190
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
191
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
163
192
|
SortByProvisionedModels: () => SortByProvisionedModels,
|
|
164
193
|
SortJobsBy: () => SortJobsBy,
|
|
165
194
|
SortModelsBy: () => SortModelsBy,
|
|
166
195
|
SortOrder: () => SortOrder,
|
|
196
|
+
Status: () => Status,
|
|
167
197
|
StopEvaluationJobCommand: () => StopEvaluationJobCommand,
|
|
168
198
|
StopEvaluationJobRequestFilterSensitiveLog: () => StopEvaluationJobRequestFilterSensitiveLog,
|
|
169
199
|
StopModelCustomizationJobCommand: () => StopModelCustomizationJobCommand,
|
|
@@ -171,9 +201,11 @@ __export(src_exports, {
|
|
|
171
201
|
TagResourceCommand: () => TagResourceCommand,
|
|
172
202
|
ThrottlingException: () => ThrottlingException,
|
|
173
203
|
TooManyTagsException: () => TooManyTagsException,
|
|
204
|
+
TrainingDataConfigFilterSensitiveLog: () => TrainingDataConfigFilterSensitiveLog,
|
|
174
205
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
175
206
|
UpdateGuardrailCommand: () => UpdateGuardrailCommand,
|
|
176
207
|
UpdateGuardrailRequestFilterSensitiveLog: () => UpdateGuardrailRequestFilterSensitiveLog,
|
|
208
|
+
UpdateMarketplaceModelEndpointCommand: () => UpdateMarketplaceModelEndpointCommand,
|
|
177
209
|
UpdateProvisionedModelThroughputCommand: () => UpdateProvisionedModelThroughputCommand,
|
|
178
210
|
ValidationException: () => ValidationException,
|
|
179
211
|
__Client: () => import_smithy_client.Client,
|
|
@@ -182,10 +214,12 @@ __export(src_exports, {
|
|
|
182
214
|
paginateListGuardrails: () => paginateListGuardrails,
|
|
183
215
|
paginateListImportedModels: () => paginateListImportedModels,
|
|
184
216
|
paginateListInferenceProfiles: () => paginateListInferenceProfiles,
|
|
217
|
+
paginateListMarketplaceModelEndpoints: () => paginateListMarketplaceModelEndpoints,
|
|
185
218
|
paginateListModelCopyJobs: () => paginateListModelCopyJobs,
|
|
186
219
|
paginateListModelCustomizationJobs: () => paginateListModelCustomizationJobs,
|
|
187
220
|
paginateListModelImportJobs: () => paginateListModelImportJobs,
|
|
188
221
|
paginateListModelInvocationJobs: () => paginateListModelInvocationJobs,
|
|
222
|
+
paginateListPromptRouters: () => paginateListPromptRouters,
|
|
189
223
|
paginateListProvisionedModelThroughputs: () => paginateListProvisionedModelThroughputs
|
|
190
224
|
});
|
|
191
225
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -370,14 +404,6 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockService
|
|
|
370
404
|
};
|
|
371
405
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
372
406
|
var AccessDeniedException = _AccessDeniedException;
|
|
373
|
-
var EvaluationJobStatus = {
|
|
374
|
-
COMPLETED: "Completed",
|
|
375
|
-
DELETING: "Deleting",
|
|
376
|
-
FAILED: "Failed",
|
|
377
|
-
IN_PROGRESS: "InProgress",
|
|
378
|
-
STOPPED: "Stopped",
|
|
379
|
-
STOPPING: "Stopping"
|
|
380
|
-
};
|
|
381
407
|
var _ConflictException = class _ConflictException extends BedrockServiceException {
|
|
382
408
|
/**
|
|
383
409
|
* @internal
|
|
@@ -395,6 +421,18 @@ var _ConflictException = class _ConflictException extends BedrockServiceExceptio
|
|
|
395
421
|
};
|
|
396
422
|
__name(_ConflictException, "ConflictException");
|
|
397
423
|
var ConflictException = _ConflictException;
|
|
424
|
+
var EndpointConfig;
|
|
425
|
+
((EndpointConfig3) => {
|
|
426
|
+
EndpointConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
427
|
+
if (value.sageMaker !== void 0)
|
|
428
|
+
return visitor.sageMaker(value.sageMaker);
|
|
429
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
430
|
+
}, "visit");
|
|
431
|
+
})(EndpointConfig || (EndpointConfig = {}));
|
|
432
|
+
var Status = {
|
|
433
|
+
INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT",
|
|
434
|
+
REGISTERED: "REGISTERED"
|
|
435
|
+
};
|
|
398
436
|
var _InternalServerException = class _InternalServerException extends BedrockServiceException {
|
|
399
437
|
/**
|
|
400
438
|
* @internal
|
|
@@ -429,6 +467,23 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Bedroc
|
|
|
429
467
|
};
|
|
430
468
|
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
431
469
|
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
470
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
|
|
471
|
+
/**
|
|
472
|
+
* @internal
|
|
473
|
+
*/
|
|
474
|
+
constructor(opts) {
|
|
475
|
+
super({
|
|
476
|
+
name: "ServiceQuotaExceededException",
|
|
477
|
+
$fault: "client",
|
|
478
|
+
...opts
|
|
479
|
+
});
|
|
480
|
+
this.name = "ServiceQuotaExceededException";
|
|
481
|
+
this.$fault = "client";
|
|
482
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
486
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
432
487
|
var _ThrottlingException = class _ThrottlingException extends BedrockServiceException {
|
|
433
488
|
/**
|
|
434
489
|
* @internal
|
|
@@ -463,6 +518,31 @@ var _ValidationException = class _ValidationException extends BedrockServiceExce
|
|
|
463
518
|
};
|
|
464
519
|
__name(_ValidationException, "ValidationException");
|
|
465
520
|
var ValidationException = _ValidationException;
|
|
521
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends BedrockServiceException {
|
|
522
|
+
/**
|
|
523
|
+
* @internal
|
|
524
|
+
*/
|
|
525
|
+
constructor(opts) {
|
|
526
|
+
super({
|
|
527
|
+
name: "ServiceUnavailableException",
|
|
528
|
+
$fault: "server",
|
|
529
|
+
...opts
|
|
530
|
+
});
|
|
531
|
+
this.name = "ServiceUnavailableException";
|
|
532
|
+
this.$fault = "server";
|
|
533
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
537
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
538
|
+
var EvaluationJobStatus = {
|
|
539
|
+
COMPLETED: "Completed",
|
|
540
|
+
DELETING: "Deleting",
|
|
541
|
+
FAILED: "Failed",
|
|
542
|
+
IN_PROGRESS: "InProgress",
|
|
543
|
+
STOPPED: "Stopped",
|
|
544
|
+
STOPPING: "Stopping"
|
|
545
|
+
};
|
|
466
546
|
var ApplicationType = {
|
|
467
547
|
MODEL_EVALUATION: "ModelEvaluation",
|
|
468
548
|
RAG_EVALUATION: "RagEvaluation"
|
|
@@ -523,23 +603,6 @@ var RetrieveAndGenerateType = {
|
|
|
523
603
|
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
524
604
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
525
605
|
};
|
|
526
|
-
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
|
|
527
|
-
/**
|
|
528
|
-
* @internal
|
|
529
|
-
*/
|
|
530
|
-
constructor(opts) {
|
|
531
|
-
super({
|
|
532
|
-
name: "ServiceQuotaExceededException",
|
|
533
|
-
$fault: "client",
|
|
534
|
-
...opts
|
|
535
|
-
});
|
|
536
|
-
this.name = "ServiceQuotaExceededException";
|
|
537
|
-
this.$fault = "client";
|
|
538
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
542
|
-
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
543
606
|
var EvaluationJobType = {
|
|
544
607
|
AUTOMATED: "Automated",
|
|
545
608
|
HUMAN: "Human"
|
|
@@ -551,6 +614,10 @@ var SortOrder = {
|
|
|
551
614
|
ASCENDING: "Ascending",
|
|
552
615
|
DESCENDING: "Descending"
|
|
553
616
|
};
|
|
617
|
+
var GuardrailModality = {
|
|
618
|
+
IMAGE: "IMAGE",
|
|
619
|
+
TEXT: "TEXT"
|
|
620
|
+
};
|
|
554
621
|
var GuardrailFilterStrength = {
|
|
555
622
|
HIGH: "HIGH",
|
|
556
623
|
LOW: "LOW",
|
|
@@ -705,12 +772,44 @@ var ModelInvocationJobStatus = {
|
|
|
705
772
|
SUBMITTED: "Submitted",
|
|
706
773
|
VALIDATING: "Validating"
|
|
707
774
|
};
|
|
775
|
+
var CustomizationConfig;
|
|
776
|
+
((CustomizationConfig3) => {
|
|
777
|
+
CustomizationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
778
|
+
if (value.distillationConfig !== void 0)
|
|
779
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
780
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
781
|
+
}, "visit");
|
|
782
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
708
783
|
var CustomizationType = {
|
|
709
784
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
785
|
+
DISTILLATION: "DISTILLATION",
|
|
710
786
|
FINE_TUNING: "FINE_TUNING"
|
|
711
787
|
};
|
|
788
|
+
var InvocationLogSource;
|
|
789
|
+
((InvocationLogSource3) => {
|
|
790
|
+
InvocationLogSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
791
|
+
if (value.s3Uri !== void 0)
|
|
792
|
+
return visitor.s3Uri(value.s3Uri);
|
|
793
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
794
|
+
}, "visit");
|
|
795
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
796
|
+
var RequestMetadataFilters;
|
|
797
|
+
((RequestMetadataFilters3) => {
|
|
798
|
+
RequestMetadataFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
799
|
+
if (value.equals !== void 0)
|
|
800
|
+
return visitor.equals(value.equals);
|
|
801
|
+
if (value.notEquals !== void 0)
|
|
802
|
+
return visitor.notEquals(value.notEquals);
|
|
803
|
+
if (value.andAll !== void 0)
|
|
804
|
+
return visitor.andAll(value.andAll);
|
|
805
|
+
if (value.orAll !== void 0)
|
|
806
|
+
return visitor.orAll(value.orAll);
|
|
807
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
808
|
+
}, "visit");
|
|
809
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
712
810
|
var ModelCustomization = {
|
|
713
811
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
812
|
+
DISTILLATION: "DISTILLATION",
|
|
714
813
|
FINE_TUNING: "FINE_TUNING"
|
|
715
814
|
};
|
|
716
815
|
var InferenceType = {
|
|
@@ -726,6 +825,13 @@ var FoundationModelLifecycleStatus = {
|
|
|
726
825
|
ACTIVE: "ACTIVE",
|
|
727
826
|
LEGACY: "LEGACY"
|
|
728
827
|
};
|
|
828
|
+
var PromptRouterStatus = {
|
|
829
|
+
AVAILABLE: "AVAILABLE"
|
|
830
|
+
};
|
|
831
|
+
var PromptRouterType = {
|
|
832
|
+
CUSTOM: "custom",
|
|
833
|
+
DEFAULT: "default"
|
|
834
|
+
};
|
|
729
835
|
var CommitmentDuration = {
|
|
730
836
|
ONE_MONTH: "OneMonth",
|
|
731
837
|
SIX_MONTHS: "SixMonths"
|
|
@@ -924,6 +1030,17 @@ var StopEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
924
1030
|
...obj,
|
|
925
1031
|
...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
|
|
926
1032
|
}), "StopEvaluationJobRequestFilterSensitiveLog");
|
|
1033
|
+
var GuardrailContentFilterConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1034
|
+
...obj,
|
|
1035
|
+
...obj.inputModalities && { inputModalities: import_smithy_client.SENSITIVE_STRING },
|
|
1036
|
+
...obj.outputModalities && { outputModalities: import_smithy_client.SENSITIVE_STRING }
|
|
1037
|
+
}), "GuardrailContentFilterConfigFilterSensitiveLog");
|
|
1038
|
+
var GuardrailContentPolicyConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1039
|
+
...obj,
|
|
1040
|
+
...obj.filtersConfig && {
|
|
1041
|
+
filtersConfig: obj.filtersConfig.map((item) => GuardrailContentFilterConfigFilterSensitiveLog(item))
|
|
1042
|
+
}
|
|
1043
|
+
}), "GuardrailContentPolicyConfigFilterSensitiveLog");
|
|
927
1044
|
var GuardrailTopicConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
928
1045
|
...obj,
|
|
929
1046
|
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -943,6 +1060,9 @@ var CreateGuardrailRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
|
|
|
943
1060
|
...obj.topicPolicyConfig && {
|
|
944
1061
|
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig)
|
|
945
1062
|
},
|
|
1063
|
+
...obj.contentPolicyConfig && {
|
|
1064
|
+
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig)
|
|
1065
|
+
},
|
|
946
1066
|
...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
|
|
947
1067
|
...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
|
|
948
1068
|
}), "CreateGuardrailRequestFilterSensitiveLog");
|
|
@@ -950,6 +1070,15 @@ var CreateGuardrailVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name((ob
|
|
|
950
1070
|
...obj,
|
|
951
1071
|
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
952
1072
|
}), "CreateGuardrailVersionRequestFilterSensitiveLog");
|
|
1073
|
+
var GuardrailContentFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1074
|
+
...obj,
|
|
1075
|
+
...obj.inputModalities && { inputModalities: import_smithy_client.SENSITIVE_STRING },
|
|
1076
|
+
...obj.outputModalities && { outputModalities: import_smithy_client.SENSITIVE_STRING }
|
|
1077
|
+
}), "GuardrailContentFilterFilterSensitiveLog");
|
|
1078
|
+
var GuardrailContentPolicyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1079
|
+
...obj,
|
|
1080
|
+
...obj.filters && { filters: obj.filters.map((item) => GuardrailContentFilterFilterSensitiveLog(item)) }
|
|
1081
|
+
}), "GuardrailContentPolicyFilterSensitiveLog");
|
|
953
1082
|
var GuardrailTopicFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
954
1083
|
...obj,
|
|
955
1084
|
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -965,6 +1094,7 @@ var GetGuardrailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
965
1094
|
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
966
1095
|
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
967
1096
|
...obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) },
|
|
1097
|
+
...obj.contentPolicy && { contentPolicy: GuardrailContentPolicyFilterSensitiveLog(obj.contentPolicy) },
|
|
968
1098
|
...obj.statusReasons && { statusReasons: import_smithy_client.SENSITIVE_STRING },
|
|
969
1099
|
...obj.failureRecommendations && { failureRecommendations: import_smithy_client.SENSITIVE_STRING },
|
|
970
1100
|
...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -986,6 +1116,9 @@ var UpdateGuardrailRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
|
|
|
986
1116
|
...obj.topicPolicyConfig && {
|
|
987
1117
|
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig)
|
|
988
1118
|
},
|
|
1119
|
+
...obj.contentPolicyConfig && {
|
|
1120
|
+
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig)
|
|
1121
|
+
},
|
|
989
1122
|
...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
|
|
990
1123
|
...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
|
|
991
1124
|
}), "UpdateGuardrailRequestFilterSensitiveLog");
|
|
@@ -1028,6 +1161,65 @@ var ListModelInvocationJobsResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
1028
1161
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item))
|
|
1029
1162
|
}
|
|
1030
1163
|
}), "ListModelInvocationJobsResponseFilterSensitiveLog");
|
|
1164
|
+
var RequestMetadataBaseFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1165
|
+
...obj,
|
|
1166
|
+
...obj.equals && { equals: import_smithy_client.SENSITIVE_STRING },
|
|
1167
|
+
...obj.notEquals && { notEquals: import_smithy_client.SENSITIVE_STRING }
|
|
1168
|
+
}), "RequestMetadataBaseFiltersFilterSensitiveLog");
|
|
1169
|
+
var RequestMetadataFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1170
|
+
if (obj.equals !== void 0)
|
|
1171
|
+
return { equals: import_smithy_client.SENSITIVE_STRING };
|
|
1172
|
+
if (obj.notEquals !== void 0)
|
|
1173
|
+
return { notEquals: import_smithy_client.SENSITIVE_STRING };
|
|
1174
|
+
if (obj.andAll !== void 0)
|
|
1175
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1176
|
+
if (obj.orAll !== void 0)
|
|
1177
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1178
|
+
if (obj.$unknown !== void 0)
|
|
1179
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1180
|
+
}, "RequestMetadataFiltersFilterSensitiveLog");
|
|
1181
|
+
var InvocationLogsConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1182
|
+
...obj,
|
|
1183
|
+
...obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource },
|
|
1184
|
+
...obj.requestMetadataFilters && {
|
|
1185
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters)
|
|
1186
|
+
}
|
|
1187
|
+
}), "InvocationLogsConfigFilterSensitiveLog");
|
|
1188
|
+
var TrainingDataConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1189
|
+
...obj,
|
|
1190
|
+
...obj.invocationLogsConfig && {
|
|
1191
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig)
|
|
1192
|
+
}
|
|
1193
|
+
}), "TrainingDataConfigFilterSensitiveLog");
|
|
1194
|
+
var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1195
|
+
...obj,
|
|
1196
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1197
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1198
|
+
}), "GetCustomModelResponseFilterSensitiveLog");
|
|
1199
|
+
var GetPromptRouterResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1200
|
+
...obj,
|
|
1201
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
1202
|
+
}), "GetPromptRouterResponseFilterSensitiveLog");
|
|
1203
|
+
var PromptRouterSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1204
|
+
...obj,
|
|
1205
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
1206
|
+
}), "PromptRouterSummaryFilterSensitiveLog");
|
|
1207
|
+
var ListPromptRoutersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1208
|
+
...obj,
|
|
1209
|
+
...obj.promptRouterSummaries && {
|
|
1210
|
+
promptRouterSummaries: obj.promptRouterSummaries.map((item) => PromptRouterSummaryFilterSensitiveLog(item))
|
|
1211
|
+
}
|
|
1212
|
+
}), "ListPromptRoutersResponseFilterSensitiveLog");
|
|
1213
|
+
var CreateModelCustomizationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1214
|
+
...obj,
|
|
1215
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1216
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1217
|
+
}), "CreateModelCustomizationJobRequestFilterSensitiveLog");
|
|
1218
|
+
var GetModelCustomizationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1219
|
+
...obj,
|
|
1220
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1221
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1222
|
+
}), "GetModelCustomizationJobResponseFilterSensitiveLog");
|
|
1031
1223
|
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1032
1224
|
if (obj.equals !== void 0)
|
|
1033
1225
|
return { equals: obj.equals };
|
|
@@ -1241,6 +1433,26 @@ var se_CreateInferenceProfileCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
1241
1433
|
b.m("POST").h(headers).b(body);
|
|
1242
1434
|
return b.build();
|
|
1243
1435
|
}, "se_CreateInferenceProfileCommand");
|
|
1436
|
+
var se_CreateMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1437
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1438
|
+
const headers = {
|
|
1439
|
+
"content-type": "application/json"
|
|
1440
|
+
};
|
|
1441
|
+
b.bp("/marketplace-model/endpoints");
|
|
1442
|
+
let body;
|
|
1443
|
+
body = JSON.stringify(
|
|
1444
|
+
(0, import_smithy_client.take)(input, {
|
|
1445
|
+
acceptEula: [],
|
|
1446
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1447
|
+
endpointConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1448
|
+
endpointName: [],
|
|
1449
|
+
modelSourceIdentifier: [],
|
|
1450
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1451
|
+
})
|
|
1452
|
+
);
|
|
1453
|
+
b.m("POST").h(headers).b(body);
|
|
1454
|
+
return b.build();
|
|
1455
|
+
}, "se_CreateMarketplaceModelEndpointCommand");
|
|
1244
1456
|
var se_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1245
1457
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1246
1458
|
const headers = {
|
|
@@ -1274,6 +1486,7 @@ var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1274
1486
|
customModelKmsKeyId: [],
|
|
1275
1487
|
customModelName: [],
|
|
1276
1488
|
customModelTags: (_) => (0, import_smithy_client._json)(_),
|
|
1489
|
+
customizationConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1277
1490
|
customizationType: [],
|
|
1278
1491
|
hyperParameters: (_) => (0, import_smithy_client._json)(_),
|
|
1279
1492
|
jobName: [],
|
|
@@ -1393,6 +1606,15 @@ var se_DeleteInferenceProfileCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
1393
1606
|
b.m("DELETE").h(headers).b(body);
|
|
1394
1607
|
return b.build();
|
|
1395
1608
|
}, "se_DeleteInferenceProfileCommand");
|
|
1609
|
+
var se_DeleteMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1610
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1611
|
+
const headers = {};
|
|
1612
|
+
b.bp("/marketplace-model/endpoints/{endpointArn}");
|
|
1613
|
+
b.p("endpointArn", () => input.endpointArn, "{endpointArn}", false);
|
|
1614
|
+
let body;
|
|
1615
|
+
b.m("DELETE").h(headers).b(body);
|
|
1616
|
+
return b.build();
|
|
1617
|
+
}, "se_DeleteMarketplaceModelEndpointCommand");
|
|
1396
1618
|
var se_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1397
1619
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1398
1620
|
const headers = {};
|
|
@@ -1410,6 +1632,15 @@ var se_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (i
|
|
|
1410
1632
|
b.m("DELETE").h(headers).b(body);
|
|
1411
1633
|
return b.build();
|
|
1412
1634
|
}, "se_DeleteProvisionedModelThroughputCommand");
|
|
1635
|
+
var se_DeregisterMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1636
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1637
|
+
const headers = {};
|
|
1638
|
+
b.bp("/marketplace-model/endpoints/{endpointArn}/registration");
|
|
1639
|
+
b.p("endpointArn", () => input.endpointArn, "{endpointArn}", false);
|
|
1640
|
+
let body;
|
|
1641
|
+
b.m("DELETE").h(headers).b(body);
|
|
1642
|
+
return b.build();
|
|
1643
|
+
}, "se_DeregisterMarketplaceModelEndpointCommand");
|
|
1413
1644
|
var se_GetCustomModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1414
1645
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1415
1646
|
const headers = {};
|
|
@@ -1467,6 +1698,15 @@ var se_GetInferenceProfileCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1467
1698
|
b.m("GET").h(headers).b(body);
|
|
1468
1699
|
return b.build();
|
|
1469
1700
|
}, "se_GetInferenceProfileCommand");
|
|
1701
|
+
var se_GetMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1702
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1703
|
+
const headers = {};
|
|
1704
|
+
b.bp("/marketplace-model/endpoints/{endpointArn}");
|
|
1705
|
+
b.p("endpointArn", () => input.endpointArn, "{endpointArn}", false);
|
|
1706
|
+
let body;
|
|
1707
|
+
b.m("GET").h(headers).b(body);
|
|
1708
|
+
return b.build();
|
|
1709
|
+
}, "se_GetMarketplaceModelEndpointCommand");
|
|
1470
1710
|
var se_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1471
1711
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1472
1712
|
const headers = {};
|
|
@@ -1511,6 +1751,15 @@ var se_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
1511
1751
|
b.m("GET").h(headers).b(body);
|
|
1512
1752
|
return b.build();
|
|
1513
1753
|
}, "se_GetModelInvocationLoggingConfigurationCommand");
|
|
1754
|
+
var se_GetPromptRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1755
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1756
|
+
const headers = {};
|
|
1757
|
+
b.bp("/prompt-routers/{promptRouterArn}");
|
|
1758
|
+
b.p("promptRouterArn", () => input.promptRouterArn, "{promptRouterArn}", false);
|
|
1759
|
+
let body;
|
|
1760
|
+
b.m("GET").h(headers).b(body);
|
|
1761
|
+
return b.build();
|
|
1762
|
+
}, "se_GetPromptRouterCommand");
|
|
1514
1763
|
var se_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1515
1764
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1516
1765
|
const headers = {};
|
|
@@ -1616,6 +1865,19 @@ var se_ListInferenceProfilesCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
1616
1865
|
b.m("GET").h(headers).q(query).b(body);
|
|
1617
1866
|
return b.build();
|
|
1618
1867
|
}, "se_ListInferenceProfilesCommand");
|
|
1868
|
+
var se_ListMarketplaceModelEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1869
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1870
|
+
const headers = {};
|
|
1871
|
+
b.bp("/marketplace-model/endpoints");
|
|
1872
|
+
const query = (0, import_smithy_client.map)({
|
|
1873
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1874
|
+
[_nT]: [, input[_nT]],
|
|
1875
|
+
[_mSI]: [, input[_mSE]]
|
|
1876
|
+
});
|
|
1877
|
+
let body;
|
|
1878
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1879
|
+
return b.build();
|
|
1880
|
+
}, "se_ListMarketplaceModelEndpointsCommand");
|
|
1619
1881
|
var se_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1620
1882
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1621
1883
|
const headers = {};
|
|
@@ -1690,6 +1952,18 @@ var se_ListModelInvocationJobsCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
1690
1952
|
b.m("GET").h(headers).q(query).b(body);
|
|
1691
1953
|
return b.build();
|
|
1692
1954
|
}, "se_ListModelInvocationJobsCommand");
|
|
1955
|
+
var se_ListPromptRoutersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1956
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1957
|
+
const headers = {};
|
|
1958
|
+
b.bp("/prompt-routers");
|
|
1959
|
+
const query = (0, import_smithy_client.map)({
|
|
1960
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1961
|
+
[_nT]: [, input[_nT]]
|
|
1962
|
+
});
|
|
1963
|
+
let body;
|
|
1964
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1965
|
+
return b.build();
|
|
1966
|
+
}, "se_ListPromptRoutersCommand");
|
|
1693
1967
|
var se_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1694
1968
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1695
1969
|
const headers = {};
|
|
@@ -1739,6 +2013,22 @@ var se_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
1739
2013
|
b.m("PUT").h(headers).b(body);
|
|
1740
2014
|
return b.build();
|
|
1741
2015
|
}, "se_PutModelInvocationLoggingConfigurationCommand");
|
|
2016
|
+
var se_RegisterMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2017
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2018
|
+
const headers = {
|
|
2019
|
+
"content-type": "application/json"
|
|
2020
|
+
};
|
|
2021
|
+
b.bp("/marketplace-model/endpoints/{endpointIdentifier}/registration");
|
|
2022
|
+
b.p("endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
|
|
2023
|
+
let body;
|
|
2024
|
+
body = JSON.stringify(
|
|
2025
|
+
(0, import_smithy_client.take)(input, {
|
|
2026
|
+
modelSourceIdentifier: []
|
|
2027
|
+
})
|
|
2028
|
+
);
|
|
2029
|
+
b.m("POST").h(headers).b(body);
|
|
2030
|
+
return b.build();
|
|
2031
|
+
}, "se_RegisterMarketplaceModelEndpointCommand");
|
|
1742
2032
|
var se_StopEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1743
2033
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1744
2034
|
const headers = {};
|
|
@@ -1823,6 +2113,23 @@ var se_UpdateGuardrailCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1823
2113
|
b.m("PUT").h(headers).b(body);
|
|
1824
2114
|
return b.build();
|
|
1825
2115
|
}, "se_UpdateGuardrailCommand");
|
|
2116
|
+
var se_UpdateMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2117
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2118
|
+
const headers = {
|
|
2119
|
+
"content-type": "application/json"
|
|
2120
|
+
};
|
|
2121
|
+
b.bp("/marketplace-model/endpoints/{endpointArn}");
|
|
2122
|
+
b.p("endpointArn", () => input.endpointArn, "{endpointArn}", false);
|
|
2123
|
+
let body;
|
|
2124
|
+
body = JSON.stringify(
|
|
2125
|
+
(0, import_smithy_client.take)(input, {
|
|
2126
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2127
|
+
endpointConfig: (_) => (0, import_smithy_client._json)(_)
|
|
2128
|
+
})
|
|
2129
|
+
);
|
|
2130
|
+
b.m("PATCH").h(headers).b(body);
|
|
2131
|
+
return b.build();
|
|
2132
|
+
}, "se_UpdateMarketplaceModelEndpointCommand");
|
|
1826
2133
|
var se_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1827
2134
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1828
2135
|
const headers = {
|
|
@@ -1916,6 +2223,20 @@ var de_CreateInferenceProfileCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1916
2223
|
Object.assign(contents, doc);
|
|
1917
2224
|
return contents;
|
|
1918
2225
|
}, "de_CreateInferenceProfileCommand");
|
|
2226
|
+
var de_CreateMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
|
+
return de_CommandError(output, context);
|
|
2229
|
+
}
|
|
2230
|
+
const contents = (0, import_smithy_client.map)({
|
|
2231
|
+
$metadata: deserializeMetadata(output)
|
|
2232
|
+
});
|
|
2233
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2234
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2235
|
+
marketplaceModelEndpoint: (_) => de_MarketplaceModelEndpoint(_, context)
|
|
2236
|
+
});
|
|
2237
|
+
Object.assign(contents, doc);
|
|
2238
|
+
return contents;
|
|
2239
|
+
}, "de_CreateMarketplaceModelEndpointCommand");
|
|
1919
2240
|
var de_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1920
2241
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1921
2242
|
return de_CommandError(output, context);
|
|
@@ -2026,6 +2347,16 @@ var de_DeleteInferenceProfileCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2026
2347
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2027
2348
|
return contents;
|
|
2028
2349
|
}, "de_DeleteInferenceProfileCommand");
|
|
2350
|
+
var de_DeleteMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2352
|
+
return de_CommandError(output, context);
|
|
2353
|
+
}
|
|
2354
|
+
const contents = (0, import_smithy_client.map)({
|
|
2355
|
+
$metadata: deserializeMetadata(output)
|
|
2356
|
+
});
|
|
2357
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2358
|
+
return contents;
|
|
2359
|
+
}, "de_DeleteMarketplaceModelEndpointCommand");
|
|
2029
2360
|
var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2030
2361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
2362
|
return de_CommandError(output, context);
|
|
@@ -2046,6 +2377,16 @@ var de_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (o
|
|
|
2046
2377
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2047
2378
|
return contents;
|
|
2048
2379
|
}, "de_DeleteProvisionedModelThroughputCommand");
|
|
2380
|
+
var de_DeregisterMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2381
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2382
|
+
return de_CommandError(output, context);
|
|
2383
|
+
}
|
|
2384
|
+
const contents = (0, import_smithy_client.map)({
|
|
2385
|
+
$metadata: deserializeMetadata(output)
|
|
2386
|
+
});
|
|
2387
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2388
|
+
return contents;
|
|
2389
|
+
}, "de_DeregisterMarketplaceModelEndpointCommand");
|
|
2049
2390
|
var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2050
2391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2051
2392
|
return de_CommandError(output, context);
|
|
@@ -2057,6 +2398,7 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2057
2398
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2058
2399
|
baseModelArn: import_smithy_client.expectString,
|
|
2059
2400
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2401
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2060
2402
|
customizationType: import_smithy_client.expectString,
|
|
2061
2403
|
hyperParameters: import_smithy_client._json,
|
|
2062
2404
|
jobArn: import_smithy_client.expectString,
|
|
@@ -2189,6 +2531,20 @@ var de_GetInferenceProfileCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2189
2531
|
Object.assign(contents, doc);
|
|
2190
2532
|
return contents;
|
|
2191
2533
|
}, "de_GetInferenceProfileCommand");
|
|
2534
|
+
var de_GetMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2535
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
|
+
return de_CommandError(output, context);
|
|
2537
|
+
}
|
|
2538
|
+
const contents = (0, import_smithy_client.map)({
|
|
2539
|
+
$metadata: deserializeMetadata(output)
|
|
2540
|
+
});
|
|
2541
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2542
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2543
|
+
marketplaceModelEndpoint: (_) => de_MarketplaceModelEndpoint(_, context)
|
|
2544
|
+
});
|
|
2545
|
+
Object.assign(contents, doc);
|
|
2546
|
+
return contents;
|
|
2547
|
+
}, "de_GetMarketplaceModelEndpointCommand");
|
|
2192
2548
|
var de_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
2549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
2550
|
return de_CommandError(output, context);
|
|
@@ -2225,6 +2581,7 @@ var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2225
2581
|
baseModelArn: import_smithy_client.expectString,
|
|
2226
2582
|
clientRequestToken: import_smithy_client.expectString,
|
|
2227
2583
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2584
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2228
2585
|
customizationType: import_smithy_client.expectString,
|
|
2229
2586
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2230
2587
|
failureMessage: import_smithy_client.expectString,
|
|
@@ -2315,6 +2672,29 @@ var de_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
2315
2672
|
Object.assign(contents, doc);
|
|
2316
2673
|
return contents;
|
|
2317
2674
|
}, "de_GetModelInvocationLoggingConfigurationCommand");
|
|
2675
|
+
var de_GetPromptRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2676
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2677
|
+
return de_CommandError(output, context);
|
|
2678
|
+
}
|
|
2679
|
+
const contents = (0, import_smithy_client.map)({
|
|
2680
|
+
$metadata: deserializeMetadata(output)
|
|
2681
|
+
});
|
|
2682
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2683
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2684
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2685
|
+
description: import_smithy_client.expectString,
|
|
2686
|
+
fallbackModel: import_smithy_client._json,
|
|
2687
|
+
models: import_smithy_client._json,
|
|
2688
|
+
promptRouterArn: import_smithy_client.expectString,
|
|
2689
|
+
promptRouterName: import_smithy_client.expectString,
|
|
2690
|
+
routingCriteria: (_) => de_RoutingCriteria(_, context),
|
|
2691
|
+
status: import_smithy_client.expectString,
|
|
2692
|
+
type: import_smithy_client.expectString,
|
|
2693
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2694
|
+
});
|
|
2695
|
+
Object.assign(contents, doc);
|
|
2696
|
+
return contents;
|
|
2697
|
+
}, "de_GetPromptRouterCommand");
|
|
2318
2698
|
var de_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2319
2699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
2700
|
return de_CommandError(output, context);
|
|
@@ -2430,6 +2810,21 @@ var de_ListInferenceProfilesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2430
2810
|
Object.assign(contents, doc);
|
|
2431
2811
|
return contents;
|
|
2432
2812
|
}, "de_ListInferenceProfilesCommand");
|
|
2813
|
+
var de_ListMarketplaceModelEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2814
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2815
|
+
return de_CommandError(output, context);
|
|
2816
|
+
}
|
|
2817
|
+
const contents = (0, import_smithy_client.map)({
|
|
2818
|
+
$metadata: deserializeMetadata(output)
|
|
2819
|
+
});
|
|
2820
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2821
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2822
|
+
marketplaceModelEndpoints: (_) => de_MarketplaceModelEndpointSummaries(_, context),
|
|
2823
|
+
nextToken: import_smithy_client.expectString
|
|
2824
|
+
});
|
|
2825
|
+
Object.assign(contents, doc);
|
|
2826
|
+
return contents;
|
|
2827
|
+
}, "de_ListMarketplaceModelEndpointsCommand");
|
|
2433
2828
|
var de_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2434
2829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2435
2830
|
return de_CommandError(output, context);
|
|
@@ -2490,6 +2885,21 @@ var de_ListModelInvocationJobsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2490
2885
|
Object.assign(contents, doc);
|
|
2491
2886
|
return contents;
|
|
2492
2887
|
}, "de_ListModelInvocationJobsCommand");
|
|
2888
|
+
var de_ListPromptRoutersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2889
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2890
|
+
return de_CommandError(output, context);
|
|
2891
|
+
}
|
|
2892
|
+
const contents = (0, import_smithy_client.map)({
|
|
2893
|
+
$metadata: deserializeMetadata(output)
|
|
2894
|
+
});
|
|
2895
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2896
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2897
|
+
nextToken: import_smithy_client.expectString,
|
|
2898
|
+
promptRouterSummaries: (_) => de_PromptRouterSummaries(_, context)
|
|
2899
|
+
});
|
|
2900
|
+
Object.assign(contents, doc);
|
|
2901
|
+
return contents;
|
|
2902
|
+
}, "de_ListPromptRoutersCommand");
|
|
2493
2903
|
var de_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2494
2904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2495
2905
|
return de_CommandError(output, context);
|
|
@@ -2529,6 +2939,20 @@ var de_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
2529
2939
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2530
2940
|
return contents;
|
|
2531
2941
|
}, "de_PutModelInvocationLoggingConfigurationCommand");
|
|
2942
|
+
var de_RegisterMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2944
|
+
return de_CommandError(output, context);
|
|
2945
|
+
}
|
|
2946
|
+
const contents = (0, import_smithy_client.map)({
|
|
2947
|
+
$metadata: deserializeMetadata(output)
|
|
2948
|
+
});
|
|
2949
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2950
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2951
|
+
marketplaceModelEndpoint: (_) => de_MarketplaceModelEndpoint(_, context)
|
|
2952
|
+
});
|
|
2953
|
+
Object.assign(contents, doc);
|
|
2954
|
+
return contents;
|
|
2955
|
+
}, "de_RegisterMarketplaceModelEndpointCommand");
|
|
2532
2956
|
var de_StopEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2533
2957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2534
2958
|
return de_CommandError(output, context);
|
|
@@ -2596,6 +3020,20 @@ var de_UpdateGuardrailCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2596
3020
|
Object.assign(contents, doc);
|
|
2597
3021
|
return contents;
|
|
2598
3022
|
}, "de_UpdateGuardrailCommand");
|
|
3023
|
+
var de_UpdateMarketplaceModelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3024
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3025
|
+
return de_CommandError(output, context);
|
|
3026
|
+
}
|
|
3027
|
+
const contents = (0, import_smithy_client.map)({
|
|
3028
|
+
$metadata: deserializeMetadata(output)
|
|
3029
|
+
});
|
|
3030
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3031
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3032
|
+
marketplaceModelEndpoint: (_) => de_MarketplaceModelEndpoint(_, context)
|
|
3033
|
+
});
|
|
3034
|
+
Object.assign(contents, doc);
|
|
3035
|
+
return contents;
|
|
3036
|
+
}, "de_UpdateMarketplaceModelEndpointCommand");
|
|
2599
3037
|
var de_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2600
3038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2601
3039
|
return de_CommandError(output, context);
|
|
@@ -2637,6 +3075,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2637
3075
|
case "TooManyTagsException":
|
|
2638
3076
|
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
2639
3077
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3078
|
+
case "ServiceUnavailableException":
|
|
3079
|
+
case "com.amazonaws.bedrock#ServiceUnavailableException":
|
|
3080
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2640
3081
|
default:
|
|
2641
3082
|
const parsedBody = parsedOutput.body;
|
|
2642
3083
|
return throwDefaultError({
|
|
@@ -2712,6 +3153,19 @@ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOu
|
|
|
2712
3153
|
});
|
|
2713
3154
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2714
3155
|
}, "de_ServiceQuotaExceededExceptionRes");
|
|
3156
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3157
|
+
const contents = (0, import_smithy_client.map)({});
|
|
3158
|
+
const data = parsedOutput.body;
|
|
3159
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3160
|
+
message: import_smithy_client.expectString
|
|
3161
|
+
});
|
|
3162
|
+
Object.assign(contents, doc);
|
|
3163
|
+
const exception = new ServiceUnavailableException({
|
|
3164
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3165
|
+
...contents
|
|
3166
|
+
});
|
|
3167
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
3168
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
2715
3169
|
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2716
3170
|
const contents = (0, import_smithy_client.map)({});
|
|
2717
3171
|
const data = parsedOutput.body;
|
|
@@ -3150,6 +3604,35 @@ var de_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((output,
|
|
|
3150
3604
|
overrideSearchType: import_smithy_client.expectString
|
|
3151
3605
|
});
|
|
3152
3606
|
}, "de_KnowledgeBaseVectorSearchConfiguration");
|
|
3607
|
+
var de_MarketplaceModelEndpoint = /* @__PURE__ */ __name((output, context) => {
|
|
3608
|
+
return (0, import_smithy_client.take)(output, {
|
|
3609
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3610
|
+
endpointArn: import_smithy_client.expectString,
|
|
3611
|
+
endpointConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
3612
|
+
endpointStatus: import_smithy_client.expectString,
|
|
3613
|
+
endpointStatusMessage: import_smithy_client.expectString,
|
|
3614
|
+
modelSourceIdentifier: import_smithy_client.expectString,
|
|
3615
|
+
status: import_smithy_client.expectString,
|
|
3616
|
+
statusMessage: import_smithy_client.expectString,
|
|
3617
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
3618
|
+
});
|
|
3619
|
+
}, "de_MarketplaceModelEndpoint");
|
|
3620
|
+
var de_MarketplaceModelEndpointSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
3621
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3622
|
+
return de_MarketplaceModelEndpointSummary(entry, context);
|
|
3623
|
+
});
|
|
3624
|
+
return retVal;
|
|
3625
|
+
}, "de_MarketplaceModelEndpointSummaries");
|
|
3626
|
+
var de_MarketplaceModelEndpointSummary = /* @__PURE__ */ __name((output, context) => {
|
|
3627
|
+
return (0, import_smithy_client.take)(output, {
|
|
3628
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3629
|
+
endpointArn: import_smithy_client.expectString,
|
|
3630
|
+
modelSourceIdentifier: import_smithy_client.expectString,
|
|
3631
|
+
status: import_smithy_client.expectString,
|
|
3632
|
+
statusMessage: import_smithy_client.expectString,
|
|
3633
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
3634
|
+
});
|
|
3635
|
+
}, "de_MarketplaceModelEndpointSummary");
|
|
3153
3636
|
var de_ModelCopyJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
3154
3637
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3155
3638
|
return de_ModelCopyJobSummary(entry, context);
|
|
@@ -3234,6 +3717,26 @@ var de_ModelInvocationJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
3234
3717
|
vpcConfig: import_smithy_client._json
|
|
3235
3718
|
});
|
|
3236
3719
|
}, "de_ModelInvocationJobSummary");
|
|
3720
|
+
var de_PromptRouterSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
3721
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3722
|
+
return de_PromptRouterSummary(entry, context);
|
|
3723
|
+
});
|
|
3724
|
+
return retVal;
|
|
3725
|
+
}, "de_PromptRouterSummaries");
|
|
3726
|
+
var de_PromptRouterSummary = /* @__PURE__ */ __name((output, context) => {
|
|
3727
|
+
return (0, import_smithy_client.take)(output, {
|
|
3728
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3729
|
+
description: import_smithy_client.expectString,
|
|
3730
|
+
fallbackModel: import_smithy_client._json,
|
|
3731
|
+
models: import_smithy_client._json,
|
|
3732
|
+
promptRouterArn: import_smithy_client.expectString,
|
|
3733
|
+
promptRouterName: import_smithy_client.expectString,
|
|
3734
|
+
routingCriteria: (_) => de_RoutingCriteria(_, context),
|
|
3735
|
+
status: import_smithy_client.expectString,
|
|
3736
|
+
type: import_smithy_client.expectString,
|
|
3737
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
3738
|
+
});
|
|
3739
|
+
}, "de_PromptRouterSummary");
|
|
3237
3740
|
var de_ProvisionedModelSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
3238
3741
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3239
3742
|
return de_ProvisionedModelSummary(entry, context);
|
|
@@ -3357,6 +3860,11 @@ var de_RetrieveConfig = /* @__PURE__ */ __name((output, context) => {
|
|
|
3357
3860
|
knowledgeBaseRetrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3358
3861
|
});
|
|
3359
3862
|
}, "de_RetrieveConfig");
|
|
3863
|
+
var de_RoutingCriteria = /* @__PURE__ */ __name((output, context) => {
|
|
3864
|
+
return (0, import_smithy_client.take)(output, {
|
|
3865
|
+
responseQualityDifference: import_smithy_client.limitedParseDouble
|
|
3866
|
+
});
|
|
3867
|
+
}, "de_RoutingCriteria");
|
|
3360
3868
|
var de_TextInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3361
3869
|
return (0, import_smithy_client.take)(output, {
|
|
3362
3870
|
maxTokens: import_smithy_client.expectInt32,
|
|
@@ -3401,6 +3909,8 @@ var _gV = "guardrailVersion";
|
|
|
3401
3909
|
var _iO = "isOwned";
|
|
3402
3910
|
var _mAE = "modelArnEquals";
|
|
3403
3911
|
var _mR = "maxResults";
|
|
3912
|
+
var _mSE = "modelSourceEquals";
|
|
3913
|
+
var _mSI = "modelSourceIdentifier";
|
|
3404
3914
|
var _nC = "nameContains";
|
|
3405
3915
|
var _nT = "nextToken";
|
|
3406
3916
|
var _oMNC = "outputModelNameContains";
|
|
@@ -3482,6 +3992,20 @@ var _CreateInferenceProfileCommand = class _CreateInferenceProfileCommand extend
|
|
|
3482
3992
|
__name(_CreateInferenceProfileCommand, "CreateInferenceProfileCommand");
|
|
3483
3993
|
var CreateInferenceProfileCommand = _CreateInferenceProfileCommand;
|
|
3484
3994
|
|
|
3995
|
+
// src/commands/CreateMarketplaceModelEndpointCommand.ts
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
|
|
3999
|
+
var _CreateMarketplaceModelEndpointCommand = class _CreateMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4000
|
+
return [
|
|
4001
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4002
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4003
|
+
];
|
|
4004
|
+
}).s("AmazonBedrockControlPlaneService", "CreateMarketplaceModelEndpoint", {}).n("BedrockClient", "CreateMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_CreateMarketplaceModelEndpointCommand).de(de_CreateMarketplaceModelEndpointCommand).build() {
|
|
4005
|
+
};
|
|
4006
|
+
__name(_CreateMarketplaceModelEndpointCommand, "CreateMarketplaceModelEndpointCommand");
|
|
4007
|
+
var CreateMarketplaceModelEndpointCommand = _CreateMarketplaceModelEndpointCommand;
|
|
4008
|
+
|
|
3485
4009
|
// src/commands/CreateModelCopyJobCommand.ts
|
|
3486
4010
|
|
|
3487
4011
|
|
|
@@ -3505,7 +4029,7 @@ var _CreateModelCustomizationJobCommand = class _CreateModelCustomizationJobComm
|
|
|
3505
4029
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3506
4030
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3507
4031
|
];
|
|
3508
|
-
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(
|
|
4032
|
+
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(CreateModelCustomizationJobRequestFilterSensitiveLog, void 0).ser(se_CreateModelCustomizationJobCommand).de(de_CreateModelCustomizationJobCommand).build() {
|
|
3509
4033
|
};
|
|
3510
4034
|
__name(_CreateModelCustomizationJobCommand, "CreateModelCustomizationJobCommand");
|
|
3511
4035
|
var CreateModelCustomizationJobCommand = _CreateModelCustomizationJobCommand;
|
|
@@ -3608,6 +4132,20 @@ var _DeleteInferenceProfileCommand = class _DeleteInferenceProfileCommand extend
|
|
|
3608
4132
|
__name(_DeleteInferenceProfileCommand, "DeleteInferenceProfileCommand");
|
|
3609
4133
|
var DeleteInferenceProfileCommand = _DeleteInferenceProfileCommand;
|
|
3610
4134
|
|
|
4135
|
+
// src/commands/DeleteMarketplaceModelEndpointCommand.ts
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
var _DeleteMarketplaceModelEndpointCommand = class _DeleteMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4140
|
+
return [
|
|
4141
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4142
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4143
|
+
];
|
|
4144
|
+
}).s("AmazonBedrockControlPlaneService", "DeleteMarketplaceModelEndpoint", {}).n("BedrockClient", "DeleteMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_DeleteMarketplaceModelEndpointCommand).de(de_DeleteMarketplaceModelEndpointCommand).build() {
|
|
4145
|
+
};
|
|
4146
|
+
__name(_DeleteMarketplaceModelEndpointCommand, "DeleteMarketplaceModelEndpointCommand");
|
|
4147
|
+
var DeleteMarketplaceModelEndpointCommand = _DeleteMarketplaceModelEndpointCommand;
|
|
4148
|
+
|
|
3611
4149
|
// src/commands/DeleteModelInvocationLoggingConfigurationCommand.ts
|
|
3612
4150
|
|
|
3613
4151
|
|
|
@@ -3636,6 +4174,20 @@ var _DeleteProvisionedModelThroughputCommand = class _DeleteProvisionedModelThro
|
|
|
3636
4174
|
__name(_DeleteProvisionedModelThroughputCommand, "DeleteProvisionedModelThroughputCommand");
|
|
3637
4175
|
var DeleteProvisionedModelThroughputCommand = _DeleteProvisionedModelThroughputCommand;
|
|
3638
4176
|
|
|
4177
|
+
// src/commands/DeregisterMarketplaceModelEndpointCommand.ts
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
var _DeregisterMarketplaceModelEndpointCommand = class _DeregisterMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4182
|
+
return [
|
|
4183
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4184
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4185
|
+
];
|
|
4186
|
+
}).s("AmazonBedrockControlPlaneService", "DeregisterMarketplaceModelEndpoint", {}).n("BedrockClient", "DeregisterMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_DeregisterMarketplaceModelEndpointCommand).de(de_DeregisterMarketplaceModelEndpointCommand).build() {
|
|
4187
|
+
};
|
|
4188
|
+
__name(_DeregisterMarketplaceModelEndpointCommand, "DeregisterMarketplaceModelEndpointCommand");
|
|
4189
|
+
var DeregisterMarketplaceModelEndpointCommand = _DeregisterMarketplaceModelEndpointCommand;
|
|
4190
|
+
|
|
3639
4191
|
// src/commands/GetCustomModelCommand.ts
|
|
3640
4192
|
|
|
3641
4193
|
|
|
@@ -3645,7 +4197,7 @@ var _GetCustomModelCommand = class _GetCustomModelCommand extends import_smithy_
|
|
|
3645
4197
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3646
4198
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3647
4199
|
];
|
|
3648
|
-
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0,
|
|
4200
|
+
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0, GetCustomModelResponseFilterSensitiveLog).ser(se_GetCustomModelCommand).de(de_GetCustomModelCommand).build() {
|
|
3649
4201
|
};
|
|
3650
4202
|
__name(_GetCustomModelCommand, "GetCustomModelCommand");
|
|
3651
4203
|
var GetCustomModelCommand = _GetCustomModelCommand;
|
|
@@ -3720,6 +4272,20 @@ var _GetInferenceProfileCommand = class _GetInferenceProfileCommand extends impo
|
|
|
3720
4272
|
__name(_GetInferenceProfileCommand, "GetInferenceProfileCommand");
|
|
3721
4273
|
var GetInferenceProfileCommand = _GetInferenceProfileCommand;
|
|
3722
4274
|
|
|
4275
|
+
// src/commands/GetMarketplaceModelEndpointCommand.ts
|
|
4276
|
+
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
var _GetMarketplaceModelEndpointCommand = class _GetMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4280
|
+
return [
|
|
4281
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4282
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4283
|
+
];
|
|
4284
|
+
}).s("AmazonBedrockControlPlaneService", "GetMarketplaceModelEndpoint", {}).n("BedrockClient", "GetMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_GetMarketplaceModelEndpointCommand).de(de_GetMarketplaceModelEndpointCommand).build() {
|
|
4285
|
+
};
|
|
4286
|
+
__name(_GetMarketplaceModelEndpointCommand, "GetMarketplaceModelEndpointCommand");
|
|
4287
|
+
var GetMarketplaceModelEndpointCommand = _GetMarketplaceModelEndpointCommand;
|
|
4288
|
+
|
|
3723
4289
|
// src/commands/GetModelCopyJobCommand.ts
|
|
3724
4290
|
|
|
3725
4291
|
|
|
@@ -3743,7 +4309,7 @@ var _GetModelCustomizationJobCommand = class _GetModelCustomizationJobCommand ex
|
|
|
3743
4309
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3744
4310
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3745
4311
|
];
|
|
3746
|
-
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0,
|
|
4312
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0, GetModelCustomizationJobResponseFilterSensitiveLog).ser(se_GetModelCustomizationJobCommand).de(de_GetModelCustomizationJobCommand).build() {
|
|
3747
4313
|
};
|
|
3748
4314
|
__name(_GetModelCustomizationJobCommand, "GetModelCustomizationJobCommand");
|
|
3749
4315
|
var GetModelCustomizationJobCommand = _GetModelCustomizationJobCommand;
|
|
@@ -3790,6 +4356,20 @@ var _GetModelInvocationLoggingConfigurationCommand = class _GetModelInvocationLo
|
|
|
3790
4356
|
__name(_GetModelInvocationLoggingConfigurationCommand, "GetModelInvocationLoggingConfigurationCommand");
|
|
3791
4357
|
var GetModelInvocationLoggingConfigurationCommand = _GetModelInvocationLoggingConfigurationCommand;
|
|
3792
4358
|
|
|
4359
|
+
// src/commands/GetPromptRouterCommand.ts
|
|
4360
|
+
|
|
4361
|
+
|
|
4362
|
+
|
|
4363
|
+
var _GetPromptRouterCommand = class _GetPromptRouterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4364
|
+
return [
|
|
4365
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4366
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4367
|
+
];
|
|
4368
|
+
}).s("AmazonBedrockControlPlaneService", "GetPromptRouter", {}).n("BedrockClient", "GetPromptRouterCommand").f(void 0, GetPromptRouterResponseFilterSensitiveLog).ser(se_GetPromptRouterCommand).de(de_GetPromptRouterCommand).build() {
|
|
4369
|
+
};
|
|
4370
|
+
__name(_GetPromptRouterCommand, "GetPromptRouterCommand");
|
|
4371
|
+
var GetPromptRouterCommand = _GetPromptRouterCommand;
|
|
4372
|
+
|
|
3793
4373
|
// src/commands/GetProvisionedModelThroughputCommand.ts
|
|
3794
4374
|
|
|
3795
4375
|
|
|
@@ -3888,6 +4468,20 @@ var _ListInferenceProfilesCommand = class _ListInferenceProfilesCommand extends
|
|
|
3888
4468
|
__name(_ListInferenceProfilesCommand, "ListInferenceProfilesCommand");
|
|
3889
4469
|
var ListInferenceProfilesCommand = _ListInferenceProfilesCommand;
|
|
3890
4470
|
|
|
4471
|
+
// src/commands/ListMarketplaceModelEndpointsCommand.ts
|
|
4472
|
+
|
|
4473
|
+
|
|
4474
|
+
|
|
4475
|
+
var _ListMarketplaceModelEndpointsCommand = class _ListMarketplaceModelEndpointsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4476
|
+
return [
|
|
4477
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4478
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4479
|
+
];
|
|
4480
|
+
}).s("AmazonBedrockControlPlaneService", "ListMarketplaceModelEndpoints", {}).n("BedrockClient", "ListMarketplaceModelEndpointsCommand").f(void 0, void 0).ser(se_ListMarketplaceModelEndpointsCommand).de(de_ListMarketplaceModelEndpointsCommand).build() {
|
|
4481
|
+
};
|
|
4482
|
+
__name(_ListMarketplaceModelEndpointsCommand, "ListMarketplaceModelEndpointsCommand");
|
|
4483
|
+
var ListMarketplaceModelEndpointsCommand = _ListMarketplaceModelEndpointsCommand;
|
|
4484
|
+
|
|
3891
4485
|
// src/commands/ListModelCopyJobsCommand.ts
|
|
3892
4486
|
|
|
3893
4487
|
|
|
@@ -3944,6 +4538,20 @@ var _ListModelInvocationJobsCommand = class _ListModelInvocationJobsCommand exte
|
|
|
3944
4538
|
__name(_ListModelInvocationJobsCommand, "ListModelInvocationJobsCommand");
|
|
3945
4539
|
var ListModelInvocationJobsCommand = _ListModelInvocationJobsCommand;
|
|
3946
4540
|
|
|
4541
|
+
// src/commands/ListPromptRoutersCommand.ts
|
|
4542
|
+
|
|
4543
|
+
|
|
4544
|
+
|
|
4545
|
+
var _ListPromptRoutersCommand = class _ListPromptRoutersCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4546
|
+
return [
|
|
4547
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4548
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4549
|
+
];
|
|
4550
|
+
}).s("AmazonBedrockControlPlaneService", "ListPromptRouters", {}).n("BedrockClient", "ListPromptRoutersCommand").f(void 0, ListPromptRoutersResponseFilterSensitiveLog).ser(se_ListPromptRoutersCommand).de(de_ListPromptRoutersCommand).build() {
|
|
4551
|
+
};
|
|
4552
|
+
__name(_ListPromptRoutersCommand, "ListPromptRoutersCommand");
|
|
4553
|
+
var ListPromptRoutersCommand = _ListPromptRoutersCommand;
|
|
4554
|
+
|
|
3947
4555
|
// src/commands/ListProvisionedModelThroughputsCommand.ts
|
|
3948
4556
|
|
|
3949
4557
|
|
|
@@ -3986,6 +4594,20 @@ var _PutModelInvocationLoggingConfigurationCommand = class _PutModelInvocationLo
|
|
|
3986
4594
|
__name(_PutModelInvocationLoggingConfigurationCommand, "PutModelInvocationLoggingConfigurationCommand");
|
|
3987
4595
|
var PutModelInvocationLoggingConfigurationCommand = _PutModelInvocationLoggingConfigurationCommand;
|
|
3988
4596
|
|
|
4597
|
+
// src/commands/RegisterMarketplaceModelEndpointCommand.ts
|
|
4598
|
+
|
|
4599
|
+
|
|
4600
|
+
|
|
4601
|
+
var _RegisterMarketplaceModelEndpointCommand = class _RegisterMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4602
|
+
return [
|
|
4603
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4604
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4605
|
+
];
|
|
4606
|
+
}).s("AmazonBedrockControlPlaneService", "RegisterMarketplaceModelEndpoint", {}).n("BedrockClient", "RegisterMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_RegisterMarketplaceModelEndpointCommand).de(de_RegisterMarketplaceModelEndpointCommand).build() {
|
|
4607
|
+
};
|
|
4608
|
+
__name(_RegisterMarketplaceModelEndpointCommand, "RegisterMarketplaceModelEndpointCommand");
|
|
4609
|
+
var RegisterMarketplaceModelEndpointCommand = _RegisterMarketplaceModelEndpointCommand;
|
|
4610
|
+
|
|
3989
4611
|
// src/commands/StopEvaluationJobCommand.ts
|
|
3990
4612
|
|
|
3991
4613
|
|
|
@@ -4070,6 +4692,20 @@ var _UpdateGuardrailCommand = class _UpdateGuardrailCommand extends import_smith
|
|
|
4070
4692
|
__name(_UpdateGuardrailCommand, "UpdateGuardrailCommand");
|
|
4071
4693
|
var UpdateGuardrailCommand = _UpdateGuardrailCommand;
|
|
4072
4694
|
|
|
4695
|
+
// src/commands/UpdateMarketplaceModelEndpointCommand.ts
|
|
4696
|
+
|
|
4697
|
+
|
|
4698
|
+
|
|
4699
|
+
var _UpdateMarketplaceModelEndpointCommand = class _UpdateMarketplaceModelEndpointCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4700
|
+
return [
|
|
4701
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4702
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4703
|
+
];
|
|
4704
|
+
}).s("AmazonBedrockControlPlaneService", "UpdateMarketplaceModelEndpoint", {}).n("BedrockClient", "UpdateMarketplaceModelEndpointCommand").f(void 0, void 0).ser(se_UpdateMarketplaceModelEndpointCommand).de(de_UpdateMarketplaceModelEndpointCommand).build() {
|
|
4705
|
+
};
|
|
4706
|
+
__name(_UpdateMarketplaceModelEndpointCommand, "UpdateMarketplaceModelEndpointCommand");
|
|
4707
|
+
var UpdateMarketplaceModelEndpointCommand = _UpdateMarketplaceModelEndpointCommand;
|
|
4708
|
+
|
|
4073
4709
|
// src/commands/UpdateProvisionedModelThroughputCommand.ts
|
|
4074
4710
|
|
|
4075
4711
|
|
|
@@ -4091,6 +4727,7 @@ var commands = {
|
|
|
4091
4727
|
CreateGuardrailCommand,
|
|
4092
4728
|
CreateGuardrailVersionCommand,
|
|
4093
4729
|
CreateInferenceProfileCommand,
|
|
4730
|
+
CreateMarketplaceModelEndpointCommand,
|
|
4094
4731
|
CreateModelCopyJobCommand,
|
|
4095
4732
|
CreateModelCustomizationJobCommand,
|
|
4096
4733
|
CreateModelImportJobCommand,
|
|
@@ -4100,19 +4737,23 @@ var commands = {
|
|
|
4100
4737
|
DeleteGuardrailCommand,
|
|
4101
4738
|
DeleteImportedModelCommand,
|
|
4102
4739
|
DeleteInferenceProfileCommand,
|
|
4740
|
+
DeleteMarketplaceModelEndpointCommand,
|
|
4103
4741
|
DeleteModelInvocationLoggingConfigurationCommand,
|
|
4104
4742
|
DeleteProvisionedModelThroughputCommand,
|
|
4743
|
+
DeregisterMarketplaceModelEndpointCommand,
|
|
4105
4744
|
GetCustomModelCommand,
|
|
4106
4745
|
GetEvaluationJobCommand,
|
|
4107
4746
|
GetFoundationModelCommand,
|
|
4108
4747
|
GetGuardrailCommand,
|
|
4109
4748
|
GetImportedModelCommand,
|
|
4110
4749
|
GetInferenceProfileCommand,
|
|
4750
|
+
GetMarketplaceModelEndpointCommand,
|
|
4111
4751
|
GetModelCopyJobCommand,
|
|
4112
4752
|
GetModelCustomizationJobCommand,
|
|
4113
4753
|
GetModelImportJobCommand,
|
|
4114
4754
|
GetModelInvocationJobCommand,
|
|
4115
4755
|
GetModelInvocationLoggingConfigurationCommand,
|
|
4756
|
+
GetPromptRouterCommand,
|
|
4116
4757
|
GetProvisionedModelThroughputCommand,
|
|
4117
4758
|
ListCustomModelsCommand,
|
|
4118
4759
|
ListEvaluationJobsCommand,
|
|
@@ -4120,19 +4761,23 @@ var commands = {
|
|
|
4120
4761
|
ListGuardrailsCommand,
|
|
4121
4762
|
ListImportedModelsCommand,
|
|
4122
4763
|
ListInferenceProfilesCommand,
|
|
4764
|
+
ListMarketplaceModelEndpointsCommand,
|
|
4123
4765
|
ListModelCopyJobsCommand,
|
|
4124
4766
|
ListModelCustomizationJobsCommand,
|
|
4125
4767
|
ListModelImportJobsCommand,
|
|
4126
4768
|
ListModelInvocationJobsCommand,
|
|
4769
|
+
ListPromptRoutersCommand,
|
|
4127
4770
|
ListProvisionedModelThroughputsCommand,
|
|
4128
4771
|
ListTagsForResourceCommand,
|
|
4129
4772
|
PutModelInvocationLoggingConfigurationCommand,
|
|
4773
|
+
RegisterMarketplaceModelEndpointCommand,
|
|
4130
4774
|
StopEvaluationJobCommand,
|
|
4131
4775
|
StopModelCustomizationJobCommand,
|
|
4132
4776
|
StopModelInvocationJobCommand,
|
|
4133
4777
|
TagResourceCommand,
|
|
4134
4778
|
UntagResourceCommand,
|
|
4135
4779
|
UpdateGuardrailCommand,
|
|
4780
|
+
UpdateMarketplaceModelEndpointCommand,
|
|
4136
4781
|
UpdateProvisionedModelThroughputCommand
|
|
4137
4782
|
};
|
|
4138
4783
|
var _Bedrock = class _Bedrock extends BedrockClient {
|
|
@@ -4161,6 +4806,10 @@ var paginateListImportedModels = (0, import_core.createPaginator)(BedrockClient,
|
|
|
4161
4806
|
|
|
4162
4807
|
var paginateListInferenceProfiles = (0, import_core.createPaginator)(BedrockClient, ListInferenceProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
4163
4808
|
|
|
4809
|
+
// src/pagination/ListMarketplaceModelEndpointsPaginator.ts
|
|
4810
|
+
|
|
4811
|
+
var paginateListMarketplaceModelEndpoints = (0, import_core.createPaginator)(BedrockClient, ListMarketplaceModelEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
4812
|
+
|
|
4164
4813
|
// src/pagination/ListModelCopyJobsPaginator.ts
|
|
4165
4814
|
|
|
4166
4815
|
var paginateListModelCopyJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCopyJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4177,6 +4826,10 @@ var paginateListModelImportJobs = (0, import_core.createPaginator)(BedrockClient
|
|
|
4177
4826
|
|
|
4178
4827
|
var paginateListModelInvocationJobs = (0, import_core.createPaginator)(BedrockClient, ListModelInvocationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
4179
4828
|
|
|
4829
|
+
// src/pagination/ListPromptRoutersPaginator.ts
|
|
4830
|
+
|
|
4831
|
+
var paginateListPromptRouters = (0, import_core.createPaginator)(BedrockClient, ListPromptRoutersCommand, "nextToken", "nextToken", "maxResults");
|
|
4832
|
+
|
|
4180
4833
|
// src/pagination/ListProvisionedModelThroughputsPaginator.ts
|
|
4181
4834
|
|
|
4182
4835
|
var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(BedrockClient, ListProvisionedModelThroughputsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4193,6 +4846,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4193
4846
|
CreateGuardrailCommand,
|
|
4194
4847
|
CreateGuardrailVersionCommand,
|
|
4195
4848
|
CreateInferenceProfileCommand,
|
|
4849
|
+
CreateMarketplaceModelEndpointCommand,
|
|
4196
4850
|
CreateModelCopyJobCommand,
|
|
4197
4851
|
CreateModelCustomizationJobCommand,
|
|
4198
4852
|
CreateModelImportJobCommand,
|
|
@@ -4202,19 +4856,23 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4202
4856
|
DeleteGuardrailCommand,
|
|
4203
4857
|
DeleteImportedModelCommand,
|
|
4204
4858
|
DeleteInferenceProfileCommand,
|
|
4859
|
+
DeleteMarketplaceModelEndpointCommand,
|
|
4205
4860
|
DeleteModelInvocationLoggingConfigurationCommand,
|
|
4206
4861
|
DeleteProvisionedModelThroughputCommand,
|
|
4862
|
+
DeregisterMarketplaceModelEndpointCommand,
|
|
4207
4863
|
GetCustomModelCommand,
|
|
4208
4864
|
GetEvaluationJobCommand,
|
|
4209
4865
|
GetFoundationModelCommand,
|
|
4210
4866
|
GetGuardrailCommand,
|
|
4211
4867
|
GetImportedModelCommand,
|
|
4212
4868
|
GetInferenceProfileCommand,
|
|
4869
|
+
GetMarketplaceModelEndpointCommand,
|
|
4213
4870
|
GetModelCopyJobCommand,
|
|
4214
4871
|
GetModelCustomizationJobCommand,
|
|
4215
4872
|
GetModelImportJobCommand,
|
|
4216
4873
|
GetModelInvocationJobCommand,
|
|
4217
4874
|
GetModelInvocationLoggingConfigurationCommand,
|
|
4875
|
+
GetPromptRouterCommand,
|
|
4218
4876
|
GetProvisionedModelThroughputCommand,
|
|
4219
4877
|
ListCustomModelsCommand,
|
|
4220
4878
|
ListEvaluationJobsCommand,
|
|
@@ -4222,37 +4880,47 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4222
4880
|
ListGuardrailsCommand,
|
|
4223
4881
|
ListImportedModelsCommand,
|
|
4224
4882
|
ListInferenceProfilesCommand,
|
|
4883
|
+
ListMarketplaceModelEndpointsCommand,
|
|
4225
4884
|
ListModelCopyJobsCommand,
|
|
4226
4885
|
ListModelCustomizationJobsCommand,
|
|
4227
4886
|
ListModelImportJobsCommand,
|
|
4228
4887
|
ListModelInvocationJobsCommand,
|
|
4888
|
+
ListPromptRoutersCommand,
|
|
4229
4889
|
ListProvisionedModelThroughputsCommand,
|
|
4230
4890
|
ListTagsForResourceCommand,
|
|
4231
4891
|
PutModelInvocationLoggingConfigurationCommand,
|
|
4892
|
+
RegisterMarketplaceModelEndpointCommand,
|
|
4232
4893
|
StopEvaluationJobCommand,
|
|
4233
4894
|
StopModelCustomizationJobCommand,
|
|
4234
4895
|
StopModelInvocationJobCommand,
|
|
4235
4896
|
TagResourceCommand,
|
|
4236
4897
|
UntagResourceCommand,
|
|
4237
4898
|
UpdateGuardrailCommand,
|
|
4899
|
+
UpdateMarketplaceModelEndpointCommand,
|
|
4238
4900
|
UpdateProvisionedModelThroughputCommand,
|
|
4239
4901
|
paginateListCustomModels,
|
|
4240
4902
|
paginateListEvaluationJobs,
|
|
4241
4903
|
paginateListGuardrails,
|
|
4242
4904
|
paginateListImportedModels,
|
|
4243
4905
|
paginateListInferenceProfiles,
|
|
4906
|
+
paginateListMarketplaceModelEndpoints,
|
|
4244
4907
|
paginateListModelCopyJobs,
|
|
4245
4908
|
paginateListModelCustomizationJobs,
|
|
4246
4909
|
paginateListModelImportJobs,
|
|
4247
4910
|
paginateListModelInvocationJobs,
|
|
4911
|
+
paginateListPromptRouters,
|
|
4248
4912
|
paginateListProvisionedModelThroughputs,
|
|
4249
4913
|
AccessDeniedException,
|
|
4250
|
-
EvaluationJobStatus,
|
|
4251
4914
|
ConflictException,
|
|
4915
|
+
EndpointConfig,
|
|
4916
|
+
Status,
|
|
4252
4917
|
InternalServerException,
|
|
4253
4918
|
ResourceNotFoundException,
|
|
4919
|
+
ServiceQuotaExceededException,
|
|
4254
4920
|
ThrottlingException,
|
|
4255
4921
|
ValidationException,
|
|
4922
|
+
ServiceUnavailableException,
|
|
4923
|
+
EvaluationJobStatus,
|
|
4256
4924
|
ApplicationType,
|
|
4257
4925
|
EvaluationDatasetLocation,
|
|
4258
4926
|
EvaluationTaskType,
|
|
@@ -4263,10 +4931,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4263
4931
|
QueryTransformationType,
|
|
4264
4932
|
SearchType,
|
|
4265
4933
|
RetrieveAndGenerateType,
|
|
4266
|
-
ServiceQuotaExceededException,
|
|
4267
4934
|
EvaluationJobType,
|
|
4268
4935
|
SortJobsBy,
|
|
4269
4936
|
SortOrder,
|
|
4937
|
+
GuardrailModality,
|
|
4270
4938
|
GuardrailFilterStrength,
|
|
4271
4939
|
GuardrailContentFilterType,
|
|
4272
4940
|
GuardrailContextualGroundingFilterType,
|
|
@@ -4287,11 +4955,16 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4287
4955
|
ModelInvocationJobInputDataConfig,
|
|
4288
4956
|
ModelInvocationJobOutputDataConfig,
|
|
4289
4957
|
ModelInvocationJobStatus,
|
|
4958
|
+
CustomizationConfig,
|
|
4290
4959
|
CustomizationType,
|
|
4960
|
+
InvocationLogSource,
|
|
4961
|
+
RequestMetadataFilters,
|
|
4291
4962
|
ModelCustomization,
|
|
4292
4963
|
InferenceType,
|
|
4293
4964
|
ModelModality,
|
|
4294
4965
|
FoundationModelLifecycleStatus,
|
|
4966
|
+
PromptRouterStatus,
|
|
4967
|
+
PromptRouterType,
|
|
4295
4968
|
CommitmentDuration,
|
|
4296
4969
|
ProvisionedModelStatus,
|
|
4297
4970
|
SortByProvisionedModels,
|
|
@@ -4322,10 +4995,14 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4322
4995
|
GenerationConfigurationFilterSensitiveLog,
|
|
4323
4996
|
GetEvaluationJobRequestFilterSensitiveLog,
|
|
4324
4997
|
StopEvaluationJobRequestFilterSensitiveLog,
|
|
4998
|
+
GuardrailContentFilterConfigFilterSensitiveLog,
|
|
4999
|
+
GuardrailContentPolicyConfigFilterSensitiveLog,
|
|
4325
5000
|
GuardrailTopicConfigFilterSensitiveLog,
|
|
4326
5001
|
GuardrailTopicPolicyConfigFilterSensitiveLog,
|
|
4327
5002
|
CreateGuardrailRequestFilterSensitiveLog,
|
|
4328
5003
|
CreateGuardrailVersionRequestFilterSensitiveLog,
|
|
5004
|
+
GuardrailContentFilterFilterSensitiveLog,
|
|
5005
|
+
GuardrailContentPolicyFilterSensitiveLog,
|
|
4329
5006
|
GuardrailTopicFilterSensitiveLog,
|
|
4330
5007
|
GuardrailTopicPolicyFilterSensitiveLog,
|
|
4331
5008
|
GetGuardrailResponseFilterSensitiveLog,
|
|
@@ -4339,6 +5016,16 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4339
5016
|
GetModelInvocationJobResponseFilterSensitiveLog,
|
|
4340
5017
|
ModelInvocationJobSummaryFilterSensitiveLog,
|
|
4341
5018
|
ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
5019
|
+
RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
5020
|
+
RequestMetadataFiltersFilterSensitiveLog,
|
|
5021
|
+
InvocationLogsConfigFilterSensitiveLog,
|
|
5022
|
+
TrainingDataConfigFilterSensitiveLog,
|
|
5023
|
+
GetCustomModelResponseFilterSensitiveLog,
|
|
5024
|
+
GetPromptRouterResponseFilterSensitiveLog,
|
|
5025
|
+
PromptRouterSummaryFilterSensitiveLog,
|
|
5026
|
+
ListPromptRoutersResponseFilterSensitiveLog,
|
|
5027
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
5028
|
+
GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
4342
5029
|
RetrievalFilterFilterSensitiveLog,
|
|
4343
5030
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
4344
5031
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|