aws-sdk-bedrock 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ require_relative 'aws-sdk-bedrock/customizations'
33
33
  # structure.
34
34
  #
35
35
  # bedrock = Aws::Bedrock::Client.new
36
- # resp = bedrock.create_evaluation_job(params)
36
+ # resp = bedrock.batch_delete_evaluation_job(params)
37
37
  #
38
38
  # See {Client} for more information.
39
39
  #
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-bedrock/customizations'
53
53
  # @!group service
54
54
  module Aws::Bedrock
55
55
 
56
- GEM_VERSION = '1.15.0'
56
+ GEM_VERSION = '1.16.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -73,6 +73,17 @@ module Aws
73
73
  | (?Hash[Symbol, untyped]) -> instance
74
74
 
75
75
 
76
+ interface _BatchDeleteEvaluationJobResponseSuccess
77
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchDeleteEvaluationJobResponse]
78
+ def errors: () -> ::Array[Types::BatchDeleteEvaluationJobError]
79
+ def evaluation_jobs: () -> ::Array[Types::BatchDeleteEvaluationJobItem]
80
+ end
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#batch_delete_evaluation_job-instance_method
82
+ def batch_delete_evaluation_job: (
83
+ job_identifiers: Array[::String]
84
+ ) -> _BatchDeleteEvaluationJobResponseSuccess
85
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteEvaluationJobResponseSuccess
86
+
76
87
  interface _CreateEvaluationJobResponseSuccess
77
88
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
78
89
  def job_arn: () -> ::String
@@ -304,6 +315,41 @@ module Aws
304
315
  ) -> _CreateModelCustomizationJobResponseSuccess
305
316
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelCustomizationJobResponseSuccess
306
317
 
318
+ interface _CreateModelImportJobResponseSuccess
319
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateModelImportJobResponse]
320
+ def job_arn: () -> ::String
321
+ end
322
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_model_import_job-instance_method
323
+ def create_model_import_job: (
324
+ job_name: ::String,
325
+ imported_model_name: ::String,
326
+ role_arn: ::String,
327
+ model_data_source: {
328
+ s3_data_source: {
329
+ s3_uri: ::String
330
+ }?
331
+ },
332
+ ?job_tags: Array[
333
+ {
334
+ key: ::String,
335
+ value: ::String
336
+ },
337
+ ],
338
+ ?imported_model_tags: Array[
339
+ {
340
+ key: ::String,
341
+ value: ::String
342
+ },
343
+ ],
344
+ ?client_request_token: ::String,
345
+ ?vpc_config: {
346
+ subnet_ids: Array[::String],
347
+ security_group_ids: Array[::String]
348
+ },
349
+ ?imported_model_kms_key_id: ::String
350
+ ) -> _CreateModelImportJobResponseSuccess
351
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelImportJobResponseSuccess
352
+
307
353
  interface _CreateModelInvocationJobResponseSuccess
308
354
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateModelInvocationJobResponse]
309
355
  def job_arn: () -> ::String
@@ -375,6 +421,15 @@ module Aws
375
421
  ) -> _DeleteGuardrailResponseSuccess
376
422
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteGuardrailResponseSuccess
377
423
 
424
+ interface _DeleteImportedModelResponseSuccess
425
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteImportedModelResponse]
426
+ end
427
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_imported_model-instance_method
428
+ def delete_imported_model: (
429
+ model_identifier: ::String
430
+ ) -> _DeleteImportedModelResponseSuccess
431
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteImportedModelResponseSuccess
432
+
378
433
  interface _DeleteModelInvocationLoggingConfigurationResponseSuccess
379
434
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteModelInvocationLoggingConfigurationResponse]
380
435
  end
@@ -418,7 +473,7 @@ module Aws
418
473
  interface _GetEvaluationJobResponseSuccess
419
474
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEvaluationJobResponse]
420
475
  def job_name: () -> ::String
421
- def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
476
+ def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting")
422
477
  def job_arn: () -> ::String
423
478
  def job_description: () -> ::String
424
479
  def role_arn: () -> ::String
@@ -475,6 +530,23 @@ module Aws
475
530
  ) -> _GetGuardrailResponseSuccess
476
531
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetGuardrailResponseSuccess
477
532
 
533
+ interface _GetImportedModelResponseSuccess
534
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetImportedModelResponse]
535
+ def model_arn: () -> ::String
536
+ def model_name: () -> ::String
537
+ def job_name: () -> ::String
538
+ def job_arn: () -> ::String
539
+ def model_data_source: () -> Types::ModelDataSource
540
+ def creation_time: () -> ::Time
541
+ def model_architecture: () -> ::String
542
+ def model_kms_key_arn: () -> ::String
543
+ end
544
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_imported_model-instance_method
545
+ def get_imported_model: (
546
+ model_identifier: ::String
547
+ ) -> _GetImportedModelResponseSuccess
548
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImportedModelResponseSuccess
549
+
478
550
  interface _GetModelCopyJobResponseSuccess
479
551
  include ::Seahorse::Client::_ResponseSuccess[Types::GetModelCopyJobResponse]
480
552
  def job_arn: () -> ::String
@@ -525,6 +597,28 @@ module Aws
525
597
  ) -> _GetModelCustomizationJobResponseSuccess
526
598
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetModelCustomizationJobResponseSuccess
527
599
 
600
+ interface _GetModelImportJobResponseSuccess
601
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetModelImportJobResponse]
602
+ def job_arn: () -> ::String
603
+ def job_name: () -> ::String
604
+ def imported_model_name: () -> ::String
605
+ def imported_model_arn: () -> ::String
606
+ def role_arn: () -> ::String
607
+ def model_data_source: () -> Types::ModelDataSource
608
+ def status: () -> ("InProgress" | "Completed" | "Failed")
609
+ def failure_message: () -> ::String
610
+ def creation_time: () -> ::Time
611
+ def last_modified_time: () -> ::Time
612
+ def end_time: () -> ::Time
613
+ def vpc_config: () -> Types::VpcConfig
614
+ def imported_model_kms_key_arn: () -> ::String
615
+ end
616
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_model_import_job-instance_method
617
+ def get_model_import_job: (
618
+ job_identifier: ::String
619
+ ) -> _GetModelImportJobResponseSuccess
620
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetModelImportJobResponseSuccess
621
+
528
622
  interface _GetModelInvocationJobResponseSuccess
529
623
  include ::Seahorse::Client::_ResponseSuccess[Types::GetModelInvocationJobResponse]
530
624
  def job_arn: () -> ::String
@@ -608,7 +702,7 @@ module Aws
608
702
  def list_evaluation_jobs: (
609
703
  ?creation_time_after: ::Time,
610
704
  ?creation_time_before: ::Time,
611
- ?status_equals: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped"),
705
+ ?status_equals: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting"),
612
706
  ?name_contains: ::String,
613
707
  ?max_results: ::Integer,
614
708
  ?next_token: ::String,
@@ -643,6 +737,23 @@ module Aws
643
737
  ) -> _ListGuardrailsResponseSuccess
644
738
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListGuardrailsResponseSuccess
645
739
 
740
+ interface _ListImportedModelsResponseSuccess
741
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListImportedModelsResponse]
742
+ def next_token: () -> ::String
743
+ def model_summaries: () -> ::Array[Types::ImportedModelSummary]
744
+ end
745
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_imported_models-instance_method
746
+ def list_imported_models: (
747
+ ?creation_time_before: ::Time,
748
+ ?creation_time_after: ::Time,
749
+ ?name_contains: ::String,
750
+ ?max_results: ::Integer,
751
+ ?next_token: ::String,
752
+ ?sort_by: ("CreationTime"),
753
+ ?sort_order: ("Ascending" | "Descending")
754
+ ) -> _ListImportedModelsResponseSuccess
755
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListImportedModelsResponseSuccess
756
+
646
757
  interface _ListModelCopyJobsResponseSuccess
647
758
  include ::Seahorse::Client::_ResponseSuccess[Types::ListModelCopyJobsResponse]
648
759
  def next_token: () -> ::String
@@ -681,6 +792,24 @@ module Aws
681
792
  ) -> _ListModelCustomizationJobsResponseSuccess
682
793
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListModelCustomizationJobsResponseSuccess
683
794
 
795
+ interface _ListModelImportJobsResponseSuccess
796
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListModelImportJobsResponse]
797
+ def next_token: () -> ::String
798
+ def model_import_job_summaries: () -> ::Array[Types::ModelImportJobSummary]
799
+ end
800
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_model_import_jobs-instance_method
801
+ def list_model_import_jobs: (
802
+ ?creation_time_after: ::Time,
803
+ ?creation_time_before: ::Time,
804
+ ?status_equals: ("InProgress" | "Completed" | "Failed"),
805
+ ?name_contains: ::String,
806
+ ?max_results: ::Integer,
807
+ ?next_token: ::String,
808
+ ?sort_by: ("CreationTime"),
809
+ ?sort_order: ("Ascending" | "Descending")
810
+ ) -> _ListModelImportJobsResponseSuccess
811
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListModelImportJobsResponseSuccess
812
+
684
813
  interface _ListModelInvocationJobsResponseSuccess
685
814
  include ::Seahorse::Client::_ResponseSuccess[Types::ListModelInvocationJobsResponse]
686
815
  def next_token: () -> ::String
data/sig/types.rbs CHANGED
@@ -18,6 +18,30 @@ module Aws::Bedrock
18
18
  SENSITIVE: []
19
19
  end
20
20
 
21
+ class BatchDeleteEvaluationJobError
22
+ attr_accessor job_identifier: ::String
23
+ attr_accessor code: ::String
24
+ attr_accessor message: ::String
25
+ SENSITIVE: [:job_identifier]
26
+ end
27
+
28
+ class BatchDeleteEvaluationJobItem
29
+ attr_accessor job_identifier: ::String
30
+ attr_accessor job_status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting")
31
+ SENSITIVE: [:job_identifier]
32
+ end
33
+
34
+ class BatchDeleteEvaluationJobRequest
35
+ attr_accessor job_identifiers: ::Array[::String]
36
+ SENSITIVE: []
37
+ end
38
+
39
+ class BatchDeleteEvaluationJobResponse
40
+ attr_accessor errors: ::Array[Types::BatchDeleteEvaluationJobError]
41
+ attr_accessor evaluation_jobs: ::Array[Types::BatchDeleteEvaluationJobItem]
42
+ SENSITIVE: []
43
+ end
44
+
21
45
  class CloudWatchConfig
22
46
  attr_accessor log_group_name: ::String
23
47
  attr_accessor role_arn: ::String
@@ -122,6 +146,24 @@ module Aws::Bedrock
122
146
  SENSITIVE: []
123
147
  end
124
148
 
149
+ class CreateModelImportJobRequest
150
+ attr_accessor job_name: ::String
151
+ attr_accessor imported_model_name: ::String
152
+ attr_accessor role_arn: ::String
153
+ attr_accessor model_data_source: Types::ModelDataSource
154
+ attr_accessor job_tags: ::Array[Types::Tag]
155
+ attr_accessor imported_model_tags: ::Array[Types::Tag]
156
+ attr_accessor client_request_token: ::String
157
+ attr_accessor vpc_config: Types::VpcConfig
158
+ attr_accessor imported_model_kms_key_id: ::String
159
+ SENSITIVE: []
160
+ end
161
+
162
+ class CreateModelImportJobResponse
163
+ attr_accessor job_arn: ::String
164
+ SENSITIVE: []
165
+ end
166
+
125
167
  class CreateModelInvocationJobRequest
126
168
  attr_accessor job_name: ::String
127
169
  attr_accessor role_arn: ::String
@@ -182,6 +224,14 @@ module Aws::Bedrock
182
224
  class DeleteGuardrailResponse < Aws::EmptyStructure
183
225
  end
184
226
 
227
+ class DeleteImportedModelRequest
228
+ attr_accessor model_identifier: ::String
229
+ SENSITIVE: []
230
+ end
231
+
232
+ class DeleteImportedModelResponse < Aws::EmptyStructure
233
+ end
234
+
185
235
  class DeleteModelInvocationLoggingConfigurationRequest < Aws::EmptyStructure
186
236
  end
187
237
 
@@ -270,7 +320,7 @@ module Aws::Bedrock
270
320
  class EvaluationSummary
271
321
  attr_accessor job_arn: ::String
272
322
  attr_accessor job_name: ::String
273
- attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
323
+ attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting")
274
324
  attr_accessor creation_time: ::Time
275
325
  attr_accessor job_type: ("Human" | "Automated")
276
326
  attr_accessor evaluation_task_types: ::Array[("Summarization" | "Classification" | "QuestionAndAnswer" | "Generation" | "Custom")]
@@ -341,7 +391,7 @@ module Aws::Bedrock
341
391
 
342
392
  class GetEvaluationJobResponse
343
393
  attr_accessor job_name: ::String
344
- attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
394
+ attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting")
345
395
  attr_accessor job_arn: ::String
346
396
  attr_accessor job_description: ::String
347
397
  attr_accessor role_arn: ::String
@@ -394,6 +444,23 @@ module Aws::Bedrock
394
444
  SENSITIVE: [:name, :description, :blocked_input_messaging, :blocked_outputs_messaging]
395
445
  end
396
446
 
447
+ class GetImportedModelRequest
448
+ attr_accessor model_identifier: ::String
449
+ SENSITIVE: []
450
+ end
451
+
452
+ class GetImportedModelResponse
453
+ attr_accessor model_arn: ::String
454
+ attr_accessor model_name: ::String
455
+ attr_accessor job_name: ::String
456
+ attr_accessor job_arn: ::String
457
+ attr_accessor model_data_source: Types::ModelDataSource
458
+ attr_accessor creation_time: ::Time
459
+ attr_accessor model_architecture: ::String
460
+ attr_accessor model_kms_key_arn: ::String
461
+ SENSITIVE: []
462
+ end
463
+
397
464
  class GetModelCopyJobRequest
398
465
  attr_accessor job_arn: ::String
399
466
  SENSITIVE: []
@@ -444,6 +511,28 @@ module Aws::Bedrock
444
511
  SENSITIVE: []
445
512
  end
446
513
 
514
+ class GetModelImportJobRequest
515
+ attr_accessor job_identifier: ::String
516
+ SENSITIVE: []
517
+ end
518
+
519
+ class GetModelImportJobResponse
520
+ attr_accessor job_arn: ::String
521
+ attr_accessor job_name: ::String
522
+ attr_accessor imported_model_name: ::String
523
+ attr_accessor imported_model_arn: ::String
524
+ attr_accessor role_arn: ::String
525
+ attr_accessor model_data_source: Types::ModelDataSource
526
+ attr_accessor status: ("InProgress" | "Completed" | "Failed")
527
+ attr_accessor failure_message: ::String
528
+ attr_accessor creation_time: ::Time
529
+ attr_accessor last_modified_time: ::Time
530
+ attr_accessor end_time: ::Time
531
+ attr_accessor vpc_config: Types::VpcConfig
532
+ attr_accessor imported_model_kms_key_arn: ::String
533
+ SENSITIVE: []
534
+ end
535
+
447
536
  class GetModelInvocationJobRequest
448
537
  attr_accessor job_identifier: ::String
449
538
  SENSITIVE: []
@@ -673,6 +762,13 @@ module Aws::Bedrock
673
762
  SENSITIVE: [:instructions]
674
763
  end
675
764
 
765
+ class ImportedModelSummary
766
+ attr_accessor model_arn: ::String
767
+ attr_accessor model_name: ::String
768
+ attr_accessor creation_time: ::Time
769
+ SENSITIVE: []
770
+ end
771
+
676
772
  class InternalServerException
677
773
  attr_accessor message: ::String
678
774
  SENSITIVE: []
@@ -701,7 +797,7 @@ module Aws::Bedrock
701
797
  class ListEvaluationJobsRequest
702
798
  attr_accessor creation_time_after: ::Time
703
799
  attr_accessor creation_time_before: ::Time
704
- attr_accessor status_equals: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
800
+ attr_accessor status_equals: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped" | "Deleting")
705
801
  attr_accessor name_contains: ::String
706
802
  attr_accessor max_results: ::Integer
707
803
  attr_accessor next_token: ::String
@@ -742,6 +838,23 @@ module Aws::Bedrock
742
838
  SENSITIVE: []
743
839
  end
744
840
 
841
+ class ListImportedModelsRequest
842
+ attr_accessor creation_time_before: ::Time
843
+ attr_accessor creation_time_after: ::Time
844
+ attr_accessor name_contains: ::String
845
+ attr_accessor max_results: ::Integer
846
+ attr_accessor next_token: ::String
847
+ attr_accessor sort_by: ("CreationTime")
848
+ attr_accessor sort_order: ("Ascending" | "Descending")
849
+ SENSITIVE: []
850
+ end
851
+
852
+ class ListImportedModelsResponse
853
+ attr_accessor next_token: ::String
854
+ attr_accessor model_summaries: ::Array[Types::ImportedModelSummary]
855
+ SENSITIVE: []
856
+ end
857
+
745
858
  class ListModelCopyJobsRequest
746
859
  attr_accessor creation_time_after: ::Time
747
860
  attr_accessor creation_time_before: ::Time
@@ -780,6 +893,24 @@ module Aws::Bedrock
780
893
  SENSITIVE: []
781
894
  end
782
895
 
896
+ class ListModelImportJobsRequest
897
+ attr_accessor creation_time_after: ::Time
898
+ attr_accessor creation_time_before: ::Time
899
+ attr_accessor status_equals: ("InProgress" | "Completed" | "Failed")
900
+ attr_accessor name_contains: ::String
901
+ attr_accessor max_results: ::Integer
902
+ attr_accessor next_token: ::String
903
+ attr_accessor sort_by: ("CreationTime")
904
+ attr_accessor sort_order: ("Ascending" | "Descending")
905
+ SENSITIVE: []
906
+ end
907
+
908
+ class ListModelImportJobsResponse
909
+ attr_accessor next_token: ::String
910
+ attr_accessor model_import_job_summaries: ::Array[Types::ModelImportJobSummary]
911
+ SENSITIVE: []
912
+ end
913
+
783
914
  class ListModelInvocationJobsRequest
784
915
  attr_accessor submit_time_after: ::Time
785
916
  attr_accessor submit_time_before: ::Time
@@ -865,6 +996,29 @@ module Aws::Bedrock
865
996
  SENSITIVE: []
866
997
  end
867
998
 
999
+ class ModelDataSource
1000
+ attr_accessor s3_data_source: Types::S3DataSource
1001
+ attr_accessor unknown: untyped
1002
+ SENSITIVE: []
1003
+
1004
+ class S3DataSource < ModelDataSource
1005
+ end
1006
+ class Unknown < ModelDataSource
1007
+ end
1008
+ end
1009
+
1010
+ class ModelImportJobSummary
1011
+ attr_accessor job_arn: ::String
1012
+ attr_accessor job_name: ::String
1013
+ attr_accessor status: ("InProgress" | "Completed" | "Failed")
1014
+ attr_accessor last_modified_time: ::Time
1015
+ attr_accessor creation_time: ::Time
1016
+ attr_accessor end_time: ::Time
1017
+ attr_accessor imported_model_arn: ::String
1018
+ attr_accessor imported_model_name: ::String
1019
+ SENSITIVE: []
1020
+ end
1021
+
868
1022
  class ModelInvocationJobInputDataConfig
869
1023
  attr_accessor s3_input_data_config: Types::ModelInvocationJobS3InputDataConfig
870
1024
  attr_accessor unknown: untyped
@@ -957,6 +1111,11 @@ module Aws::Bedrock
957
1111
  SENSITIVE: []
958
1112
  end
959
1113
 
1114
+ class S3DataSource
1115
+ attr_accessor s3_uri: ::String
1116
+ SENSITIVE: []
1117
+ end
1118
+
960
1119
  class ServiceQuotaExceededException
961
1120
  attr_accessor message: ::String
962
1121
  SENSITIVE: []
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.15.0
4
+ version: 1.16.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-19 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core