@aws-sdk/client-bedrock 3.422.1 → 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.
- package/README.md +40 -0
- package/dist-cjs/Bedrock.js +10 -0
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +25 -12
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +386 -1
- package/dist-es/Bedrock.js +10 -0
- package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
- package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +22 -9
- package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +376 -1
- package/dist-types/Bedrock.d.ts +35 -0
- package/dist-types/BedrockClient.d.ts +7 -2
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +370 -36
- package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Bedrock.d.ts +363 -115
- package/dist-types/ts3.4/BedrockClient.d.ts +238 -182
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +42 -149
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +39 -89
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +42 -78
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +38 -118
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +39 -106
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +42 -133
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +42 -96
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +38 -103
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +42 -108
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +42 -107
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -94
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +42 -99
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +42 -89
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -96
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -89
- package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -15
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
- package/dist-types/ts3.4/index.d.ts +7 -12
- package/dist-types/ts3.4/models/BedrockServiceException.d.ts +8 -13
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +412 -1144
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -8
- package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +245 -137
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
- package/package.json +3 -3
|
@@ -0,0 +1,88 @@
|
|
|
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 { UpdateProvisionedModelThroughputRequest, UpdateProvisionedModelThroughputResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateProvisionedModelThroughputCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateProvisionedModelThroughputCommandInput extends UpdateProvisionedModelThroughputRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateProvisionedModelThroughputCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateProvisionedModelThroughputCommandOutput extends UpdateProvisionedModelThroughputResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Update 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, UpdateProvisionedModelThroughputCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
31
|
+
* // const { BedrockClient, UpdateProvisionedModelThroughputCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
32
|
+
* const client = new BedrockClient(config);
|
|
33
|
+
* const input = { // UpdateProvisionedModelThroughputRequest
|
|
34
|
+
* provisionedModelId: "STRING_VALUE", // required
|
|
35
|
+
* desiredProvisionedModelName: "STRING_VALUE",
|
|
36
|
+
* desiredModelId: "STRING_VALUE",
|
|
37
|
+
* };
|
|
38
|
+
* const command = new UpdateProvisionedModelThroughputCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param UpdateProvisionedModelThroughputCommandInput - {@link UpdateProvisionedModelThroughputCommandInput}
|
|
45
|
+
* @returns {@link UpdateProvisionedModelThroughputCommandOutput}
|
|
46
|
+
* @see {@link UpdateProvisionedModelThroughputCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link UpdateProvisionedModelThroughputCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
51
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InternalServerException} (server fault)
|
|
54
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
57
|
+
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
60
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link BedrockServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class UpdateProvisionedModelThroughputCommand extends $Command<UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig> {
|
|
70
|
+
readonly input: UpdateProvisionedModelThroughputCommandInput;
|
|
71
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
constructor(input: UpdateProvisionedModelThroughputCommandInput);
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput>;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
private serialize;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
private deserialize;
|
|
88
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
export * from "./CreateModelCustomizationJobCommand";
|
|
2
|
+
export * from "./CreateProvisionedModelThroughputCommand";
|
|
2
3
|
export * from "./DeleteCustomModelCommand";
|
|
3
4
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
5
|
+
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
4
6
|
export * from "./GetCustomModelCommand";
|
|
5
7
|
export * from "./GetFoundationModelCommand";
|
|
6
8
|
export * from "./GetModelCustomizationJobCommand";
|
|
7
9
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
10
|
+
export * from "./GetProvisionedModelThroughputCommand";
|
|
8
11
|
export * from "./ListCustomModelsCommand";
|
|
9
12
|
export * from "./ListFoundationModelsCommand";
|
|
10
13
|
export * from "./ListModelCustomizationJobsCommand";
|
|
14
|
+
export * from "./ListProvisionedModelThroughputsCommand";
|
|
11
15
|
export * from "./ListTagsForResourceCommand";
|
|
12
16
|
export * from "./PutModelInvocationLoggingConfigurationCommand";
|
|
13
17
|
export * from "./StopModelCustomizationJobCommand";
|
|
14
18
|
export * from "./TagResourceCommand";
|
|
15
19
|
export * from "./UntagResourceCommand";
|
|
20
|
+
export * from "./UpdateProvisionedModelThroughputCommand";
|
|
@@ -655,14 +655,16 @@ export interface ListFoundationModelsResponse {
|
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
657
|
* @public
|
|
658
|
+
* @enum
|
|
658
659
|
*/
|
|
659
|
-
export
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
660
|
+
export declare const CommitmentDuration: {
|
|
661
|
+
readonly ONE_MONTH: "OneMonth";
|
|
662
|
+
readonly SIX_MONTHS: "SixMonths";
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* @public
|
|
666
|
+
*/
|
|
667
|
+
export type CommitmentDuration = (typeof CommitmentDuration)[keyof typeof CommitmentDuration];
|
|
666
668
|
/**
|
|
667
669
|
* @public
|
|
668
670
|
* <p>Definition of the key/value pair for a tag.</p>
|
|
@@ -682,37 +684,65 @@ export interface Tag {
|
|
|
682
684
|
/**
|
|
683
685
|
* @public
|
|
684
686
|
*/
|
|
685
|
-
export interface
|
|
687
|
+
export interface CreateProvisionedModelThroughputRequest {
|
|
686
688
|
/**
|
|
687
689
|
* @public
|
|
688
|
-
* <p>
|
|
690
|
+
* <p>Unique token value that you can provide. If this token matches a previous request,
|
|
691
|
+
* Bedrock ignores the request, but does not return an error.</p>
|
|
692
|
+
*/
|
|
693
|
+
clientRequestToken?: string;
|
|
694
|
+
/**
|
|
695
|
+
* @public
|
|
696
|
+
* <p>Number of model units to allocate.</p>
|
|
697
|
+
*/
|
|
698
|
+
modelUnits: number | undefined;
|
|
699
|
+
/**
|
|
700
|
+
* @public
|
|
701
|
+
* <p>Unique name for this provisioned throughput.</p>
|
|
702
|
+
*/
|
|
703
|
+
provisionedModelName: string | undefined;
|
|
704
|
+
/**
|
|
705
|
+
* @public
|
|
706
|
+
* <p>Name or ARN of the model to associate with this provisioned throughput.</p>
|
|
707
|
+
*/
|
|
708
|
+
modelId: string | undefined;
|
|
709
|
+
/**
|
|
710
|
+
* @public
|
|
711
|
+
* <p>Commitment duration requested for the provisioned throughput.</p>
|
|
712
|
+
*/
|
|
713
|
+
commitmentDuration?: CommitmentDuration | string;
|
|
714
|
+
/**
|
|
715
|
+
* @public
|
|
716
|
+
* <p>Tags to associate with this provisioned throughput.</p>
|
|
689
717
|
*/
|
|
690
718
|
tags?: Tag[];
|
|
691
719
|
}
|
|
692
720
|
/**
|
|
693
721
|
* @public
|
|
694
722
|
*/
|
|
695
|
-
export interface
|
|
723
|
+
export interface CreateProvisionedModelThroughputResponse {
|
|
696
724
|
/**
|
|
697
725
|
* @public
|
|
698
|
-
* <p>The ARN
|
|
726
|
+
* <p>The ARN for this provisioned throughput.</p>
|
|
699
727
|
*/
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* @public
|
|
703
|
-
* <p>Tags to associate with the resource.</p>
|
|
704
|
-
*/
|
|
705
|
-
tags: Tag[] | undefined;
|
|
728
|
+
provisionedModelArn: string | undefined;
|
|
706
729
|
}
|
|
707
730
|
/**
|
|
708
731
|
* @public
|
|
732
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
709
733
|
*/
|
|
710
|
-
export
|
|
734
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
735
|
+
readonly name: "ServiceQuotaExceededException";
|
|
736
|
+
readonly $fault: "client";
|
|
737
|
+
/**
|
|
738
|
+
* @internal
|
|
739
|
+
*/
|
|
740
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
711
741
|
}
|
|
712
742
|
/**
|
|
713
743
|
* @public
|
|
714
744
|
* <p>The request contains more tags than can be associated with a resource (50 tags per resource).
|
|
715
|
-
*
|
|
745
|
+
* The maximum number of tags includes both existing tags and those included in your current request. </p>
|
|
716
746
|
*/
|
|
717
747
|
export declare class TooManyTagsException extends __BaseException {
|
|
718
748
|
readonly name: "TooManyTagsException";
|
|
@@ -727,6 +757,322 @@ export declare class TooManyTagsException extends __BaseException {
|
|
|
727
757
|
*/
|
|
728
758
|
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
729
759
|
}
|
|
760
|
+
/**
|
|
761
|
+
* @public
|
|
762
|
+
*/
|
|
763
|
+
export interface DeleteProvisionedModelThroughputRequest {
|
|
764
|
+
/**
|
|
765
|
+
* @public
|
|
766
|
+
* <p>The ARN or name of the provisioned throughput.</p>
|
|
767
|
+
*/
|
|
768
|
+
provisionedModelId: string | undefined;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* @public
|
|
772
|
+
*/
|
|
773
|
+
export interface DeleteProvisionedModelThroughputResponse {
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
export interface GetProvisionedModelThroughputRequest {
|
|
779
|
+
/**
|
|
780
|
+
* @public
|
|
781
|
+
* <p>The ARN or name of the provisioned throughput.</p>
|
|
782
|
+
*/
|
|
783
|
+
provisionedModelId: string | undefined;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* @public
|
|
787
|
+
* @enum
|
|
788
|
+
*/
|
|
789
|
+
export declare const ProvisionedModelStatus: {
|
|
790
|
+
readonly CREATING: "Creating";
|
|
791
|
+
readonly FAILED: "Failed";
|
|
792
|
+
readonly IN_SERVICE: "InService";
|
|
793
|
+
readonly UPDATING: "Updating";
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* @public
|
|
797
|
+
*/
|
|
798
|
+
export type ProvisionedModelStatus = (typeof ProvisionedModelStatus)[keyof typeof ProvisionedModelStatus];
|
|
799
|
+
/**
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
export interface GetProvisionedModelThroughputResponse {
|
|
803
|
+
/**
|
|
804
|
+
* @public
|
|
805
|
+
* <p>The current number of model units requested to be available for this provisioned throughput.</p>
|
|
806
|
+
*/
|
|
807
|
+
modelUnits: number | undefined;
|
|
808
|
+
/**
|
|
809
|
+
* @public
|
|
810
|
+
* <p>The desired number of model units that was requested to be available for this provisioned throughput.</p>
|
|
811
|
+
*/
|
|
812
|
+
desiredModelUnits: number | undefined;
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
* <p>The name of the provisioned throughput.</p>
|
|
816
|
+
*/
|
|
817
|
+
provisionedModelName: string | undefined;
|
|
818
|
+
/**
|
|
819
|
+
* @public
|
|
820
|
+
* <p>The ARN of the provisioned throughput.</p>
|
|
821
|
+
*/
|
|
822
|
+
provisionedModelArn: string | undefined;
|
|
823
|
+
/**
|
|
824
|
+
* @public
|
|
825
|
+
* <p>The ARN or name of the model associated with this provisioned throughput.</p>
|
|
826
|
+
*/
|
|
827
|
+
modelArn: string | undefined;
|
|
828
|
+
/**
|
|
829
|
+
* @public
|
|
830
|
+
* <p>The ARN of the new model to asssociate with this provisioned throughput.</p>
|
|
831
|
+
*/
|
|
832
|
+
desiredModelArn: string | undefined;
|
|
833
|
+
/**
|
|
834
|
+
* @public
|
|
835
|
+
* <p>ARN of the foundation model.</p>
|
|
836
|
+
*/
|
|
837
|
+
foundationModelArn: string | undefined;
|
|
838
|
+
/**
|
|
839
|
+
* @public
|
|
840
|
+
* <p>Status of the provisioned throughput. </p>
|
|
841
|
+
*/
|
|
842
|
+
status: ProvisionedModelStatus | string | undefined;
|
|
843
|
+
/**
|
|
844
|
+
* @public
|
|
845
|
+
* <p>The timestamp of the creation time for this provisioned throughput. </p>
|
|
846
|
+
*/
|
|
847
|
+
creationTime: Date | undefined;
|
|
848
|
+
/**
|
|
849
|
+
* @public
|
|
850
|
+
* <p>The timestamp of the last modified time of this provisioned throughput. </p>
|
|
851
|
+
*/
|
|
852
|
+
lastModifiedTime: Date | undefined;
|
|
853
|
+
/**
|
|
854
|
+
* @public
|
|
855
|
+
* <p>Failure message for any issues that the create operation encounters.</p>
|
|
856
|
+
*/
|
|
857
|
+
failureMessage?: string;
|
|
858
|
+
/**
|
|
859
|
+
* @public
|
|
860
|
+
* <p>Commitment duration of the provisioned throughput.</p>
|
|
861
|
+
*/
|
|
862
|
+
commitmentDuration?: CommitmentDuration | string;
|
|
863
|
+
/**
|
|
864
|
+
* @public
|
|
865
|
+
* <p>Commitment expiration time for the provisioned throughput.</p>
|
|
866
|
+
*/
|
|
867
|
+
commitmentExpirationTime?: Date;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* @public
|
|
871
|
+
* @enum
|
|
872
|
+
*/
|
|
873
|
+
export declare const SortByProvisionedModels: {
|
|
874
|
+
readonly CREATION_TIME: "CreationTime";
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
879
|
+
export type SortByProvisionedModels = (typeof SortByProvisionedModels)[keyof typeof SortByProvisionedModels];
|
|
880
|
+
/**
|
|
881
|
+
* @public
|
|
882
|
+
*/
|
|
883
|
+
export interface ListProvisionedModelThroughputsRequest {
|
|
884
|
+
/**
|
|
885
|
+
* @public
|
|
886
|
+
* <p>Return provisioned capacities created after the specified time. </p>
|
|
887
|
+
*/
|
|
888
|
+
creationTimeAfter?: Date;
|
|
889
|
+
/**
|
|
890
|
+
* @public
|
|
891
|
+
* <p>Return provisioned capacities created before the specified time. </p>
|
|
892
|
+
*/
|
|
893
|
+
creationTimeBefore?: Date;
|
|
894
|
+
/**
|
|
895
|
+
* @public
|
|
896
|
+
* <p>Return the list of provisioned capacities that match the specified status.</p>
|
|
897
|
+
*/
|
|
898
|
+
statusEquals?: ProvisionedModelStatus | string;
|
|
899
|
+
/**
|
|
900
|
+
* @public
|
|
901
|
+
* <p>Return the list of provisioned capacities where their model ARN is equal to this parameter.</p>
|
|
902
|
+
*/
|
|
903
|
+
modelArnEquals?: string;
|
|
904
|
+
/**
|
|
905
|
+
* @public
|
|
906
|
+
* <p>Return the list of provisioned capacities if their name contains these characters.</p>
|
|
907
|
+
*/
|
|
908
|
+
nameContains?: string;
|
|
909
|
+
/**
|
|
910
|
+
* @public
|
|
911
|
+
* <p>THe maximum number of results to return in the response.</p>
|
|
912
|
+
*/
|
|
913
|
+
maxResults?: number;
|
|
914
|
+
/**
|
|
915
|
+
* @public
|
|
916
|
+
* <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
|
|
917
|
+
*/
|
|
918
|
+
nextToken?: string;
|
|
919
|
+
/**
|
|
920
|
+
* @public
|
|
921
|
+
* <p>The field to sort by in the returned list of provisioned capacities.</p>
|
|
922
|
+
*/
|
|
923
|
+
sortBy?: SortByProvisionedModels | string;
|
|
924
|
+
/**
|
|
925
|
+
* @public
|
|
926
|
+
* <p>The sort order of the results.</p>
|
|
927
|
+
*/
|
|
928
|
+
sortOrder?: SortOrder | string;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* @public
|
|
932
|
+
* <p>Set of fields associated with a provisioned throughput.</p>
|
|
933
|
+
*/
|
|
934
|
+
export interface ProvisionedModelSummary {
|
|
935
|
+
/**
|
|
936
|
+
* @public
|
|
937
|
+
* <p>The name of the provisioned throughput.</p>
|
|
938
|
+
*/
|
|
939
|
+
provisionedModelName: string | undefined;
|
|
940
|
+
/**
|
|
941
|
+
* @public
|
|
942
|
+
* <p>The ARN of the provisioned throughput.</p>
|
|
943
|
+
*/
|
|
944
|
+
provisionedModelArn: string | undefined;
|
|
945
|
+
/**
|
|
946
|
+
* @public
|
|
947
|
+
* <p>The ARN of the model associated with this provisioned throughput.</p>
|
|
948
|
+
*/
|
|
949
|
+
modelArn: string | undefined;
|
|
950
|
+
/**
|
|
951
|
+
* @public
|
|
952
|
+
* <p>Desired model ARN.</p>
|
|
953
|
+
*/
|
|
954
|
+
desiredModelArn: string | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* @public
|
|
957
|
+
* <p>Foundation model ARN.</p>
|
|
958
|
+
*/
|
|
959
|
+
foundationModelArn: string | undefined;
|
|
960
|
+
/**
|
|
961
|
+
* @public
|
|
962
|
+
* <p>The number of model units allocated.</p>
|
|
963
|
+
*/
|
|
964
|
+
modelUnits: number | undefined;
|
|
965
|
+
/**
|
|
966
|
+
* @public
|
|
967
|
+
* <p>Desired model units.</p>
|
|
968
|
+
*/
|
|
969
|
+
desiredModelUnits: number | undefined;
|
|
970
|
+
/**
|
|
971
|
+
* @public
|
|
972
|
+
* <p>Status of the provisioned throughput.</p>
|
|
973
|
+
*/
|
|
974
|
+
status: ProvisionedModelStatus | string | undefined;
|
|
975
|
+
/**
|
|
976
|
+
* @public
|
|
977
|
+
* <p>Commitment duration for the provisioned throughput.</p>
|
|
978
|
+
*/
|
|
979
|
+
commitmentDuration?: CommitmentDuration | string;
|
|
980
|
+
/**
|
|
981
|
+
* @public
|
|
982
|
+
* <p>Commitment expiration time for the provisioned throughput.</p>
|
|
983
|
+
*/
|
|
984
|
+
commitmentExpirationTime?: Date;
|
|
985
|
+
/**
|
|
986
|
+
* @public
|
|
987
|
+
* <p>The time that this provisioned throughput was created. </p>
|
|
988
|
+
*/
|
|
989
|
+
creationTime: Date | undefined;
|
|
990
|
+
/**
|
|
991
|
+
* @public
|
|
992
|
+
* <p>The time that this provisioned throughput was last modified. </p>
|
|
993
|
+
*/
|
|
994
|
+
lastModifiedTime: Date | undefined;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* @public
|
|
998
|
+
*/
|
|
999
|
+
export interface ListProvisionedModelThroughputsResponse {
|
|
1000
|
+
/**
|
|
1001
|
+
* @public
|
|
1002
|
+
* <p>Continuation token for the next request to list the next set of results.</p>
|
|
1003
|
+
*/
|
|
1004
|
+
nextToken?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @public
|
|
1007
|
+
* <p>List of summaries, one for each provisioned throughput in the response.</p>
|
|
1008
|
+
*/
|
|
1009
|
+
provisionedModelSummaries?: ProvisionedModelSummary[];
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* @public
|
|
1013
|
+
*/
|
|
1014
|
+
export interface UpdateProvisionedModelThroughputRequest {
|
|
1015
|
+
/**
|
|
1016
|
+
* @public
|
|
1017
|
+
* <p>The ARN or name of the provisioned throughput to update.</p>
|
|
1018
|
+
*/
|
|
1019
|
+
provisionedModelId: string | undefined;
|
|
1020
|
+
/**
|
|
1021
|
+
* @public
|
|
1022
|
+
* <p>The new name for this provisioned throughput.</p>
|
|
1023
|
+
*/
|
|
1024
|
+
desiredProvisionedModelName?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* @public
|
|
1027
|
+
* <p>The ARN of the new model to associate with this provisioned throughput.</p>
|
|
1028
|
+
*/
|
|
1029
|
+
desiredModelId?: string;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* @public
|
|
1033
|
+
*/
|
|
1034
|
+
export interface UpdateProvisionedModelThroughputResponse {
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* @public
|
|
1038
|
+
*/
|
|
1039
|
+
export interface ListTagsForResourceRequest {
|
|
1040
|
+
/**
|
|
1041
|
+
* @public
|
|
1042
|
+
* <p>The ARN of the resource.</p>
|
|
1043
|
+
*/
|
|
1044
|
+
resourceARN: string | undefined;
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* @public
|
|
1048
|
+
*/
|
|
1049
|
+
export interface ListTagsForResourceResponse {
|
|
1050
|
+
/**
|
|
1051
|
+
* @public
|
|
1052
|
+
* <p>An array of the tags associated with this resource.</p>
|
|
1053
|
+
*/
|
|
1054
|
+
tags?: Tag[];
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* @public
|
|
1058
|
+
*/
|
|
1059
|
+
export interface TagResourceRequest {
|
|
1060
|
+
/**
|
|
1061
|
+
* @public
|
|
1062
|
+
* <p>The ARN of the resource to tag.</p>
|
|
1063
|
+
*/
|
|
1064
|
+
resourceARN: string | undefined;
|
|
1065
|
+
/**
|
|
1066
|
+
* @public
|
|
1067
|
+
* <p>Tags to associate with the resource.</p>
|
|
1068
|
+
*/
|
|
1069
|
+
tags: Tag[] | undefined;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* @public
|
|
1073
|
+
*/
|
|
1074
|
+
export interface TagResourceResponse {
|
|
1075
|
+
}
|
|
730
1076
|
/**
|
|
731
1077
|
* @public
|
|
732
1078
|
*/
|
|
@@ -780,9 +1126,9 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
780
1126
|
/**
|
|
781
1127
|
* @public
|
|
782
1128
|
* <p>The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
*
|
|
1129
|
+
* For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket.
|
|
1130
|
+
* To pass this role to Bedrock, the caller of this API must have the <code>iam:PassRole</code> permission.
|
|
1131
|
+
* </p>
|
|
786
1132
|
*/
|
|
787
1133
|
roleArn: string | undefined;
|
|
788
1134
|
/**
|
|
@@ -833,7 +1179,7 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
833
1179
|
/**
|
|
834
1180
|
* @public
|
|
835
1181
|
* <p>VPC configuration (optional). Configuration parameters for the
|
|
836
|
-
*
|
|
1182
|
+
* private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
|
|
837
1183
|
*/
|
|
838
1184
|
vpcConfig?: VpcConfig;
|
|
839
1185
|
}
|
|
@@ -847,18 +1193,6 @@ export interface CreateModelCustomizationJobResponse {
|
|
|
847
1193
|
*/
|
|
848
1194
|
jobArn: string | undefined;
|
|
849
1195
|
}
|
|
850
|
-
/**
|
|
851
|
-
* @public
|
|
852
|
-
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
853
|
-
*/
|
|
854
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
855
|
-
readonly name: "ServiceQuotaExceededException";
|
|
856
|
-
readonly $fault: "client";
|
|
857
|
-
/**
|
|
858
|
-
* @internal
|
|
859
|
-
*/
|
|
860
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
861
|
-
}
|
|
862
1196
|
/**
|
|
863
1197
|
* @public
|
|
864
1198
|
*/
|
|
@@ -921,7 +1255,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
921
1255
|
/**
|
|
922
1256
|
* @public
|
|
923
1257
|
* <p>The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.
|
|
924
|
-
*
|
|
1258
|
+
* If the job failed, the failure message contains information about why the job failed.</p>
|
|
925
1259
|
*/
|
|
926
1260
|
status?: ModelCustomizationJobStatus | string;
|
|
927
1261
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "../commands/ListProvisionedModelThroughputsCommand";
|
|
3
|
+
import { BedrockPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListProvisionedModelThroughputs(config: BedrockPaginationConfiguration, input: ListProvisionedModelThroughputsCommandInput, ...additionalArguments: any): Paginator<ListProvisionedModelThroughputsCommandOutput>;
|