@aws-sdk/client-bedrock 3.422.0 → 3.423.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 (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Bedrock.js +10 -0
  3. package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
  5. package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
  6. package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +25 -12
  10. package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +386 -1
  13. package/dist-es/Bedrock.js +10 -0
  14. package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
  15. package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
  16. package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
  17. package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
  18. package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +22 -9
  21. package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +376 -1
  24. package/dist-types/Bedrock.d.ts +35 -0
  25. package/dist-types/BedrockClient.d.ts +7 -2
  26. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
  27. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
  28. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  30. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
  31. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
  33. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +370 -36
  37. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/Bedrock.d.ts +85 -0
  41. package/dist-types/ts3.4/BedrockClient.d.ts +32 -2
  42. package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +102 -15
  49. package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +3 -3
@@ -1,20 +1,25 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockClient } from "./BedrockClient";
3
3
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
4
+ import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
4
5
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
5
6
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
7
+ import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
6
8
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
7
9
  import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
8
10
  import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
9
11
  import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
12
+ import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
10
13
  import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
11
14
  import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
12
15
  import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
16
+ import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
13
17
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
14
18
  import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
15
19
  import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
16
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
17
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
+ import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
18
23
  export interface Bedrock {
19
24
  /**
20
25
  * @see {@link CreateModelCustomizationJobCommand}
@@ -22,6 +27,12 @@ export interface Bedrock {
22
27
  createModelCustomizationJob(args: CreateModelCustomizationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateModelCustomizationJobCommandOutput>;
23
28
  createModelCustomizationJob(args: CreateModelCustomizationJobCommandInput, cb: (err: any, data?: CreateModelCustomizationJobCommandOutput) => void): void;
24
29
  createModelCustomizationJob(args: CreateModelCustomizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateModelCustomizationJobCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link CreateProvisionedModelThroughputCommand}
32
+ */
33
+ createProvisionedModelThroughput(args: CreateProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<CreateProvisionedModelThroughputCommandOutput>;
34
+ createProvisionedModelThroughput(args: CreateProvisionedModelThroughputCommandInput, cb: (err: any, data?: CreateProvisionedModelThroughputCommandOutput) => void): void;
35
+ createProvisionedModelThroughput(args: CreateProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProvisionedModelThroughputCommandOutput) => void): void;
25
36
  /**
26
37
  * @see {@link DeleteCustomModelCommand}
27
38
  */
@@ -34,6 +45,12 @@ export interface Bedrock {
34
45
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;
35
46
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteModelInvocationLoggingConfigurationCommandOutput) => void): void;
36
47
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteModelInvocationLoggingConfigurationCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link DeleteProvisionedModelThroughputCommand}
50
+ */
51
+ deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProvisionedModelThroughputCommandOutput>;
52
+ deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, cb: (err: any, data?: DeleteProvisionedModelThroughputCommandOutput) => void): void;
53
+ deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProvisionedModelThroughputCommandOutput) => void): void;
37
54
  /**
38
55
  * @see {@link GetCustomModelCommand}
39
56
  */
@@ -58,6 +75,12 @@ export interface Bedrock {
58
75
  getModelInvocationLoggingConfiguration(args: GetModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetModelInvocationLoggingConfigurationCommandOutput>;
59
76
  getModelInvocationLoggingConfiguration(args: GetModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: GetModelInvocationLoggingConfigurationCommandOutput) => void): void;
60
77
  getModelInvocationLoggingConfiguration(args: GetModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetModelInvocationLoggingConfigurationCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link GetProvisionedModelThroughputCommand}
80
+ */
81
+ getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<GetProvisionedModelThroughputCommandOutput>;
82
+ getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
83
+ getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
61
84
  /**
62
85
  * @see {@link ListCustomModelsCommand}
63
86
  */
@@ -76,6 +99,12 @@ export interface Bedrock {
76
99
  listModelCustomizationJobs(args: ListModelCustomizationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListModelCustomizationJobsCommandOutput>;
77
100
  listModelCustomizationJobs(args: ListModelCustomizationJobsCommandInput, cb: (err: any, data?: ListModelCustomizationJobsCommandOutput) => void): void;
78
101
  listModelCustomizationJobs(args: ListModelCustomizationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListModelCustomizationJobsCommandOutput) => void): void;
102
+ /**
103
+ * @see {@link ListProvisionedModelThroughputsCommand}
104
+ */
105
+ listProvisionedModelThroughputs(args: ListProvisionedModelThroughputsCommandInput, options?: __HttpHandlerOptions): Promise<ListProvisionedModelThroughputsCommandOutput>;
106
+ listProvisionedModelThroughputs(args: ListProvisionedModelThroughputsCommandInput, cb: (err: any, data?: ListProvisionedModelThroughputsCommandOutput) => void): void;
107
+ listProvisionedModelThroughputs(args: ListProvisionedModelThroughputsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProvisionedModelThroughputsCommandOutput) => void): void;
79
108
  /**
80
109
  * @see {@link ListTagsForResourceCommand}
81
110
  */
@@ -106,6 +135,12 @@ export interface Bedrock {
106
135
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
107
136
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
108
137
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
138
+ /**
139
+ * @see {@link UpdateProvisionedModelThroughputCommand}
140
+ */
141
+ updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProvisionedModelThroughputCommandOutput>;
142
+ updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, cb: (err: any, data?: UpdateProvisionedModelThroughputCommandOutput) => void): void;
143
+ updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProvisionedModelThroughputCommandOutput) => void): void;
109
144
  }
110
145
  /**
111
146
  * @public
@@ -9,31 +9,36 @@ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
9
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
10
  import { 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";
11
11
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
12
+ import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
12
13
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
13
14
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
15
+ import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
14
16
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
15
17
  import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
16
18
  import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
17
19
  import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
20
+ import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
18
21
  import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
19
22
  import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
20
23
  import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
24
+ import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
21
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
26
  import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
23
27
  import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
24
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
+ import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
26
31
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
27
32
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
28
33
  export { __Client };
29
34
  /**
30
35
  * @public
31
36
  */
32
- export type ServiceInputTypes = CreateModelCustomizationJobCommandInput | DeleteCustomModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | GetCustomModelCommandInput | GetFoundationModelCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | ListCustomModelsCommandInput | ListFoundationModelsCommandInput | ListModelCustomizationJobsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
37
+ export type ServiceInputTypes = CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetFoundationModelCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListFoundationModelsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateProvisionedModelThroughputCommandInput;
33
38
  /**
34
39
  * @public
35
40
  */
36
- export type ServiceOutputTypes = CreateModelCustomizationJobCommandOutput | DeleteCustomModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | GetCustomModelCommandOutput | GetFoundationModelCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | ListCustomModelsCommandOutput | ListFoundationModelsCommandOutput | ListModelCustomizationJobsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
41
+ export type ServiceOutputTypes = CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetFoundationModelCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListFoundationModelsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
37
42
  /**
38
43
  * @public
39
44
  */
@@ -25,14 +25,14 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
25
25
  * @public
26
26
  * <p>Creates a fine-tuning job to customize a base model.</p>
27
27
  * <p>You specify the base foundation model and the location of the training data.
28
- * After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
29
- * contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
30
- * in the same format as the training data. Bedrock returns validation loss metrics and output generations
31
- * after the job completes.
32
- * </p>
28
+ * After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
29
+ * contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
30
+ * in the same format as the training data. Bedrock returns validation loss metrics and output generations
31
+ * after the job completes.
32
+ * </p>
33
33
  * <p>
34
- * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
35
- * To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
34
+ * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
35
+ * To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
36
36
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
37
37
  * @example
38
38
  * Use a bare-bones client and the command you need to make an API call.
@@ -118,7 +118,7 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
118
118
  *
119
119
  * @throws {@link TooManyTagsException} (client fault)
120
120
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
121
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
121
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
122
122
  *
123
123
  * @throws {@link ValidationException} (client fault)
124
124
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -0,0 +1,106 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
5
+ import { CreateProvisionedModelThroughputRequest, CreateProvisionedModelThroughputResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateProvisionedModelThroughputCommand}.
14
+ */
15
+ export interface CreateProvisionedModelThroughputCommandInput extends CreateProvisionedModelThroughputRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateProvisionedModelThroughputCommand}.
21
+ */
22
+ export interface CreateProvisionedModelThroughputCommandOutput extends CreateProvisionedModelThroughputResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.</p>
27
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, CreateProvisionedModelThroughputCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, CreateProvisionedModelThroughputCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
33
+ * const client = new BedrockClient(config);
34
+ * const input = { // CreateProvisionedModelThroughputRequest
35
+ * clientRequestToken: "STRING_VALUE",
36
+ * modelUnits: Number("int"), // required
37
+ * provisionedModelName: "STRING_VALUE", // required
38
+ * modelId: "STRING_VALUE", // required
39
+ * commitmentDuration: "OneMonth" || "SixMonths",
40
+ * tags: [ // TagList
41
+ * { // Tag
42
+ * key: "STRING_VALUE", // required
43
+ * value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new CreateProvisionedModelThroughputCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CreateProvisionedModelThroughputResponse
50
+ * // provisionedModelArn: "STRING_VALUE", // required
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param CreateProvisionedModelThroughputCommandInput - {@link CreateProvisionedModelThroughputCommandInput}
56
+ * @returns {@link CreateProvisionedModelThroughputCommandOutput}
57
+ * @see {@link CreateProvisionedModelThroughputCommandInput} for command's `input` shape.
58
+ * @see {@link CreateProvisionedModelThroughputCommandOutput} for command's `response` shape.
59
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>The request is denied because of missing access permissions.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>An internal server error occurred. Retry your request.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
69
+ *
70
+ * @throws {@link ServiceQuotaExceededException} (client fault)
71
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
75
+ *
76
+ * @throws {@link TooManyTagsException} (client fault)
77
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
78
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
82
+ *
83
+ * @throws {@link BedrockServiceException}
84
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
85
+ *
86
+ */
87
+ export declare class CreateProvisionedModelThroughputCommand extends $Command<CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig> {
88
+ readonly input: CreateProvisionedModelThroughputCommandInput;
89
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
90
+ /**
91
+ * @public
92
+ */
93
+ constructor(input: CreateProvisionedModelThroughputCommandInput);
94
+ /**
95
+ * @internal
96
+ */
97
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput>;
98
+ /**
99
+ * @internal
100
+ */
101
+ private serialize;
102
+ /**
103
+ * @internal
104
+ */
105
+ private deserialize;
106
+ }
@@ -0,0 +1,89 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
5
+ import { DeleteProvisionedModelThroughputRequest, DeleteProvisionedModelThroughputResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteProvisionedModelThroughputCommand}.
14
+ */
15
+ export interface DeleteProvisionedModelThroughputCommandInput extends DeleteProvisionedModelThroughputRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteProvisionedModelThroughputCommand}.
21
+ */
22
+ export interface DeleteProvisionedModelThroughputCommandOutput extends DeleteProvisionedModelThroughputResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { BedrockClient, DeleteProvisionedModelThroughputCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
31
+ * // const { BedrockClient, DeleteProvisionedModelThroughputCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
32
+ * const client = new BedrockClient(config);
33
+ * const input = { // DeleteProvisionedModelThroughputRequest
34
+ * provisionedModelId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteProvisionedModelThroughputCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteProvisionedModelThroughputCommandInput - {@link DeleteProvisionedModelThroughputCommandInput}
43
+ * @returns {@link DeleteProvisionedModelThroughputCommandOutput}
44
+ * @see {@link DeleteProvisionedModelThroughputCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteProvisionedModelThroughputCommandOutput} for command's `response` shape.
46
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
47
+ *
48
+ * @throws {@link AccessDeniedException} (client fault)
49
+ * <p>The request is denied because of missing access permissions.</p>
50
+ *
51
+ * @throws {@link ConflictException} (client fault)
52
+ * <p>Error occurred because of a conflict while performing an operation.</p>
53
+ *
54
+ * @throws {@link InternalServerException} (server fault)
55
+ * <p>An internal server error occurred. Retry your request.</p>
56
+ *
57
+ * @throws {@link ResourceNotFoundException} (client fault)
58
+ * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
59
+ *
60
+ * @throws {@link ThrottlingException} (client fault)
61
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
65
+ *
66
+ * @throws {@link BedrockServiceException}
67
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
68
+ *
69
+ */
70
+ export declare class DeleteProvisionedModelThroughputCommand extends $Command<DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig> {
71
+ readonly input: DeleteProvisionedModelThroughputCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
+ /**
74
+ * @public
75
+ */
76
+ constructor(input: DeleteProvisionedModelThroughputCommandInput);
77
+ /**
78
+ * @internal
79
+ */
80
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput>;
81
+ /**
82
+ * @internal
83
+ */
84
+ private serialize;
85
+ /**
86
+ * @internal
87
+ */
88
+ private deserialize;
89
+ }
@@ -24,7 +24,7 @@ export interface GetModelCustomizationJobCommandOutput extends GetModelCustomiza
24
24
  /**
25
25
  * @public
26
26
  * <p>Retrieves the properties associated with a model-customization job, including the status of the job.
27
- * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
27
+ * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -0,0 +1,100 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
5
+ import { GetProvisionedModelThroughputRequest, GetProvisionedModelThroughputResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetProvisionedModelThroughputCommand}.
14
+ */
15
+ export interface GetProvisionedModelThroughputCommandInput extends GetProvisionedModelThroughputRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetProvisionedModelThroughputCommand}.
21
+ */
22
+ export interface GetProvisionedModelThroughputCommandOutput extends GetProvisionedModelThroughputResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Get details for a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { BedrockClient, GetProvisionedModelThroughputCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
31
+ * // const { BedrockClient, GetProvisionedModelThroughputCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
32
+ * const client = new BedrockClient(config);
33
+ * const input = { // GetProvisionedModelThroughputRequest
34
+ * provisionedModelId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new GetProvisionedModelThroughputCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // GetProvisionedModelThroughputResponse
39
+ * // modelUnits: Number("int"), // required
40
+ * // desiredModelUnits: Number("int"), // required
41
+ * // provisionedModelName: "STRING_VALUE", // required
42
+ * // provisionedModelArn: "STRING_VALUE", // required
43
+ * // modelArn: "STRING_VALUE", // required
44
+ * // desiredModelArn: "STRING_VALUE", // required
45
+ * // foundationModelArn: "STRING_VALUE", // required
46
+ * // status: "Creating" || "InService" || "Updating" || "Failed", // required
47
+ * // creationTime: new Date("TIMESTAMP"), // required
48
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
49
+ * // failureMessage: "STRING_VALUE",
50
+ * // commitmentDuration: "OneMonth" || "SixMonths",
51
+ * // commitmentExpirationTime: new Date("TIMESTAMP"),
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetProvisionedModelThroughputCommandInput - {@link GetProvisionedModelThroughputCommandInput}
57
+ * @returns {@link GetProvisionedModelThroughputCommandOutput}
58
+ * @see {@link GetProvisionedModelThroughputCommandInput} for command's `input` shape.
59
+ * @see {@link GetProvisionedModelThroughputCommandOutput} for command's `response` shape.
60
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
61
+ *
62
+ * @throws {@link AccessDeniedException} (client fault)
63
+ * <p>The request is denied because of missing access permissions.</p>
64
+ *
65
+ * @throws {@link InternalServerException} (server fault)
66
+ * <p>An internal server error occurred. Retry your request.</p>
67
+ *
68
+ * @throws {@link ResourceNotFoundException} (client fault)
69
+ * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
70
+ *
71
+ * @throws {@link ThrottlingException} (client fault)
72
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
76
+ *
77
+ * @throws {@link BedrockServiceException}
78
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
79
+ *
80
+ */
81
+ export declare class GetProvisionedModelThroughputCommand extends $Command<GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig> {
82
+ readonly input: GetProvisionedModelThroughputCommandInput;
83
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
84
+ /**
85
+ * @public
86
+ */
87
+ constructor(input: GetProvisionedModelThroughputCommandInput);
88
+ /**
89
+ * @internal
90
+ */
91
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput>;
92
+ /**
93
+ * @internal
94
+ */
95
+ private serialize;
96
+ /**
97
+ * @internal
98
+ */
99
+ private deserialize;
100
+ }
@@ -24,7 +24,7 @@ export interface ListModelCustomizationJobsCommandOutput extends ListModelCustom
24
24
  /**
25
25
  * @public
26
26
  * <p>Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on
27
- * one or more criteria.</p>
27
+ * one or more criteria.</p>
28
28
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,109 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
5
+ import { ListProvisionedModelThroughputsRequest, ListProvisionedModelThroughputsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListProvisionedModelThroughputsCommand}.
14
+ */
15
+ export interface ListProvisionedModelThroughputsCommandInput extends ListProvisionedModelThroughputsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListProvisionedModelThroughputsCommand}.
21
+ */
22
+ export interface ListProvisionedModelThroughputsCommandOutput extends ListProvisionedModelThroughputsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>List the provisioned capacities. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned throughput</a> in the Bedrock User Guide.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { BedrockClient, ListProvisionedModelThroughputsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
31
+ * // const { BedrockClient, ListProvisionedModelThroughputsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
32
+ * const client = new BedrockClient(config);
33
+ * const input = { // ListProvisionedModelThroughputsRequest
34
+ * creationTimeAfter: new Date("TIMESTAMP"),
35
+ * creationTimeBefore: new Date("TIMESTAMP"),
36
+ * statusEquals: "Creating" || "InService" || "Updating" || "Failed",
37
+ * modelArnEquals: "STRING_VALUE",
38
+ * nameContains: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * sortBy: "CreationTime",
42
+ * sortOrder: "Ascending" || "Descending",
43
+ * };
44
+ * const command = new ListProvisionedModelThroughputsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListProvisionedModelThroughputsResponse
47
+ * // nextToken: "STRING_VALUE",
48
+ * // provisionedModelSummaries: [ // ProvisionedModelSummaries
49
+ * // { // ProvisionedModelSummary
50
+ * // provisionedModelName: "STRING_VALUE", // required
51
+ * // provisionedModelArn: "STRING_VALUE", // required
52
+ * // modelArn: "STRING_VALUE", // required
53
+ * // desiredModelArn: "STRING_VALUE", // required
54
+ * // foundationModelArn: "STRING_VALUE", // required
55
+ * // modelUnits: Number("int"), // required
56
+ * // desiredModelUnits: Number("int"), // required
57
+ * // status: "Creating" || "InService" || "Updating" || "Failed", // required
58
+ * // commitmentDuration: "OneMonth" || "SixMonths",
59
+ * // commitmentExpirationTime: new Date("TIMESTAMP"),
60
+ * // creationTime: new Date("TIMESTAMP"), // required
61
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
62
+ * // },
63
+ * // ],
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param ListProvisionedModelThroughputsCommandInput - {@link ListProvisionedModelThroughputsCommandInput}
69
+ * @returns {@link ListProvisionedModelThroughputsCommandOutput}
70
+ * @see {@link ListProvisionedModelThroughputsCommandInput} for command's `input` shape.
71
+ * @see {@link ListProvisionedModelThroughputsCommandOutput} for command's `response` shape.
72
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDeniedException} (client fault)
75
+ * <p>The request is denied because of missing access permissions.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>An internal server error occurred. Retry your request.</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
+ */
90
+ export declare class ListProvisionedModelThroughputsCommand extends $Command<ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput, BedrockClientResolvedConfig> {
91
+ readonly input: ListProvisionedModelThroughputsCommandInput;
92
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
93
+ /**
94
+ * @public
95
+ */
96
+ constructor(input: ListProvisionedModelThroughputsCommandInput);
97
+ /**
98
+ * @internal
99
+ */
100
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput>;
101
+ /**
102
+ * @internal
103
+ */
104
+ private serialize;
105
+ /**
106
+ * @internal
107
+ */
108
+ private deserialize;
109
+ }
@@ -65,7 +65,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
65
65
  *
66
66
  * @throws {@link TooManyTagsException} (client fault)
67
67
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
68
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
68
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
69
69
  *
70
70
  * @throws {@link ValidationException} (client fault)
71
71
  * <p>Input validation failed. Check your request parameters and retry the request.</p>