aws-sdk-bedrock 1.15.0 → 1.17.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 +527 -12
- data/lib/aws-sdk-bedrock/client_api.rb +350 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +126 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +18 -0
- data/lib/aws-sdk-bedrock/types.rb +757 -13
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +161 -2
- data/sig/types.rbs +210 -3
- metadata +2 -2
@@ -12,6 +12,20 @@ module Aws::Bedrock
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class BatchDeleteEvaluationJob
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::Bedrock::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
class CreateEvaluationJob
|
16
30
|
def self.build(context)
|
17
31
|
unless context.config.regional_endpoint
|
@@ -82,6 +96,20 @@ module Aws::Bedrock
|
|
82
96
|
end
|
83
97
|
end
|
84
98
|
|
99
|
+
class CreateModelImportJob
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::Bedrock::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
85
113
|
class CreateModelInvocationJob
|
86
114
|
def self.build(context)
|
87
115
|
unless context.config.regional_endpoint
|
@@ -138,6 +166,20 @@ module Aws::Bedrock
|
|
138
166
|
end
|
139
167
|
end
|
140
168
|
|
169
|
+
class DeleteImportedModel
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::Bedrock::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
141
183
|
class DeleteModelInvocationLoggingConfiguration
|
142
184
|
def self.build(context)
|
143
185
|
unless context.config.regional_endpoint
|
@@ -222,6 +264,34 @@ module Aws::Bedrock
|
|
222
264
|
end
|
223
265
|
end
|
224
266
|
|
267
|
+
class GetImportedModel
|
268
|
+
def self.build(context)
|
269
|
+
unless context.config.regional_endpoint
|
270
|
+
endpoint = context.config.endpoint.to_s
|
271
|
+
end
|
272
|
+
Aws::Bedrock::EndpointParameters.new(
|
273
|
+
region: context.config.region,
|
274
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
275
|
+
use_fips: context.config.use_fips_endpoint,
|
276
|
+
endpoint: endpoint,
|
277
|
+
)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class GetInferenceProfile
|
282
|
+
def self.build(context)
|
283
|
+
unless context.config.regional_endpoint
|
284
|
+
endpoint = context.config.endpoint.to_s
|
285
|
+
end
|
286
|
+
Aws::Bedrock::EndpointParameters.new(
|
287
|
+
region: context.config.region,
|
288
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
289
|
+
use_fips: context.config.use_fips_endpoint,
|
290
|
+
endpoint: endpoint,
|
291
|
+
)
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
225
295
|
class GetModelCopyJob
|
226
296
|
def self.build(context)
|
227
297
|
unless context.config.regional_endpoint
|
@@ -250,6 +320,20 @@ module Aws::Bedrock
|
|
250
320
|
end
|
251
321
|
end
|
252
322
|
|
323
|
+
class GetModelImportJob
|
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
|
+
|
253
337
|
class GetModelInvocationJob
|
254
338
|
def self.build(context)
|
255
339
|
unless context.config.regional_endpoint
|
@@ -348,6 +432,34 @@ module Aws::Bedrock
|
|
348
432
|
end
|
349
433
|
end
|
350
434
|
|
435
|
+
class ListImportedModels
|
436
|
+
def self.build(context)
|
437
|
+
unless context.config.regional_endpoint
|
438
|
+
endpoint = context.config.endpoint.to_s
|
439
|
+
end
|
440
|
+
Aws::Bedrock::EndpointParameters.new(
|
441
|
+
region: context.config.region,
|
442
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
443
|
+
use_fips: context.config.use_fips_endpoint,
|
444
|
+
endpoint: endpoint,
|
445
|
+
)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
class ListInferenceProfiles
|
450
|
+
def self.build(context)
|
451
|
+
unless context.config.regional_endpoint
|
452
|
+
endpoint = context.config.endpoint.to_s
|
453
|
+
end
|
454
|
+
Aws::Bedrock::EndpointParameters.new(
|
455
|
+
region: context.config.region,
|
456
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
457
|
+
use_fips: context.config.use_fips_endpoint,
|
458
|
+
endpoint: endpoint,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
351
463
|
class ListModelCopyJobs
|
352
464
|
def self.build(context)
|
353
465
|
unless context.config.regional_endpoint
|
@@ -376,6 +488,20 @@ module Aws::Bedrock
|
|
376
488
|
end
|
377
489
|
end
|
378
490
|
|
491
|
+
class ListModelImportJobs
|
492
|
+
def self.build(context)
|
493
|
+
unless context.config.regional_endpoint
|
494
|
+
endpoint = context.config.endpoint.to_s
|
495
|
+
end
|
496
|
+
Aws::Bedrock::EndpointParameters.new(
|
497
|
+
region: context.config.region,
|
498
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
499
|
+
use_fips: context.config.use_fips_endpoint,
|
500
|
+
endpoint: endpoint,
|
501
|
+
)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
379
505
|
class ListModelInvocationJobs
|
380
506
|
def self.build(context)
|
381
507
|
unless context.config.regional_endpoint
|
@@ -58,6 +58,8 @@ module Aws::Bedrock
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :batch_delete_evaluation_job
|
62
|
+
Aws::Bedrock::Endpoints::BatchDeleteEvaluationJob.build(context)
|
61
63
|
when :create_evaluation_job
|
62
64
|
Aws::Bedrock::Endpoints::CreateEvaluationJob.build(context)
|
63
65
|
when :create_guardrail
|
@@ -68,6 +70,8 @@ module Aws::Bedrock
|
|
68
70
|
Aws::Bedrock::Endpoints::CreateModelCopyJob.build(context)
|
69
71
|
when :create_model_customization_job
|
70
72
|
Aws::Bedrock::Endpoints::CreateModelCustomizationJob.build(context)
|
73
|
+
when :create_model_import_job
|
74
|
+
Aws::Bedrock::Endpoints::CreateModelImportJob.build(context)
|
71
75
|
when :create_model_invocation_job
|
72
76
|
Aws::Bedrock::Endpoints::CreateModelInvocationJob.build(context)
|
73
77
|
when :create_provisioned_model_throughput
|
@@ -76,6 +80,8 @@ module Aws::Bedrock
|
|
76
80
|
Aws::Bedrock::Endpoints::DeleteCustomModel.build(context)
|
77
81
|
when :delete_guardrail
|
78
82
|
Aws::Bedrock::Endpoints::DeleteGuardrail.build(context)
|
83
|
+
when :delete_imported_model
|
84
|
+
Aws::Bedrock::Endpoints::DeleteImportedModel.build(context)
|
79
85
|
when :delete_model_invocation_logging_configuration
|
80
86
|
Aws::Bedrock::Endpoints::DeleteModelInvocationLoggingConfiguration.build(context)
|
81
87
|
when :delete_provisioned_model_throughput
|
@@ -88,10 +94,16 @@ module Aws::Bedrock
|
|
88
94
|
Aws::Bedrock::Endpoints::GetFoundationModel.build(context)
|
89
95
|
when :get_guardrail
|
90
96
|
Aws::Bedrock::Endpoints::GetGuardrail.build(context)
|
97
|
+
when :get_imported_model
|
98
|
+
Aws::Bedrock::Endpoints::GetImportedModel.build(context)
|
99
|
+
when :get_inference_profile
|
100
|
+
Aws::Bedrock::Endpoints::GetInferenceProfile.build(context)
|
91
101
|
when :get_model_copy_job
|
92
102
|
Aws::Bedrock::Endpoints::GetModelCopyJob.build(context)
|
93
103
|
when :get_model_customization_job
|
94
104
|
Aws::Bedrock::Endpoints::GetModelCustomizationJob.build(context)
|
105
|
+
when :get_model_import_job
|
106
|
+
Aws::Bedrock::Endpoints::GetModelImportJob.build(context)
|
95
107
|
when :get_model_invocation_job
|
96
108
|
Aws::Bedrock::Endpoints::GetModelInvocationJob.build(context)
|
97
109
|
when :get_model_invocation_logging_configuration
|
@@ -106,10 +118,16 @@ module Aws::Bedrock
|
|
106
118
|
Aws::Bedrock::Endpoints::ListFoundationModels.build(context)
|
107
119
|
when :list_guardrails
|
108
120
|
Aws::Bedrock::Endpoints::ListGuardrails.build(context)
|
121
|
+
when :list_imported_models
|
122
|
+
Aws::Bedrock::Endpoints::ListImportedModels.build(context)
|
123
|
+
when :list_inference_profiles
|
124
|
+
Aws::Bedrock::Endpoints::ListInferenceProfiles.build(context)
|
109
125
|
when :list_model_copy_jobs
|
110
126
|
Aws::Bedrock::Endpoints::ListModelCopyJobs.build(context)
|
111
127
|
when :list_model_customization_jobs
|
112
128
|
Aws::Bedrock::Endpoints::ListModelCustomizationJobs.build(context)
|
129
|
+
when :list_model_import_jobs
|
130
|
+
Aws::Bedrock::Endpoints::ListModelImportJobs.build(context)
|
113
131
|
when :list_model_invocation_jobs
|
114
132
|
Aws::Bedrock::Endpoints::ListModelInvocationJobs.build(context)
|
115
133
|
when :list_provisioned_model_throughputs
|