aws-sdk-bedrock 1.14.0 → 1.16.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 +711 -4
- data/lib/aws-sdk-bedrock/client_api.rb +436 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +154 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +22 -0
- data/lib/aws-sdk-bedrock/types.rb +1128 -98
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +213 -2
- data/sig/types.rbs +280 -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,34 @@ 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
|
+
|
113
|
+
class CreateModelInvocationJob
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::Bedrock::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
85
127
|
class CreateProvisionedModelThroughput
|
86
128
|
def self.build(context)
|
87
129
|
unless context.config.regional_endpoint
|
@@ -124,6 +166,20 @@ module Aws::Bedrock
|
|
124
166
|
end
|
125
167
|
end
|
126
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
|
+
|
127
183
|
class DeleteModelInvocationLoggingConfiguration
|
128
184
|
def self.build(context)
|
129
185
|
unless context.config.regional_endpoint
|
@@ -208,6 +264,20 @@ module Aws::Bedrock
|
|
208
264
|
end
|
209
265
|
end
|
210
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
|
+
|
211
281
|
class GetModelCopyJob
|
212
282
|
def self.build(context)
|
213
283
|
unless context.config.regional_endpoint
|
@@ -236,6 +306,34 @@ module Aws::Bedrock
|
|
236
306
|
end
|
237
307
|
end
|
238
308
|
|
309
|
+
class GetModelImportJob
|
310
|
+
def self.build(context)
|
311
|
+
unless context.config.regional_endpoint
|
312
|
+
endpoint = context.config.endpoint.to_s
|
313
|
+
end
|
314
|
+
Aws::Bedrock::EndpointParameters.new(
|
315
|
+
region: context.config.region,
|
316
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
|
+
use_fips: context.config.use_fips_endpoint,
|
318
|
+
endpoint: endpoint,
|
319
|
+
)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class GetModelInvocationJob
|
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
|
+
|
239
337
|
class GetModelInvocationLoggingConfiguration
|
240
338
|
def self.build(context)
|
241
339
|
unless context.config.regional_endpoint
|
@@ -320,6 +418,20 @@ module Aws::Bedrock
|
|
320
418
|
end
|
321
419
|
end
|
322
420
|
|
421
|
+
class ListImportedModels
|
422
|
+
def self.build(context)
|
423
|
+
unless context.config.regional_endpoint
|
424
|
+
endpoint = context.config.endpoint.to_s
|
425
|
+
end
|
426
|
+
Aws::Bedrock::EndpointParameters.new(
|
427
|
+
region: context.config.region,
|
428
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
429
|
+
use_fips: context.config.use_fips_endpoint,
|
430
|
+
endpoint: endpoint,
|
431
|
+
)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
323
435
|
class ListModelCopyJobs
|
324
436
|
def self.build(context)
|
325
437
|
unless context.config.regional_endpoint
|
@@ -348,6 +460,34 @@ module Aws::Bedrock
|
|
348
460
|
end
|
349
461
|
end
|
350
462
|
|
463
|
+
class ListModelImportJobs
|
464
|
+
def self.build(context)
|
465
|
+
unless context.config.regional_endpoint
|
466
|
+
endpoint = context.config.endpoint.to_s
|
467
|
+
end
|
468
|
+
Aws::Bedrock::EndpointParameters.new(
|
469
|
+
region: context.config.region,
|
470
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
471
|
+
use_fips: context.config.use_fips_endpoint,
|
472
|
+
endpoint: endpoint,
|
473
|
+
)
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
class ListModelInvocationJobs
|
478
|
+
def self.build(context)
|
479
|
+
unless context.config.regional_endpoint
|
480
|
+
endpoint = context.config.endpoint.to_s
|
481
|
+
end
|
482
|
+
Aws::Bedrock::EndpointParameters.new(
|
483
|
+
region: context.config.region,
|
484
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
485
|
+
use_fips: context.config.use_fips_endpoint,
|
486
|
+
endpoint: endpoint,
|
487
|
+
)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
351
491
|
class ListProvisionedModelThroughputs
|
352
492
|
def self.build(context)
|
353
493
|
unless context.config.regional_endpoint
|
@@ -418,6 +558,20 @@ module Aws::Bedrock
|
|
418
558
|
end
|
419
559
|
end
|
420
560
|
|
561
|
+
class StopModelInvocationJob
|
562
|
+
def self.build(context)
|
563
|
+
unless context.config.regional_endpoint
|
564
|
+
endpoint = context.config.endpoint.to_s
|
565
|
+
end
|
566
|
+
Aws::Bedrock::EndpointParameters.new(
|
567
|
+
region: context.config.region,
|
568
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
569
|
+
use_fips: context.config.use_fips_endpoint,
|
570
|
+
endpoint: endpoint,
|
571
|
+
)
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
421
575
|
class TagResource
|
422
576
|
def self.build(context)
|
423
577
|
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,12 +70,18 @@ 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)
|
75
|
+
when :create_model_invocation_job
|
76
|
+
Aws::Bedrock::Endpoints::CreateModelInvocationJob.build(context)
|
71
77
|
when :create_provisioned_model_throughput
|
72
78
|
Aws::Bedrock::Endpoints::CreateProvisionedModelThroughput.build(context)
|
73
79
|
when :delete_custom_model
|
74
80
|
Aws::Bedrock::Endpoints::DeleteCustomModel.build(context)
|
75
81
|
when :delete_guardrail
|
76
82
|
Aws::Bedrock::Endpoints::DeleteGuardrail.build(context)
|
83
|
+
when :delete_imported_model
|
84
|
+
Aws::Bedrock::Endpoints::DeleteImportedModel.build(context)
|
77
85
|
when :delete_model_invocation_logging_configuration
|
78
86
|
Aws::Bedrock::Endpoints::DeleteModelInvocationLoggingConfiguration.build(context)
|
79
87
|
when :delete_provisioned_model_throughput
|
@@ -86,10 +94,16 @@ module Aws::Bedrock
|
|
86
94
|
Aws::Bedrock::Endpoints::GetFoundationModel.build(context)
|
87
95
|
when :get_guardrail
|
88
96
|
Aws::Bedrock::Endpoints::GetGuardrail.build(context)
|
97
|
+
when :get_imported_model
|
98
|
+
Aws::Bedrock::Endpoints::GetImportedModel.build(context)
|
89
99
|
when :get_model_copy_job
|
90
100
|
Aws::Bedrock::Endpoints::GetModelCopyJob.build(context)
|
91
101
|
when :get_model_customization_job
|
92
102
|
Aws::Bedrock::Endpoints::GetModelCustomizationJob.build(context)
|
103
|
+
when :get_model_import_job
|
104
|
+
Aws::Bedrock::Endpoints::GetModelImportJob.build(context)
|
105
|
+
when :get_model_invocation_job
|
106
|
+
Aws::Bedrock::Endpoints::GetModelInvocationJob.build(context)
|
93
107
|
when :get_model_invocation_logging_configuration
|
94
108
|
Aws::Bedrock::Endpoints::GetModelInvocationLoggingConfiguration.build(context)
|
95
109
|
when :get_provisioned_model_throughput
|
@@ -102,10 +116,16 @@ module Aws::Bedrock
|
|
102
116
|
Aws::Bedrock::Endpoints::ListFoundationModels.build(context)
|
103
117
|
when :list_guardrails
|
104
118
|
Aws::Bedrock::Endpoints::ListGuardrails.build(context)
|
119
|
+
when :list_imported_models
|
120
|
+
Aws::Bedrock::Endpoints::ListImportedModels.build(context)
|
105
121
|
when :list_model_copy_jobs
|
106
122
|
Aws::Bedrock::Endpoints::ListModelCopyJobs.build(context)
|
107
123
|
when :list_model_customization_jobs
|
108
124
|
Aws::Bedrock::Endpoints::ListModelCustomizationJobs.build(context)
|
125
|
+
when :list_model_import_jobs
|
126
|
+
Aws::Bedrock::Endpoints::ListModelImportJobs.build(context)
|
127
|
+
when :list_model_invocation_jobs
|
128
|
+
Aws::Bedrock::Endpoints::ListModelInvocationJobs.build(context)
|
109
129
|
when :list_provisioned_model_throughputs
|
110
130
|
Aws::Bedrock::Endpoints::ListProvisionedModelThroughputs.build(context)
|
111
131
|
when :list_tags_for_resource
|
@@ -116,6 +136,8 @@ module Aws::Bedrock
|
|
116
136
|
Aws::Bedrock::Endpoints::StopEvaluationJob.build(context)
|
117
137
|
when :stop_model_customization_job
|
118
138
|
Aws::Bedrock::Endpoints::StopModelCustomizationJob.build(context)
|
139
|
+
when :stop_model_invocation_job
|
140
|
+
Aws::Bedrock::Endpoints::StopModelInvocationJob.build(context)
|
119
141
|
when :tag_resource
|
120
142
|
Aws::Bedrock::Endpoints::TagResource.build(context)
|
121
143
|
when :untag_resource
|