aws-sdk-bedrock 1.12.0 → 1.14.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 +306 -40
- data/lib/aws-sdk-bedrock/client_api.rb +116 -1
- data/lib/aws-sdk-bedrock/endpoints.rb +42 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-bedrock/types.rb +355 -23
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +61 -1
- data/sig/types.rbs +71 -0
- metadata +4 -4
@@ -14,6 +14,7 @@ module Aws::Bedrock
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
17
18
|
AutomatedEvaluationConfig = Shapes::StructureShape.new(name: 'AutomatedEvaluationConfig')
|
18
19
|
BaseModelIdentifier = Shapes::StringShape.new(name: 'BaseModelIdentifier')
|
19
20
|
BedrockModelId = Shapes::StringShape.new(name: 'BedrockModelId')
|
@@ -29,6 +30,8 @@ module Aws::Bedrock
|
|
29
30
|
CreateGuardrailResponse = Shapes::StructureShape.new(name: 'CreateGuardrailResponse')
|
30
31
|
CreateGuardrailVersionRequest = Shapes::StructureShape.new(name: 'CreateGuardrailVersionRequest')
|
31
32
|
CreateGuardrailVersionResponse = Shapes::StructureShape.new(name: 'CreateGuardrailVersionResponse')
|
33
|
+
CreateModelCopyJobRequest = Shapes::StructureShape.new(name: 'CreateModelCopyJobRequest')
|
34
|
+
CreateModelCopyJobResponse = Shapes::StructureShape.new(name: 'CreateModelCopyJobResponse')
|
32
35
|
CreateModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobRequest')
|
33
36
|
CreateModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobResponse')
|
34
37
|
CreateProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'CreateProvisionedModelThroughputRequest')
|
@@ -91,6 +94,8 @@ module Aws::Bedrock
|
|
91
94
|
GetFoundationModelResponse = Shapes::StructureShape.new(name: 'GetFoundationModelResponse')
|
92
95
|
GetGuardrailRequest = Shapes::StructureShape.new(name: 'GetGuardrailRequest')
|
93
96
|
GetGuardrailResponse = Shapes::StructureShape.new(name: 'GetGuardrailResponse')
|
97
|
+
GetModelCopyJobRequest = Shapes::StructureShape.new(name: 'GetModelCopyJobRequest')
|
98
|
+
GetModelCopyJobResponse = Shapes::StructureShape.new(name: 'GetModelCopyJobResponse')
|
94
99
|
GetModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'GetModelCustomizationJobRequest')
|
95
100
|
GetModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'GetModelCustomizationJobResponse')
|
96
101
|
GetModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetModelInvocationLoggingConfigurationRequest')
|
@@ -193,6 +198,8 @@ module Aws::Bedrock
|
|
193
198
|
ListFoundationModelsResponse = Shapes::StructureShape.new(name: 'ListFoundationModelsResponse')
|
194
199
|
ListGuardrailsRequest = Shapes::StructureShape.new(name: 'ListGuardrailsRequest')
|
195
200
|
ListGuardrailsResponse = Shapes::StructureShape.new(name: 'ListGuardrailsResponse')
|
201
|
+
ListModelCopyJobsRequest = Shapes::StructureShape.new(name: 'ListModelCopyJobsRequest')
|
202
|
+
ListModelCopyJobsResponse = Shapes::StructureShape.new(name: 'ListModelCopyJobsResponse')
|
196
203
|
ListModelCustomizationJobsRequest = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsRequest')
|
197
204
|
ListModelCustomizationJobsResponse = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsResponse')
|
198
205
|
ListProvisionedModelThroughputsRequest = Shapes::StructureShape.new(name: 'ListProvisionedModelThroughputsRequest')
|
@@ -204,6 +211,10 @@ module Aws::Bedrock
|
|
204
211
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
205
212
|
MetricFloat = Shapes::FloatShape.new(name: 'MetricFloat')
|
206
213
|
ModelArn = Shapes::StringShape.new(name: 'ModelArn')
|
214
|
+
ModelCopyJobArn = Shapes::StringShape.new(name: 'ModelCopyJobArn')
|
215
|
+
ModelCopyJobStatus = Shapes::StringShape.new(name: 'ModelCopyJobStatus')
|
216
|
+
ModelCopyJobSummaries = Shapes::ListShape.new(name: 'ModelCopyJobSummaries')
|
217
|
+
ModelCopyJobSummary = Shapes::StructureShape.new(name: 'ModelCopyJobSummary')
|
207
218
|
ModelCustomization = Shapes::StringShape.new(name: 'ModelCustomization')
|
208
219
|
ModelCustomizationHyperParameters = Shapes::MapShape.new(name: 'ModelCustomizationHyperParameters')
|
209
220
|
ModelCustomizationJobArn = Shapes::StringShape.new(name: 'ModelCustomizationJobArn')
|
@@ -332,6 +343,16 @@ module Aws::Bedrock
|
|
332
343
|
CreateGuardrailVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, required: true, location_name: "version"))
|
333
344
|
CreateGuardrailVersionResponse.struct_class = Types::CreateGuardrailVersionResponse
|
334
345
|
|
346
|
+
CreateModelCopyJobRequest.add_member(:source_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "sourceModelArn"))
|
347
|
+
CreateModelCopyJobRequest.add_member(:target_model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "targetModelName"))
|
348
|
+
CreateModelCopyJobRequest.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "modelKmsKeyId"))
|
349
|
+
CreateModelCopyJobRequest.add_member(:target_model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "targetModelTags"))
|
350
|
+
CreateModelCopyJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
|
351
|
+
CreateModelCopyJobRequest.struct_class = Types::CreateModelCopyJobRequest
|
352
|
+
|
353
|
+
CreateModelCopyJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCopyJobArn, required: true, location_name: "jobArn"))
|
354
|
+
CreateModelCopyJobResponse.struct_class = Types::CreateModelCopyJobResponse
|
355
|
+
|
335
356
|
CreateModelCustomizationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
|
336
357
|
CreateModelCustomizationJobRequest.add_member(:custom_model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "customModelName"))
|
337
358
|
CreateModelCustomizationJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
@@ -368,6 +389,7 @@ module Aws::Bedrock
|
|
368
389
|
CustomModelSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
369
390
|
CustomModelSummary.add_member(:base_model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "baseModelName"))
|
370
391
|
CustomModelSummary.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
392
|
+
CustomModelSummary.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
|
371
393
|
CustomModelSummary.struct_class = Types::CustomModelSummary
|
372
394
|
|
373
395
|
CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
|
@@ -553,6 +575,22 @@ module Aws::Bedrock
|
|
553
575
|
GetGuardrailResponse.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
|
554
576
|
GetGuardrailResponse.struct_class = Types::GetGuardrailResponse
|
555
577
|
|
578
|
+
GetModelCopyJobRequest.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCopyJobArn, required: true, location: "uri", location_name: "jobArn"))
|
579
|
+
GetModelCopyJobRequest.struct_class = Types::GetModelCopyJobRequest
|
580
|
+
|
581
|
+
GetModelCopyJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCopyJobArn, required: true, location_name: "jobArn"))
|
582
|
+
GetModelCopyJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelCopyJobStatus, required: true, location_name: "status"))
|
583
|
+
GetModelCopyJobResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
584
|
+
GetModelCopyJobResponse.add_member(:target_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "targetModelArn"))
|
585
|
+
GetModelCopyJobResponse.add_member(:target_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "targetModelName"))
|
586
|
+
GetModelCopyJobResponse.add_member(:source_account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "sourceAccountId"))
|
587
|
+
GetModelCopyJobResponse.add_member(:source_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "sourceModelArn"))
|
588
|
+
GetModelCopyJobResponse.add_member(:target_model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "targetModelKmsKeyArn"))
|
589
|
+
GetModelCopyJobResponse.add_member(:target_model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "targetModelTags"))
|
590
|
+
GetModelCopyJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
591
|
+
GetModelCopyJobResponse.add_member(:source_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "sourceModelName"))
|
592
|
+
GetModelCopyJobResponse.struct_class = Types::GetModelCopyJobResponse
|
593
|
+
|
556
594
|
GetModelCustomizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: ModelCustomizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
|
557
595
|
GetModelCustomizationJobRequest.struct_class = Types::GetModelCustomizationJobRequest
|
558
596
|
|
@@ -774,6 +812,7 @@ module Aws::Bedrock
|
|
774
812
|
ListCustomModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
775
813
|
ListCustomModelsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortModelsBy, location: "querystring", location_name: "sortBy"))
|
776
814
|
ListCustomModelsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
|
815
|
+
ListCustomModelsRequest.add_member(:is_owned, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "isOwned"))
|
777
816
|
ListCustomModelsRequest.struct_class = Types::ListCustomModelsRequest
|
778
817
|
|
779
818
|
ListCustomModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
@@ -812,6 +851,22 @@ module Aws::Bedrock
|
|
812
851
|
ListGuardrailsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
813
852
|
ListGuardrailsResponse.struct_class = Types::ListGuardrailsResponse
|
814
853
|
|
854
|
+
ListModelCopyJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
|
855
|
+
ListModelCopyJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
|
856
|
+
ListModelCopyJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: ModelCopyJobStatus, location: "querystring", location_name: "statusEquals"))
|
857
|
+
ListModelCopyJobsRequest.add_member(:source_account_equals, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "sourceAccountEquals"))
|
858
|
+
ListModelCopyJobsRequest.add_member(:source_model_arn_equals, Shapes::ShapeRef.new(shape: ModelArn, location: "querystring", location_name: "sourceModelArnEquals"))
|
859
|
+
ListModelCopyJobsRequest.add_member(:target_model_name_contains, Shapes::ShapeRef.new(shape: CustomModelName, location: "querystring", location_name: "outputModelNameContains"))
|
860
|
+
ListModelCopyJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
861
|
+
ListModelCopyJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
862
|
+
ListModelCopyJobsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortJobsBy, location: "querystring", location_name: "sortBy"))
|
863
|
+
ListModelCopyJobsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
|
864
|
+
ListModelCopyJobsRequest.struct_class = Types::ListModelCopyJobsRequest
|
865
|
+
|
866
|
+
ListModelCopyJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
867
|
+
ListModelCopyJobsResponse.add_member(:model_copy_job_summaries, Shapes::ShapeRef.new(shape: ModelCopyJobSummaries, location_name: "modelCopyJobSummaries"))
|
868
|
+
ListModelCopyJobsResponse.struct_class = Types::ListModelCopyJobsResponse
|
869
|
+
|
815
870
|
ListModelCustomizationJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
|
816
871
|
ListModelCustomizationJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
|
817
872
|
ListModelCustomizationJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: FineTuningJobStatus, location: "querystring", location_name: "statusEquals"))
|
@@ -854,6 +909,21 @@ module Aws::Bedrock
|
|
854
909
|
LoggingConfig.add_member(:embedding_data_delivery_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "embeddingDataDeliveryEnabled"))
|
855
910
|
LoggingConfig.struct_class = Types::LoggingConfig
|
856
911
|
|
912
|
+
ModelCopyJobSummaries.member = Shapes::ShapeRef.new(shape: ModelCopyJobSummary)
|
913
|
+
|
914
|
+
ModelCopyJobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCopyJobArn, required: true, location_name: "jobArn"))
|
915
|
+
ModelCopyJobSummary.add_member(:status, Shapes::ShapeRef.new(shape: ModelCopyJobStatus, required: true, location_name: "status"))
|
916
|
+
ModelCopyJobSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
917
|
+
ModelCopyJobSummary.add_member(:target_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "targetModelArn"))
|
918
|
+
ModelCopyJobSummary.add_member(:target_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "targetModelName"))
|
919
|
+
ModelCopyJobSummary.add_member(:source_account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "sourceAccountId"))
|
920
|
+
ModelCopyJobSummary.add_member(:source_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "sourceModelArn"))
|
921
|
+
ModelCopyJobSummary.add_member(:target_model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "targetModelKmsKeyArn"))
|
922
|
+
ModelCopyJobSummary.add_member(:target_model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "targetModelTags"))
|
923
|
+
ModelCopyJobSummary.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
924
|
+
ModelCopyJobSummary.add_member(:source_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "sourceModelName"))
|
925
|
+
ModelCopyJobSummary.struct_class = Types::ModelCopyJobSummary
|
926
|
+
|
857
927
|
ModelCustomizationHyperParameters.key = Shapes::ShapeRef.new(shape: String)
|
858
928
|
ModelCustomizationHyperParameters.value = Shapes::ShapeRef.new(shape: String)
|
859
929
|
|
@@ -1010,9 +1080,10 @@ module Aws::Bedrock
|
|
1010
1080
|
|
1011
1081
|
api.metadata = {
|
1012
1082
|
"apiVersion" => "2023-04-20",
|
1083
|
+
"auth" => ["aws.auth#sigv4"],
|
1013
1084
|
"endpointPrefix" => "bedrock",
|
1014
|
-
"jsonVersion" => "1.1",
|
1015
1085
|
"protocol" => "rest-json",
|
1086
|
+
"protocols" => ["rest-json"],
|
1016
1087
|
"serviceFullName" => "Amazon Bedrock",
|
1017
1088
|
"serviceId" => "Bedrock",
|
1018
1089
|
"signatureVersion" => "v4",
|
@@ -1066,6 +1137,18 @@ module Aws::Bedrock
|
|
1066
1137
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1067
1138
|
end)
|
1068
1139
|
|
1140
|
+
api.add_operation(:create_model_copy_job, Seahorse::Model::Operation.new.tap do |o|
|
1141
|
+
o.name = "CreateModelCopyJob"
|
1142
|
+
o.http_method = "POST"
|
1143
|
+
o.http_request_uri = "/model-copy-jobs"
|
1144
|
+
o.input = Shapes::ShapeRef.new(shape: CreateModelCopyJobRequest)
|
1145
|
+
o.output = Shapes::ShapeRef.new(shape: CreateModelCopyJobResponse)
|
1146
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1147
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1148
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1149
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
1150
|
+
end)
|
1151
|
+
|
1069
1152
|
api.add_operation(:create_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
|
1070
1153
|
o.name = "CreateModelCustomizationJob"
|
1071
1154
|
o.http_method = "POST"
|
@@ -1202,6 +1285,19 @@ module Aws::Bedrock
|
|
1202
1285
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1203
1286
|
end)
|
1204
1287
|
|
1288
|
+
api.add_operation(:get_model_copy_job, Seahorse::Model::Operation.new.tap do |o|
|
1289
|
+
o.name = "GetModelCopyJob"
|
1290
|
+
o.http_method = "GET"
|
1291
|
+
o.http_request_uri = "/model-copy-jobs/{jobArn}"
|
1292
|
+
o.input = Shapes::ShapeRef.new(shape: GetModelCopyJobRequest)
|
1293
|
+
o.output = Shapes::ShapeRef.new(shape: GetModelCopyJobResponse)
|
1294
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1295
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1296
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1297
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1298
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1299
|
+
end)
|
1300
|
+
|
1205
1301
|
api.add_operation(:get_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
|
1206
1302
|
o.name = "GetModelCustomizationJob"
|
1207
1303
|
o.http_method = "GET"
|
@@ -1306,6 +1402,25 @@ module Aws::Bedrock
|
|
1306
1402
|
)
|
1307
1403
|
end)
|
1308
1404
|
|
1405
|
+
api.add_operation(:list_model_copy_jobs, Seahorse::Model::Operation.new.tap do |o|
|
1406
|
+
o.name = "ListModelCopyJobs"
|
1407
|
+
o.http_method = "GET"
|
1408
|
+
o.http_request_uri = "/model-copy-jobs"
|
1409
|
+
o.input = Shapes::ShapeRef.new(shape: ListModelCopyJobsRequest)
|
1410
|
+
o.output = Shapes::ShapeRef.new(shape: ListModelCopyJobsResponse)
|
1411
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1412
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1413
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1414
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1415
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1416
|
+
o[:pager] = Aws::Pager.new(
|
1417
|
+
limit_key: "max_results",
|
1418
|
+
tokens: {
|
1419
|
+
"next_token" => "next_token"
|
1420
|
+
}
|
1421
|
+
)
|
1422
|
+
end)
|
1423
|
+
|
1309
1424
|
api.add_operation(:list_model_customization_jobs, Seahorse::Model::Operation.new.tap do |o|
|
1310
1425
|
o.name = "ListModelCustomizationJobs"
|
1311
1426
|
o.http_method = "GET"
|
@@ -54,6 +54,20 @@ module Aws::Bedrock
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
class CreateModelCopyJob
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::Bedrock::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
57
71
|
class CreateModelCustomizationJob
|
58
72
|
def self.build(context)
|
59
73
|
unless context.config.regional_endpoint
|
@@ -194,6 +208,20 @@ module Aws::Bedrock
|
|
194
208
|
end
|
195
209
|
end
|
196
210
|
|
211
|
+
class GetModelCopyJob
|
212
|
+
def self.build(context)
|
213
|
+
unless context.config.regional_endpoint
|
214
|
+
endpoint = context.config.endpoint.to_s
|
215
|
+
end
|
216
|
+
Aws::Bedrock::EndpointParameters.new(
|
217
|
+
region: context.config.region,
|
218
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
219
|
+
use_fips: context.config.use_fips_endpoint,
|
220
|
+
endpoint: endpoint,
|
221
|
+
)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
197
225
|
class GetModelCustomizationJob
|
198
226
|
def self.build(context)
|
199
227
|
unless context.config.regional_endpoint
|
@@ -292,6 +320,20 @@ module Aws::Bedrock
|
|
292
320
|
end
|
293
321
|
end
|
294
322
|
|
323
|
+
class ListModelCopyJobs
|
324
|
+
def self.build(context)
|
325
|
+
unless context.config.regional_endpoint
|
326
|
+
endpoint = context.config.endpoint.to_s
|
327
|
+
end
|
328
|
+
Aws::Bedrock::EndpointParameters.new(
|
329
|
+
region: context.config.region,
|
330
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
331
|
+
use_fips: context.config.use_fips_endpoint,
|
332
|
+
endpoint: endpoint,
|
333
|
+
)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
295
337
|
class ListModelCustomizationJobs
|
296
338
|
def self.build(context)
|
297
339
|
unless context.config.regional_endpoint
|
@@ -64,6 +64,8 @@ module Aws::Bedrock
|
|
64
64
|
Aws::Bedrock::Endpoints::CreateGuardrail.build(context)
|
65
65
|
when :create_guardrail_version
|
66
66
|
Aws::Bedrock::Endpoints::CreateGuardrailVersion.build(context)
|
67
|
+
when :create_model_copy_job
|
68
|
+
Aws::Bedrock::Endpoints::CreateModelCopyJob.build(context)
|
67
69
|
when :create_model_customization_job
|
68
70
|
Aws::Bedrock::Endpoints::CreateModelCustomizationJob.build(context)
|
69
71
|
when :create_provisioned_model_throughput
|
@@ -84,6 +86,8 @@ module Aws::Bedrock
|
|
84
86
|
Aws::Bedrock::Endpoints::GetFoundationModel.build(context)
|
85
87
|
when :get_guardrail
|
86
88
|
Aws::Bedrock::Endpoints::GetGuardrail.build(context)
|
89
|
+
when :get_model_copy_job
|
90
|
+
Aws::Bedrock::Endpoints::GetModelCopyJob.build(context)
|
87
91
|
when :get_model_customization_job
|
88
92
|
Aws::Bedrock::Endpoints::GetModelCustomizationJob.build(context)
|
89
93
|
when :get_model_invocation_logging_configuration
|
@@ -98,6 +102,8 @@ module Aws::Bedrock
|
|
98
102
|
Aws::Bedrock::Endpoints::ListFoundationModels.build(context)
|
99
103
|
when :list_guardrails
|
100
104
|
Aws::Bedrock::Endpoints::ListGuardrails.build(context)
|
105
|
+
when :list_model_copy_jobs
|
106
|
+
Aws::Bedrock::Endpoints::ListModelCopyJobs.build(context)
|
101
107
|
when :list_model_customization_jobs
|
102
108
|
Aws::Bedrock::Endpoints::ListModelCustomizationJobs.build(context)
|
103
109
|
when :list_provisioned_model_throughputs
|