aws-sdk-bedrock 1.14.0 → 1.15.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +289 -1
- data/lib/aws-sdk-bedrock/client_api.rb +172 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +56 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-bedrock/types.rb +465 -0
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +82 -0
- data/sig/types.rbs +118 -0
- metadata +2 -2
data/sig/client.rbs
CHANGED
@@ -304,6 +304,38 @@ module Aws
|
|
304
304
|
) -> _CreateModelCustomizationJobResponseSuccess
|
305
305
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelCustomizationJobResponseSuccess
|
306
306
|
|
307
|
+
interface _CreateModelInvocationJobResponseSuccess
|
308
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateModelInvocationJobResponse]
|
309
|
+
def job_arn: () -> ::String
|
310
|
+
end
|
311
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_model_invocation_job-instance_method
|
312
|
+
def create_model_invocation_job: (
|
313
|
+
job_name: ::String,
|
314
|
+
role_arn: ::String,
|
315
|
+
?client_request_token: ::String,
|
316
|
+
model_id: ::String,
|
317
|
+
input_data_config: {
|
318
|
+
s3_input_data_config: {
|
319
|
+
s3_input_format: ("JSONL")?,
|
320
|
+
s3_uri: ::String
|
321
|
+
}?
|
322
|
+
},
|
323
|
+
output_data_config: {
|
324
|
+
s3_output_data_config: {
|
325
|
+
s3_uri: ::String,
|
326
|
+
s3_encryption_key_id: ::String?
|
327
|
+
}?
|
328
|
+
},
|
329
|
+
?timeout_duration_in_hours: ::Integer,
|
330
|
+
?tags: Array[
|
331
|
+
{
|
332
|
+
key: ::String,
|
333
|
+
value: ::String
|
334
|
+
},
|
335
|
+
]
|
336
|
+
) -> _CreateModelInvocationJobResponseSuccess
|
337
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelInvocationJobResponseSuccess
|
338
|
+
|
307
339
|
interface _CreateProvisionedModelThroughputResponseSuccess
|
308
340
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateProvisionedModelThroughputResponse]
|
309
341
|
def provisioned_model_arn: () -> ::String
|
@@ -493,6 +525,29 @@ module Aws
|
|
493
525
|
) -> _GetModelCustomizationJobResponseSuccess
|
494
526
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetModelCustomizationJobResponseSuccess
|
495
527
|
|
528
|
+
interface _GetModelInvocationJobResponseSuccess
|
529
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetModelInvocationJobResponse]
|
530
|
+
def job_arn: () -> ::String
|
531
|
+
def job_name: () -> ::String
|
532
|
+
def model_id: () -> ::String
|
533
|
+
def client_request_token: () -> ::String
|
534
|
+
def role_arn: () -> ::String
|
535
|
+
def status: () -> ("Submitted" | "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "PartiallyCompleted" | "Expired" | "Validating" | "Scheduled")
|
536
|
+
def message: () -> ::String
|
537
|
+
def submit_time: () -> ::Time
|
538
|
+
def last_modified_time: () -> ::Time
|
539
|
+
def end_time: () -> ::Time
|
540
|
+
def input_data_config: () -> Types::ModelInvocationJobInputDataConfig
|
541
|
+
def output_data_config: () -> Types::ModelInvocationJobOutputDataConfig
|
542
|
+
def timeout_duration_in_hours: () -> ::Integer
|
543
|
+
def job_expiration_time: () -> ::Time
|
544
|
+
end
|
545
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_model_invocation_job-instance_method
|
546
|
+
def get_model_invocation_job: (
|
547
|
+
job_identifier: ::String
|
548
|
+
) -> _GetModelInvocationJobResponseSuccess
|
549
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetModelInvocationJobResponseSuccess
|
550
|
+
|
496
551
|
interface _GetModelInvocationLoggingConfigurationResponseSuccess
|
497
552
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetModelInvocationLoggingConfigurationResponse]
|
498
553
|
def logging_config: () -> Types::LoggingConfig
|
@@ -626,6 +681,24 @@ module Aws
|
|
626
681
|
) -> _ListModelCustomizationJobsResponseSuccess
|
627
682
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListModelCustomizationJobsResponseSuccess
|
628
683
|
|
684
|
+
interface _ListModelInvocationJobsResponseSuccess
|
685
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListModelInvocationJobsResponse]
|
686
|
+
def next_token: () -> ::String
|
687
|
+
def invocation_job_summaries: () -> ::Array[Types::ModelInvocationJobSummary]
|
688
|
+
end
|
689
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_model_invocation_jobs-instance_method
|
690
|
+
def list_model_invocation_jobs: (
|
691
|
+
?submit_time_after: ::Time,
|
692
|
+
?submit_time_before: ::Time,
|
693
|
+
?status_equals: ("Submitted" | "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "PartiallyCompleted" | "Expired" | "Validating" | "Scheduled"),
|
694
|
+
?name_contains: ::String,
|
695
|
+
?max_results: ::Integer,
|
696
|
+
?next_token: ::String,
|
697
|
+
?sort_by: ("CreationTime"),
|
698
|
+
?sort_order: ("Ascending" | "Descending")
|
699
|
+
) -> _ListModelInvocationJobsResponseSuccess
|
700
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListModelInvocationJobsResponseSuccess
|
701
|
+
|
629
702
|
interface _ListProvisionedModelThroughputsResponseSuccess
|
630
703
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListProvisionedModelThroughputsResponse]
|
631
704
|
def next_token: () -> ::String
|
@@ -698,6 +771,15 @@ module Aws
|
|
698
771
|
) -> _StopModelCustomizationJobResponseSuccess
|
699
772
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopModelCustomizationJobResponseSuccess
|
700
773
|
|
774
|
+
interface _StopModelInvocationJobResponseSuccess
|
775
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StopModelInvocationJobResponse]
|
776
|
+
end
|
777
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#stop_model_invocation_job-instance_method
|
778
|
+
def stop_model_invocation_job: (
|
779
|
+
job_identifier: ::String
|
780
|
+
) -> _StopModelInvocationJobResponseSuccess
|
781
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopModelInvocationJobResponseSuccess
|
782
|
+
|
701
783
|
interface _TagResourceResponseSuccess
|
702
784
|
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
|
703
785
|
end
|
data/sig/types.rbs
CHANGED
@@ -122,6 +122,23 @@ module Aws::Bedrock
|
|
122
122
|
SENSITIVE: []
|
123
123
|
end
|
124
124
|
|
125
|
+
class CreateModelInvocationJobRequest
|
126
|
+
attr_accessor job_name: ::String
|
127
|
+
attr_accessor role_arn: ::String
|
128
|
+
attr_accessor client_request_token: ::String
|
129
|
+
attr_accessor model_id: ::String
|
130
|
+
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
131
|
+
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
132
|
+
attr_accessor timeout_duration_in_hours: ::Integer
|
133
|
+
attr_accessor tags: ::Array[Types::Tag]
|
134
|
+
SENSITIVE: []
|
135
|
+
end
|
136
|
+
|
137
|
+
class CreateModelInvocationJobResponse
|
138
|
+
attr_accessor job_arn: ::String
|
139
|
+
SENSITIVE: []
|
140
|
+
end
|
141
|
+
|
125
142
|
class CreateProvisionedModelThroughputRequest
|
126
143
|
attr_accessor client_request_token: ::String
|
127
144
|
attr_accessor model_units: ::Integer
|
@@ -427,6 +444,29 @@ module Aws::Bedrock
|
|
427
444
|
SENSITIVE: []
|
428
445
|
end
|
429
446
|
|
447
|
+
class GetModelInvocationJobRequest
|
448
|
+
attr_accessor job_identifier: ::String
|
449
|
+
SENSITIVE: []
|
450
|
+
end
|
451
|
+
|
452
|
+
class GetModelInvocationJobResponse
|
453
|
+
attr_accessor job_arn: ::String
|
454
|
+
attr_accessor job_name: ::String
|
455
|
+
attr_accessor model_id: ::String
|
456
|
+
attr_accessor client_request_token: ::String
|
457
|
+
attr_accessor role_arn: ::String
|
458
|
+
attr_accessor status: ("Submitted" | "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "PartiallyCompleted" | "Expired" | "Validating" | "Scheduled")
|
459
|
+
attr_accessor message: ::String
|
460
|
+
attr_accessor submit_time: ::Time
|
461
|
+
attr_accessor last_modified_time: ::Time
|
462
|
+
attr_accessor end_time: ::Time
|
463
|
+
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
464
|
+
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
465
|
+
attr_accessor timeout_duration_in_hours: ::Integer
|
466
|
+
attr_accessor job_expiration_time: ::Time
|
467
|
+
SENSITIVE: [:message]
|
468
|
+
end
|
469
|
+
|
430
470
|
class GetModelInvocationLoggingConfigurationRequest < Aws::EmptyStructure
|
431
471
|
end
|
432
472
|
|
@@ -740,6 +780,24 @@ module Aws::Bedrock
|
|
740
780
|
SENSITIVE: []
|
741
781
|
end
|
742
782
|
|
783
|
+
class ListModelInvocationJobsRequest
|
784
|
+
attr_accessor submit_time_after: ::Time
|
785
|
+
attr_accessor submit_time_before: ::Time
|
786
|
+
attr_accessor status_equals: ("Submitted" | "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "PartiallyCompleted" | "Expired" | "Validating" | "Scheduled")
|
787
|
+
attr_accessor name_contains: ::String
|
788
|
+
attr_accessor max_results: ::Integer
|
789
|
+
attr_accessor next_token: ::String
|
790
|
+
attr_accessor sort_by: ("CreationTime")
|
791
|
+
attr_accessor sort_order: ("Ascending" | "Descending")
|
792
|
+
SENSITIVE: []
|
793
|
+
end
|
794
|
+
|
795
|
+
class ListModelInvocationJobsResponse
|
796
|
+
attr_accessor next_token: ::String
|
797
|
+
attr_accessor invocation_job_summaries: ::Array[Types::ModelInvocationJobSummary]
|
798
|
+
SENSITIVE: []
|
799
|
+
end
|
800
|
+
|
743
801
|
class ListProvisionedModelThroughputsRequest
|
744
802
|
attr_accessor creation_time_after: ::Time
|
745
803
|
attr_accessor creation_time_before: ::Time
|
@@ -807,6 +865,58 @@ module Aws::Bedrock
|
|
807
865
|
SENSITIVE: []
|
808
866
|
end
|
809
867
|
|
868
|
+
class ModelInvocationJobInputDataConfig
|
869
|
+
attr_accessor s3_input_data_config: Types::ModelInvocationJobS3InputDataConfig
|
870
|
+
attr_accessor unknown: untyped
|
871
|
+
SENSITIVE: []
|
872
|
+
|
873
|
+
class S3InputDataConfig < ModelInvocationJobInputDataConfig
|
874
|
+
end
|
875
|
+
class Unknown < ModelInvocationJobInputDataConfig
|
876
|
+
end
|
877
|
+
end
|
878
|
+
|
879
|
+
class ModelInvocationJobOutputDataConfig
|
880
|
+
attr_accessor s3_output_data_config: Types::ModelInvocationJobS3OutputDataConfig
|
881
|
+
attr_accessor unknown: untyped
|
882
|
+
SENSITIVE: []
|
883
|
+
|
884
|
+
class S3OutputDataConfig < ModelInvocationJobOutputDataConfig
|
885
|
+
end
|
886
|
+
class Unknown < ModelInvocationJobOutputDataConfig
|
887
|
+
end
|
888
|
+
end
|
889
|
+
|
890
|
+
class ModelInvocationJobS3InputDataConfig
|
891
|
+
attr_accessor s3_input_format: ("JSONL")
|
892
|
+
attr_accessor s3_uri: ::String
|
893
|
+
SENSITIVE: []
|
894
|
+
end
|
895
|
+
|
896
|
+
class ModelInvocationJobS3OutputDataConfig
|
897
|
+
attr_accessor s3_uri: ::String
|
898
|
+
attr_accessor s3_encryption_key_id: ::String
|
899
|
+
SENSITIVE: []
|
900
|
+
end
|
901
|
+
|
902
|
+
class ModelInvocationJobSummary
|
903
|
+
attr_accessor job_arn: ::String
|
904
|
+
attr_accessor job_name: ::String
|
905
|
+
attr_accessor model_id: ::String
|
906
|
+
attr_accessor client_request_token: ::String
|
907
|
+
attr_accessor role_arn: ::String
|
908
|
+
attr_accessor status: ("Submitted" | "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "PartiallyCompleted" | "Expired" | "Validating" | "Scheduled")
|
909
|
+
attr_accessor message: ::String
|
910
|
+
attr_accessor submit_time: ::Time
|
911
|
+
attr_accessor last_modified_time: ::Time
|
912
|
+
attr_accessor end_time: ::Time
|
913
|
+
attr_accessor input_data_config: Types::ModelInvocationJobInputDataConfig
|
914
|
+
attr_accessor output_data_config: Types::ModelInvocationJobOutputDataConfig
|
915
|
+
attr_accessor timeout_duration_in_hours: ::Integer
|
916
|
+
attr_accessor job_expiration_time: ::Time
|
917
|
+
SENSITIVE: [:message]
|
918
|
+
end
|
919
|
+
|
810
920
|
class OutputDataConfig
|
811
921
|
attr_accessor s3_uri: ::String
|
812
922
|
SENSITIVE: []
|
@@ -868,6 +978,14 @@ module Aws::Bedrock
|
|
868
978
|
class StopModelCustomizationJobResponse < Aws::EmptyStructure
|
869
979
|
end
|
870
980
|
|
981
|
+
class StopModelInvocationJobRequest
|
982
|
+
attr_accessor job_identifier: ::String
|
983
|
+
SENSITIVE: []
|
984
|
+
end
|
985
|
+
|
986
|
+
class StopModelInvocationJobResponse < Aws::EmptyStructure
|
987
|
+
end
|
988
|
+
|
871
989
|
class Tag
|
872
990
|
attr_accessor key: ::String
|
873
991
|
attr_accessor value: ::String
|
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.15.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-08-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|