@aws-sdk/client-bedrock 3.828.0 → 3.831.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.
Files changed (63) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +218 -153
  3. package/dist-es/Bedrock.js +2 -0
  4. package/dist-es/commands/CreateCustomModelCommand.js +22 -0
  5. package/dist-es/commands/CreateEvaluationJobCommand.js +1 -1
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +105 -141
  8. package/dist-es/models/models_1.js +43 -1
  9. package/dist-es/protocols/Aws_restJson1.js +39 -1
  10. package/dist-types/Bedrock.d.ts +7 -0
  11. package/dist-types/BedrockClient.d.ts +3 -2
  12. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +1 -3
  13. package/dist-types/commands/CreateCustomModelCommand.d.ts +143 -0
  14. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +2 -1
  15. package/dist-types/commands/CreateGuardrailCommand.d.ts +2 -34
  16. package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -2
  17. package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -2
  18. package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +1 -2
  19. package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -2
  20. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -12
  21. package/dist-types/commands/CreateModelImportJobCommand.d.ts +2 -5
  22. package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -2
  23. package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -2
  24. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -2
  25. package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -9
  26. package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -3
  27. package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +1 -3
  28. package/dist-types/commands/GetCustomModelCommand.d.ts +6 -4
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +3 -4
  30. package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -3
  31. package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -2
  32. package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -3
  33. package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -2
  34. package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -3
  35. package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +1 -2
  36. package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -2
  37. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +3 -5
  38. package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -3
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  40. package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +1 -2
  41. package/dist-types/commands/TagResourceCommand.d.ts +2 -3
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -37
  44. package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +1 -2
  45. package/dist-types/commands/index.d.ts +1 -0
  46. package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  47. package/dist-types/models/models_0.d.ts +1188 -2462
  48. package/dist-types/models/models_1.d.ts +153 -3
  49. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  51. package/dist-types/runtimeConfig.native.d.ts +2 -2
  52. package/dist-types/ts3.4/Bedrock.d.ts +17 -0
  53. package/dist-types/ts3.4/BedrockClient.d.ts +6 -0
  54. package/dist-types/ts3.4/commands/CreateCustomModelCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +2 -4
  56. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  58. package/dist-types/ts3.4/models/models_0.d.ts +255 -308
  59. package/dist-types/ts3.4/models/models_1.d.ts +79 -1
  60. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  63. package/package.json +2 -2
@@ -108,6 +108,76 @@ export class ServiceUnavailableException extends __BaseException {
108
108
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
109
109
  }
110
110
  }
111
+ export var ModelDataSource;
112
+ (function (ModelDataSource) {
113
+ ModelDataSource.visit = (value, visitor) => {
114
+ if (value.s3DataSource !== undefined)
115
+ return visitor.s3DataSource(value.s3DataSource);
116
+ return visitor._(value.$unknown[0], value.$unknown[1]);
117
+ };
118
+ })(ModelDataSource || (ModelDataSource = {}));
119
+ export class TooManyTagsException extends __BaseException {
120
+ name = "TooManyTagsException";
121
+ $fault = "client";
122
+ resourceName;
123
+ constructor(opts) {
124
+ super({
125
+ name: "TooManyTagsException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
130
+ this.resourceName = opts.resourceName;
131
+ }
132
+ }
133
+ export var CustomizationConfig;
134
+ (function (CustomizationConfig) {
135
+ CustomizationConfig.visit = (value, visitor) => {
136
+ if (value.distillationConfig !== undefined)
137
+ return visitor.distillationConfig(value.distillationConfig);
138
+ return visitor._(value.$unknown[0], value.$unknown[1]);
139
+ };
140
+ })(CustomizationConfig || (CustomizationConfig = {}));
141
+ export const CustomizationType = {
142
+ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
143
+ DISTILLATION: "DISTILLATION",
144
+ FINE_TUNING: "FINE_TUNING",
145
+ IMPORTED: "IMPORTED",
146
+ };
147
+ export const ModelStatus = {
148
+ ACTIVE: "Active",
149
+ CREATING: "Creating",
150
+ FAILED: "Failed",
151
+ };
152
+ export var InvocationLogSource;
153
+ (function (InvocationLogSource) {
154
+ InvocationLogSource.visit = (value, visitor) => {
155
+ if (value.s3Uri !== undefined)
156
+ return visitor.s3Uri(value.s3Uri);
157
+ return visitor._(value.$unknown[0], value.$unknown[1]);
158
+ };
159
+ })(InvocationLogSource || (InvocationLogSource = {}));
160
+ export var RequestMetadataFilters;
161
+ (function (RequestMetadataFilters) {
162
+ RequestMetadataFilters.visit = (value, visitor) => {
163
+ if (value.equals !== undefined)
164
+ return visitor.equals(value.equals);
165
+ if (value.notEquals !== undefined)
166
+ return visitor.notEquals(value.notEquals);
167
+ if (value.andAll !== undefined)
168
+ return visitor.andAll(value.andAll);
169
+ if (value.orAll !== undefined)
170
+ return visitor.orAll(value.orAll);
171
+ return visitor._(value.$unknown[0], value.$unknown[1]);
172
+ };
173
+ })(RequestMetadataFilters || (RequestMetadataFilters = {}));
174
+ export const SortModelsBy = {
175
+ CREATION_TIME: "CreationTime",
176
+ };
177
+ export const SortOrder = {
178
+ ASCENDING: "Ascending",
179
+ DESCENDING: "Descending",
180
+ };
111
181
  export const EvaluationJobStatus = {
112
182
  COMPLETED: "Completed",
113
183
  DELETING: "Deleting",
@@ -217,10 +287,6 @@ export const EvaluationJobType = {
217
287
  export const SortJobsBy = {
218
288
  CREATION_TIME: "CreationTime",
219
289
  };
220
- export const SortOrder = {
221
- ASCENDING: "Ascending",
222
- DESCENDING: "Descending",
223
- };
224
290
  export const GuardrailContentFilterAction = {
225
291
  BLOCK: "BLOCK",
226
292
  NONE: "NONE",
@@ -303,20 +369,6 @@ export const GuardrailWordAction = {
303
369
  export const GuardrailManagedWordsType = {
304
370
  PROFANITY: "PROFANITY",
305
371
  };
306
- export class TooManyTagsException extends __BaseException {
307
- name = "TooManyTagsException";
308
- $fault = "client";
309
- resourceName;
310
- constructor(opts) {
311
- super({
312
- name: "TooManyTagsException",
313
- $fault: "client",
314
- ...opts,
315
- });
316
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
317
- this.resourceName = opts.resourceName;
318
- }
319
- }
320
372
  export const GuardrailStatus = {
321
373
  CREATING: "CREATING",
322
374
  DELETING: "DELETING",
@@ -345,22 +397,11 @@ export const ModelCopyJobStatus = {
345
397
  FAILED: "Failed",
346
398
  IN_PROGRESS: "InProgress",
347
399
  };
348
- export var ModelDataSource;
349
- (function (ModelDataSource) {
350
- ModelDataSource.visit = (value, visitor) => {
351
- if (value.s3DataSource !== undefined)
352
- return visitor.s3DataSource(value.s3DataSource);
353
- return visitor._(value.$unknown[0], value.$unknown[1]);
354
- };
355
- })(ModelDataSource || (ModelDataSource = {}));
356
400
  export const ModelImportJobStatus = {
357
401
  COMPLETED: "Completed",
358
402
  FAILED: "Failed",
359
403
  IN_PROGRESS: "InProgress",
360
404
  };
361
- export const SortModelsBy = {
362
- CREATION_TIME: "CreationTime",
363
- };
364
405
  export const S3InputFormat = {
365
406
  JSONL: "JSONL",
366
407
  };
@@ -392,41 +433,6 @@ export const ModelInvocationJobStatus = {
392
433
  SUBMITTED: "Submitted",
393
434
  VALIDATING: "Validating",
394
435
  };
395
- export var CustomizationConfig;
396
- (function (CustomizationConfig) {
397
- CustomizationConfig.visit = (value, visitor) => {
398
- if (value.distillationConfig !== undefined)
399
- return visitor.distillationConfig(value.distillationConfig);
400
- return visitor._(value.$unknown[0], value.$unknown[1]);
401
- };
402
- })(CustomizationConfig || (CustomizationConfig = {}));
403
- export const CustomizationType = {
404
- CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
405
- DISTILLATION: "DISTILLATION",
406
- FINE_TUNING: "FINE_TUNING",
407
- };
408
- export var InvocationLogSource;
409
- (function (InvocationLogSource) {
410
- InvocationLogSource.visit = (value, visitor) => {
411
- if (value.s3Uri !== undefined)
412
- return visitor.s3Uri(value.s3Uri);
413
- return visitor._(value.$unknown[0], value.$unknown[1]);
414
- };
415
- })(InvocationLogSource || (InvocationLogSource = {}));
416
- export var RequestMetadataFilters;
417
- (function (RequestMetadataFilters) {
418
- RequestMetadataFilters.visit = (value, visitor) => {
419
- if (value.equals !== undefined)
420
- return visitor.equals(value.equals);
421
- if (value.notEquals !== undefined)
422
- return visitor.notEquals(value.notEquals);
423
- if (value.andAll !== undefined)
424
- return visitor.andAll(value.andAll);
425
- if (value.orAll !== undefined)
426
- return visitor.orAll(value.orAll);
427
- return visitor._(value.$unknown[0], value.$unknown[1]);
428
- };
429
- })(RequestMetadataFilters || (RequestMetadataFilters = {}));
430
436
  export const ModelCustomization = {
431
437
  CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
432
438
  DISTILLATION: "DISTILLATION",
@@ -529,26 +535,41 @@ export var KnowledgeBaseConfig;
529
535
  return visitor._(value.$unknown[0], value.$unknown[1]);
530
536
  };
531
537
  })(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
532
- export var RAGConfig;
533
- (function (RAGConfig) {
534
- RAGConfig.visit = (value, visitor) => {
535
- if (value.knowledgeBaseConfig !== undefined)
536
- return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
537
- if (value.precomputedRagSourceConfig !== undefined)
538
- return visitor.precomputedRagSourceConfig(value.precomputedRagSourceConfig);
539
- return visitor._(value.$unknown[0], value.$unknown[1]);
540
- };
541
- })(RAGConfig || (RAGConfig = {}));
542
- export var EvaluationInferenceConfig;
543
- (function (EvaluationInferenceConfig) {
544
- EvaluationInferenceConfig.visit = (value, visitor) => {
545
- if (value.models !== undefined)
546
- return visitor.models(value.models);
547
- if (value.ragConfigs !== undefined)
548
- return visitor.ragConfigs(value.ragConfigs);
549
- return visitor._(value.$unknown[0], value.$unknown[1]);
550
- };
551
- })(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
538
+ export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
539
+ ...obj,
540
+ ...(obj.equals && { equals: SENSITIVE_STRING }),
541
+ ...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
542
+ });
543
+ export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
544
+ if (obj.equals !== undefined)
545
+ return { equals: SENSITIVE_STRING };
546
+ if (obj.notEquals !== undefined)
547
+ return { notEquals: SENSITIVE_STRING };
548
+ if (obj.andAll !== undefined)
549
+ return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
550
+ if (obj.orAll !== undefined)
551
+ return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
552
+ if (obj.$unknown !== undefined)
553
+ return { [obj.$unknown[0]]: "UNKNOWN" };
554
+ };
555
+ export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
556
+ ...obj,
557
+ ...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
558
+ ...(obj.requestMetadataFilters && {
559
+ requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
560
+ }),
561
+ });
562
+ export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
563
+ ...obj,
564
+ ...(obj.invocationLogsConfig && {
565
+ invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
566
+ }),
567
+ });
568
+ export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
569
+ ...obj,
570
+ ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
571
+ ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
572
+ });
552
573
  export const BatchDeleteEvaluationJobRequestFilterSensitiveLog = (obj) => ({
553
574
  ...obj,
554
575
  ...(obj.jobIdentifiers && { jobIdentifiers: SENSITIVE_STRING }),
@@ -885,41 +906,6 @@ export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
885
906
  invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
886
907
  }),
887
908
  });
888
- export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
889
- ...obj,
890
- ...(obj.equals && { equals: SENSITIVE_STRING }),
891
- ...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
892
- });
893
- export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
894
- if (obj.equals !== undefined)
895
- return { equals: SENSITIVE_STRING };
896
- if (obj.notEquals !== undefined)
897
- return { notEquals: SENSITIVE_STRING };
898
- if (obj.andAll !== undefined)
899
- return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
900
- if (obj.orAll !== undefined)
901
- return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
902
- if (obj.$unknown !== undefined)
903
- return { [obj.$unknown[0]]: "UNKNOWN" };
904
- };
905
- export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
906
- ...obj,
907
- ...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
908
- ...(obj.requestMetadataFilters && {
909
- requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
910
- }),
911
- });
912
- export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
913
- ...obj,
914
- ...(obj.invocationLogsConfig && {
915
- invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
916
- }),
917
- });
918
- export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
919
- ...obj,
920
- ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
921
- ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
922
- });
923
909
  export const CreatePromptRouterRequestFilterSensitiveLog = (obj) => ({
924
910
  ...obj,
925
911
  ...(obj.description && { description: SENSITIVE_STRING }),
@@ -1022,25 +1008,3 @@ export const KnowledgeBaseConfigFilterSensitiveLog = (obj) => {
1022
1008
  if (obj.$unknown !== undefined)
1023
1009
  return { [obj.$unknown[0]]: "UNKNOWN" };
1024
1010
  };
1025
- export const RAGConfigFilterSensitiveLog = (obj) => {
1026
- if (obj.knowledgeBaseConfig !== undefined)
1027
- return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
1028
- if (obj.precomputedRagSourceConfig !== undefined)
1029
- return { precomputedRagSourceConfig: obj.precomputedRagSourceConfig };
1030
- if (obj.$unknown !== undefined)
1031
- return { [obj.$unknown[0]]: "UNKNOWN" };
1032
- };
1033
- export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
1034
- if (obj.models !== undefined)
1035
- return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
1036
- if (obj.ragConfigs !== undefined)
1037
- return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
1038
- if (obj.$unknown !== undefined)
1039
- return { [obj.$unknown[0]]: "UNKNOWN" };
1040
- };
1041
- export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
1042
- ...obj,
1043
- ...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
1044
- ...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
1045
- ...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
1046
- });
@@ -1,5 +1,47 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { EvaluationConfigFilterSensitiveLog, EvaluationInferenceConfigFilterSensitiveLog, } from "./models_0";
2
+ import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, KnowledgeBaseConfigFilterSensitiveLog, } from "./models_0";
3
+ export var RAGConfig;
4
+ (function (RAGConfig) {
5
+ RAGConfig.visit = (value, visitor) => {
6
+ if (value.knowledgeBaseConfig !== undefined)
7
+ return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
8
+ if (value.precomputedRagSourceConfig !== undefined)
9
+ return visitor.precomputedRagSourceConfig(value.precomputedRagSourceConfig);
10
+ return visitor._(value.$unknown[0], value.$unknown[1]);
11
+ };
12
+ })(RAGConfig || (RAGConfig = {}));
13
+ export var EvaluationInferenceConfig;
14
+ (function (EvaluationInferenceConfig) {
15
+ EvaluationInferenceConfig.visit = (value, visitor) => {
16
+ if (value.models !== undefined)
17
+ return visitor.models(value.models);
18
+ if (value.ragConfigs !== undefined)
19
+ return visitor.ragConfigs(value.ragConfigs);
20
+ return visitor._(value.$unknown[0], value.$unknown[1]);
21
+ };
22
+ })(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
23
+ export const RAGConfigFilterSensitiveLog = (obj) => {
24
+ if (obj.knowledgeBaseConfig !== undefined)
25
+ return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
26
+ if (obj.precomputedRagSourceConfig !== undefined)
27
+ return { precomputedRagSourceConfig: obj.precomputedRagSourceConfig };
28
+ if (obj.$unknown !== undefined)
29
+ return { [obj.$unknown[0]]: "UNKNOWN" };
30
+ };
31
+ export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
32
+ if (obj.models !== undefined)
33
+ return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
34
+ if (obj.ragConfigs !== undefined)
35
+ return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
36
+ if (obj.$unknown !== undefined)
37
+ return { [obj.$unknown[0]]: "UNKNOWN" };
38
+ };
39
+ export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
40
+ ...obj,
41
+ ...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
42
+ ...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
43
+ ...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
44
+ });
3
45
  export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
4
46
  ...obj,
5
47
  ...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
@@ -3,7 +3,8 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
6
- import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig, EvaluationInferenceConfig, InternalServerException, KnowledgeBaseConfig, RAGConfig, RatingScaleItemValue, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
6
+ import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig, InternalServerException, KnowledgeBaseConfig, RatingScaleItemValue, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
7
+ import { EvaluationInferenceConfig, RAGConfig } from "../models/models_1";
7
8
  export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
8
9
  const b = rb(input, context);
9
10
  const headers = {
@@ -17,6 +18,24 @@ export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
17
18
  b.m("POST").h(headers).b(body);
18
19
  return b.build();
19
20
  };
21
+ export const se_CreateCustomModelCommand = async (input, context) => {
22
+ const b = rb(input, context);
23
+ const headers = {
24
+ "content-type": "application/json",
25
+ };
26
+ b.bp("/custom-models/create-custom-model");
27
+ let body;
28
+ body = JSON.stringify(take(input, {
29
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
30
+ modelKmsKeyArn: [],
31
+ modelName: [],
32
+ modelSourceConfig: (_) => _json(_),
33
+ modelTags: (_) => _json(_),
34
+ roleArn: [],
35
+ }));
36
+ b.m("POST").h(headers).b(body);
37
+ return b.build();
38
+ };
20
39
  export const se_CreateEvaluationJobCommand = async (input, context) => {
21
40
  const b = rb(input, context);
22
41
  const headers = {
@@ -463,6 +482,7 @@ export const se_ListCustomModelsCommand = async (input, context) => {
463
482
  [_sB]: [, input[_sB]],
464
483
  [_sO]: [, input[_sO]],
465
484
  [_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()],
485
+ [_mS]: [, input[_mS]],
466
486
  });
467
487
  let body;
468
488
  b.m("GET").h(headers).q(query).b(body);
@@ -827,6 +847,20 @@ export const de_BatchDeleteEvaluationJobCommand = async (output, context) => {
827
847
  Object.assign(contents, doc);
828
848
  return contents;
829
849
  };
850
+ export const de_CreateCustomModelCommand = async (output, context) => {
851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
852
+ return de_CommandError(output, context);
853
+ }
854
+ const contents = map({
855
+ $metadata: deserializeMetadata(output),
856
+ });
857
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
858
+ const doc = take(data, {
859
+ modelArn: __expectString,
860
+ });
861
+ Object.assign(contents, doc);
862
+ return contents;
863
+ };
830
864
  export const de_CreateEvaluationJobCommand = async (output, context) => {
831
865
  if (output.statusCode !== 202 && output.statusCode >= 300) {
832
866
  return de_CommandError(output, context);
@@ -1089,12 +1123,14 @@ export const de_GetCustomModelCommand = async (output, context) => {
1089
1123
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1090
1124
  customizationConfig: (_) => _json(__expectUnion(_)),
1091
1125
  customizationType: __expectString,
1126
+ failureMessage: __expectString,
1092
1127
  hyperParameters: _json,
1093
1128
  jobArn: __expectString,
1094
1129
  jobName: __expectString,
1095
1130
  modelArn: __expectString,
1096
1131
  modelKmsKeyArn: __expectString,
1097
1132
  modelName: __expectString,
1133
+ modelStatus: __expectString,
1098
1134
  outputDataConfig: _json,
1099
1135
  trainingDataConfig: _json,
1100
1136
  trainingMetrics: (_) => de_TrainingMetrics(_, context),
@@ -2213,6 +2249,7 @@ const de_CustomModelSummary = (output, context) => {
2213
2249
  customizationType: __expectString,
2214
2250
  modelArn: __expectString,
2215
2251
  modelName: __expectString,
2252
+ modelStatus: __expectString,
2216
2253
  ownerAccountId: __expectString,
2217
2254
  });
2218
2255
  };
@@ -2823,6 +2860,7 @@ const _gV = "guardrailVersion";
2823
2860
  const _iO = "isOwned";
2824
2861
  const _mAE = "modelArnEquals";
2825
2862
  const _mR = "maxResults";
2863
+ const _mS = "modelStatus";
2826
2864
  const _mSE = "modelSourceEquals";
2827
2865
  const _mSI = "modelSourceIdentifier";
2828
2866
  const _nC = "nameContains";
@@ -1,6 +1,7 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockClient } from "./BedrockClient";
3
3
  import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
4
+ import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
4
5
  import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
5
6
  import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
6
7
  import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
@@ -66,6 +67,12 @@ export interface Bedrock {
66
67
  batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteEvaluationJobCommandOutput>;
67
68
  batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void): void;
68
69
  batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link CreateCustomModelCommand}
72
+ */
73
+ createCustomModel(args: CreateCustomModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateCustomModelCommandOutput>;
74
+ createCustomModel(args: CreateCustomModelCommandInput, cb: (err: any, data?: CreateCustomModelCommandOutput) => void): void;
75
+ createCustomModel(args: CreateCustomModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCustomModelCommandOutput) => void): void;
69
76
  /**
70
77
  * @see {@link CreateEvaluationJobCommand}
71
78
  */
@@ -8,6 +8,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
11
+ import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
11
12
  import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
12
13
  import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
13
14
  import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
@@ -72,11 +73,11 @@ export { __Client };
72
73
  /**
73
74
  * @public
74
75
  */
75
- export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
76
+ export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateCustomModelCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
76
77
  /**
77
78
  * @public
78
79
  */
79
- export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
80
+ export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateCustomModelCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
80
81
  /**
81
82
  * @public
82
83
  */
@@ -27,9 +27,7 @@ declare const BatchDeleteEvaluationJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has
31
- * following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>.
32
- * You can request up to 25 model evaluation jobs be deleted in a single request.</p>
30
+ * <p>Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>. You can request up to 25 model evaluation jobs be deleted in a single request.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -0,0 +1,143 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
+ import { CreateCustomModelRequest, CreateCustomModelResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateCustomModelCommand}.
14
+ */
15
+ export interface CreateCustomModelCommandInput extends CreateCustomModelRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateCustomModelCommand}.
21
+ */
22
+ export interface CreateCustomModelCommandOutput extends CreateCustomModelResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateCustomModelCommand_base: {
25
+ new (input: CreateCustomModelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomModelCommandInput, CreateCustomModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateCustomModelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomModelCommandInput, CreateCustomModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.</p> <p>To use the model for inference, you must purchase Provisioned Throughput for it. You can't use On-demand inference with these custom models. For more information about Provisioned Throughput, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a>.</p> <p>The model appears in <code>ListCustomModels</code> with a <code>customizationType</code> of <code>imported</code>. To track the status of the new model, you use the <code>GetCustomModel</code> API operation. The model can be in the following states:</p> <ul> <li> <p> <code>Creating</code> - Initial state during validation and registration</p> </li> <li> <p> <code>Active</code> - Model is ready for use in inference</p> </li> <li> <p> <code>Failed</code> - Creation process encountered an error</p> </li> </ul> <p> <b>Related APIs</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html">GetCustomModel</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html">ListCustomModels</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html">DeleteCustomModel</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, CreateCustomModelCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, CreateCustomModelCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // CreateCustomModelRequest
38
+ * modelName: "STRING_VALUE", // required
39
+ * modelSourceConfig: { // ModelDataSource Union: only one key present
40
+ * s3DataSource: { // S3DataSource
41
+ * s3Uri: "STRING_VALUE", // required
42
+ * },
43
+ * },
44
+ * modelKmsKeyArn: "STRING_VALUE",
45
+ * roleArn: "STRING_VALUE",
46
+ * modelTags: [ // TagList
47
+ * { // Tag
48
+ * key: "STRING_VALUE", // required
49
+ * value: "STRING_VALUE", // required
50
+ * },
51
+ * ],
52
+ * clientRequestToken: "STRING_VALUE",
53
+ * };
54
+ * const command = new CreateCustomModelCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // CreateCustomModelResponse
57
+ * // modelArn: "STRING_VALUE", // required
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param CreateCustomModelCommandInput - {@link CreateCustomModelCommandInput}
63
+ * @returns {@link CreateCustomModelCommandOutput}
64
+ * @see {@link CreateCustomModelCommandInput} for command's `input` shape.
65
+ * @see {@link CreateCustomModelCommandOutput} for command's `response` shape.
66
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>The request is denied because of missing access permissions.</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>Error occurred because of a conflict while performing an operation.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>An internal server error occurred. Retry your request.</p>
76
+ *
77
+ * @throws {@link ResourceNotFoundException} (client fault)
78
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
79
+ *
80
+ * @throws {@link ServiceQuotaExceededException} (client fault)
81
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
85
+ *
86
+ * @throws {@link TooManyTagsException} (client fault)
87
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. </p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
91
+ *
92
+ * @throws {@link BedrockServiceException}
93
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
94
+ *
95
+ *
96
+ * @example Successful CreateCustomModel API call
97
+ * ```javascript
98
+ * //
99
+ * const input = {
100
+ * clientRequestToken: "foo",
101
+ * modelKmsKeyArn: "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab",
102
+ * modelName: "SampleModel",
103
+ * modelSourceConfig: {
104
+ * s3DataSource: {
105
+ * s3Uri: "s3://my-bucket/folder"
106
+ * }
107
+ * },
108
+ * modelTags: [
109
+ * {
110
+ * key: "foo",
111
+ * value: "foo"
112
+ * },
113
+ * {
114
+ * key: "foo",
115
+ * value: "foo"
116
+ * }
117
+ * ],
118
+ * roleArn: "arn:aws:iam::123456789012:role/SampleRole"
119
+ * };
120
+ * const command = new CreateCustomModelCommand(input);
121
+ * const response = await client.send(command);
122
+ * /* response is
123
+ * {
124
+ * modelArn: "arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456"
125
+ * }
126
+ * *\/
127
+ * ```
128
+ *
129
+ * @public
130
+ */
131
+ export declare class CreateCustomModelCommand extends CreateCustomModelCommand_base {
132
+ /** @internal type navigation helper, not in runtime. */
133
+ protected static __types: {
134
+ api: {
135
+ input: CreateCustomModelRequest;
136
+ output: CreateCustomModelResponse;
137
+ };
138
+ sdk: {
139
+ input: CreateCustomModelCommandInput;
140
+ output: CreateCustomModelCommandOutput;
141
+ };
142
+ };
143
+ }