@aws-sdk/client-bedrock 3.635.0 → 3.640.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 (59) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +646 -78
  3. package/dist-es/Bedrock.js +18 -0
  4. package/dist-es/commands/BatchDeleteEvaluationJobCommand.js +25 -0
  5. package/dist-es/commands/CreateModelImportJobCommand.js +24 -0
  6. package/dist-es/commands/DeleteImportedModelCommand.js +24 -0
  7. package/dist-es/commands/GetImportedModelCommand.js +24 -0
  8. package/dist-es/commands/GetInferenceProfileCommand.js +24 -0
  9. package/dist-es/commands/GetModelImportJobCommand.js +24 -0
  10. package/dist-es/commands/ListImportedModelsCommand.js +24 -0
  11. package/dist-es/commands/ListInferenceProfilesCommand.js +24 -0
  12. package/dist-es/commands/ListModelImportJobsCommand.js +24 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/models_0.js +97 -58
  15. package/dist-es/pagination/ListImportedModelsPaginator.js +4 -0
  16. package/dist-es/pagination/ListInferenceProfilesPaginator.js +4 -0
  17. package/dist-es/pagination/ListModelImportJobsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +3 -0
  19. package/dist-es/protocols/Aws_restJson1.js +329 -3
  20. package/dist-types/Bedrock.d.ts +66 -0
  21. package/dist-types/BedrockClient.d.ts +11 -2
  22. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +92 -0
  23. package/dist-types/commands/CreateModelImportJobCommand.d.ts +116 -0
  24. package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +2 -2
  25. package/dist-types/commands/DeleteImportedModelCommand.d.ts +78 -0
  26. package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
  27. package/dist-types/commands/GetImportedModelCommand.d.ts +86 -0
  28. package/dist-types/commands/GetInferenceProfileCommand.d.ts +87 -0
  29. package/dist-types/commands/GetModelImportJobCommand.d.ts +100 -0
  30. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +2 -2
  31. package/dist-types/commands/ListImportedModelsCommand.d.ts +87 -0
  32. package/dist-types/commands/ListInferenceProfilesCommand.d.ts +90 -0
  33. package/dist-types/commands/ListModelImportJobsCommand.d.ts +93 -0
  34. package/dist-types/commands/index.d.ts +9 -0
  35. package/dist-types/models/models_0.d.ts +952 -249
  36. package/dist-types/pagination/ListImportedModelsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/ListInferenceProfilesPaginator.d.ts +7 -0
  38. package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +7 -0
  39. package/dist-types/pagination/index.d.ts +3 -0
  40. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  41. package/dist-types/ts3.4/Bedrock.d.ts +156 -0
  42. package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
  43. package/dist-types/ts3.4/commands/BatchDeleteEvaluationJobCommand.d.ts +40 -0
  44. package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +40 -0
  45. package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +40 -0
  46. package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +40 -0
  48. package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +40 -0
  49. package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +40 -0
  50. package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +40 -0
  51. package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +40 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +239 -45
  54. package/dist-types/ts3.4/pagination/ListImportedModelsPaginator.d.ts +11 -0
  55. package/dist-types/ts3.4/pagination/ListInferenceProfilesPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/ListModelImportJobsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  59. package/package.json +6 -6
@@ -7,23 +7,29 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
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
+ import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
10
11
  import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
11
12
  import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
12
13
  import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
13
14
  import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand";
14
15
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
16
+ import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "./commands/CreateModelImportJobCommand";
15
17
  import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOutput } from "./commands/CreateModelInvocationJobCommand";
16
18
  import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
17
19
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
18
20
  import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
21
+ import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } from "./commands/DeleteImportedModelCommand";
19
22
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
20
23
  import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
21
24
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
22
25
  import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
23
26
  import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
24
27
  import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
28
+ import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
29
+ import { GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput } from "./commands/GetInferenceProfileCommand";
25
30
  import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
26
31
  import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
32
+ import { GetModelImportJobCommandInput, GetModelImportJobCommandOutput } from "./commands/GetModelImportJobCommand";
27
33
  import { GetModelInvocationJobCommandInput, GetModelInvocationJobCommandOutput } from "./commands/GetModelInvocationJobCommand";
28
34
  import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
29
35
  import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
@@ -31,8 +37,11 @@ import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./c
31
37
  import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
32
38
  import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
33
39
  import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
40
+ import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
41
+ import { ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput } from "./commands/ListInferenceProfilesCommand";
34
42
  import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
35
43
  import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
44
+ import { ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput } from "./commands/ListModelImportJobsCommand";
36
45
  import { ListModelInvocationJobsCommandInput, ListModelInvocationJobsCommandOutput } from "./commands/ListModelInvocationJobsCommand";
37
46
  import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
38
47
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -50,11 +59,11 @@ export { __Client };
50
59
  /**
51
60
  * @public
52
61
  */
53
- export type ServiceInputTypes = CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelInvocationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
62
+ export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
54
63
  /**
55
64
  * @public
56
65
  */
57
- export type ServiceOutputTypes = CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
66
+ export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
58
67
  /**
59
68
  * @public
60
69
  */
@@ -0,0 +1,92 @@
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 { BatchDeleteEvaluationJobRequest, BatchDeleteEvaluationJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchDeleteEvaluationJobCommand}.
14
+ */
15
+ export interface BatchDeleteEvaluationJobCommandInput extends BatchDeleteEvaluationJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchDeleteEvaluationJobCommand}.
21
+ */
22
+ export interface BatchDeleteEvaluationJobCommandOutput extends BatchDeleteEvaluationJobResponse, __MetadataBearer {
23
+ }
24
+ declare const BatchDeleteEvaluationJobCommand_base: {
25
+ new (input: BatchDeleteEvaluationJobCommandInput): import("@smithy/smithy-client").CommandImpl<BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchDeleteEvaluationJobCommandInput): import("@smithy/smithy-client").CommandImpl<BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a batch deletion job. A model 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>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, BatchDeleteEvaluationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, BatchDeleteEvaluationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // BatchDeleteEvaluationJobRequest
38
+ * jobIdentifiers: [ // EvaluationJobIdentifiers // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new BatchDeleteEvaluationJobCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // BatchDeleteEvaluationJobResponse
45
+ * // errors: [ // BatchDeleteEvaluationJobErrors // required
46
+ * // { // BatchDeleteEvaluationJobError
47
+ * // jobIdentifier: "STRING_VALUE", // required
48
+ * // code: "STRING_VALUE", // required
49
+ * // message: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // evaluationJobs: [ // BatchDeleteEvaluationJobItems // required
53
+ * // { // BatchDeleteEvaluationJobItem
54
+ * // jobIdentifier: "STRING_VALUE", // required
55
+ * // jobStatus: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting", // required
56
+ * // },
57
+ * // ],
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param BatchDeleteEvaluationJobCommandInput - {@link BatchDeleteEvaluationJobCommandInput}
63
+ * @returns {@link BatchDeleteEvaluationJobCommandOutput}
64
+ * @see {@link BatchDeleteEvaluationJobCommandInput} for command's `input` shape.
65
+ * @see {@link BatchDeleteEvaluationJobCommandOutput} 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 ThrottlingException} (client fault)
81
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
85
+ *
86
+ * @throws {@link BedrockServiceException}
87
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class BatchDeleteEvaluationJobCommand extends BatchDeleteEvaluationJobCommand_base {
92
+ }
@@ -0,0 +1,116 @@
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 { CreateModelImportJobRequest, CreateModelImportJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateModelImportJobCommand}.
14
+ */
15
+ export interface CreateModelImportJobCommandInput extends CreateModelImportJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateModelImportJobCommand}.
21
+ */
22
+ export interface CreateModelImportJobCommandOutput extends CreateModelImportJobResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateModelImportJobCommand_base: {
25
+ new (input: CreateModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information,
31
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">Import a customized model</a>
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockClient, CreateModelImportJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
37
+ * // const { BedrockClient, CreateModelImportJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
38
+ * const client = new BedrockClient(config);
39
+ * const input = { // CreateModelImportJobRequest
40
+ * jobName: "STRING_VALUE", // required
41
+ * importedModelName: "STRING_VALUE", // required
42
+ * roleArn: "STRING_VALUE", // required
43
+ * modelDataSource: { // ModelDataSource Union: only one key present
44
+ * s3DataSource: { // S3DataSource
45
+ * s3Uri: "STRING_VALUE", // required
46
+ * },
47
+ * },
48
+ * jobTags: [ // TagList
49
+ * { // Tag
50
+ * key: "STRING_VALUE", // required
51
+ * value: "STRING_VALUE", // required
52
+ * },
53
+ * ],
54
+ * importedModelTags: [
55
+ * {
56
+ * key: "STRING_VALUE", // required
57
+ * value: "STRING_VALUE", // required
58
+ * },
59
+ * ],
60
+ * clientRequestToken: "STRING_VALUE",
61
+ * vpcConfig: { // VpcConfig
62
+ * subnetIds: [ // SubnetIds // required
63
+ * "STRING_VALUE",
64
+ * ],
65
+ * securityGroupIds: [ // SecurityGroupIds // required
66
+ * "STRING_VALUE",
67
+ * ],
68
+ * },
69
+ * importedModelKmsKeyId: "STRING_VALUE",
70
+ * };
71
+ * const command = new CreateModelImportJobCommand(input);
72
+ * const response = await client.send(command);
73
+ * // { // CreateModelImportJobResponse
74
+ * // jobArn: "STRING_VALUE", // required
75
+ * // };
76
+ *
77
+ * ```
78
+ *
79
+ * @param CreateModelImportJobCommandInput - {@link CreateModelImportJobCommandInput}
80
+ * @returns {@link CreateModelImportJobCommandOutput}
81
+ * @see {@link CreateModelImportJobCommandInput} for command's `input` shape.
82
+ * @see {@link CreateModelImportJobCommandOutput} for command's `response` shape.
83
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
84
+ *
85
+ * @throws {@link AccessDeniedException} (client fault)
86
+ * <p>The request is denied because of missing access permissions.</p>
87
+ *
88
+ * @throws {@link ConflictException} (client fault)
89
+ * <p>Error occurred because of a conflict while performing an operation.</p>
90
+ *
91
+ * @throws {@link InternalServerException} (server fault)
92
+ * <p>An internal server error occurred. Retry your request.</p>
93
+ *
94
+ * @throws {@link ResourceNotFoundException} (client fault)
95
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
96
+ *
97
+ * @throws {@link ServiceQuotaExceededException} (client fault)
98
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
99
+ *
100
+ * @throws {@link ThrottlingException} (client fault)
101
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
102
+ *
103
+ * @throws {@link TooManyTagsException} (client fault)
104
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
105
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
106
+ *
107
+ * @throws {@link ValidationException} (client fault)
108
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
109
+ *
110
+ * @throws {@link BedrockServiceException}
111
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
112
+ *
113
+ * @public
114
+ */
115
+ export declare class CreateModelImportJobCommand extends CreateModelImportJobCommand_base {
116
+ }
@@ -27,8 +27,8 @@ declare const CreateModelInvocationJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a job to invoke a model on multiple prompts (batch inference). Format your data according to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-prerq.html#batch-inference-data">Format your inference data</a> and upload it to an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-create.html">Create a batch inference job</a>.</p>
31
- * <p>The response returns a <code>jobArn</code> that you can use to stop or get details about the job. You can check the status of the job by sending a <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html">GetModelCustomizationJob</a> request.</p>
30
+ * <p>Creates a batch inference job to invoke a model on multiple prompts. Format your data according to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data">Format your inference data</a> and upload it to an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html">Process multiple prompts with batch inference</a>.</p>
31
+ * <p>The response returns a <code>jobArn</code> that you can use to stop or get details about the job.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -0,0 +1,78 @@
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 { DeleteImportedModelRequest, DeleteImportedModelResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteImportedModelCommand}.
14
+ */
15
+ export interface DeleteImportedModelCommandInput extends DeleteImportedModelRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteImportedModelCommand}.
21
+ */
22
+ export interface DeleteImportedModelCommandOutput extends DeleteImportedModelResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteImportedModelCommand_base: {
25
+ new (input: DeleteImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a custom model that you imported earlier. For more information,
31
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">Import a customized model</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockClient, DeleteImportedModelCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
37
+ * // const { BedrockClient, DeleteImportedModelCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
38
+ * const client = new BedrockClient(config);
39
+ * const input = { // DeleteImportedModelRequest
40
+ * modelIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteImportedModelCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteImportedModelCommandInput - {@link DeleteImportedModelCommandInput}
49
+ * @returns {@link DeleteImportedModelCommandOutput}
50
+ * @see {@link DeleteImportedModelCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteImportedModelCommandOutput} for command's `response` shape.
52
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The request is denied because of missing access permissions.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>Error occurred because of a conflict while performing an operation.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Retry your request.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
71
+ *
72
+ * @throws {@link BedrockServiceException}
73
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DeleteImportedModelCommand extends DeleteImportedModelCommand_base {
78
+ }
@@ -42,7 +42,7 @@ declare const GetEvaluationJobCommand_base: {
42
42
  * const response = await client.send(command);
43
43
  * // { // GetEvaluationJobResponse
44
44
  * // jobName: "STRING_VALUE", // required
45
- * // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped", // required
45
+ * // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting", // required
46
46
  * // jobArn: "STRING_VALUE", // required
47
47
  * // jobDescription: "STRING_VALUE",
48
48
  * // roleArn: "STRING_VALUE", // required
@@ -0,0 +1,86 @@
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 { GetImportedModelRequest, GetImportedModelResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetImportedModelCommand}.
14
+ */
15
+ export interface GetImportedModelCommandInput extends GetImportedModelRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetImportedModelCommand}.
21
+ */
22
+ export interface GetImportedModelCommandOutput extends GetImportedModelResponse, __MetadataBearer {
23
+ }
24
+ declare const GetImportedModelCommand_base: {
25
+ new (input: GetImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<GetImportedModelCommandInput, GetImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<GetImportedModelCommandInput, GetImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets properties associated with a customized model you imported. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, GetImportedModelCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, GetImportedModelCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // GetImportedModelRequest
38
+ * modelIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetImportedModelCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetImportedModelResponse
43
+ * // modelArn: "STRING_VALUE",
44
+ * // modelName: "STRING_VALUE",
45
+ * // jobName: "STRING_VALUE",
46
+ * // jobArn: "STRING_VALUE",
47
+ * // modelDataSource: { // ModelDataSource Union: only one key present
48
+ * // s3DataSource: { // S3DataSource
49
+ * // s3Uri: "STRING_VALUE", // required
50
+ * // },
51
+ * // },
52
+ * // creationTime: new Date("TIMESTAMP"),
53
+ * // modelArchitecture: "STRING_VALUE",
54
+ * // modelKmsKeyArn: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetImportedModelCommandInput - {@link GetImportedModelCommandInput}
60
+ * @returns {@link GetImportedModelCommandOutput}
61
+ * @see {@link GetImportedModelCommandInput} for command's `input` shape.
62
+ * @see {@link GetImportedModelCommandOutput} for command's `response` shape.
63
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>The request is denied because of missing access permissions.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>An internal server error occurred. Retry your request.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
79
+ *
80
+ * @throws {@link BedrockServiceException}
81
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
82
+ *
83
+ * @public
84
+ */
85
+ export declare class GetImportedModelCommand extends GetImportedModelCommand_base {
86
+ }
@@ -0,0 +1,87 @@
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 { GetInferenceProfileRequest, GetInferenceProfileResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetInferenceProfileCommand}.
14
+ */
15
+ export interface GetInferenceProfileCommandInput extends GetInferenceProfileRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetInferenceProfileCommand}.
21
+ */
22
+ export interface GetInferenceProfileCommandOutput extends GetInferenceProfileResponse, __MetadataBearer {
23
+ }
24
+ declare const GetInferenceProfileCommand_base: {
25
+ new (input: GetInferenceProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetInferenceProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets information about an inference profile. For more information, see the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, GetInferenceProfileCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, GetInferenceProfileCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // GetInferenceProfileRequest
38
+ * inferenceProfileIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetInferenceProfileCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetInferenceProfileResponse
43
+ * // inferenceProfileName: "STRING_VALUE", // required
44
+ * // models: [ // InferenceProfileModels // required
45
+ * // { // InferenceProfileModel
46
+ * // modelArn: "STRING_VALUE",
47
+ * // },
48
+ * // ],
49
+ * // description: "STRING_VALUE",
50
+ * // createdAt: new Date("TIMESTAMP"),
51
+ * // updatedAt: new Date("TIMESTAMP"),
52
+ * // inferenceProfileArn: "STRING_VALUE", // required
53
+ * // inferenceProfileId: "STRING_VALUE", // required
54
+ * // status: "ACTIVE", // required
55
+ * // type: "SYSTEM_DEFINED", // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param GetInferenceProfileCommandInput - {@link GetInferenceProfileCommandInput}
61
+ * @returns {@link GetInferenceProfileCommandOutput}
62
+ * @see {@link GetInferenceProfileCommandInput} for command's `input` shape.
63
+ * @see {@link GetInferenceProfileCommandOutput} for command's `response` shape.
64
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>The request is denied because of missing access permissions.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>An internal server error occurred. Retry your request.</p>
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
80
+ *
81
+ * @throws {@link BedrockServiceException}
82
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
83
+ *
84
+ * @public
85
+ */
86
+ export declare class GetInferenceProfileCommand extends GetInferenceProfileCommand_base {
87
+ }