@aws-sdk/client-bedrock 3.650.0 → 3.652.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 +6 -3
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +10 -0
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +10 -0
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -6
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1051,7 +1051,8 @@ var se_CreateModelInvocationJobCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1051
1051
|
outputDataConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1052
1052
|
roleArn: [],
|
|
1053
1053
|
tags: (_) => (0, import_smithy_client._json)(_),
|
|
1054
|
-
timeoutDurationInHours: []
|
|
1054
|
+
timeoutDurationInHours: [],
|
|
1055
|
+
vpcConfig: (_) => (0, import_smithy_client._json)(_)
|
|
1055
1056
|
})
|
|
1056
1057
|
);
|
|
1057
1058
|
b.m("POST").h(headers).b(body);
|
|
@@ -1980,7 +1981,8 @@ var de_GetModelInvocationJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1980
1981
|
roleArn: import_smithy_client.expectString,
|
|
1981
1982
|
status: import_smithy_client.expectString,
|
|
1982
1983
|
submitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1983
|
-
timeoutDurationInHours: import_smithy_client.expectInt32
|
|
1984
|
+
timeoutDurationInHours: import_smithy_client.expectInt32,
|
|
1985
|
+
vpcConfig: import_smithy_client._json
|
|
1984
1986
|
});
|
|
1985
1987
|
Object.assign(contents, doc);
|
|
1986
1988
|
return contents;
|
|
@@ -2633,7 +2635,8 @@ var de_ModelInvocationJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2633
2635
|
roleArn: import_smithy_client.expectString,
|
|
2634
2636
|
status: import_smithy_client.expectString,
|
|
2635
2637
|
submitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2636
|
-
timeoutDurationInHours: import_smithy_client.expectInt32
|
|
2638
|
+
timeoutDurationInHours: import_smithy_client.expectInt32,
|
|
2639
|
+
vpcConfig: import_smithy_client._json
|
|
2637
2640
|
});
|
|
2638
2641
|
}, "de_ModelInvocationJobSummary");
|
|
2639
2642
|
var de_ProvisionedModelSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -157,6 +157,7 @@ export const se_CreateModelInvocationJobCommand = async (input, context) => {
|
|
|
157
157
|
roleArn: [],
|
|
158
158
|
tags: (_) => _json(_),
|
|
159
159
|
timeoutDurationInHours: [],
|
|
160
|
+
vpcConfig: (_) => _json(_),
|
|
160
161
|
}));
|
|
161
162
|
b.m("POST").h(headers).b(body);
|
|
162
163
|
return b.build();
|
|
@@ -1071,6 +1072,7 @@ export const de_GetModelInvocationJobCommand = async (output, context) => {
|
|
|
1071
1072
|
status: __expectString,
|
|
1072
1073
|
submitTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1073
1074
|
timeoutDurationInHours: __expectInt32,
|
|
1075
|
+
vpcConfig: _json,
|
|
1074
1076
|
});
|
|
1075
1077
|
Object.assign(contents, doc);
|
|
1076
1078
|
return contents;
|
|
@@ -1746,6 +1748,7 @@ const de_ModelInvocationJobSummary = (output, context) => {
|
|
|
1746
1748
|
status: __expectString,
|
|
1747
1749
|
submitTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1748
1750
|
timeoutDurationInHours: __expectInt32,
|
|
1751
|
+
vpcConfig: _json,
|
|
1749
1752
|
});
|
|
1750
1753
|
};
|
|
1751
1754
|
const de_ProvisionedModelSummaries = (output, context) => {
|
|
@@ -44,14 +44,24 @@ declare const CreateModelInvocationJobCommand_base: {
|
|
|
44
44
|
* s3InputDataConfig: { // ModelInvocationJobS3InputDataConfig
|
|
45
45
|
* s3InputFormat: "JSONL",
|
|
46
46
|
* s3Uri: "STRING_VALUE", // required
|
|
47
|
+
* s3BucketOwner: "STRING_VALUE",
|
|
47
48
|
* },
|
|
48
49
|
* },
|
|
49
50
|
* outputDataConfig: { // ModelInvocationJobOutputDataConfig Union: only one key present
|
|
50
51
|
* s3OutputDataConfig: { // ModelInvocationJobS3OutputDataConfig
|
|
51
52
|
* s3Uri: "STRING_VALUE", // required
|
|
52
53
|
* s3EncryptionKeyId: "STRING_VALUE",
|
|
54
|
+
* s3BucketOwner: "STRING_VALUE",
|
|
53
55
|
* },
|
|
54
56
|
* },
|
|
57
|
+
* vpcConfig: { // VpcConfig
|
|
58
|
+
* subnetIds: [ // SubnetIds // required
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* securityGroupIds: [ // SecurityGroupIds // required
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* },
|
|
55
65
|
* timeoutDurationInHours: Number("int"),
|
|
56
66
|
* tags: [ // TagList
|
|
57
67
|
* { // Tag
|
|
@@ -55,14 +55,24 @@ declare const GetModelInvocationJobCommand_base: {
|
|
|
55
55
|
* // s3InputDataConfig: { // ModelInvocationJobS3InputDataConfig
|
|
56
56
|
* // s3InputFormat: "JSONL",
|
|
57
57
|
* // s3Uri: "STRING_VALUE", // required
|
|
58
|
+
* // s3BucketOwner: "STRING_VALUE",
|
|
58
59
|
* // },
|
|
59
60
|
* // },
|
|
60
61
|
* // outputDataConfig: { // ModelInvocationJobOutputDataConfig Union: only one key present
|
|
61
62
|
* // s3OutputDataConfig: { // ModelInvocationJobS3OutputDataConfig
|
|
62
63
|
* // s3Uri: "STRING_VALUE", // required
|
|
63
64
|
* // s3EncryptionKeyId: "STRING_VALUE",
|
|
65
|
+
* // s3BucketOwner: "STRING_VALUE",
|
|
64
66
|
* // },
|
|
65
67
|
* // },
|
|
68
|
+
* // vpcConfig: { // VpcConfig
|
|
69
|
+
* // subnetIds: [ // SubnetIds // required
|
|
70
|
+
* // "STRING_VALUE",
|
|
71
|
+
* // ],
|
|
72
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
73
|
+
* // "STRING_VALUE",
|
|
74
|
+
* // ],
|
|
75
|
+
* // },
|
|
66
76
|
* // timeoutDurationInHours: Number("int"),
|
|
67
77
|
* // jobExpirationTime: new Date("TIMESTAMP"),
|
|
68
78
|
* // };
|
|
@@ -64,14 +64,24 @@ declare const ListModelInvocationJobsCommand_base: {
|
|
|
64
64
|
* // s3InputDataConfig: { // ModelInvocationJobS3InputDataConfig
|
|
65
65
|
* // s3InputFormat: "JSONL",
|
|
66
66
|
* // s3Uri: "STRING_VALUE", // required
|
|
67
|
+
* // s3BucketOwner: "STRING_VALUE",
|
|
67
68
|
* // },
|
|
68
69
|
* // },
|
|
69
70
|
* // outputDataConfig: { // ModelInvocationJobOutputDataConfig Union: only one key present
|
|
70
71
|
* // s3OutputDataConfig: { // ModelInvocationJobS3OutputDataConfig
|
|
71
72
|
* // s3Uri: "STRING_VALUE", // required
|
|
72
73
|
* // s3EncryptionKeyId: "STRING_VALUE",
|
|
74
|
+
* // s3BucketOwner: "STRING_VALUE",
|
|
73
75
|
* // },
|
|
74
76
|
* // },
|
|
77
|
+
* // vpcConfig: { // VpcConfig
|
|
78
|
+
* // subnetIds: [ // SubnetIds // required
|
|
79
|
+
* // "STRING_VALUE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // },
|
|
75
85
|
* // timeoutDurationInHours: Number("int"),
|
|
76
86
|
* // jobExpirationTime: new Date("TIMESTAMP"),
|
|
77
87
|
* // },
|
|
@@ -2736,17 +2736,17 @@ export declare namespace ModelDataSource {
|
|
|
2736
2736
|
const visit: <T>(value: ModelDataSource, visitor: Visitor<T>) => T;
|
|
2737
2737
|
}
|
|
2738
2738
|
/**
|
|
2739
|
-
* <p>VPC
|
|
2739
|
+
* <p>The configuration of a virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html">Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink</a>.</p>
|
|
2740
2740
|
* @public
|
|
2741
2741
|
*/
|
|
2742
2742
|
export interface VpcConfig {
|
|
2743
2743
|
/**
|
|
2744
|
-
* <p>VPC
|
|
2744
|
+
* <p>An array of IDs for each subnet in the VPC to use.</p>
|
|
2745
2745
|
* @public
|
|
2746
2746
|
*/
|
|
2747
2747
|
subnetIds: string[] | undefined;
|
|
2748
2748
|
/**
|
|
2749
|
-
* <p>
|
|
2749
|
+
* <p>An array of IDs for each security group in the VPC to use.</p>
|
|
2750
2750
|
* @public
|
|
2751
2751
|
*/
|
|
2752
2752
|
securityGroupIds: string[] | undefined;
|
|
@@ -3183,7 +3183,7 @@ export declare const S3InputFormat: {
|
|
|
3183
3183
|
*/
|
|
3184
3184
|
export type S3InputFormat = (typeof S3InputFormat)[keyof typeof S3InputFormat];
|
|
3185
3185
|
/**
|
|
3186
|
-
* <p>Contains the configuration of the S3 location of the
|
|
3186
|
+
* <p>Contains the configuration of the S3 location of the input data.</p>
|
|
3187
3187
|
* @public
|
|
3188
3188
|
*/
|
|
3189
3189
|
export interface ModelInvocationJobS3InputDataConfig {
|
|
@@ -3197,6 +3197,11 @@ export interface ModelInvocationJobS3InputDataConfig {
|
|
|
3197
3197
|
* @public
|
|
3198
3198
|
*/
|
|
3199
3199
|
s3Uri: string | undefined;
|
|
3200
|
+
/**
|
|
3201
|
+
* <p>The ID of the Amazon Web Services account that owns the S3 bucket containing the input data.</p>
|
|
3202
|
+
* @public
|
|
3203
|
+
*/
|
|
3204
|
+
s3BucketOwner?: string;
|
|
3200
3205
|
}
|
|
3201
3206
|
/**
|
|
3202
3207
|
* <p>Details about the location of the input to the batch inference job.</p>
|
|
@@ -3243,6 +3248,11 @@ export interface ModelInvocationJobS3OutputDataConfig {
|
|
|
3243
3248
|
* @public
|
|
3244
3249
|
*/
|
|
3245
3250
|
s3EncryptionKeyId?: string;
|
|
3251
|
+
/**
|
|
3252
|
+
* <p>The ID of the Amazon Web Services account that owns the S3 bucket containing the output data.</p>
|
|
3253
|
+
* @public
|
|
3254
|
+
*/
|
|
3255
|
+
s3BucketOwner?: string;
|
|
3246
3256
|
}
|
|
3247
3257
|
/**
|
|
3248
3258
|
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
@@ -3309,6 +3319,11 @@ export interface CreateModelInvocationJobRequest {
|
|
|
3309
3319
|
* @public
|
|
3310
3320
|
*/
|
|
3311
3321
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3322
|
+
/**
|
|
3323
|
+
* <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-inference-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3324
|
+
* @public
|
|
3325
|
+
*/
|
|
3326
|
+
vpcConfig?: VpcConfig;
|
|
3312
3327
|
/**
|
|
3313
3328
|
* <p>The number of hours after which to force the batch inference job to time out.</p>
|
|
3314
3329
|
* @public
|
|
@@ -3425,6 +3440,11 @@ export interface GetModelInvocationJobResponse {
|
|
|
3425
3440
|
* @public
|
|
3426
3441
|
*/
|
|
3427
3442
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3443
|
+
/**
|
|
3444
|
+
* <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-inference-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3445
|
+
* @public
|
|
3446
|
+
*/
|
|
3447
|
+
vpcConfig?: VpcConfig;
|
|
3428
3448
|
/**
|
|
3429
3449
|
* <p>The number of hours after which batch inference job was set to time out.</p>
|
|
3430
3450
|
* @public
|
|
@@ -3551,6 +3571,11 @@ export interface ModelInvocationJobSummary {
|
|
|
3551
3571
|
* @public
|
|
3552
3572
|
*/
|
|
3553
3573
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3574
|
+
/**
|
|
3575
|
+
* <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-inference-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3576
|
+
* @public
|
|
3577
|
+
*/
|
|
3578
|
+
vpcConfig?: VpcConfig;
|
|
3554
3579
|
/**
|
|
3555
3580
|
* <p>The number of hours after which the batch inference job was set to time out.</p>
|
|
3556
3581
|
* @public
|
|
@@ -4599,8 +4624,7 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
4599
4624
|
*/
|
|
4600
4625
|
hyperParameters: Record<string, string> | undefined;
|
|
4601
4626
|
/**
|
|
4602
|
-
* <p>
|
|
4603
|
-
* private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
|
|
4627
|
+
* <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>
|
|
4604
4628
|
* @public
|
|
4605
4629
|
*/
|
|
4606
4630
|
vpcConfig?: VpcConfig;
|
|
@@ -827,6 +827,7 @@ export type S3InputFormat = (typeof S3InputFormat)[keyof typeof S3InputFormat];
|
|
|
827
827
|
export interface ModelInvocationJobS3InputDataConfig {
|
|
828
828
|
s3InputFormat?: S3InputFormat;
|
|
829
829
|
s3Uri: string | undefined;
|
|
830
|
+
s3BucketOwner?: string;
|
|
830
831
|
}
|
|
831
832
|
export type ModelInvocationJobInputDataConfig =
|
|
832
833
|
| ModelInvocationJobInputDataConfig.S3InputDataConfigMember
|
|
@@ -852,6 +853,7 @@ export declare namespace ModelInvocationJobInputDataConfig {
|
|
|
852
853
|
export interface ModelInvocationJobS3OutputDataConfig {
|
|
853
854
|
s3Uri: string | undefined;
|
|
854
855
|
s3EncryptionKeyId?: string;
|
|
856
|
+
s3BucketOwner?: string;
|
|
855
857
|
}
|
|
856
858
|
export type ModelInvocationJobOutputDataConfig =
|
|
857
859
|
| ModelInvocationJobOutputDataConfig.S3OutputDataConfigMember
|
|
@@ -881,6 +883,7 @@ export interface CreateModelInvocationJobRequest {
|
|
|
881
883
|
modelId: string | undefined;
|
|
882
884
|
inputDataConfig: ModelInvocationJobInputDataConfig | undefined;
|
|
883
885
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
886
|
+
vpcConfig?: VpcConfig;
|
|
884
887
|
timeoutDurationInHours?: number;
|
|
885
888
|
tags?: Tag[];
|
|
886
889
|
}
|
|
@@ -917,6 +920,7 @@ export interface GetModelInvocationJobResponse {
|
|
|
917
920
|
endTime?: Date;
|
|
918
921
|
inputDataConfig: ModelInvocationJobInputDataConfig | undefined;
|
|
919
922
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
923
|
+
vpcConfig?: VpcConfig;
|
|
920
924
|
timeoutDurationInHours?: number;
|
|
921
925
|
jobExpirationTime?: Date;
|
|
922
926
|
}
|
|
@@ -943,6 +947,7 @@ export interface ModelInvocationJobSummary {
|
|
|
943
947
|
endTime?: Date;
|
|
944
948
|
inputDataConfig: ModelInvocationJobInputDataConfig | undefined;
|
|
945
949
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
950
|
+
vpcConfig?: VpcConfig;
|
|
946
951
|
timeoutDurationInHours?: number;
|
|
947
952
|
jobExpirationTime?: Date;
|
|
948
953
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.652.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.651.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.651.1",
|
|
25
|
+
"@aws-sdk/core": "3.651.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.651.1",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.649.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.649.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.649.0",
|