aws-sdk-bedrock 1.4.0 → 1.5.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +1068 -96
- data/lib/aws-sdk-bedrock/client_api.rb +617 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +140 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +20 -0
- data/lib/aws-sdk-bedrock/types.rb +2103 -320
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +322 -0
- data/sig/types.rbs +414 -0
- metadata +2 -2
@@ -12,6 +12,48 @@ module Aws::Bedrock
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class CreateEvaluationJob
|
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
|
+
|
29
|
+
class CreateGuardrail
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::Bedrock::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class CreateGuardrailVersion
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::Bedrock::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
15
57
|
class CreateModelCustomizationJob
|
16
58
|
def self.build(context)
|
17
59
|
unless context.config.regional_endpoint
|
@@ -54,6 +96,20 @@ module Aws::Bedrock
|
|
54
96
|
end
|
55
97
|
end
|
56
98
|
|
99
|
+
class DeleteGuardrail
|
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
|
+
|
57
113
|
class DeleteModelInvocationLoggingConfiguration
|
58
114
|
def self.build(context)
|
59
115
|
unless context.config.regional_endpoint
|
@@ -96,6 +152,20 @@ module Aws::Bedrock
|
|
96
152
|
end
|
97
153
|
end
|
98
154
|
|
155
|
+
class GetEvaluationJob
|
156
|
+
def self.build(context)
|
157
|
+
unless context.config.regional_endpoint
|
158
|
+
endpoint = context.config.endpoint.to_s
|
159
|
+
end
|
160
|
+
Aws::Bedrock::EndpointParameters.new(
|
161
|
+
region: context.config.region,
|
162
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
|
+
use_fips: context.config.use_fips_endpoint,
|
164
|
+
endpoint: endpoint,
|
165
|
+
)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
99
169
|
class GetFoundationModel
|
100
170
|
def self.build(context)
|
101
171
|
unless context.config.regional_endpoint
|
@@ -110,6 +180,20 @@ module Aws::Bedrock
|
|
110
180
|
end
|
111
181
|
end
|
112
182
|
|
183
|
+
class GetGuardrail
|
184
|
+
def self.build(context)
|
185
|
+
unless context.config.regional_endpoint
|
186
|
+
endpoint = context.config.endpoint.to_s
|
187
|
+
end
|
188
|
+
Aws::Bedrock::EndpointParameters.new(
|
189
|
+
region: context.config.region,
|
190
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
191
|
+
use_fips: context.config.use_fips_endpoint,
|
192
|
+
endpoint: endpoint,
|
193
|
+
)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
113
197
|
class GetModelCustomizationJob
|
114
198
|
def self.build(context)
|
115
199
|
unless context.config.regional_endpoint
|
@@ -166,6 +250,20 @@ module Aws::Bedrock
|
|
166
250
|
end
|
167
251
|
end
|
168
252
|
|
253
|
+
class ListEvaluationJobs
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::Bedrock::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
169
267
|
class ListFoundationModels
|
170
268
|
def self.build(context)
|
171
269
|
unless context.config.regional_endpoint
|
@@ -180,6 +278,20 @@ module Aws::Bedrock
|
|
180
278
|
end
|
181
279
|
end
|
182
280
|
|
281
|
+
class ListGuardrails
|
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
|
+
|
183
295
|
class ListModelCustomizationJobs
|
184
296
|
def self.build(context)
|
185
297
|
unless context.config.regional_endpoint
|
@@ -236,6 +348,20 @@ module Aws::Bedrock
|
|
236
348
|
end
|
237
349
|
end
|
238
350
|
|
351
|
+
class StopEvaluationJob
|
352
|
+
def self.build(context)
|
353
|
+
unless context.config.regional_endpoint
|
354
|
+
endpoint = context.config.endpoint.to_s
|
355
|
+
end
|
356
|
+
Aws::Bedrock::EndpointParameters.new(
|
357
|
+
region: context.config.region,
|
358
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
359
|
+
use_fips: context.config.use_fips_endpoint,
|
360
|
+
endpoint: endpoint,
|
361
|
+
)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
239
365
|
class StopModelCustomizationJob
|
240
366
|
def self.build(context)
|
241
367
|
unless context.config.regional_endpoint
|
@@ -278,6 +404,20 @@ module Aws::Bedrock
|
|
278
404
|
end
|
279
405
|
end
|
280
406
|
|
407
|
+
class UpdateGuardrail
|
408
|
+
def self.build(context)
|
409
|
+
unless context.config.regional_endpoint
|
410
|
+
endpoint = context.config.endpoint.to_s
|
411
|
+
end
|
412
|
+
Aws::Bedrock::EndpointParameters.new(
|
413
|
+
region: context.config.region,
|
414
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
415
|
+
use_fips: context.config.use_fips_endpoint,
|
416
|
+
endpoint: endpoint,
|
417
|
+
)
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
281
421
|
class UpdateProvisionedModelThroughput
|
282
422
|
def self.build(context)
|
283
423
|
unless context.config.regional_endpoint
|
@@ -58,20 +58,32 @@ module Aws::Bedrock
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :create_evaluation_job
|
62
|
+
Aws::Bedrock::Endpoints::CreateEvaluationJob.build(context)
|
63
|
+
when :create_guardrail
|
64
|
+
Aws::Bedrock::Endpoints::CreateGuardrail.build(context)
|
65
|
+
when :create_guardrail_version
|
66
|
+
Aws::Bedrock::Endpoints::CreateGuardrailVersion.build(context)
|
61
67
|
when :create_model_customization_job
|
62
68
|
Aws::Bedrock::Endpoints::CreateModelCustomizationJob.build(context)
|
63
69
|
when :create_provisioned_model_throughput
|
64
70
|
Aws::Bedrock::Endpoints::CreateProvisionedModelThroughput.build(context)
|
65
71
|
when :delete_custom_model
|
66
72
|
Aws::Bedrock::Endpoints::DeleteCustomModel.build(context)
|
73
|
+
when :delete_guardrail
|
74
|
+
Aws::Bedrock::Endpoints::DeleteGuardrail.build(context)
|
67
75
|
when :delete_model_invocation_logging_configuration
|
68
76
|
Aws::Bedrock::Endpoints::DeleteModelInvocationLoggingConfiguration.build(context)
|
69
77
|
when :delete_provisioned_model_throughput
|
70
78
|
Aws::Bedrock::Endpoints::DeleteProvisionedModelThroughput.build(context)
|
71
79
|
when :get_custom_model
|
72
80
|
Aws::Bedrock::Endpoints::GetCustomModel.build(context)
|
81
|
+
when :get_evaluation_job
|
82
|
+
Aws::Bedrock::Endpoints::GetEvaluationJob.build(context)
|
73
83
|
when :get_foundation_model
|
74
84
|
Aws::Bedrock::Endpoints::GetFoundationModel.build(context)
|
85
|
+
when :get_guardrail
|
86
|
+
Aws::Bedrock::Endpoints::GetGuardrail.build(context)
|
75
87
|
when :get_model_customization_job
|
76
88
|
Aws::Bedrock::Endpoints::GetModelCustomizationJob.build(context)
|
77
89
|
when :get_model_invocation_logging_configuration
|
@@ -80,8 +92,12 @@ module Aws::Bedrock
|
|
80
92
|
Aws::Bedrock::Endpoints::GetProvisionedModelThroughput.build(context)
|
81
93
|
when :list_custom_models
|
82
94
|
Aws::Bedrock::Endpoints::ListCustomModels.build(context)
|
95
|
+
when :list_evaluation_jobs
|
96
|
+
Aws::Bedrock::Endpoints::ListEvaluationJobs.build(context)
|
83
97
|
when :list_foundation_models
|
84
98
|
Aws::Bedrock::Endpoints::ListFoundationModels.build(context)
|
99
|
+
when :list_guardrails
|
100
|
+
Aws::Bedrock::Endpoints::ListGuardrails.build(context)
|
85
101
|
when :list_model_customization_jobs
|
86
102
|
Aws::Bedrock::Endpoints::ListModelCustomizationJobs.build(context)
|
87
103
|
when :list_provisioned_model_throughputs
|
@@ -90,12 +106,16 @@ module Aws::Bedrock
|
|
90
106
|
Aws::Bedrock::Endpoints::ListTagsForResource.build(context)
|
91
107
|
when :put_model_invocation_logging_configuration
|
92
108
|
Aws::Bedrock::Endpoints::PutModelInvocationLoggingConfiguration.build(context)
|
109
|
+
when :stop_evaluation_job
|
110
|
+
Aws::Bedrock::Endpoints::StopEvaluationJob.build(context)
|
93
111
|
when :stop_model_customization_job
|
94
112
|
Aws::Bedrock::Endpoints::StopModelCustomizationJob.build(context)
|
95
113
|
when :tag_resource
|
96
114
|
Aws::Bedrock::Endpoints::TagResource.build(context)
|
97
115
|
when :untag_resource
|
98
116
|
Aws::Bedrock::Endpoints::UntagResource.build(context)
|
117
|
+
when :update_guardrail
|
118
|
+
Aws::Bedrock::Endpoints::UpdateGuardrail.build(context)
|
99
119
|
when :update_provisioned_model_throughput
|
100
120
|
Aws::Bedrock::Endpoints::UpdateProvisionedModelThroughput.build(context)
|
101
121
|
end
|