aws-sdk-bedrock 1.20.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +46 -8
- data/lib/aws-sdk-bedrock/client_api.rb +5 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +8 -5
- data/lib/aws-sdk-bedrock/types.rb +64 -9
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +10 -2
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +5 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c08cb6b6cf3def3f453c1a9f0d78ed5a050a01616f0c2b4dab8300e80876b827
|
4
|
+
data.tar.gz: 1d71bc5a1314cb1cf5c20bf8698f5c02b8e0ab9e14ea4bfcb08e7c0f1cdf97e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a25daec7e6feae5c01b58f86a81eeb910789b366fa61666e11cb692813dbe40a56db764d9d630ca33cfafe3921235eb5d0b2560a14a78cec6ee8d71a5e9645c3
|
7
|
+
data.tar.gz: b6c82c14add832dbb1b0a466132a69eca9cf6b09437a58860cfc1ccd27b999f9082bfa4557bf7bc53cdf2d4d7e8da48e930e8ff19915c8d44bd2bf736ae87288
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.22.0 (2024-09-20)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.21.0 (2024-09-16)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This feature adds cross account s3 bucket and VPC support to ModelInvocation jobs. To use a cross account bucket, pass in the accountId of the bucket to s3BucketOwner in the ModelInvocationJobInputDataConfig or ModelInvocationJobOutputDataConfig.
|
13
|
+
|
4
14
|
1.20.0 (2024-09-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.22.0
|
@@ -130,13 +130,15 @@ module Aws::Bedrock
|
|
130
130
|
# locations will be searched for credentials:
|
131
131
|
#
|
132
132
|
# * `Aws.config[:credentials]`
|
133
|
-
# * The `:access_key_id`, `:secret_access_key`,
|
134
|
-
#
|
133
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
|
+
# `:account_id` options.
|
135
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
|
136
|
+
# ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
|
135
137
|
# * `~/.aws/credentials`
|
136
138
|
# * `~/.aws/config`
|
137
139
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
138
140
|
# are very aggressive. Construct and pass an instance of
|
139
|
-
# `Aws::
|
141
|
+
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
140
142
|
# enable retries and extended timeouts. Instance profile credential
|
141
143
|
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
142
144
|
# to true.
|
@@ -155,6 +157,8 @@ module Aws::Bedrock
|
|
155
157
|
#
|
156
158
|
# @option options [String] :access_key_id
|
157
159
|
#
|
160
|
+
# @option options [String] :account_id
|
161
|
+
#
|
158
162
|
# @option options [Boolean] :active_endpoint_cache (false)
|
159
163
|
# When set to `true`, a thread polling for endpoints will be running in
|
160
164
|
# the background every 60 secs (default). Defaults to `false`.
|
@@ -369,7 +373,9 @@ module Aws::Bedrock
|
|
369
373
|
# sending the request.
|
370
374
|
#
|
371
375
|
# @option options [Aws::Bedrock::EndpointProvider] :endpoint_provider
|
372
|
-
# The endpoint provider used to resolve endpoints. Any object that responds to
|
376
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
377
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
378
|
+
# `Aws::Bedrock::EndpointParameters`.
|
373
379
|
#
|
374
380
|
# @option options [Float] :http_continue_timeout (1)
|
375
381
|
# The number of seconds to wait for a 100-continue response before sending the
|
@@ -1014,9 +1020,13 @@ module Aws::Bedrock
|
|
1014
1020
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html
|
1015
1021
|
#
|
1016
1022
|
# @option params [Types::VpcConfig] :vpc_config
|
1017
|
-
#
|
1018
|
-
#
|
1019
|
-
#
|
1023
|
+
# The configuration of the Virtual Private Cloud (VPC) that contains the
|
1024
|
+
# resources that you're using for this job. For more information, see
|
1025
|
+
# [Protect your model customization jobs using a VPC][1].
|
1026
|
+
#
|
1027
|
+
#
|
1028
|
+
#
|
1029
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html
|
1020
1030
|
#
|
1021
1031
|
# @return [Types::CreateModelCustomizationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1022
1032
|
#
|
@@ -1219,6 +1229,15 @@ module Aws::Bedrock
|
|
1219
1229
|
# @option params [required, Types::ModelInvocationJobOutputDataConfig] :output_data_config
|
1220
1230
|
# Details about the location of the output of the batch inference job.
|
1221
1231
|
#
|
1232
|
+
# @option params [Types::VpcConfig] :vpc_config
|
1233
|
+
# The configuration of the Virtual Private Cloud (VPC) for the data in
|
1234
|
+
# the batch inference job. For more information, see [Protect batch
|
1235
|
+
# inference jobs using a VPC][1].
|
1236
|
+
#
|
1237
|
+
#
|
1238
|
+
#
|
1239
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-vpc
|
1240
|
+
#
|
1222
1241
|
# @option params [Integer] :timeout_duration_in_hours
|
1223
1242
|
# The number of hours after which to force the batch inference job to
|
1224
1243
|
# time out.
|
@@ -1246,14 +1265,20 @@ module Aws::Bedrock
|
|
1246
1265
|
# s3_input_data_config: {
|
1247
1266
|
# s3_input_format: "JSONL", # accepts JSONL
|
1248
1267
|
# s3_uri: "S3Uri", # required
|
1268
|
+
# s3_bucket_owner: "AccountId",
|
1249
1269
|
# },
|
1250
1270
|
# },
|
1251
1271
|
# output_data_config: { # required
|
1252
1272
|
# s3_output_data_config: {
|
1253
1273
|
# s3_uri: "S3Uri", # required
|
1254
1274
|
# s3_encryption_key_id: "KmsKeyId",
|
1275
|
+
# s3_bucket_owner: "AccountId",
|
1255
1276
|
# },
|
1256
1277
|
# },
|
1278
|
+
# vpc_config: {
|
1279
|
+
# subnet_ids: ["SubnetId"], # required
|
1280
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1281
|
+
# },
|
1257
1282
|
# timeout_duration_in_hours: 1,
|
1258
1283
|
# tags: [
|
1259
1284
|
# {
|
@@ -2107,6 +2132,7 @@ module Aws::Bedrock
|
|
2107
2132
|
# * {Types::GetModelInvocationJobResponse#end_time #end_time} => Time
|
2108
2133
|
# * {Types::GetModelInvocationJobResponse#input_data_config #input_data_config} => Types::ModelInvocationJobInputDataConfig
|
2109
2134
|
# * {Types::GetModelInvocationJobResponse#output_data_config #output_data_config} => Types::ModelInvocationJobOutputDataConfig
|
2135
|
+
# * {Types::GetModelInvocationJobResponse#vpc_config #vpc_config} => Types::VpcConfig
|
2110
2136
|
# * {Types::GetModelInvocationJobResponse#timeout_duration_in_hours #timeout_duration_in_hours} => Integer
|
2111
2137
|
# * {Types::GetModelInvocationJobResponse#job_expiration_time #job_expiration_time} => Time
|
2112
2138
|
#
|
@@ -2130,8 +2156,14 @@ module Aws::Bedrock
|
|
2130
2156
|
# resp.end_time #=> Time
|
2131
2157
|
# resp.input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
|
2132
2158
|
# resp.input_data_config.s3_input_data_config.s3_uri #=> String
|
2159
|
+
# resp.input_data_config.s3_input_data_config.s3_bucket_owner #=> String
|
2133
2160
|
# resp.output_data_config.s3_output_data_config.s3_uri #=> String
|
2134
2161
|
# resp.output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
|
2162
|
+
# resp.output_data_config.s3_output_data_config.s3_bucket_owner #=> String
|
2163
|
+
# resp.vpc_config.subnet_ids #=> Array
|
2164
|
+
# resp.vpc_config.subnet_ids[0] #=> String
|
2165
|
+
# resp.vpc_config.security_group_ids #=> Array
|
2166
|
+
# resp.vpc_config.security_group_ids[0] #=> String
|
2135
2167
|
# resp.timeout_duration_in_hours #=> Integer
|
2136
2168
|
# resp.job_expiration_time #=> Time
|
2137
2169
|
#
|
@@ -2999,8 +3031,14 @@ module Aws::Bedrock
|
|
2999
3031
|
# resp.invocation_job_summaries[0].end_time #=> Time
|
3000
3032
|
# resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
|
3001
3033
|
# resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_uri #=> String
|
3034
|
+
# resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_bucket_owner #=> String
|
3002
3035
|
# resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_uri #=> String
|
3003
3036
|
# resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
|
3037
|
+
# resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_bucket_owner #=> String
|
3038
|
+
# resp.invocation_job_summaries[0].vpc_config.subnet_ids #=> Array
|
3039
|
+
# resp.invocation_job_summaries[0].vpc_config.subnet_ids[0] #=> String
|
3040
|
+
# resp.invocation_job_summaries[0].vpc_config.security_group_ids #=> Array
|
3041
|
+
# resp.invocation_job_summaries[0].vpc_config.security_group_ids[0] #=> String
|
3004
3042
|
# resp.invocation_job_summaries[0].timeout_duration_in_hours #=> Integer
|
3005
3043
|
# resp.invocation_job_summaries[0].job_expiration_time #=> Time
|
3006
3044
|
#
|
@@ -3562,7 +3600,7 @@ module Aws::Bedrock
|
|
3562
3600
|
tracer: tracer
|
3563
3601
|
)
|
3564
3602
|
context[:gem_name] = 'aws-sdk-bedrock'
|
3565
|
-
context[:gem_version] = '1.
|
3603
|
+
context[:gem_version] = '1.22.0'
|
3566
3604
|
Seahorse::Client::Request.new(handlers, context)
|
3567
3605
|
end
|
3568
3606
|
|
@@ -481,6 +481,7 @@ module Aws::Bedrock
|
|
481
481
|
CreateModelInvocationJobRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ModelId, required: true, location_name: "modelId"))
|
482
482
|
CreateModelInvocationJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobInputDataConfig, required: true, location_name: "inputDataConfig"))
|
483
483
|
CreateModelInvocationJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobOutputDataConfig, required: true, location_name: "outputDataConfig"))
|
484
|
+
CreateModelInvocationJobRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
|
484
485
|
CreateModelInvocationJobRequest.add_member(:timeout_duration_in_hours, Shapes::ShapeRef.new(shape: ModelInvocationJobTimeoutDurationInHours, location_name: "timeoutDurationInHours"))
|
485
486
|
CreateModelInvocationJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
486
487
|
CreateModelInvocationJobRequest.struct_class = Types::CreateModelInvocationJobRequest
|
@@ -800,6 +801,7 @@ module Aws::Bedrock
|
|
800
801
|
GetModelInvocationJobResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
801
802
|
GetModelInvocationJobResponse.add_member(:input_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobInputDataConfig, required: true, location_name: "inputDataConfig"))
|
802
803
|
GetModelInvocationJobResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobOutputDataConfig, required: true, location_name: "outputDataConfig"))
|
804
|
+
GetModelInvocationJobResponse.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
|
803
805
|
GetModelInvocationJobResponse.add_member(:timeout_duration_in_hours, Shapes::ShapeRef.new(shape: ModelInvocationJobTimeoutDurationInHours, location_name: "timeoutDurationInHours"))
|
804
806
|
GetModelInvocationJobResponse.add_member(:job_expiration_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "jobExpirationTime"))
|
805
807
|
GetModelInvocationJobResponse.struct_class = Types::GetModelInvocationJobResponse
|
@@ -1236,10 +1238,12 @@ module Aws::Bedrock
|
|
1236
1238
|
|
1237
1239
|
ModelInvocationJobS3InputDataConfig.add_member(:s3_input_format, Shapes::ShapeRef.new(shape: S3InputFormat, location_name: "s3InputFormat"))
|
1238
1240
|
ModelInvocationJobS3InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
1241
|
+
ModelInvocationJobS3InputDataConfig.add_member(:s3_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "s3BucketOwner"))
|
1239
1242
|
ModelInvocationJobS3InputDataConfig.struct_class = Types::ModelInvocationJobS3InputDataConfig
|
1240
1243
|
|
1241
1244
|
ModelInvocationJobS3OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
1242
1245
|
ModelInvocationJobS3OutputDataConfig.add_member(:s3_encryption_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "s3EncryptionKeyId"))
|
1246
|
+
ModelInvocationJobS3OutputDataConfig.add_member(:s3_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "s3BucketOwner"))
|
1243
1247
|
ModelInvocationJobS3OutputDataConfig.struct_class = Types::ModelInvocationJobS3OutputDataConfig
|
1244
1248
|
|
1245
1249
|
ModelInvocationJobSummaries.member = Shapes::ShapeRef.new(shape: ModelInvocationJobSummary)
|
@@ -1256,6 +1260,7 @@ module Aws::Bedrock
|
|
1256
1260
|
ModelInvocationJobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
1257
1261
|
ModelInvocationJobSummary.add_member(:input_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobInputDataConfig, required: true, location_name: "inputDataConfig"))
|
1258
1262
|
ModelInvocationJobSummary.add_member(:output_data_config, Shapes::ShapeRef.new(shape: ModelInvocationJobOutputDataConfig, required: true, location_name: "outputDataConfig"))
|
1263
|
+
ModelInvocationJobSummary.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
|
1259
1264
|
ModelInvocationJobSummary.add_member(:timeout_duration_in_hours, Shapes::ShapeRef.new(shape: ModelInvocationJobTimeoutDurationInHours, location_name: "timeoutDurationInHours"))
|
1260
1265
|
ModelInvocationJobSummary.add_member(:job_expiration_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "jobExpirationTime"))
|
1261
1266
|
ModelInvocationJobSummary.struct_class = Types::ModelInvocationJobSummary
|
@@ -15,11 +15,11 @@ module Aws::Bedrock
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::Bedrock::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::Bedrock::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::Bedrock::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
@@ -51,6 +51,9 @@ module Aws::Bedrock
|
|
51
51
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
52
|
metrics << 'SIGV4A_SIGNING'
|
53
53
|
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
54
57
|
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
58
|
end
|
56
59
|
|
@@ -533,9 +533,13 @@ module Aws::Bedrock
|
|
533
533
|
# @return [Hash<String,String>]
|
534
534
|
#
|
535
535
|
# @!attribute [rw] vpc_config
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
536
|
+
# The configuration of the Virtual Private Cloud (VPC) that contains
|
537
|
+
# the resources that you're using for this job. For more information,
|
538
|
+
# see [Protect your model customization jobs using a VPC][1].
|
539
|
+
#
|
540
|
+
#
|
541
|
+
#
|
542
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html
|
539
543
|
# @return [Types::VpcConfig]
|
540
544
|
#
|
541
545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelCustomizationJobRequest AWS API Documentation
|
@@ -685,6 +689,16 @@ module Aws::Bedrock
|
|
685
689
|
# Details about the location of the output of the batch inference job.
|
686
690
|
# @return [Types::ModelInvocationJobOutputDataConfig]
|
687
691
|
#
|
692
|
+
# @!attribute [rw] vpc_config
|
693
|
+
# The configuration of the Virtual Private Cloud (VPC) for the data in
|
694
|
+
# the batch inference job. For more information, see [Protect batch
|
695
|
+
# inference jobs using a VPC][1].
|
696
|
+
#
|
697
|
+
#
|
698
|
+
#
|
699
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-vpc
|
700
|
+
# @return [Types::VpcConfig]
|
701
|
+
#
|
688
702
|
# @!attribute [rw] timeout_duration_in_hours
|
689
703
|
# The number of hours after which to force the batch inference job to
|
690
704
|
# time out.
|
@@ -708,6 +722,7 @@ module Aws::Bedrock
|
|
708
722
|
:model_id,
|
709
723
|
:input_data_config,
|
710
724
|
:output_data_config,
|
725
|
+
:vpc_config,
|
711
726
|
:timeout_duration_in_hours,
|
712
727
|
:tags)
|
713
728
|
SENSITIVE = []
|
@@ -2172,6 +2187,16 @@ module Aws::Bedrock
|
|
2172
2187
|
# Details about the location of the output of the batch inference job.
|
2173
2188
|
# @return [Types::ModelInvocationJobOutputDataConfig]
|
2174
2189
|
#
|
2190
|
+
# @!attribute [rw] vpc_config
|
2191
|
+
# The configuration of the Virtual Private Cloud (VPC) for the data in
|
2192
|
+
# the batch inference job. For more information, see [Protect batch
|
2193
|
+
# inference jobs using a VPC][1].
|
2194
|
+
#
|
2195
|
+
#
|
2196
|
+
#
|
2197
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-vpc
|
2198
|
+
# @return [Types::VpcConfig]
|
2199
|
+
#
|
2175
2200
|
# @!attribute [rw] timeout_duration_in_hours
|
2176
2201
|
# The number of hours after which batch inference job was set to time
|
2177
2202
|
# out.
|
@@ -2196,6 +2221,7 @@ module Aws::Bedrock
|
|
2196
2221
|
:end_time,
|
2197
2222
|
:input_data_config,
|
2198
2223
|
:output_data_config,
|
2224
|
+
:vpc_config,
|
2199
2225
|
:timeout_duration_in_hours,
|
2200
2226
|
:job_expiration_time)
|
2201
2227
|
SENSITIVE = [:message]
|
@@ -4482,7 +4508,7 @@ module Aws::Bedrock
|
|
4482
4508
|
class Unknown < ModelInvocationJobOutputDataConfig; end
|
4483
4509
|
end
|
4484
4510
|
|
4485
|
-
# Contains the configuration of the S3 location of the
|
4511
|
+
# Contains the configuration of the S3 location of the input data.
|
4486
4512
|
#
|
4487
4513
|
# @!attribute [rw] s3_input_format
|
4488
4514
|
# The format of the input data.
|
@@ -4492,11 +4518,17 @@ module Aws::Bedrock
|
|
4492
4518
|
# The S3 location of the input data.
|
4493
4519
|
# @return [String]
|
4494
4520
|
#
|
4521
|
+
# @!attribute [rw] s3_bucket_owner
|
4522
|
+
# The ID of the Amazon Web Services account that owns the S3 bucket
|
4523
|
+
# containing the input data.
|
4524
|
+
# @return [String]
|
4525
|
+
#
|
4495
4526
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobS3InputDataConfig AWS API Documentation
|
4496
4527
|
#
|
4497
4528
|
class ModelInvocationJobS3InputDataConfig < Struct.new(
|
4498
4529
|
:s3_input_format,
|
4499
|
-
:s3_uri
|
4530
|
+
:s3_uri,
|
4531
|
+
:s3_bucket_owner)
|
4500
4532
|
SENSITIVE = []
|
4501
4533
|
include Aws::Structure
|
4502
4534
|
end
|
@@ -4512,11 +4544,17 @@ module Aws::Bedrock
|
|
4512
4544
|
# the output data.
|
4513
4545
|
# @return [String]
|
4514
4546
|
#
|
4547
|
+
# @!attribute [rw] s3_bucket_owner
|
4548
|
+
# The ID of the Amazon Web Services account that owns the S3 bucket
|
4549
|
+
# containing the output data.
|
4550
|
+
# @return [String]
|
4551
|
+
#
|
4515
4552
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobS3OutputDataConfig AWS API Documentation
|
4516
4553
|
#
|
4517
4554
|
class ModelInvocationJobS3OutputDataConfig < Struct.new(
|
4518
4555
|
:s3_uri,
|
4519
|
-
:s3_encryption_key_id
|
4556
|
+
:s3_encryption_key_id,
|
4557
|
+
:s3_bucket_owner)
|
4520
4558
|
SENSITIVE = []
|
4521
4559
|
include Aws::Structure
|
4522
4560
|
end
|
@@ -4587,6 +4625,16 @@ module Aws::Bedrock
|
|
4587
4625
|
# Details about the location of the output of the batch inference job.
|
4588
4626
|
# @return [Types::ModelInvocationJobOutputDataConfig]
|
4589
4627
|
#
|
4628
|
+
# @!attribute [rw] vpc_config
|
4629
|
+
# The configuration of the Virtual Private Cloud (VPC) for the data in
|
4630
|
+
# the batch inference job. For more information, see [Protect batch
|
4631
|
+
# inference jobs using a VPC][1].
|
4632
|
+
#
|
4633
|
+
#
|
4634
|
+
#
|
4635
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-vpc
|
4636
|
+
# @return [Types::VpcConfig]
|
4637
|
+
#
|
4590
4638
|
# @!attribute [rw] timeout_duration_in_hours
|
4591
4639
|
# The number of hours after which the batch inference job was set to
|
4592
4640
|
# time out.
|
@@ -4611,6 +4659,7 @@ module Aws::Bedrock
|
|
4611
4659
|
:end_time,
|
4612
4660
|
:input_data_config,
|
4613
4661
|
:output_data_config,
|
4662
|
+
:vpc_config,
|
4614
4663
|
:timeout_duration_in_hours,
|
4615
4664
|
:job_expiration_time)
|
4616
4665
|
SENSITIVE = [:message]
|
@@ -5149,14 +5198,20 @@ module Aws::Bedrock
|
|
5149
5198
|
include Aws::Structure
|
5150
5199
|
end
|
5151
5200
|
|
5152
|
-
#
|
5201
|
+
# The configuration of a virtual private cloud (VPC). For more
|
5202
|
+
# information, see [Protect your data using Amazon Virtual Private Cloud
|
5203
|
+
# and Amazon Web Services PrivateLink][1].
|
5204
|
+
#
|
5205
|
+
#
|
5206
|
+
#
|
5207
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html
|
5153
5208
|
#
|
5154
5209
|
# @!attribute [rw] subnet_ids
|
5155
|
-
# VPC
|
5210
|
+
# An array of IDs for each subnet in the VPC to use.
|
5156
5211
|
# @return [Array<String>]
|
5157
5212
|
#
|
5158
5213
|
# @!attribute [rw] security_group_ids
|
5159
|
-
#
|
5214
|
+
# An array of IDs for each security group in the VPC to use.
|
5160
5215
|
# @return [Array<String>]
|
5161
5216
|
#
|
5162
5217
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/VpcConfig AWS API Documentation
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -364,15 +365,21 @@ module Aws
|
|
364
365
|
input_data_config: {
|
365
366
|
s3_input_data_config: {
|
366
367
|
s3_input_format: ("JSONL")?,
|
367
|
-
s3_uri: ::String
|
368
|
+
s3_uri: ::String,
|
369
|
+
s3_bucket_owner: ::String?
|
368
370
|
}?
|
369
371
|
},
|
370
372
|
output_data_config: {
|
371
373
|
s3_output_data_config: {
|
372
374
|
s3_uri: ::String,
|
373
|
-
s3_encryption_key_id: ::String
|
375
|
+
s3_encryption_key_id: ::String?,
|
376
|
+
s3_bucket_owner: ::String?
|
374
377
|
}?
|
375
378
|
},
|
379
|
+
?vpc_config: {
|
380
|
+
subnet_ids: Array[::String],
|
381
|
+
security_group_ids: Array[::String]
|
382
|
+
},
|
376
383
|
?timeout_duration_in_hours: ::Integer,
|
377
384
|
?tags: Array[
|
378
385
|
{
|
@@ -652,6 +659,7 @@ module Aws
|
|
652
659
|
def end_time: () -> ::Time
|
653
660
|
def input_data_config: () -> Types::ModelInvocationJobInputDataConfig
|
654
661
|
def output_data_config: () -> Types::ModelInvocationJobOutputDataConfig
|
662
|
+
def vpc_config: () -> Types::VpcConfig
|
655
663
|
def timeout_duration_in_hours: () -> ::Integer
|
656
664
|
def job_expiration_time: () -> ::Time
|
657
665
|
end
|
data/sig/resource.rbs
CHANGED
data/sig/types.rbs
CHANGED
@@ -171,6 +171,7 @@ module Aws::Bedrock
|
|
171
171
|
attr_accessor model_id: ::String
|
172
172
|
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
173
173
|
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
174
|
+
attr_accessor vpc_config: Types::VpcConfig
|
174
175
|
attr_accessor timeout_duration_in_hours: ::Integer
|
175
176
|
attr_accessor tags: ::Array[Types::Tag]
|
176
177
|
SENSITIVE: []
|
@@ -569,6 +570,7 @@ module Aws::Bedrock
|
|
569
570
|
attr_accessor end_time: ::Time
|
570
571
|
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
571
572
|
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
573
|
+
attr_accessor vpc_config: Types::VpcConfig
|
572
574
|
attr_accessor timeout_duration_in_hours: ::Integer
|
573
575
|
attr_accessor job_expiration_time: ::Time
|
574
576
|
SENSITIVE: [:message]
|
@@ -1092,12 +1094,14 @@ module Aws::Bedrock
|
|
1092
1094
|
class ModelInvocationJobS3InputDataConfig
|
1093
1095
|
attr_accessor s3_input_format: ("JSONL")
|
1094
1096
|
attr_accessor s3_uri: ::String
|
1097
|
+
attr_accessor s3_bucket_owner: ::String
|
1095
1098
|
SENSITIVE: []
|
1096
1099
|
end
|
1097
1100
|
|
1098
1101
|
class ModelInvocationJobS3OutputDataConfig
|
1099
1102
|
attr_accessor s3_uri: ::String
|
1100
1103
|
attr_accessor s3_encryption_key_id: ::String
|
1104
|
+
attr_accessor s3_bucket_owner: ::String
|
1101
1105
|
SENSITIVE: []
|
1102
1106
|
end
|
1103
1107
|
|
@@ -1114,6 +1118,7 @@ module Aws::Bedrock
|
|
1114
1118
|
attr_accessor end_time: ::Time
|
1115
1119
|
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
1116
1120
|
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
1121
|
+
attr_accessor vpc_config: Types::VpcConfig
|
1117
1122
|
attr_accessor timeout_duration_in_hours: ::Integer
|
1118
1123
|
attr_accessor job_expiration_time: ::Time
|
1119
1124
|
SENSITIVE: [:message]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.207.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.207.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|