aws-sdk-bedrockruntime 1.28.0 → 1.44.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.
data/sig/types.rbs CHANGED
@@ -21,30 +21,88 @@ module Aws::BedrockRuntime
21
21
  attr_accessor guardrail_version: ::String
22
22
  attr_accessor source: ("INPUT" | "OUTPUT")
23
23
  attr_accessor content: ::Array[Types::GuardrailContentBlock]
24
+ attr_accessor output_scope: ("INTERVENTIONS" | "FULL")
24
25
  SENSITIVE: []
25
26
  end
26
27
 
27
28
  class ApplyGuardrailResponse
28
29
  attr_accessor usage: Types::GuardrailUsage
29
30
  attr_accessor action: ("NONE" | "GUARDRAIL_INTERVENED")
31
+ attr_accessor action_reason: ::String
30
32
  attr_accessor outputs: ::Array[Types::GuardrailOutputContent]
31
33
  attr_accessor assessments: ::Array[Types::GuardrailAssessment]
32
34
  attr_accessor guardrail_coverage: Types::GuardrailCoverage
33
35
  SENSITIVE: []
34
36
  end
35
37
 
38
+ class AsyncInvokeOutputDataConfig
39
+ attr_accessor s3_output_data_config: Types::AsyncInvokeS3OutputDataConfig
40
+ attr_accessor unknown: untyped
41
+ SENSITIVE: []
42
+
43
+ class S3OutputDataConfig < AsyncInvokeOutputDataConfig
44
+ end
45
+ class Unknown < AsyncInvokeOutputDataConfig
46
+ end
47
+ end
48
+
49
+ class AsyncInvokeS3OutputDataConfig
50
+ attr_accessor s3_uri: ::String
51
+ attr_accessor kms_key_id: ::String
52
+ attr_accessor bucket_owner: ::String
53
+ SENSITIVE: []
54
+ end
55
+
56
+ class AsyncInvokeSummary
57
+ attr_accessor invocation_arn: ::String
58
+ attr_accessor model_arn: ::String
59
+ attr_accessor client_request_token: ::String
60
+ attr_accessor status: ("InProgress" | "Completed" | "Failed")
61
+ attr_accessor failure_message: ::String
62
+ attr_accessor submit_time: ::Time
63
+ attr_accessor last_modified_time: ::Time
64
+ attr_accessor end_time: ::Time
65
+ attr_accessor output_data_config: Types::AsyncInvokeOutputDataConfig
66
+ SENSITIVE: [:failure_message]
67
+ end
68
+
36
69
  class AutoToolChoice < Aws::EmptyStructure
37
70
  end
38
71
 
72
+ class BidirectionalInputPayloadPart
73
+ attr_accessor bytes: ::String
74
+ attr_accessor event_type: untyped
75
+ SENSITIVE: [:bytes]
76
+ end
77
+
78
+ class BidirectionalOutputPayloadPart
79
+ attr_accessor bytes: ::String
80
+ attr_accessor event_type: untyped
81
+ SENSITIVE: [:bytes]
82
+ end
83
+
84
+ class CachePointBlock
85
+ attr_accessor type: ("default")
86
+ SENSITIVE: []
87
+ end
88
+
89
+ class ConflictException
90
+ attr_accessor message: ::String
91
+ SENSITIVE: []
92
+ end
93
+
39
94
  class ContentBlock
40
95
  attr_accessor text: ::String
41
96
  attr_accessor image: Types::ImageBlock
42
97
  attr_accessor document: Types::DocumentBlock
98
+ attr_accessor video: Types::VideoBlock
43
99
  attr_accessor tool_use: Types::ToolUseBlock
44
100
  attr_accessor tool_result: Types::ToolResultBlock
45
101
  attr_accessor guard_content: Types::GuardrailConverseContentBlock
102
+ attr_accessor cache_point: Types::CachePointBlock
103
+ attr_accessor reasoning_content: Types::ReasoningContentBlock
46
104
  attr_accessor unknown: untyped
47
- SENSITIVE: []
105
+ SENSITIVE: [:reasoning_content]
48
106
 
49
107
  class Text < ContentBlock
50
108
  end
@@ -52,12 +110,18 @@ module Aws::BedrockRuntime
52
110
  end
53
111
  class Document < ContentBlock
54
112
  end
113
+ class Video < ContentBlock
114
+ end
55
115
  class ToolUse < ContentBlock
56
116
  end
57
117
  class ToolResult < ContentBlock
58
118
  end
59
119
  class GuardContent < ContentBlock
60
120
  end
121
+ class CachePoint < ContentBlock
122
+ end
123
+ class ReasoningContent < ContentBlock
124
+ end
61
125
  class Unknown < ContentBlock
62
126
  end
63
127
  end
@@ -65,13 +129,16 @@ module Aws::BedrockRuntime
65
129
  class ContentBlockDelta
66
130
  attr_accessor text: ::String
67
131
  attr_accessor tool_use: Types::ToolUseBlockDelta
132
+ attr_accessor reasoning_content: Types::ReasoningContentBlockDelta
68
133
  attr_accessor unknown: untyped
69
- SENSITIVE: []
134
+ SENSITIVE: [:reasoning_content]
70
135
 
71
136
  class Text < ContentBlockDelta
72
137
  end
73
138
  class ToolUse < ContentBlockDelta
74
139
  end
140
+ class ReasoningContent < ContentBlockDelta
141
+ end
75
142
  class Unknown < ContentBlockDelta
76
143
  end
77
144
  end
@@ -131,8 +198,11 @@ module Aws::BedrockRuntime
131
198
  attr_accessor tool_config: Types::ToolConfiguration
132
199
  attr_accessor guardrail_config: Types::GuardrailConfiguration
133
200
  attr_accessor additional_model_request_fields: untyped
201
+ attr_accessor prompt_variables: ::Hash[::String, Types::PromptVariableValues]
134
202
  attr_accessor additional_model_response_field_paths: ::Array[::String]
135
- SENSITIVE: []
203
+ attr_accessor request_metadata: ::Hash[::String, ::String]
204
+ attr_accessor performance_config: Types::PerformanceConfiguration
205
+ SENSITIVE: [:prompt_variables, :request_metadata]
136
206
  end
137
207
 
138
208
  class ConverseResponse
@@ -142,6 +212,7 @@ module Aws::BedrockRuntime
142
212
  attr_accessor metrics: Types::ConverseMetrics
143
213
  attr_accessor additional_model_response_fields: untyped
144
214
  attr_accessor trace: Types::ConverseTrace
215
+ attr_accessor performance_config: Types::PerformanceConfiguration
145
216
  SENSITIVE: []
146
217
  end
147
218
 
@@ -149,6 +220,7 @@ module Aws::BedrockRuntime
149
220
  attr_accessor usage: Types::TokenUsage
150
221
  attr_accessor metrics: Types::ConverseStreamMetrics
151
222
  attr_accessor trace: Types::ConverseStreamTrace
223
+ attr_accessor performance_config: Types::PerformanceConfiguration
152
224
  attr_accessor event_type: untyped
153
225
  SENSITIVE: []
154
226
  end
@@ -166,8 +238,11 @@ module Aws::BedrockRuntime
166
238
  attr_accessor tool_config: Types::ToolConfiguration
167
239
  attr_accessor guardrail_config: Types::GuardrailStreamConfiguration
168
240
  attr_accessor additional_model_request_fields: untyped
241
+ attr_accessor prompt_variables: ::Hash[::String, Types::PromptVariableValues]
169
242
  attr_accessor additional_model_response_field_paths: ::Array[::String]
170
- SENSITIVE: []
243
+ attr_accessor request_metadata: ::Hash[::String, ::String]
244
+ attr_accessor performance_config: Types::PerformanceConfiguration
245
+ SENSITIVE: [:prompt_variables, :request_metadata]
171
246
  end
172
247
 
173
248
  class ConverseStreamResponse
@@ -177,11 +252,13 @@ module Aws::BedrockRuntime
177
252
 
178
253
  class ConverseStreamTrace
179
254
  attr_accessor guardrail: Types::GuardrailTraceAssessment
255
+ attr_accessor prompt_router: Types::PromptRouterTrace
180
256
  SENSITIVE: []
181
257
  end
182
258
 
183
259
  class ConverseTrace
184
260
  attr_accessor guardrail: Types::GuardrailTraceAssessment
261
+ attr_accessor prompt_router: Types::PromptRouterTrace
185
262
  SENSITIVE: []
186
263
  end
187
264
 
@@ -203,6 +280,24 @@ module Aws::BedrockRuntime
203
280
  end
204
281
  end
205
282
 
283
+ class GetAsyncInvokeRequest
284
+ attr_accessor invocation_arn: ::String
285
+ SENSITIVE: []
286
+ end
287
+
288
+ class GetAsyncInvokeResponse
289
+ attr_accessor invocation_arn: ::String
290
+ attr_accessor model_arn: ::String
291
+ attr_accessor client_request_token: ::String
292
+ attr_accessor status: ("InProgress" | "Completed" | "Failed")
293
+ attr_accessor failure_message: ::String
294
+ attr_accessor submit_time: ::Time
295
+ attr_accessor last_modified_time: ::Time
296
+ attr_accessor end_time: ::Time
297
+ attr_accessor output_data_config: Types::AsyncInvokeOutputDataConfig
298
+ SENSITIVE: [:failure_message]
299
+ end
300
+
206
301
  class GuardrailAssessment
207
302
  attr_accessor topic_policy: Types::GuardrailTopicPolicyAssessment
208
303
  attr_accessor content_policy: Types::GuardrailContentPolicyAssessment
@@ -216,17 +311,20 @@ module Aws::BedrockRuntime
216
311
  class GuardrailConfiguration
217
312
  attr_accessor guardrail_identifier: ::String
218
313
  attr_accessor guardrail_version: ::String
219
- attr_accessor trace: ("enabled" | "disabled")
314
+ attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
220
315
  SENSITIVE: []
221
316
  end
222
317
 
223
318
  class GuardrailContentBlock
224
319
  attr_accessor text: Types::GuardrailTextBlock
320
+ attr_accessor image: Types::GuardrailImageBlock
225
321
  attr_accessor unknown: untyped
226
- SENSITIVE: []
322
+ SENSITIVE: [:image]
227
323
 
228
324
  class Text < GuardrailContentBlock
229
325
  end
326
+ class Image < GuardrailContentBlock
327
+ end
230
328
  class Unknown < GuardrailContentBlock
231
329
  end
232
330
  end
@@ -235,7 +333,8 @@ module Aws::BedrockRuntime
235
333
  attr_accessor type: ("INSULTS" | "HATE" | "SEXUAL" | "VIOLENCE" | "MISCONDUCT" | "PROMPT_ATTACK")
236
334
  attr_accessor confidence: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
237
335
  attr_accessor filter_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
238
- attr_accessor action: ("BLOCKED")
336
+ attr_accessor action: ("BLOCKED" | "NONE")
337
+ attr_accessor detected: bool
239
338
  SENSITIVE: []
240
339
  end
241
340
 
@@ -249,6 +348,7 @@ module Aws::BedrockRuntime
249
348
  attr_accessor threshold: ::Float
250
349
  attr_accessor score: ::Float
251
350
  attr_accessor action: ("BLOCKED" | "NONE")
351
+ attr_accessor detected: bool
252
352
  SENSITIVE: []
253
353
  end
254
354
 
@@ -259,15 +359,35 @@ module Aws::BedrockRuntime
259
359
 
260
360
  class GuardrailConverseContentBlock
261
361
  attr_accessor text: Types::GuardrailConverseTextBlock
362
+ attr_accessor image: Types::GuardrailConverseImageBlock
262
363
  attr_accessor unknown: untyped
263
- SENSITIVE: []
364
+ SENSITIVE: [:image]
264
365
 
265
366
  class Text < GuardrailConverseContentBlock
266
367
  end
368
+ class Image < GuardrailConverseContentBlock
369
+ end
267
370
  class Unknown < GuardrailConverseContentBlock
268
371
  end
269
372
  end
270
373
 
374
+ class GuardrailConverseImageBlock
375
+ attr_accessor format: ("png" | "jpeg")
376
+ attr_accessor source: Types::GuardrailConverseImageSource
377
+ SENSITIVE: [:source]
378
+ end
379
+
380
+ class GuardrailConverseImageSource
381
+ attr_accessor bytes: ::String
382
+ attr_accessor unknown: untyped
383
+ SENSITIVE: []
384
+
385
+ class Bytes < GuardrailConverseImageSource
386
+ end
387
+ class Unknown < GuardrailConverseImageSource
388
+ end
389
+ end
390
+
271
391
  class GuardrailConverseTextBlock
272
392
  attr_accessor text: ::String
273
393
  attr_accessor qualifiers: ::Array[("grounding_source" | "query" | "guard_content")]
@@ -276,15 +396,40 @@ module Aws::BedrockRuntime
276
396
 
277
397
  class GuardrailCoverage
278
398
  attr_accessor text_characters: Types::GuardrailTextCharactersCoverage
399
+ attr_accessor images: Types::GuardrailImageCoverage
279
400
  SENSITIVE: []
280
401
  end
281
402
 
282
403
  class GuardrailCustomWord
283
404
  attr_accessor match: ::String
284
- attr_accessor action: ("BLOCKED")
405
+ attr_accessor action: ("BLOCKED" | "NONE")
406
+ attr_accessor detected: bool
285
407
  SENSITIVE: []
286
408
  end
287
409
 
410
+ class GuardrailImageBlock
411
+ attr_accessor format: ("png" | "jpeg")
412
+ attr_accessor source: Types::GuardrailImageSource
413
+ SENSITIVE: [:source]
414
+ end
415
+
416
+ class GuardrailImageCoverage
417
+ attr_accessor guarded: ::Integer
418
+ attr_accessor total: ::Integer
419
+ SENSITIVE: []
420
+ end
421
+
422
+ class GuardrailImageSource
423
+ attr_accessor bytes: ::String
424
+ attr_accessor unknown: untyped
425
+ SENSITIVE: []
426
+
427
+ class Bytes < GuardrailImageSource
428
+ end
429
+ class Unknown < GuardrailImageSource
430
+ end
431
+ end
432
+
288
433
  class GuardrailInvocationMetrics
289
434
  attr_accessor guardrail_processing_latency: ::Integer
290
435
  attr_accessor usage: Types::GuardrailUsage
@@ -295,7 +440,8 @@ module Aws::BedrockRuntime
295
440
  class GuardrailManagedWord
296
441
  attr_accessor match: ::String
297
442
  attr_accessor type: ("PROFANITY")
298
- attr_accessor action: ("BLOCKED")
443
+ attr_accessor action: ("BLOCKED" | "NONE")
444
+ attr_accessor detected: bool
299
445
  SENSITIVE: []
300
446
  end
301
447
 
@@ -307,7 +453,8 @@ module Aws::BedrockRuntime
307
453
  class GuardrailPiiEntityFilter
308
454
  attr_accessor match: ::String
309
455
  attr_accessor type: ("ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER")
310
- attr_accessor action: ("ANONYMIZED" | "BLOCKED")
456
+ attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
457
+ attr_accessor detected: bool
311
458
  SENSITIVE: []
312
459
  end
313
460
 
@@ -315,7 +462,8 @@ module Aws::BedrockRuntime
315
462
  attr_accessor name: ::String
316
463
  attr_accessor match: ::String
317
464
  attr_accessor regex: ::String
318
- attr_accessor action: ("ANONYMIZED" | "BLOCKED")
465
+ attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
466
+ attr_accessor detected: bool
319
467
  SENSITIVE: []
320
468
  end
321
469
 
@@ -328,7 +476,7 @@ module Aws::BedrockRuntime
328
476
  class GuardrailStreamConfiguration
329
477
  attr_accessor guardrail_identifier: ::String
330
478
  attr_accessor guardrail_version: ::String
331
- attr_accessor trace: ("enabled" | "disabled")
479
+ attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
332
480
  attr_accessor stream_processing_mode: ("sync" | "async")
333
481
  SENSITIVE: []
334
482
  end
@@ -348,7 +496,8 @@ module Aws::BedrockRuntime
348
496
  class GuardrailTopic
349
497
  attr_accessor name: ::String
350
498
  attr_accessor type: ("DENY")
351
- attr_accessor action: ("BLOCKED")
499
+ attr_accessor action: ("BLOCKED" | "NONE")
500
+ attr_accessor detected: bool
352
501
  SENSITIVE: []
353
502
  end
354
503
 
@@ -361,6 +510,7 @@ module Aws::BedrockRuntime
361
510
  attr_accessor model_output: ::Array[::String]
362
511
  attr_accessor input_assessment: ::Hash[::String, Types::GuardrailAssessment]
363
512
  attr_accessor output_assessments: ::Hash[::String, ::Array[Types::GuardrailAssessment]]
513
+ attr_accessor action_reason: ::String
364
514
  SENSITIVE: []
365
515
  end
366
516
 
@@ -371,6 +521,7 @@ module Aws::BedrockRuntime
371
521
  attr_accessor sensitive_information_policy_units: ::Integer
372
522
  attr_accessor sensitive_information_policy_free_units: ::Integer
373
523
  attr_accessor contextual_grounding_policy_units: ::Integer
524
+ attr_accessor content_policy_image_units: ::Integer
374
525
  SENSITIVE: []
375
526
  end
376
527
 
@@ -416,32 +567,64 @@ module Aws::BedrockRuntime
416
567
  attr_accessor content_type: ::String
417
568
  attr_accessor accept: ::String
418
569
  attr_accessor model_id: ::String
419
- attr_accessor trace: ("ENABLED" | "DISABLED")
570
+ attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
420
571
  attr_accessor guardrail_identifier: ::String
421
572
  attr_accessor guardrail_version: ::String
573
+ attr_accessor performance_config_latency: ("standard" | "optimized")
422
574
  SENSITIVE: [:body]
423
575
  end
424
576
 
425
577
  class InvokeModelResponse
426
578
  attr_accessor body: ::String
427
579
  attr_accessor content_type: ::String
580
+ attr_accessor performance_config_latency: ("standard" | "optimized")
428
581
  SENSITIVE: [:body]
429
582
  end
430
583
 
584
+ class InvokeModelWithBidirectionalStreamRequest
585
+ attr_accessor model_id: ::String
586
+ attr_accessor body: Types::InvokeModelWithBidirectionalStreamInput
587
+ SENSITIVE: []
588
+ end
589
+
590
+ class InvokeModelWithBidirectionalStreamResponse
591
+ attr_accessor body: Types::InvokeModelWithBidirectionalStreamOutput
592
+ SENSITIVE: []
593
+ end
594
+
431
595
  class InvokeModelWithResponseStreamRequest
432
596
  attr_accessor body: ::String
433
597
  attr_accessor content_type: ::String
434
598
  attr_accessor accept: ::String
435
599
  attr_accessor model_id: ::String
436
- attr_accessor trace: ("ENABLED" | "DISABLED")
600
+ attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
437
601
  attr_accessor guardrail_identifier: ::String
438
602
  attr_accessor guardrail_version: ::String
603
+ attr_accessor performance_config_latency: ("standard" | "optimized")
439
604
  SENSITIVE: [:body]
440
605
  end
441
606
 
442
607
  class InvokeModelWithResponseStreamResponse
443
608
  attr_accessor body: Types::ResponseStream
444
609
  attr_accessor content_type: ::String
610
+ attr_accessor performance_config_latency: ("standard" | "optimized")
611
+ SENSITIVE: []
612
+ end
613
+
614
+ class ListAsyncInvokesRequest
615
+ attr_accessor submit_time_after: ::Time
616
+ attr_accessor submit_time_before: ::Time
617
+ attr_accessor status_equals: ("InProgress" | "Completed" | "Failed")
618
+ attr_accessor max_results: ::Integer
619
+ attr_accessor next_token: ::String
620
+ attr_accessor sort_by: ("SubmissionTime")
621
+ attr_accessor sort_order: ("Ascending" | "Descending")
622
+ SENSITIVE: []
623
+ end
624
+
625
+ class ListAsyncInvokesResponse
626
+ attr_accessor next_token: ::String
627
+ attr_accessor async_invoke_summaries: ::Array[Types::AsyncInvokeSummary]
445
628
  SENSITIVE: []
446
629
  end
447
630
 
@@ -496,11 +679,75 @@ module Aws::BedrockRuntime
496
679
  SENSITIVE: [:bytes]
497
680
  end
498
681
 
682
+ class PerformanceConfiguration
683
+ attr_accessor latency: ("standard" | "optimized")
684
+ SENSITIVE: []
685
+ end
686
+
687
+ class PromptRouterTrace
688
+ attr_accessor invoked_model_id: ::String
689
+ SENSITIVE: []
690
+ end
691
+
692
+ class PromptVariableValues
693
+ attr_accessor text: ::String
694
+ attr_accessor unknown: untyped
695
+ SENSITIVE: []
696
+
697
+ class Text < PromptVariableValues
698
+ end
699
+ class Unknown < PromptVariableValues
700
+ end
701
+ end
702
+
703
+ class ReasoningContentBlock
704
+ attr_accessor reasoning_text: Types::ReasoningTextBlock
705
+ attr_accessor redacted_content: ::String
706
+ attr_accessor unknown: untyped
707
+ SENSITIVE: [:reasoning_text]
708
+
709
+ class ReasoningText < ReasoningContentBlock
710
+ end
711
+ class RedactedContent < ReasoningContentBlock
712
+ end
713
+ class Unknown < ReasoningContentBlock
714
+ end
715
+ end
716
+
717
+ class ReasoningContentBlockDelta
718
+ attr_accessor text: ::String
719
+ attr_accessor redacted_content: ::String
720
+ attr_accessor signature: ::String
721
+ attr_accessor unknown: untyped
722
+ SENSITIVE: []
723
+
724
+ class Text < ReasoningContentBlockDelta
725
+ end
726
+ class RedactedContent < ReasoningContentBlockDelta
727
+ end
728
+ class Signature < ReasoningContentBlockDelta
729
+ end
730
+ class Unknown < ReasoningContentBlockDelta
731
+ end
732
+ end
733
+
734
+ class ReasoningTextBlock
735
+ attr_accessor text: ::String
736
+ attr_accessor signature: ::String
737
+ SENSITIVE: []
738
+ end
739
+
499
740
  class ResourceNotFoundException
500
741
  attr_accessor message: ::String
501
742
  SENSITIVE: []
502
743
  end
503
744
 
745
+ class S3Location
746
+ attr_accessor uri: ::String
747
+ attr_accessor bucket_owner: ::String
748
+ SENSITIVE: []
749
+ end
750
+
504
751
  class ServiceQuotaExceededException
505
752
  attr_accessor message: ::String
506
753
  SENSITIVE: []
@@ -517,9 +764,24 @@ module Aws::BedrockRuntime
517
764
  SENSITIVE: []
518
765
  end
519
766
 
767
+ class StartAsyncInvokeRequest
768
+ attr_accessor client_request_token: ::String
769
+ attr_accessor model_id: ::String
770
+ attr_accessor model_input: untyped
771
+ attr_accessor output_data_config: Types::AsyncInvokeOutputDataConfig
772
+ attr_accessor tags: ::Array[Types::Tag]
773
+ SENSITIVE: [:model_input]
774
+ end
775
+
776
+ class StartAsyncInvokeResponse
777
+ attr_accessor invocation_arn: ::String
778
+ SENSITIVE: []
779
+ end
780
+
520
781
  class SystemContentBlock
521
782
  attr_accessor text: ::String
522
783
  attr_accessor guard_content: Types::GuardrailConverseContentBlock
784
+ attr_accessor cache_point: Types::CachePointBlock
523
785
  attr_accessor unknown: untyped
524
786
  SENSITIVE: []
525
787
 
@@ -527,10 +789,18 @@ module Aws::BedrockRuntime
527
789
  end
528
790
  class GuardContent < SystemContentBlock
529
791
  end
792
+ class CachePoint < SystemContentBlock
793
+ end
530
794
  class Unknown < SystemContentBlock
531
795
  end
532
796
  end
533
797
 
798
+ class Tag
799
+ attr_accessor key: ::String
800
+ attr_accessor value: ::String
801
+ SENSITIVE: []
802
+ end
803
+
534
804
  class ThrottlingException
535
805
  attr_accessor message: ::String
536
806
  attr_accessor event_type: untyped
@@ -541,16 +811,21 @@ module Aws::BedrockRuntime
541
811
  attr_accessor input_tokens: ::Integer
542
812
  attr_accessor output_tokens: ::Integer
543
813
  attr_accessor total_tokens: ::Integer
814
+ attr_accessor cache_read_input_tokens: ::Integer
815
+ attr_accessor cache_write_input_tokens: ::Integer
544
816
  SENSITIVE: []
545
817
  end
546
818
 
547
819
  class Tool
548
820
  attr_accessor tool_spec: Types::ToolSpecification
821
+ attr_accessor cache_point: Types::CachePointBlock
549
822
  attr_accessor unknown: untyped
550
823
  SENSITIVE: []
551
824
 
552
825
  class ToolSpec < Tool
553
826
  end
827
+ class CachePoint < Tool
828
+ end
554
829
  class Unknown < Tool
555
830
  end
556
831
  end
@@ -601,6 +876,7 @@ module Aws::BedrockRuntime
601
876
  attr_accessor text: ::String
602
877
  attr_accessor image: Types::ImageBlock
603
878
  attr_accessor document: Types::DocumentBlock
879
+ attr_accessor video: Types::VideoBlock
604
880
  attr_accessor unknown: untyped
605
881
  SENSITIVE: []
606
882
 
@@ -612,6 +888,8 @@ module Aws::BedrockRuntime
612
888
  end
613
889
  class Document < ToolResultContentBlock
614
890
  end
891
+ class Video < ToolResultContentBlock
892
+ end
615
893
  class Unknown < ToolResultContentBlock
616
894
  end
617
895
  end
@@ -647,10 +925,38 @@ module Aws::BedrockRuntime
647
925
  SENSITIVE: []
648
926
  end
649
927
 
928
+ class VideoBlock
929
+ attr_accessor format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp")
930
+ attr_accessor source: Types::VideoSource
931
+ SENSITIVE: []
932
+ end
933
+
934
+ class VideoSource
935
+ attr_accessor bytes: ::String
936
+ attr_accessor s3_location: Types::S3Location
937
+ attr_accessor unknown: untyped
938
+ SENSITIVE: []
939
+
940
+ class Bytes < VideoSource
941
+ end
942
+ class S3Location < VideoSource
943
+ end
944
+ class Unknown < VideoSource
945
+ end
946
+ end
947
+
650
948
  class ConverseStreamOutput < Enumerator[untyped, untyped]
651
949
  def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :service_unavailable_exception]
652
950
  end
653
951
 
952
+ class InvokeModelWithBidirectionalStreamInput < Enumerator[untyped, untyped]
953
+ def event_types: () -> [:chunk]
954
+ end
955
+
956
+ class InvokeModelWithBidirectionalStreamOutput < Enumerator[untyped, untyped]
957
+ def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
958
+ end
959
+
654
960
  class ResponseStream < Enumerator[untyped, untyped]
655
961
  def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
656
962
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.44.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-10-22 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.210.0
22
+ version: 3.216.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,6 +56,7 @@ files:
56
56
  - LICENSE.txt
57
57
  - VERSION
58
58
  - lib/aws-sdk-bedrockruntime.rb
59
+ - lib/aws-sdk-bedrockruntime/async_client.rb
59
60
  - lib/aws-sdk-bedrockruntime/client.rb
60
61
  - lib/aws-sdk-bedrockruntime/client_api.rb
61
62
  - lib/aws-sdk-bedrockruntime/customizations.rb