@aws-sdk/client-bedrock 3.703.0 → 3.705.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/dist-cjs/index.js +103 -3
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/models/models_0.js +77 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +391 -6
- package/dist-types/ts3.4/models/models_0.d.ts +134 -3
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ declare const ListFoundationModelsCommand_base: {
|
|
|
36
36
|
* const client = new BedrockClient(config);
|
|
37
37
|
* const input = { // ListFoundationModelsRequest
|
|
38
38
|
* byProvider: "STRING_VALUE",
|
|
39
|
-
* byCustomizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
39
|
+
* byCustomizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
40
40
|
* byOutputModality: "TEXT" || "IMAGE" || "EMBEDDING",
|
|
41
41
|
* byInferenceType: "ON_DEMAND" || "PROVISIONED",
|
|
42
42
|
* };
|
|
@@ -57,7 +57,7 @@ declare const ListFoundationModelsCommand_base: {
|
|
|
57
57
|
* // ],
|
|
58
58
|
* // responseStreamingSupported: true || false,
|
|
59
59
|
* // customizationsSupported: [ // ModelCustomizationList
|
|
60
|
-
* // "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
60
|
+
* // "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
61
61
|
* // ],
|
|
62
62
|
* // inferenceTypesSupported: [ // InferenceTypeList
|
|
63
63
|
* // "ON_DEMAND" || "PROVISIONED",
|
|
@@ -61,7 +61,7 @@ declare const ListModelCustomizationJobsCommand_base: {
|
|
|
61
61
|
* // endTime: new Date("TIMESTAMP"),
|
|
62
62
|
* // customModelArn: "STRING_VALUE",
|
|
63
63
|
* // customModelName: "STRING_VALUE",
|
|
64
|
-
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
64
|
+
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
65
65
|
* // },
|
|
66
66
|
* // ],
|
|
67
67
|
* // };
|
|
@@ -27,7 +27,7 @@ declare const ListModelInvocationJobsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists all batch inference jobs in the account. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-
|
|
30
|
+
* <p>Lists all batch inference jobs in the account. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-view.html">View details about a batch inference job</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -51,6 +51,7 @@ declare const PutModelInvocationLoggingConfigurationCommand_base: {
|
|
|
51
51
|
* textDataDeliveryEnabled: true || false,
|
|
52
52
|
* imageDataDeliveryEnabled: true || false,
|
|
53
53
|
* embeddingDataDeliveryEnabled: true || false,
|
|
54
|
+
* videoDataDeliveryEnabled: true || false,
|
|
54
55
|
* },
|
|
55
56
|
* };
|
|
56
57
|
* const command = new PutModelInvocationLoggingConfigurationCommand(input);
|
|
@@ -27,7 +27,7 @@ declare const StopModelInvocationJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-
|
|
30
|
+
* <p>Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-stop.html">Stop a batch inference job</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -2775,6 +2775,11 @@ export interface LoggingConfig {
|
|
|
2775
2775
|
* @public
|
|
2776
2776
|
*/
|
|
2777
2777
|
embeddingDataDeliveryEnabled?: boolean | undefined;
|
|
2778
|
+
/**
|
|
2779
|
+
* <p>Set to include video data in the log delivery.</p>
|
|
2780
|
+
* @public
|
|
2781
|
+
*/
|
|
2782
|
+
videoDataDeliveryEnabled?: boolean | undefined;
|
|
2778
2783
|
}
|
|
2779
2784
|
/**
|
|
2780
2785
|
* @public
|
|
@@ -3705,7 +3710,7 @@ export interface CreateModelInvocationJobRequest {
|
|
|
3705
3710
|
*/
|
|
3706
3711
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3707
3712
|
/**
|
|
3708
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
3713
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3709
3714
|
* @public
|
|
3710
3715
|
*/
|
|
3711
3716
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -3792,6 +3797,50 @@ export interface GetModelInvocationJobResponse {
|
|
|
3792
3797
|
roleArn: string | undefined;
|
|
3793
3798
|
/**
|
|
3794
3799
|
* <p>The status of the batch inference job.</p>
|
|
3800
|
+
* <p>The following statuses are possible:</p>
|
|
3801
|
+
* <ul>
|
|
3802
|
+
* <li>
|
|
3803
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
3804
|
+
* </li>
|
|
3805
|
+
* <li>
|
|
3806
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
3807
|
+
* <ul>
|
|
3808
|
+
* <li>
|
|
3809
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
3810
|
+
* </li>
|
|
3811
|
+
* <li>
|
|
3812
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
3813
|
+
* </li>
|
|
3814
|
+
* <li>
|
|
3815
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
3816
|
+
* </li>
|
|
3817
|
+
* </ul>
|
|
3818
|
+
* </li>
|
|
3819
|
+
* <li>
|
|
3820
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
3821
|
+
* </li>
|
|
3822
|
+
* <li>
|
|
3823
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
3824
|
+
* </li>
|
|
3825
|
+
* <li>
|
|
3826
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
3827
|
+
* </li>
|
|
3828
|
+
* <li>
|
|
3829
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
3830
|
+
* </li>
|
|
3831
|
+
* <li>
|
|
3832
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
3833
|
+
* </li>
|
|
3834
|
+
* <li>
|
|
3835
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
3836
|
+
* </li>
|
|
3837
|
+
* <li>
|
|
3838
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
3839
|
+
* </li>
|
|
3840
|
+
* <li>
|
|
3841
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
3842
|
+
* </li>
|
|
3843
|
+
* </ul>
|
|
3795
3844
|
* @public
|
|
3796
3845
|
*/
|
|
3797
3846
|
status?: ModelInvocationJobStatus | undefined;
|
|
@@ -3826,7 +3875,7 @@ export interface GetModelInvocationJobResponse {
|
|
|
3826
3875
|
*/
|
|
3827
3876
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3828
3877
|
/**
|
|
3829
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
3878
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3830
3879
|
* @public
|
|
3831
3880
|
*/
|
|
3832
3881
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -3857,6 +3906,50 @@ export interface ListModelInvocationJobsRequest {
|
|
|
3857
3906
|
submitTimeBefore?: Date | undefined;
|
|
3858
3907
|
/**
|
|
3859
3908
|
* <p>Specify a status to filter for batch inference jobs whose statuses match the string you specify.</p>
|
|
3909
|
+
* <p>The following statuses are possible:</p>
|
|
3910
|
+
* <ul>
|
|
3911
|
+
* <li>
|
|
3912
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
3913
|
+
* </li>
|
|
3914
|
+
* <li>
|
|
3915
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
3916
|
+
* <ul>
|
|
3917
|
+
* <li>
|
|
3918
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
3919
|
+
* </li>
|
|
3920
|
+
* <li>
|
|
3921
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
3922
|
+
* </li>
|
|
3923
|
+
* <li>
|
|
3924
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
3925
|
+
* </li>
|
|
3926
|
+
* </ul>
|
|
3927
|
+
* </li>
|
|
3928
|
+
* <li>
|
|
3929
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
3930
|
+
* </li>
|
|
3931
|
+
* <li>
|
|
3932
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
3933
|
+
* </li>
|
|
3934
|
+
* <li>
|
|
3935
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
3936
|
+
* </li>
|
|
3937
|
+
* <li>
|
|
3938
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
3939
|
+
* </li>
|
|
3940
|
+
* <li>
|
|
3941
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
3942
|
+
* </li>
|
|
3943
|
+
* <li>
|
|
3944
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
3945
|
+
* </li>
|
|
3946
|
+
* <li>
|
|
3947
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
3948
|
+
* </li>
|
|
3949
|
+
* <li>
|
|
3950
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
3951
|
+
* </li>
|
|
3952
|
+
* </ul>
|
|
3860
3953
|
* @public
|
|
3861
3954
|
*/
|
|
3862
3955
|
statusEquals?: ModelInvocationJobStatus | undefined;
|
|
@@ -3923,6 +4016,50 @@ export interface ModelInvocationJobSummary {
|
|
|
3923
4016
|
roleArn: string | undefined;
|
|
3924
4017
|
/**
|
|
3925
4018
|
* <p>The status of the batch inference job.</p>
|
|
4019
|
+
* <p>The following statuses are possible:</p>
|
|
4020
|
+
* <ul>
|
|
4021
|
+
* <li>
|
|
4022
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
4023
|
+
* </li>
|
|
4024
|
+
* <li>
|
|
4025
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
4026
|
+
* <ul>
|
|
4027
|
+
* <li>
|
|
4028
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
4029
|
+
* </li>
|
|
4030
|
+
* <li>
|
|
4031
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
4032
|
+
* </li>
|
|
4033
|
+
* <li>
|
|
4034
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
4035
|
+
* </li>
|
|
4036
|
+
* </ul>
|
|
4037
|
+
* </li>
|
|
4038
|
+
* <li>
|
|
4039
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
4040
|
+
* </li>
|
|
4041
|
+
* <li>
|
|
4042
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
4043
|
+
* </li>
|
|
4044
|
+
* <li>
|
|
4045
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
4046
|
+
* </li>
|
|
4047
|
+
* <li>
|
|
4048
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
4049
|
+
* </li>
|
|
4050
|
+
* <li>
|
|
4051
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
4052
|
+
* </li>
|
|
4053
|
+
* <li>
|
|
4054
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
4055
|
+
* </li>
|
|
4056
|
+
* <li>
|
|
4057
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
4058
|
+
* </li>
|
|
4059
|
+
* <li>
|
|
4060
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
4061
|
+
* </li>
|
|
4062
|
+
* </ul>
|
|
3926
4063
|
* @public
|
|
3927
4064
|
*/
|
|
3928
4065
|
status?: ModelInvocationJobStatus | undefined;
|
|
@@ -3957,7 +4094,7 @@ export interface ModelInvocationJobSummary {
|
|
|
3957
4094
|
*/
|
|
3958
4095
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3959
4096
|
/**
|
|
3960
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
4097
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3961
4098
|
* @public
|
|
3962
4099
|
*/
|
|
3963
4100
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -4027,12 +4164,70 @@ export interface GetCustomModelRequest {
|
|
|
4027
4164
|
*/
|
|
4028
4165
|
modelIdentifier: string | undefined;
|
|
4029
4166
|
}
|
|
4167
|
+
/**
|
|
4168
|
+
* <p>Details about a teacher model used for model customization.</p>
|
|
4169
|
+
* @public
|
|
4170
|
+
*/
|
|
4171
|
+
export interface TeacherModelConfig {
|
|
4172
|
+
/**
|
|
4173
|
+
* <p>The identifier of the teacher model.</p>
|
|
4174
|
+
* @public
|
|
4175
|
+
*/
|
|
4176
|
+
teacherModelIdentifier: string | undefined;
|
|
4177
|
+
/**
|
|
4178
|
+
* <p>The maximum number of tokens requested when the customization job invokes the teacher model.</p>
|
|
4179
|
+
* @public
|
|
4180
|
+
*/
|
|
4181
|
+
maxResponseLengthForInference?: number | undefined;
|
|
4182
|
+
}
|
|
4183
|
+
/**
|
|
4184
|
+
* <p>Settings for distilling a foundation model into a smaller and more efficient model.</p>
|
|
4185
|
+
* @public
|
|
4186
|
+
*/
|
|
4187
|
+
export interface DistillationConfig {
|
|
4188
|
+
/**
|
|
4189
|
+
* <p>The teacher model configuration.</p>
|
|
4190
|
+
* @public
|
|
4191
|
+
*/
|
|
4192
|
+
teacherModelConfig: TeacherModelConfig | undefined;
|
|
4193
|
+
}
|
|
4194
|
+
/**
|
|
4195
|
+
* <p>A model customization configuration</p>
|
|
4196
|
+
* @public
|
|
4197
|
+
*/
|
|
4198
|
+
export type CustomizationConfig = CustomizationConfig.DistillationConfigMember | CustomizationConfig.$UnknownMember;
|
|
4199
|
+
/**
|
|
4200
|
+
* @public
|
|
4201
|
+
*/
|
|
4202
|
+
export declare namespace CustomizationConfig {
|
|
4203
|
+
/**
|
|
4204
|
+
* <p>The distillation configuration for the custom model.</p>
|
|
4205
|
+
* @public
|
|
4206
|
+
*/
|
|
4207
|
+
interface DistillationConfigMember {
|
|
4208
|
+
distillationConfig: DistillationConfig;
|
|
4209
|
+
$unknown?: never;
|
|
4210
|
+
}
|
|
4211
|
+
/**
|
|
4212
|
+
* @public
|
|
4213
|
+
*/
|
|
4214
|
+
interface $UnknownMember {
|
|
4215
|
+
distillationConfig?: never;
|
|
4216
|
+
$unknown: [string, any];
|
|
4217
|
+
}
|
|
4218
|
+
interface Visitor<T> {
|
|
4219
|
+
distillationConfig: (value: DistillationConfig) => T;
|
|
4220
|
+
_: (name: string, value: any) => T;
|
|
4221
|
+
}
|
|
4222
|
+
const visit: <T>(value: CustomizationConfig, visitor: Visitor<T>) => T;
|
|
4223
|
+
}
|
|
4030
4224
|
/**
|
|
4031
4225
|
* @public
|
|
4032
4226
|
* @enum
|
|
4033
4227
|
*/
|
|
4034
4228
|
export declare const CustomizationType: {
|
|
4035
4229
|
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
4230
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
4036
4231
|
readonly FINE_TUNING: "FINE_TUNING";
|
|
4037
4232
|
};
|
|
4038
4233
|
/**
|
|
@@ -4050,6 +4245,147 @@ export interface OutputDataConfig {
|
|
|
4050
4245
|
*/
|
|
4051
4246
|
s3Uri: string | undefined;
|
|
4052
4247
|
}
|
|
4248
|
+
/**
|
|
4249
|
+
* <p>A storage location for invocation logs.</p>
|
|
4250
|
+
* @public
|
|
4251
|
+
*/
|
|
4252
|
+
export type InvocationLogSource = InvocationLogSource.S3UriMember | InvocationLogSource.$UnknownMember;
|
|
4253
|
+
/**
|
|
4254
|
+
* @public
|
|
4255
|
+
*/
|
|
4256
|
+
export declare namespace InvocationLogSource {
|
|
4257
|
+
/**
|
|
4258
|
+
* <p>The URI of an invocation log in a bucket.</p>
|
|
4259
|
+
* @public
|
|
4260
|
+
*/
|
|
4261
|
+
interface S3UriMember {
|
|
4262
|
+
s3Uri: string;
|
|
4263
|
+
$unknown?: never;
|
|
4264
|
+
}
|
|
4265
|
+
/**
|
|
4266
|
+
* @public
|
|
4267
|
+
*/
|
|
4268
|
+
interface $UnknownMember {
|
|
4269
|
+
s3Uri?: never;
|
|
4270
|
+
$unknown: [string, any];
|
|
4271
|
+
}
|
|
4272
|
+
interface Visitor<T> {
|
|
4273
|
+
s3Uri: (value: string) => T;
|
|
4274
|
+
_: (name: string, value: any) => T;
|
|
4275
|
+
}
|
|
4276
|
+
const visit: <T>(value: InvocationLogSource, visitor: Visitor<T>) => T;
|
|
4277
|
+
}
|
|
4278
|
+
/**
|
|
4279
|
+
* <p>A mapping of a metadata key to a value that it should or should not equal.</p>
|
|
4280
|
+
* @public
|
|
4281
|
+
*/
|
|
4282
|
+
export interface RequestMetadataBaseFilters {
|
|
4283
|
+
/**
|
|
4284
|
+
* <p>Include results where the key equals the value.</p>
|
|
4285
|
+
* @public
|
|
4286
|
+
*/
|
|
4287
|
+
equals?: Record<string, string> | undefined;
|
|
4288
|
+
/**
|
|
4289
|
+
* <p>Include results where the key does not equal the value.</p>
|
|
4290
|
+
* @public
|
|
4291
|
+
*/
|
|
4292
|
+
notEquals?: Record<string, string> | undefined;
|
|
4293
|
+
}
|
|
4294
|
+
/**
|
|
4295
|
+
* <p>Rules for filtering invocation logs. A filter can be a mapping of a metadata
|
|
4296
|
+
* key to a value that it should or should not equal (a base filter), or a list of base filters
|
|
4297
|
+
* that are all applied with <code>AND</code> or <code>OR</code> logical operators</p>
|
|
4298
|
+
* @public
|
|
4299
|
+
*/
|
|
4300
|
+
export type RequestMetadataFilters = RequestMetadataFilters.AndAllMember | RequestMetadataFilters.EqualsMember | RequestMetadataFilters.NotEqualsMember | RequestMetadataFilters.OrAllMember | RequestMetadataFilters.$UnknownMember;
|
|
4301
|
+
/**
|
|
4302
|
+
* @public
|
|
4303
|
+
*/
|
|
4304
|
+
export declare namespace RequestMetadataFilters {
|
|
4305
|
+
/**
|
|
4306
|
+
* <p>Include results where the key equals the value.</p>
|
|
4307
|
+
* @public
|
|
4308
|
+
*/
|
|
4309
|
+
interface EqualsMember {
|
|
4310
|
+
equals: Record<string, string>;
|
|
4311
|
+
notEquals?: never;
|
|
4312
|
+
andAll?: never;
|
|
4313
|
+
orAll?: never;
|
|
4314
|
+
$unknown?: never;
|
|
4315
|
+
}
|
|
4316
|
+
/**
|
|
4317
|
+
* <p>Include results where the key does not equal the value.</p>
|
|
4318
|
+
* @public
|
|
4319
|
+
*/
|
|
4320
|
+
interface NotEqualsMember {
|
|
4321
|
+
equals?: never;
|
|
4322
|
+
notEquals: Record<string, string>;
|
|
4323
|
+
andAll?: never;
|
|
4324
|
+
orAll?: never;
|
|
4325
|
+
$unknown?: never;
|
|
4326
|
+
}
|
|
4327
|
+
/**
|
|
4328
|
+
* <p>Include results where all of the based filters match.</p>
|
|
4329
|
+
* @public
|
|
4330
|
+
*/
|
|
4331
|
+
interface AndAllMember {
|
|
4332
|
+
equals?: never;
|
|
4333
|
+
notEquals?: never;
|
|
4334
|
+
andAll: RequestMetadataBaseFilters[];
|
|
4335
|
+
orAll?: never;
|
|
4336
|
+
$unknown?: never;
|
|
4337
|
+
}
|
|
4338
|
+
/**
|
|
4339
|
+
* <p>Include results where any of the base filters match.</p>
|
|
4340
|
+
* @public
|
|
4341
|
+
*/
|
|
4342
|
+
interface OrAllMember {
|
|
4343
|
+
equals?: never;
|
|
4344
|
+
notEquals?: never;
|
|
4345
|
+
andAll?: never;
|
|
4346
|
+
orAll: RequestMetadataBaseFilters[];
|
|
4347
|
+
$unknown?: never;
|
|
4348
|
+
}
|
|
4349
|
+
/**
|
|
4350
|
+
* @public
|
|
4351
|
+
*/
|
|
4352
|
+
interface $UnknownMember {
|
|
4353
|
+
equals?: never;
|
|
4354
|
+
notEquals?: never;
|
|
4355
|
+
andAll?: never;
|
|
4356
|
+
orAll?: never;
|
|
4357
|
+
$unknown: [string, any];
|
|
4358
|
+
}
|
|
4359
|
+
interface Visitor<T> {
|
|
4360
|
+
equals: (value: Record<string, string>) => T;
|
|
4361
|
+
notEquals: (value: Record<string, string>) => T;
|
|
4362
|
+
andAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
4363
|
+
orAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
4364
|
+
_: (name: string, value: any) => T;
|
|
4365
|
+
}
|
|
4366
|
+
const visit: <T>(value: RequestMetadataFilters, visitor: Visitor<T>) => T;
|
|
4367
|
+
}
|
|
4368
|
+
/**
|
|
4369
|
+
* <p>Settings for using invocation logs to customize a model.</p>
|
|
4370
|
+
* @public
|
|
4371
|
+
*/
|
|
4372
|
+
export interface InvocationLogsConfig {
|
|
4373
|
+
/**
|
|
4374
|
+
* <p>Whether to use the model's response for training, or just the prompt. The default value is <code>False</code>.</p>
|
|
4375
|
+
* @public
|
|
4376
|
+
*/
|
|
4377
|
+
usePromptResponse?: boolean | undefined;
|
|
4378
|
+
/**
|
|
4379
|
+
* <p>The source of the invocation logs.</p>
|
|
4380
|
+
* @public
|
|
4381
|
+
*/
|
|
4382
|
+
invocationLogSource: InvocationLogSource | undefined;
|
|
4383
|
+
/**
|
|
4384
|
+
* <p>Rules for filtering invocation logs based on request metadata.</p>
|
|
4385
|
+
* @public
|
|
4386
|
+
*/
|
|
4387
|
+
requestMetadataFilters?: RequestMetadataFilters | undefined;
|
|
4388
|
+
}
|
|
4053
4389
|
/**
|
|
4054
4390
|
* <p>S3 Location of the training data.</p>
|
|
4055
4391
|
* @public
|
|
@@ -4059,7 +4395,12 @@ export interface TrainingDataConfig {
|
|
|
4059
4395
|
* <p>The S3 URI where the training data is stored.</p>
|
|
4060
4396
|
* @public
|
|
4061
4397
|
*/
|
|
4062
|
-
s3Uri
|
|
4398
|
+
s3Uri?: string | undefined;
|
|
4399
|
+
/**
|
|
4400
|
+
* <p>Settings for using invocation logs to customize a model.</p>
|
|
4401
|
+
* @public
|
|
4402
|
+
*/
|
|
4403
|
+
invocationLogsConfig?: InvocationLogsConfig | undefined;
|
|
4063
4404
|
}
|
|
4064
4405
|
/**
|
|
4065
4406
|
* <p>Metrics associated with the custom job.</p>
|
|
@@ -4179,6 +4520,11 @@ export interface GetCustomModelResponse {
|
|
|
4179
4520
|
* @public
|
|
4180
4521
|
*/
|
|
4181
4522
|
creationTime: Date | undefined;
|
|
4523
|
+
/**
|
|
4524
|
+
* <p>The customization configuration for the custom model.</p>
|
|
4525
|
+
* @public
|
|
4526
|
+
*/
|
|
4527
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
4182
4528
|
}
|
|
4183
4529
|
/**
|
|
4184
4530
|
* @public
|
|
@@ -4196,6 +4542,7 @@ export interface GetFoundationModelRequest {
|
|
|
4196
4542
|
*/
|
|
4197
4543
|
export declare const ModelCustomization: {
|
|
4198
4544
|
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
4545
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
4199
4546
|
readonly FINE_TUNING: "FINE_TUNING";
|
|
4200
4547
|
};
|
|
4201
4548
|
/**
|
|
@@ -5007,12 +5354,17 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
5007
5354
|
* <p>Parameters related to tuning the model. For details on the format for different models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html">Custom model hyperparameters</a>.</p>
|
|
5008
5355
|
* @public
|
|
5009
5356
|
*/
|
|
5010
|
-
hyperParameters
|
|
5357
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
5011
5358
|
/**
|
|
5012
5359
|
* <p>The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html">Protect your model customization jobs using a VPC</a>.</p>
|
|
5013
5360
|
* @public
|
|
5014
5361
|
*/
|
|
5015
5362
|
vpcConfig?: VpcConfig | undefined;
|
|
5363
|
+
/**
|
|
5364
|
+
* <p>The customization configuration for the model customization job.</p>
|
|
5365
|
+
* @public
|
|
5366
|
+
*/
|
|
5367
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
5016
5368
|
}
|
|
5017
5369
|
/**
|
|
5018
5370
|
* @public
|
|
@@ -5118,7 +5470,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
5118
5470
|
* <p>The hyperparameter values for the job. For details on the format for different models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html">Custom model hyperparameters</a>.</p>
|
|
5119
5471
|
* @public
|
|
5120
5472
|
*/
|
|
5121
|
-
hyperParameters
|
|
5473
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
5122
5474
|
/**
|
|
5123
5475
|
* <p>Contains information about the training dataset.</p>
|
|
5124
5476
|
* @public
|
|
@@ -5159,6 +5511,11 @@ export interface GetModelCustomizationJobResponse {
|
|
|
5159
5511
|
* @public
|
|
5160
5512
|
*/
|
|
5161
5513
|
vpcConfig?: VpcConfig | undefined;
|
|
5514
|
+
/**
|
|
5515
|
+
* <p>The customization configuration for the model customization job.</p>
|
|
5516
|
+
* @public
|
|
5517
|
+
*/
|
|
5518
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
5162
5519
|
}
|
|
5163
5520
|
/**
|
|
5164
5521
|
* @public
|
|
@@ -6184,6 +6541,34 @@ export declare const ModelInvocationJobSummaryFilterSensitiveLog: (obj: ModelInv
|
|
|
6184
6541
|
* @internal
|
|
6185
6542
|
*/
|
|
6186
6543
|
export declare const ListModelInvocationJobsResponseFilterSensitiveLog: (obj: ListModelInvocationJobsResponse) => any;
|
|
6544
|
+
/**
|
|
6545
|
+
* @internal
|
|
6546
|
+
*/
|
|
6547
|
+
export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (obj: RequestMetadataBaseFilters) => any;
|
|
6548
|
+
/**
|
|
6549
|
+
* @internal
|
|
6550
|
+
*/
|
|
6551
|
+
export declare const RequestMetadataFiltersFilterSensitiveLog: (obj: RequestMetadataFilters) => any;
|
|
6552
|
+
/**
|
|
6553
|
+
* @internal
|
|
6554
|
+
*/
|
|
6555
|
+
export declare const InvocationLogsConfigFilterSensitiveLog: (obj: InvocationLogsConfig) => any;
|
|
6556
|
+
/**
|
|
6557
|
+
* @internal
|
|
6558
|
+
*/
|
|
6559
|
+
export declare const TrainingDataConfigFilterSensitiveLog: (obj: TrainingDataConfig) => any;
|
|
6560
|
+
/**
|
|
6561
|
+
* @internal
|
|
6562
|
+
*/
|
|
6563
|
+
export declare const GetCustomModelResponseFilterSensitiveLog: (obj: GetCustomModelResponse) => any;
|
|
6564
|
+
/**
|
|
6565
|
+
* @internal
|
|
6566
|
+
*/
|
|
6567
|
+
export declare const CreateModelCustomizationJobRequestFilterSensitiveLog: (obj: CreateModelCustomizationJobRequest) => any;
|
|
6568
|
+
/**
|
|
6569
|
+
* @internal
|
|
6570
|
+
*/
|
|
6571
|
+
export declare const GetModelCustomizationJobResponseFilterSensitiveLog: (obj: GetModelCustomizationJobResponse) => any;
|
|
6187
6572
|
/**
|
|
6188
6573
|
* @internal
|
|
6189
6574
|
*/
|