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.
@@ -15,11 +15,28 @@ module Aws::BedrockRuntime
15
15
  include Seahorse::Model
16
16
 
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
18
19
  AnyToolChoice = Shapes::StructureShape.new(name: 'AnyToolChoice')
19
20
  ApplyGuardrailRequest = Shapes::StructureShape.new(name: 'ApplyGuardrailRequest')
20
21
  ApplyGuardrailResponse = Shapes::StructureShape.new(name: 'ApplyGuardrailResponse')
22
+ AsyncInvokeArn = Shapes::StringShape.new(name: 'AsyncInvokeArn')
23
+ AsyncInvokeIdempotencyToken = Shapes::StringShape.new(name: 'AsyncInvokeIdempotencyToken')
24
+ AsyncInvokeIdentifier = Shapes::StringShape.new(name: 'AsyncInvokeIdentifier')
25
+ AsyncInvokeMessage = Shapes::StringShape.new(name: 'AsyncInvokeMessage')
26
+ AsyncInvokeOutputDataConfig = Shapes::UnionShape.new(name: 'AsyncInvokeOutputDataConfig')
27
+ AsyncInvokeS3OutputDataConfig = Shapes::StructureShape.new(name: 'AsyncInvokeS3OutputDataConfig')
28
+ AsyncInvokeStatus = Shapes::StringShape.new(name: 'AsyncInvokeStatus')
29
+ AsyncInvokeSummaries = Shapes::ListShape.new(name: 'AsyncInvokeSummaries')
30
+ AsyncInvokeSummary = Shapes::StructureShape.new(name: 'AsyncInvokeSummary')
21
31
  AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice')
32
+ BidirectionalInputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalInputPayloadPart')
33
+ BidirectionalOutputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalOutputPayloadPart')
34
+ Blob = Shapes::BlobShape.new(name: 'Blob')
22
35
  Body = Shapes::BlobShape.new(name: 'Body')
36
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
37
+ CachePointBlock = Shapes::StructureShape.new(name: 'CachePointBlock')
38
+ CachePointType = Shapes::StringShape.new(name: 'CachePointType')
39
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
23
40
  ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock')
24
41
  ContentBlockDelta = Shapes::UnionShape.new(name: 'ContentBlockDelta')
25
42
  ContentBlockDeltaEvent = Shapes::StructureShape.new(name: 'ContentBlockDeltaEvent')
@@ -50,6 +67,8 @@ module Aws::BedrockRuntime
50
67
  DocumentFormat = Shapes::StringShape.new(name: 'DocumentFormat')
51
68
  DocumentSource = Shapes::UnionShape.new(name: 'DocumentSource')
52
69
  DocumentSourceBytesBlob = Shapes::BlobShape.new(name: 'DocumentSourceBytesBlob')
70
+ GetAsyncInvokeRequest = Shapes::StructureShape.new(name: 'GetAsyncInvokeRequest')
71
+ GetAsyncInvokeResponse = Shapes::StructureShape.new(name: 'GetAsyncInvokeResponse')
53
72
  GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
54
73
  GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment')
55
74
  GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
@@ -65,6 +84,7 @@ module Aws::BedrockRuntime
65
84
  GuardrailContentFilterType = Shapes::StringShape.new(name: 'GuardrailContentFilterType')
66
85
  GuardrailContentPolicyAction = Shapes::StringShape.new(name: 'GuardrailContentPolicyAction')
67
86
  GuardrailContentPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailContentPolicyAssessment')
87
+ GuardrailContentPolicyImageUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailContentPolicyImageUnitsProcessed')
68
88
  GuardrailContentPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailContentPolicyUnitsProcessed')
69
89
  GuardrailContentQualifier = Shapes::StringShape.new(name: 'GuardrailContentQualifier')
70
90
  GuardrailContentQualifierList = Shapes::ListShape.new(name: 'GuardrailContentQualifierList')
@@ -80,17 +100,27 @@ module Aws::BedrockRuntime
80
100
  GuardrailConverseContentBlock = Shapes::UnionShape.new(name: 'GuardrailConverseContentBlock')
81
101
  GuardrailConverseContentQualifier = Shapes::StringShape.new(name: 'GuardrailConverseContentQualifier')
82
102
  GuardrailConverseContentQualifierList = Shapes::ListShape.new(name: 'GuardrailConverseContentQualifierList')
103
+ GuardrailConverseImageBlock = Shapes::StructureShape.new(name: 'GuardrailConverseImageBlock')
104
+ GuardrailConverseImageFormat = Shapes::StringShape.new(name: 'GuardrailConverseImageFormat')
105
+ GuardrailConverseImageSource = Shapes::UnionShape.new(name: 'GuardrailConverseImageSource')
106
+ GuardrailConverseImageSourceBytesBlob = Shapes::BlobShape.new(name: 'GuardrailConverseImageSourceBytesBlob')
83
107
  GuardrailConverseTextBlock = Shapes::StructureShape.new(name: 'GuardrailConverseTextBlock')
84
108
  GuardrailCoverage = Shapes::StructureShape.new(name: 'GuardrailCoverage')
85
109
  GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
86
110
  GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
87
111
  GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
112
+ GuardrailImageBlock = Shapes::StructureShape.new(name: 'GuardrailImageBlock')
113
+ GuardrailImageCoverage = Shapes::StructureShape.new(name: 'GuardrailImageCoverage')
114
+ GuardrailImageFormat = Shapes::StringShape.new(name: 'GuardrailImageFormat')
115
+ GuardrailImageSource = Shapes::UnionShape.new(name: 'GuardrailImageSource')
116
+ GuardrailImageSourceBytesBlob = Shapes::BlobShape.new(name: 'GuardrailImageSourceBytesBlob')
88
117
  GuardrailInvocationMetrics = Shapes::StructureShape.new(name: 'GuardrailInvocationMetrics')
89
118
  GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
90
119
  GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
91
120
  GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
92
121
  GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
93
122
  GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
123
+ GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
94
124
  GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
95
125
  GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
96
126
  GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
@@ -123,24 +153,37 @@ module Aws::BedrockRuntime
123
153
  ImageFormat = Shapes::StringShape.new(name: 'ImageFormat')
124
154
  ImageSource = Shapes::UnionShape.new(name: 'ImageSource')
125
155
  ImageSourceBytesBlob = Shapes::BlobShape.new(name: 'ImageSourceBytesBlob')
156
+ ImagesGuarded = Shapes::IntegerShape.new(name: 'ImagesGuarded')
157
+ ImagesTotal = Shapes::IntegerShape.new(name: 'ImagesTotal')
126
158
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
127
159
  InferenceConfigurationMaxTokensInteger = Shapes::IntegerShape.new(name: 'InferenceConfigurationMaxTokensInteger')
128
160
  InferenceConfigurationStopSequencesList = Shapes::ListShape.new(name: 'InferenceConfigurationStopSequencesList')
129
161
  InferenceConfigurationTemperatureFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTemperatureFloat')
130
162
  InferenceConfigurationTopPFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTopPFloat')
131
163
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
164
+ InvocationArn = Shapes::StringShape.new(name: 'InvocationArn')
132
165
  InvokeModelIdentifier = Shapes::StringShape.new(name: 'InvokeModelIdentifier')
133
166
  InvokeModelRequest = Shapes::StructureShape.new(name: 'InvokeModelRequest')
134
167
  InvokeModelResponse = Shapes::StructureShape.new(name: 'InvokeModelResponse')
168
+ InvokeModelWithBidirectionalStreamInput = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamInput')
169
+ InvokeModelWithBidirectionalStreamOutput = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamOutput')
170
+ InvokeModelWithBidirectionalStreamRequest = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamRequest')
171
+ InvokeModelWithBidirectionalStreamResponse = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamResponse')
135
172
  InvokeModelWithResponseStreamRequest = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamRequest')
136
173
  InvokeModelWithResponseStreamResponse = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamResponse')
174
+ InvokedModelId = Shapes::StringShape.new(name: 'InvokedModelId')
175
+ KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
176
+ ListAsyncInvokesRequest = Shapes::StructureShape.new(name: 'ListAsyncInvokesRequest')
177
+ ListAsyncInvokesResponse = Shapes::StructureShape.new(name: 'ListAsyncInvokesResponse')
137
178
  Long = Shapes::IntegerShape.new(name: 'Long')
179
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
138
180
  Message = Shapes::StructureShape.new(name: 'Message')
139
181
  MessageStartEvent = Shapes::StructureShape.new(name: 'MessageStartEvent')
140
182
  MessageStopEvent = Shapes::StructureShape.new(name: 'MessageStopEvent')
141
183
  Messages = Shapes::ListShape.new(name: 'Messages')
142
184
  MimeType = Shapes::StringShape.new(name: 'MimeType')
143
185
  ModelErrorException = Shapes::StructureShape.new(name: 'ModelErrorException')
186
+ ModelInputPayload = Shapes::DocumentShape.new(name: 'ModelInputPayload', document: true)
144
187
  ModelNotReadyException = Shapes::StructureShape.new(name: 'ModelNotReadyException')
145
188
  ModelOutputs = Shapes::ListShape.new(name: 'ModelOutputs')
146
189
  ModelStreamErrorException = Shapes::StructureShape.new(name: 'ModelStreamErrorException')
@@ -148,22 +191,47 @@ module Aws::BedrockRuntime
148
191
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
149
192
  NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
150
193
  NonNegativeInteger = Shapes::IntegerShape.new(name: 'NonNegativeInteger')
194
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
151
195
  PartBody = Shapes::BlobShape.new(name: 'PartBody')
152
196
  PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
197
+ PerformanceConfigLatency = Shapes::StringShape.new(name: 'PerformanceConfigLatency')
198
+ PerformanceConfiguration = Shapes::StructureShape.new(name: 'PerformanceConfiguration')
199
+ PromptRouterTrace = Shapes::StructureShape.new(name: 'PromptRouterTrace')
200
+ PromptVariableMap = Shapes::MapShape.new(name: 'PromptVariableMap')
201
+ PromptVariableValues = Shapes::UnionShape.new(name: 'PromptVariableValues')
202
+ ReasoningContentBlock = Shapes::UnionShape.new(name: 'ReasoningContentBlock')
203
+ ReasoningContentBlockDelta = Shapes::UnionShape.new(name: 'ReasoningContentBlockDelta')
204
+ ReasoningTextBlock = Shapes::StructureShape.new(name: 'ReasoningTextBlock')
205
+ RequestMetadata = Shapes::MapShape.new(name: 'RequestMetadata')
206
+ RequestMetadataKeyString = Shapes::StringShape.new(name: 'RequestMetadataKeyString')
207
+ RequestMetadataValueString = Shapes::StringShape.new(name: 'RequestMetadataValueString')
153
208
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
154
209
  ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
210
+ S3Location = Shapes::StructureShape.new(name: 'S3Location')
211
+ S3Uri = Shapes::StringShape.new(name: 'S3Uri')
155
212
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
156
213
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
214
+ SortAsyncInvocationBy = Shapes::StringShape.new(name: 'SortAsyncInvocationBy')
215
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
157
216
  SpecificToolChoice = Shapes::StructureShape.new(name: 'SpecificToolChoice')
217
+ StartAsyncInvokeRequest = Shapes::StructureShape.new(name: 'StartAsyncInvokeRequest')
218
+ StartAsyncInvokeResponse = Shapes::StructureShape.new(name: 'StartAsyncInvokeResponse')
158
219
  StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
159
220
  StopReason = Shapes::StringShape.new(name: 'StopReason')
160
221
  String = Shapes::StringShape.new(name: 'String')
161
222
  SystemContentBlock = Shapes::UnionShape.new(name: 'SystemContentBlock')
162
223
  SystemContentBlocks = Shapes::ListShape.new(name: 'SystemContentBlocks')
224
+ Tag = Shapes::StructureShape.new(name: 'Tag')
225
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
226
+ TagList = Shapes::ListShape.new(name: 'TagList')
227
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
163
228
  TextCharactersGuarded = Shapes::IntegerShape.new(name: 'TextCharactersGuarded')
164
229
  TextCharactersTotal = Shapes::IntegerShape.new(name: 'TextCharactersTotal')
165
230
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
231
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
166
232
  TokenUsage = Shapes::StructureShape.new(name: 'TokenUsage')
233
+ TokenUsageCacheReadInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageCacheReadInputTokensInteger')
234
+ TokenUsageCacheWriteInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageCacheWriteInputTokensInteger')
167
235
  TokenUsageInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageInputTokensInteger')
168
236
  TokenUsageOutputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageOutputTokensInteger')
169
237
  TokenUsageTotalTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageTotalTokensInteger')
@@ -184,6 +252,10 @@ module Aws::BedrockRuntime
184
252
  ToolUseId = Shapes::StringShape.new(name: 'ToolUseId')
185
253
  Trace = Shapes::StringShape.new(name: 'Trace')
186
254
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
255
+ VideoBlock = Shapes::StructureShape.new(name: 'VideoBlock')
256
+ VideoFormat = Shapes::StringShape.new(name: 'VideoFormat')
257
+ VideoSource = Shapes::UnionShape.new(name: 'VideoSource')
258
+ VideoSourceBytesBlob = Shapes::BlobShape.new(name: 'VideoSourceBytesBlob')
187
259
 
188
260
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
189
261
  AccessDeniedException.struct_class = Types::AccessDeniedException
@@ -194,38 +266,84 @@ module Aws::BedrockRuntime
194
266
  ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
195
267
  ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
196
268
  ApplyGuardrailRequest.add_member(:content, Shapes::ShapeRef.new(shape: GuardrailContentBlockList, required: true, location_name: "content"))
269
+ ApplyGuardrailRequest.add_member(:output_scope, Shapes::ShapeRef.new(shape: GuardrailOutputScope, location_name: "outputScope"))
197
270
  ApplyGuardrailRequest.struct_class = Types::ApplyGuardrailRequest
198
271
 
199
272
  ApplyGuardrailResponse.add_member(:usage, Shapes::ShapeRef.new(shape: GuardrailUsage, required: true, location_name: "usage"))
200
273
  ApplyGuardrailResponse.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action"))
274
+ ApplyGuardrailResponse.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
201
275
  ApplyGuardrailResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GuardrailOutputContentList, required: true, location_name: "outputs"))
202
276
  ApplyGuardrailResponse.add_member(:assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentList, required: true, location_name: "assessments"))
203
277
  ApplyGuardrailResponse.add_member(:guardrail_coverage, Shapes::ShapeRef.new(shape: GuardrailCoverage, location_name: "guardrailCoverage"))
204
278
  ApplyGuardrailResponse.struct_class = Types::ApplyGuardrailResponse
205
279
 
280
+ AsyncInvokeOutputDataConfig.add_member(:s3_output_data_config, Shapes::ShapeRef.new(shape: AsyncInvokeS3OutputDataConfig, location_name: "s3OutputDataConfig"))
281
+ AsyncInvokeOutputDataConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
282
+ AsyncInvokeOutputDataConfig.add_member_subclass(:s3_output_data_config, Types::AsyncInvokeOutputDataConfig::S3OutputDataConfig)
283
+ AsyncInvokeOutputDataConfig.add_member_subclass(:unknown, Types::AsyncInvokeOutputDataConfig::Unknown)
284
+ AsyncInvokeOutputDataConfig.struct_class = Types::AsyncInvokeOutputDataConfig
285
+
286
+ AsyncInvokeS3OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
287
+ AsyncInvokeS3OutputDataConfig.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
288
+ AsyncInvokeS3OutputDataConfig.add_member(:bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "bucketOwner"))
289
+ AsyncInvokeS3OutputDataConfig.struct_class = Types::AsyncInvokeS3OutputDataConfig
290
+
291
+ AsyncInvokeSummaries.member = Shapes::ShapeRef.new(shape: AsyncInvokeSummary)
292
+
293
+ AsyncInvokeSummary.add_member(:invocation_arn, Shapes::ShapeRef.new(shape: InvocationArn, required: true, location_name: "invocationArn"))
294
+ AsyncInvokeSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: AsyncInvokeArn, required: true, location_name: "modelArn"))
295
+ AsyncInvokeSummary.add_member(:client_request_token, Shapes::ShapeRef.new(shape: AsyncInvokeIdempotencyToken, location_name: "clientRequestToken"))
296
+ AsyncInvokeSummary.add_member(:status, Shapes::ShapeRef.new(shape: AsyncInvokeStatus, location_name: "status"))
297
+ AsyncInvokeSummary.add_member(:failure_message, Shapes::ShapeRef.new(shape: AsyncInvokeMessage, location_name: "failureMessage"))
298
+ AsyncInvokeSummary.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "submitTime"))
299
+ AsyncInvokeSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
300
+ AsyncInvokeSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
301
+ AsyncInvokeSummary.add_member(:output_data_config, Shapes::ShapeRef.new(shape: AsyncInvokeOutputDataConfig, required: true, location_name: "outputDataConfig"))
302
+ AsyncInvokeSummary.struct_class = Types::AsyncInvokeSummary
303
+
206
304
  AutoToolChoice.struct_class = Types::AutoToolChoice
207
305
 
306
+ BidirectionalInputPayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
307
+ BidirectionalInputPayloadPart.struct_class = Types::BidirectionalInputPayloadPart
308
+
309
+ BidirectionalOutputPayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
310
+ BidirectionalOutputPayloadPart.struct_class = Types::BidirectionalOutputPayloadPart
311
+
312
+ CachePointBlock.add_member(:type, Shapes::ShapeRef.new(shape: CachePointType, required: true, location_name: "type"))
313
+ CachePointBlock.struct_class = Types::CachePointBlock
314
+
315
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
316
+ ConflictException.struct_class = Types::ConflictException
317
+
208
318
  ContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
209
319
  ContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
210
320
  ContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
321
+ ContentBlock.add_member(:video, Shapes::ShapeRef.new(shape: VideoBlock, location_name: "video"))
211
322
  ContentBlock.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlock, location_name: "toolUse"))
212
323
  ContentBlock.add_member(:tool_result, Shapes::ShapeRef.new(shape: ToolResultBlock, location_name: "toolResult"))
213
324
  ContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent"))
325
+ ContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
326
+ ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
214
327
  ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
215
328
  ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
216
329
  ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
217
330
  ContentBlock.add_member_subclass(:document, Types::ContentBlock::Document)
331
+ ContentBlock.add_member_subclass(:video, Types::ContentBlock::Video)
218
332
  ContentBlock.add_member_subclass(:tool_use, Types::ContentBlock::ToolUse)
219
333
  ContentBlock.add_member_subclass(:tool_result, Types::ContentBlock::ToolResult)
220
334
  ContentBlock.add_member_subclass(:guard_content, Types::ContentBlock::GuardContent)
335
+ ContentBlock.add_member_subclass(:cache_point, Types::ContentBlock::CachePoint)
336
+ ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
221
337
  ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
222
338
  ContentBlock.struct_class = Types::ContentBlock
223
339
 
224
340
  ContentBlockDelta.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
225
341
  ContentBlockDelta.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlockDelta, location_name: "toolUse"))
342
+ ContentBlockDelta.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlockDelta, location_name: "reasoningContent"))
226
343
  ContentBlockDelta.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
227
344
  ContentBlockDelta.add_member_subclass(:text, Types::ContentBlockDelta::Text)
228
345
  ContentBlockDelta.add_member_subclass(:tool_use, Types::ContentBlockDelta::ToolUse)
346
+ ContentBlockDelta.add_member_subclass(:reasoning_content, Types::ContentBlockDelta::ReasoningContent)
229
347
  ContentBlockDelta.add_member_subclass(:unknown, Types::ContentBlockDelta::Unknown)
230
348
  ContentBlockDelta.struct_class = Types::ContentBlockDelta
231
349
 
@@ -258,13 +376,16 @@ module Aws::BedrockRuntime
258
376
  ConverseOutput.struct_class = Types::ConverseOutput
259
377
 
260
378
  ConverseRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ConversationalModelId, required: true, location: "uri", location_name: "modelId"))
261
- ConverseRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages"))
379
+ ConverseRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
262
380
  ConverseRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
263
381
  ConverseRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig"))
264
382
  ConverseRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
265
383
  ConverseRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfig"))
266
384
  ConverseRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
385
+ ConverseRequest.add_member(:prompt_variables, Shapes::ShapeRef.new(shape: PromptVariableMap, location_name: "promptVariables"))
267
386
  ConverseRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
387
+ ConverseRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
388
+ ConverseRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
268
389
  ConverseRequest.struct_class = Types::ConverseRequest
269
390
 
270
391
  ConverseRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsListMemberString)
@@ -275,11 +396,13 @@ module Aws::BedrockRuntime
275
396
  ConverseResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseMetrics, required: true, location_name: "metrics"))
276
397
  ConverseResponse.add_member(:additional_model_response_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelResponseFields"))
277
398
  ConverseResponse.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseTrace, location_name: "trace"))
399
+ ConverseResponse.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
278
400
  ConverseResponse.struct_class = Types::ConverseResponse
279
401
 
280
402
  ConverseStreamMetadataEvent.add_member(:usage, Shapes::ShapeRef.new(shape: TokenUsage, required: true, location_name: "usage"))
281
403
  ConverseStreamMetadataEvent.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseStreamMetrics, required: true, location_name: "metrics"))
282
404
  ConverseStreamMetadataEvent.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseStreamTrace, location_name: "trace"))
405
+ ConverseStreamMetadataEvent.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
283
406
  ConverseStreamMetadataEvent.struct_class = Types::ConverseStreamMetadataEvent
284
407
 
285
408
  ConverseStreamMetrics.add_member(:latency_ms, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "latencyMs"))
@@ -299,13 +422,16 @@ module Aws::BedrockRuntime
299
422
  ConverseStreamOutput.struct_class = Types::ConverseStreamOutput
300
423
 
301
424
  ConverseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ConversationalModelId, required: true, location: "uri", location_name: "modelId"))
302
- ConverseStreamRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages"))
425
+ ConverseStreamRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
303
426
  ConverseStreamRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
304
427
  ConverseStreamRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig"))
305
428
  ConverseStreamRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
306
429
  ConverseStreamRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailStreamConfiguration, location_name: "guardrailConfig"))
307
430
  ConverseStreamRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
431
+ ConverseStreamRequest.add_member(:prompt_variables, Shapes::ShapeRef.new(shape: PromptVariableMap, location_name: "promptVariables"))
308
432
  ConverseStreamRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
433
+ ConverseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
434
+ ConverseStreamRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
309
435
  ConverseStreamRequest.struct_class = Types::ConverseStreamRequest
310
436
 
311
437
  ConverseStreamRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString)
@@ -316,9 +442,11 @@ module Aws::BedrockRuntime
316
442
  ConverseStreamResponse[:payload_member] = ConverseStreamResponse.member(:stream)
317
443
 
318
444
  ConverseStreamTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
445
+ ConverseStreamTrace.add_member(:prompt_router, Shapes::ShapeRef.new(shape: PromptRouterTrace, location_name: "promptRouter"))
319
446
  ConverseStreamTrace.struct_class = Types::ConverseStreamTrace
320
447
 
321
448
  ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
449
+ ConverseTrace.add_member(:prompt_router, Shapes::ShapeRef.new(shape: PromptRouterTrace, location_name: "promptRouter"))
322
450
  ConverseTrace.struct_class = Types::ConverseTrace
323
451
 
324
452
  DocumentBlock.add_member(:format, Shapes::ShapeRef.new(shape: DocumentFormat, required: true, location_name: "format"))
@@ -332,6 +460,20 @@ module Aws::BedrockRuntime
332
460
  DocumentSource.add_member_subclass(:unknown, Types::DocumentSource::Unknown)
333
461
  DocumentSource.struct_class = Types::DocumentSource
334
462
 
463
+ GetAsyncInvokeRequest.add_member(:invocation_arn, Shapes::ShapeRef.new(shape: InvocationArn, required: true, location: "uri", location_name: "invocationArn"))
464
+ GetAsyncInvokeRequest.struct_class = Types::GetAsyncInvokeRequest
465
+
466
+ GetAsyncInvokeResponse.add_member(:invocation_arn, Shapes::ShapeRef.new(shape: InvocationArn, required: true, location_name: "invocationArn"))
467
+ GetAsyncInvokeResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: AsyncInvokeArn, required: true, location_name: "modelArn"))
468
+ GetAsyncInvokeResponse.add_member(:client_request_token, Shapes::ShapeRef.new(shape: AsyncInvokeIdempotencyToken, location_name: "clientRequestToken"))
469
+ GetAsyncInvokeResponse.add_member(:status, Shapes::ShapeRef.new(shape: AsyncInvokeStatus, required: true, location_name: "status"))
470
+ GetAsyncInvokeResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: AsyncInvokeMessage, location_name: "failureMessage"))
471
+ GetAsyncInvokeResponse.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "submitTime"))
472
+ GetAsyncInvokeResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
473
+ GetAsyncInvokeResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
474
+ GetAsyncInvokeResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: AsyncInvokeOutputDataConfig, required: true, location_name: "outputDataConfig"))
475
+ GetAsyncInvokeResponse.struct_class = Types::GetAsyncInvokeResponse
476
+
335
477
  GuardrailAssessment.add_member(:topic_policy, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAssessment, location_name: "topicPolicy"))
336
478
  GuardrailAssessment.add_member(:content_policy, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAssessment, location_name: "contentPolicy"))
337
479
  GuardrailAssessment.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAssessment, location_name: "wordPolicy"))
@@ -354,8 +496,10 @@ module Aws::BedrockRuntime
354
496
  GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
355
497
 
356
498
  GuardrailContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailTextBlock, location_name: "text"))
499
+ GuardrailContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: GuardrailImageBlock, location_name: "image"))
357
500
  GuardrailContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
358
501
  GuardrailContentBlock.add_member_subclass(:text, Types::GuardrailContentBlock::Text)
502
+ GuardrailContentBlock.add_member_subclass(:image, Types::GuardrailContentBlock::Image)
359
503
  GuardrailContentBlock.add_member_subclass(:unknown, Types::GuardrailContentBlock::Unknown)
360
504
  GuardrailContentBlock.struct_class = Types::GuardrailContentBlock
361
505
 
@@ -365,6 +509,7 @@ module Aws::BedrockRuntime
365
509
  GuardrailContentFilter.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailContentFilterConfidence, required: true, location_name: "confidence"))
366
510
  GuardrailContentFilter.add_member(:filter_strength, Shapes::ShapeRef.new(shape: GuardrailContentFilterStrength, location_name: "filterStrength"))
367
511
  GuardrailContentFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAction, required: true, location_name: "action"))
512
+ GuardrailContentFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
368
513
  GuardrailContentFilter.struct_class = Types::GuardrailContentFilter
369
514
 
370
515
  GuardrailContentFilterList.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter)
@@ -378,6 +523,7 @@ module Aws::BedrockRuntime
378
523
  GuardrailContextualGroundingFilter.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterThresholdDouble, required: true, location_name: "threshold"))
379
524
  GuardrailContextualGroundingFilter.add_member(:score, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterScoreDouble, required: true, location_name: "score"))
380
525
  GuardrailContextualGroundingFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAction, required: true, location_name: "action"))
526
+ GuardrailContextualGroundingFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
381
527
  GuardrailContextualGroundingFilter.struct_class = Types::GuardrailContextualGroundingFilter
382
528
 
383
529
  GuardrailContextualGroundingFilters.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilter)
@@ -386,26 +532,54 @@ module Aws::BedrockRuntime
386
532
  GuardrailContextualGroundingPolicyAssessment.struct_class = Types::GuardrailContextualGroundingPolicyAssessment
387
533
 
388
534
  GuardrailConverseContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailConverseTextBlock, location_name: "text"))
535
+ GuardrailConverseContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: GuardrailConverseImageBlock, location_name: "image"))
389
536
  GuardrailConverseContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
390
537
  GuardrailConverseContentBlock.add_member_subclass(:text, Types::GuardrailConverseContentBlock::Text)
538
+ GuardrailConverseContentBlock.add_member_subclass(:image, Types::GuardrailConverseContentBlock::Image)
391
539
  GuardrailConverseContentBlock.add_member_subclass(:unknown, Types::GuardrailConverseContentBlock::Unknown)
392
540
  GuardrailConverseContentBlock.struct_class = Types::GuardrailConverseContentBlock
393
541
 
394
542
  GuardrailConverseContentQualifierList.member = Shapes::ShapeRef.new(shape: GuardrailConverseContentQualifier)
395
543
 
544
+ GuardrailConverseImageBlock.add_member(:format, Shapes::ShapeRef.new(shape: GuardrailConverseImageFormat, required: true, location_name: "format"))
545
+ GuardrailConverseImageBlock.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailConverseImageSource, required: true, location_name: "source"))
546
+ GuardrailConverseImageBlock.struct_class = Types::GuardrailConverseImageBlock
547
+
548
+ GuardrailConverseImageSource.add_member(:bytes, Shapes::ShapeRef.new(shape: GuardrailConverseImageSourceBytesBlob, location_name: "bytes"))
549
+ GuardrailConverseImageSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
550
+ GuardrailConverseImageSource.add_member_subclass(:bytes, Types::GuardrailConverseImageSource::Bytes)
551
+ GuardrailConverseImageSource.add_member_subclass(:unknown, Types::GuardrailConverseImageSource::Unknown)
552
+ GuardrailConverseImageSource.struct_class = Types::GuardrailConverseImageSource
553
+
396
554
  GuardrailConverseTextBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
397
555
  GuardrailConverseTextBlock.add_member(:qualifiers, Shapes::ShapeRef.new(shape: GuardrailConverseContentQualifierList, location_name: "qualifiers"))
398
556
  GuardrailConverseTextBlock.struct_class = Types::GuardrailConverseTextBlock
399
557
 
400
558
  GuardrailCoverage.add_member(:text_characters, Shapes::ShapeRef.new(shape: GuardrailTextCharactersCoverage, location_name: "textCharacters"))
559
+ GuardrailCoverage.add_member(:images, Shapes::ShapeRef.new(shape: GuardrailImageCoverage, location_name: "images"))
401
560
  GuardrailCoverage.struct_class = Types::GuardrailCoverage
402
561
 
403
562
  GuardrailCustomWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
404
563
  GuardrailCustomWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
564
+ GuardrailCustomWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
405
565
  GuardrailCustomWord.struct_class = Types::GuardrailCustomWord
406
566
 
407
567
  GuardrailCustomWordList.member = Shapes::ShapeRef.new(shape: GuardrailCustomWord)
408
568
 
569
+ GuardrailImageBlock.add_member(:format, Shapes::ShapeRef.new(shape: GuardrailImageFormat, required: true, location_name: "format"))
570
+ GuardrailImageBlock.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailImageSource, required: true, location_name: "source"))
571
+ GuardrailImageBlock.struct_class = Types::GuardrailImageBlock
572
+
573
+ GuardrailImageCoverage.add_member(:guarded, Shapes::ShapeRef.new(shape: ImagesGuarded, location_name: "guarded"))
574
+ GuardrailImageCoverage.add_member(:total, Shapes::ShapeRef.new(shape: ImagesTotal, location_name: "total"))
575
+ GuardrailImageCoverage.struct_class = Types::GuardrailImageCoverage
576
+
577
+ GuardrailImageSource.add_member(:bytes, Shapes::ShapeRef.new(shape: GuardrailImageSourceBytesBlob, location_name: "bytes"))
578
+ GuardrailImageSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
579
+ GuardrailImageSource.add_member_subclass(:bytes, Types::GuardrailImageSource::Bytes)
580
+ GuardrailImageSource.add_member_subclass(:unknown, Types::GuardrailImageSource::Unknown)
581
+ GuardrailImageSource.struct_class = Types::GuardrailImageSource
582
+
409
583
  GuardrailInvocationMetrics.add_member(:guardrail_processing_latency, Shapes::ShapeRef.new(shape: GuardrailProcessingLatency, location_name: "guardrailProcessingLatency"))
410
584
  GuardrailInvocationMetrics.add_member(:usage, Shapes::ShapeRef.new(shape: GuardrailUsage, location_name: "usage"))
411
585
  GuardrailInvocationMetrics.add_member(:guardrail_coverage, Shapes::ShapeRef.new(shape: GuardrailCoverage, location_name: "guardrailCoverage"))
@@ -414,6 +588,7 @@ module Aws::BedrockRuntime
414
588
  GuardrailManagedWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
415
589
  GuardrailManagedWord.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordType, required: true, location_name: "type"))
416
590
  GuardrailManagedWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
591
+ GuardrailManagedWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
417
592
  GuardrailManagedWord.struct_class = Types::GuardrailManagedWord
418
593
 
419
594
  GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
@@ -426,6 +601,7 @@ module Aws::BedrockRuntime
426
601
  GuardrailPiiEntityFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
427
602
  GuardrailPiiEntityFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
428
603
  GuardrailPiiEntityFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
604
+ GuardrailPiiEntityFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
429
605
  GuardrailPiiEntityFilter.struct_class = Types::GuardrailPiiEntityFilter
430
606
 
431
607
  GuardrailPiiEntityFilterList.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntityFilter)
@@ -434,6 +610,7 @@ module Aws::BedrockRuntime
434
610
  GuardrailRegexFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, location_name: "match"))
435
611
  GuardrailRegexFilter.add_member(:regex, Shapes::ShapeRef.new(shape: String, location_name: "regex"))
436
612
  GuardrailRegexFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
613
+ GuardrailRegexFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
437
614
  GuardrailRegexFilter.struct_class = Types::GuardrailRegexFilter
438
615
 
439
616
  GuardrailRegexFilterList.member = Shapes::ShapeRef.new(shape: GuardrailRegexFilter)
@@ -459,6 +636,7 @@ module Aws::BedrockRuntime
459
636
  GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
460
637
  GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type"))
461
638
  GuardrailTopic.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAction, required: true, location_name: "action"))
639
+ GuardrailTopic.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
462
640
  GuardrailTopic.struct_class = Types::GuardrailTopic
463
641
 
464
642
  GuardrailTopicList.member = Shapes::ShapeRef.new(shape: GuardrailTopic)
@@ -469,6 +647,7 @@ module Aws::BedrockRuntime
469
647
  GuardrailTraceAssessment.add_member(:model_output, Shapes::ShapeRef.new(shape: ModelOutputs, location_name: "modelOutput"))
470
648
  GuardrailTraceAssessment.add_member(:input_assessment, Shapes::ShapeRef.new(shape: GuardrailAssessmentMap, location_name: "inputAssessment"))
471
649
  GuardrailTraceAssessment.add_member(:output_assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentListMap, location_name: "outputAssessments"))
650
+ GuardrailTraceAssessment.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
472
651
  GuardrailTraceAssessment.struct_class = Types::GuardrailTraceAssessment
473
652
 
474
653
  GuardrailUsage.add_member(:topic_policy_units, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyUnitsProcessed, required: true, location_name: "topicPolicyUnits"))
@@ -477,6 +656,7 @@ module Aws::BedrockRuntime
477
656
  GuardrailUsage.add_member(:sensitive_information_policy_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyUnits"))
478
657
  GuardrailUsage.add_member(:sensitive_information_policy_free_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyFreeUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyFreeUnits"))
479
658
  GuardrailUsage.add_member(:contextual_grounding_policy_units, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyUnitsProcessed, required: true, location_name: "contextualGroundingPolicyUnits"))
659
+ GuardrailUsage.add_member(:content_policy_image_units, Shapes::ShapeRef.new(shape: GuardrailContentPolicyImageUnitsProcessed, location_name: "contentPolicyImageUnits"))
480
660
  GuardrailUsage.struct_class = Types::GuardrailUsage
481
661
 
482
662
  GuardrailWordPolicyAssessment.add_member(:custom_words, Shapes::ShapeRef.new(shape: GuardrailCustomWordList, required: true, location_name: "customWords"))
@@ -504,40 +684,80 @@ module Aws::BedrockRuntime
504
684
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
505
685
  InternalServerException.struct_class = Types::InternalServerException
506
686
 
507
- InvokeModelRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
687
+ InvokeModelRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, location_name: "body"))
508
688
  InvokeModelRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type"))
509
689
  InvokeModelRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Accept"))
510
690
  InvokeModelRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId"))
511
691
  InvokeModelRequest.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location: "header", location_name: "X-Amzn-Bedrock-Trace"))
512
692
  InvokeModelRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
513
693
  InvokeModelRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
694
+ InvokeModelRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
514
695
  InvokeModelRequest.struct_class = Types::InvokeModelRequest
515
696
  InvokeModelRequest[:payload] = :body
516
697
  InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body)
517
698
 
518
699
  InvokeModelResponse.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
519
700
  InvokeModelResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "Content-Type"))
701
+ InvokeModelResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
520
702
  InvokeModelResponse.struct_class = Types::InvokeModelResponse
521
703
  InvokeModelResponse[:payload] = :body
522
704
  InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body)
523
705
 
524
- InvokeModelWithResponseStreamRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
706
+ InvokeModelWithBidirectionalStreamInput.add_member(:chunk, Shapes::ShapeRef.new(shape: BidirectionalInputPayloadPart, event: true, location_name: "chunk"))
707
+ InvokeModelWithBidirectionalStreamInput.struct_class = Types::InvokeModelWithBidirectionalStreamInput
708
+
709
+ InvokeModelWithBidirectionalStreamOutput.add_member(:chunk, Shapes::ShapeRef.new(shape: BidirectionalOutputPayloadPart, event: true, location_name: "chunk"))
710
+ InvokeModelWithBidirectionalStreamOutput.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
711
+ InvokeModelWithBidirectionalStreamOutput.add_member(:model_stream_error_exception, Shapes::ShapeRef.new(shape: ModelStreamErrorException, location_name: "modelStreamErrorException"))
712
+ InvokeModelWithBidirectionalStreamOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
713
+ InvokeModelWithBidirectionalStreamOutput.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
714
+ InvokeModelWithBidirectionalStreamOutput.add_member(:model_timeout_exception, Shapes::ShapeRef.new(shape: ModelTimeoutException, location_name: "modelTimeoutException"))
715
+ InvokeModelWithBidirectionalStreamOutput.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException"))
716
+ InvokeModelWithBidirectionalStreamOutput.struct_class = Types::InvokeModelWithBidirectionalStreamOutput
717
+
718
+ InvokeModelWithBidirectionalStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId"))
719
+ InvokeModelWithBidirectionalStreamRequest.add_member(:body, Shapes::ShapeRef.new(shape: InvokeModelWithBidirectionalStreamInput, required: true, eventstream: true, location_name: "body"))
720
+ InvokeModelWithBidirectionalStreamRequest.struct_class = Types::InvokeModelWithBidirectionalStreamRequest
721
+ InvokeModelWithBidirectionalStreamRequest[:payload] = :body
722
+ InvokeModelWithBidirectionalStreamRequest[:payload_member] = InvokeModelWithBidirectionalStreamRequest.member(:body)
723
+
724
+ InvokeModelWithBidirectionalStreamResponse.add_member(:body, Shapes::ShapeRef.new(shape: InvokeModelWithBidirectionalStreamOutput, required: true, eventstream: true, location_name: "body"))
725
+ InvokeModelWithBidirectionalStreamResponse.struct_class = Types::InvokeModelWithBidirectionalStreamResponse
726
+ InvokeModelWithBidirectionalStreamResponse[:payload] = :body
727
+ InvokeModelWithBidirectionalStreamResponse[:payload_member] = InvokeModelWithBidirectionalStreamResponse.member(:body)
728
+
729
+ InvokeModelWithResponseStreamRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, location_name: "body"))
525
730
  InvokeModelWithResponseStreamRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type"))
526
731
  InvokeModelWithResponseStreamRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "X-Amzn-Bedrock-Accept"))
527
732
  InvokeModelWithResponseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId"))
528
733
  InvokeModelWithResponseStreamRequest.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location: "header", location_name: "X-Amzn-Bedrock-Trace"))
529
734
  InvokeModelWithResponseStreamRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
530
735
  InvokeModelWithResponseStreamRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
736
+ InvokeModelWithResponseStreamRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
531
737
  InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
532
738
  InvokeModelWithResponseStreamRequest[:payload] = :body
533
739
  InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body)
534
740
 
535
741
  InvokeModelWithResponseStreamResponse.add_member(:body, Shapes::ShapeRef.new(shape: ResponseStream, required: true, eventstream: true, location_name: "body"))
536
742
  InvokeModelWithResponseStreamResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "X-Amzn-Bedrock-Content-Type"))
743
+ InvokeModelWithResponseStreamResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
537
744
  InvokeModelWithResponseStreamResponse.struct_class = Types::InvokeModelWithResponseStreamResponse
538
745
  InvokeModelWithResponseStreamResponse[:payload] = :body
539
746
  InvokeModelWithResponseStreamResponse[:payload_member] = InvokeModelWithResponseStreamResponse.member(:body)
540
747
 
748
+ ListAsyncInvokesRequest.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "submitTimeAfter"))
749
+ ListAsyncInvokesRequest.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "submitTimeBefore"))
750
+ ListAsyncInvokesRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: AsyncInvokeStatus, location: "querystring", location_name: "statusEquals"))
751
+ ListAsyncInvokesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
752
+ ListAsyncInvokesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
753
+ ListAsyncInvokesRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortAsyncInvocationBy, location: "querystring", location_name: "sortBy"))
754
+ ListAsyncInvokesRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
755
+ ListAsyncInvokesRequest.struct_class = Types::ListAsyncInvokesRequest
756
+
757
+ ListAsyncInvokesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
758
+ ListAsyncInvokesResponse.add_member(:async_invoke_summaries, Shapes::ShapeRef.new(shape: AsyncInvokeSummaries, location_name: "asyncInvokeSummaries"))
759
+ ListAsyncInvokesResponse.struct_class = Types::ListAsyncInvokesResponse
760
+
541
761
  Message.add_member(:role, Shapes::ShapeRef.new(shape: ConversationRole, required: true, location_name: "role"))
542
762
  Message.add_member(:content, Shapes::ShapeRef.new(shape: ContentBlocks, required: true, location_name: "content"))
543
763
  Message.struct_class = Types::Message
@@ -572,6 +792,46 @@ module Aws::BedrockRuntime
572
792
  PayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
573
793
  PayloadPart.struct_class = Types::PayloadPart
574
794
 
795
+ PerformanceConfiguration.add_member(:latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location_name: "latency"))
796
+ PerformanceConfiguration.struct_class = Types::PerformanceConfiguration
797
+
798
+ PromptRouterTrace.add_member(:invoked_model_id, Shapes::ShapeRef.new(shape: InvokedModelId, location_name: "invokedModelId"))
799
+ PromptRouterTrace.struct_class = Types::PromptRouterTrace
800
+
801
+ PromptVariableMap.key = Shapes::ShapeRef.new(shape: String)
802
+ PromptVariableMap.value = Shapes::ShapeRef.new(shape: PromptVariableValues)
803
+
804
+ PromptVariableValues.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
805
+ PromptVariableValues.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
806
+ PromptVariableValues.add_member_subclass(:text, Types::PromptVariableValues::Text)
807
+ PromptVariableValues.add_member_subclass(:unknown, Types::PromptVariableValues::Unknown)
808
+ PromptVariableValues.struct_class = Types::PromptVariableValues
809
+
810
+ ReasoningContentBlock.add_member(:reasoning_text, Shapes::ShapeRef.new(shape: ReasoningTextBlock, location_name: "reasoningText"))
811
+ ReasoningContentBlock.add_member(:redacted_content, Shapes::ShapeRef.new(shape: Blob, location_name: "redactedContent"))
812
+ ReasoningContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
813
+ ReasoningContentBlock.add_member_subclass(:reasoning_text, Types::ReasoningContentBlock::ReasoningText)
814
+ ReasoningContentBlock.add_member_subclass(:redacted_content, Types::ReasoningContentBlock::RedactedContent)
815
+ ReasoningContentBlock.add_member_subclass(:unknown, Types::ReasoningContentBlock::Unknown)
816
+ ReasoningContentBlock.struct_class = Types::ReasoningContentBlock
817
+
818
+ ReasoningContentBlockDelta.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
819
+ ReasoningContentBlockDelta.add_member(:redacted_content, Shapes::ShapeRef.new(shape: Blob, location_name: "redactedContent"))
820
+ ReasoningContentBlockDelta.add_member(:signature, Shapes::ShapeRef.new(shape: String, location_name: "signature"))
821
+ ReasoningContentBlockDelta.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
822
+ ReasoningContentBlockDelta.add_member_subclass(:text, Types::ReasoningContentBlockDelta::Text)
823
+ ReasoningContentBlockDelta.add_member_subclass(:redacted_content, Types::ReasoningContentBlockDelta::RedactedContent)
824
+ ReasoningContentBlockDelta.add_member_subclass(:signature, Types::ReasoningContentBlockDelta::Signature)
825
+ ReasoningContentBlockDelta.add_member_subclass(:unknown, Types::ReasoningContentBlockDelta::Unknown)
826
+ ReasoningContentBlockDelta.struct_class = Types::ReasoningContentBlockDelta
827
+
828
+ ReasoningTextBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
829
+ ReasoningTextBlock.add_member(:signature, Shapes::ShapeRef.new(shape: String, location_name: "signature"))
830
+ ReasoningTextBlock.struct_class = Types::ReasoningTextBlock
831
+
832
+ RequestMetadata.key = Shapes::ShapeRef.new(shape: RequestMetadataKeyString)
833
+ RequestMetadata.value = Shapes::ShapeRef.new(shape: RequestMetadataValueString)
834
+
575
835
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
576
836
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
577
837
 
@@ -584,6 +844,10 @@ module Aws::BedrockRuntime
584
844
  ResponseStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException"))
585
845
  ResponseStream.struct_class = Types::ResponseStream
586
846
 
847
+ S3Location.add_member(:uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "uri"))
848
+ S3Location.add_member(:bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "bucketOwner"))
849
+ S3Location.struct_class = Types::S3Location
850
+
587
851
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
588
852
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
589
853
 
@@ -593,27 +857,49 @@ module Aws::BedrockRuntime
593
857
  SpecificToolChoice.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name"))
594
858
  SpecificToolChoice.struct_class = Types::SpecificToolChoice
595
859
 
860
+ StartAsyncInvokeRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: AsyncInvokeIdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
861
+ StartAsyncInvokeRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: AsyncInvokeIdentifier, required: true, location_name: "modelId"))
862
+ StartAsyncInvokeRequest.add_member(:model_input, Shapes::ShapeRef.new(shape: ModelInputPayload, required: true, location_name: "modelInput"))
863
+ StartAsyncInvokeRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: AsyncInvokeOutputDataConfig, required: true, location_name: "outputDataConfig"))
864
+ StartAsyncInvokeRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
865
+ StartAsyncInvokeRequest.struct_class = Types::StartAsyncInvokeRequest
866
+
867
+ StartAsyncInvokeResponse.add_member(:invocation_arn, Shapes::ShapeRef.new(shape: InvocationArn, required: true, location_name: "invocationArn"))
868
+ StartAsyncInvokeResponse.struct_class = Types::StartAsyncInvokeResponse
869
+
596
870
  SystemContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "text"))
597
871
  SystemContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent"))
872
+ SystemContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
598
873
  SystemContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
599
874
  SystemContentBlock.add_member_subclass(:text, Types::SystemContentBlock::Text)
600
875
  SystemContentBlock.add_member_subclass(:guard_content, Types::SystemContentBlock::GuardContent)
876
+ SystemContentBlock.add_member_subclass(:cache_point, Types::SystemContentBlock::CachePoint)
601
877
  SystemContentBlock.add_member_subclass(:unknown, Types::SystemContentBlock::Unknown)
602
878
  SystemContentBlock.struct_class = Types::SystemContentBlock
603
879
 
604
880
  SystemContentBlocks.member = Shapes::ShapeRef.new(shape: SystemContentBlock)
605
881
 
882
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
883
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
884
+ Tag.struct_class = Types::Tag
885
+
886
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
887
+
606
888
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
607
889
  ThrottlingException.struct_class = Types::ThrottlingException
608
890
 
609
891
  TokenUsage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: TokenUsageInputTokensInteger, required: true, location_name: "inputTokens"))
610
892
  TokenUsage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: TokenUsageOutputTokensInteger, required: true, location_name: "outputTokens"))
611
893
  TokenUsage.add_member(:total_tokens, Shapes::ShapeRef.new(shape: TokenUsageTotalTokensInteger, required: true, location_name: "totalTokens"))
894
+ TokenUsage.add_member(:cache_read_input_tokens, Shapes::ShapeRef.new(shape: TokenUsageCacheReadInputTokensInteger, location_name: "cacheReadInputTokens"))
895
+ TokenUsage.add_member(:cache_write_input_tokens, Shapes::ShapeRef.new(shape: TokenUsageCacheWriteInputTokensInteger, location_name: "cacheWriteInputTokens"))
612
896
  TokenUsage.struct_class = Types::TokenUsage
613
897
 
614
898
  Tool.add_member(:tool_spec, Shapes::ShapeRef.new(shape: ToolSpecification, location_name: "toolSpec"))
899
+ Tool.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
615
900
  Tool.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
616
901
  Tool.add_member_subclass(:tool_spec, Types::Tool::ToolSpec)
902
+ Tool.add_member_subclass(:cache_point, Types::Tool::CachePoint)
617
903
  Tool.add_member_subclass(:unknown, Types::Tool::Unknown)
618
904
  Tool.struct_class = Types::Tool
619
905
 
@@ -648,11 +934,13 @@ module Aws::BedrockRuntime
648
934
  ToolResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
649
935
  ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
650
936
  ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
937
+ ToolResultContentBlock.add_member(:video, Shapes::ShapeRef.new(shape: VideoBlock, location_name: "video"))
651
938
  ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
652
939
  ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json)
653
940
  ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text)
654
941
  ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image)
655
942
  ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document)
943
+ ToolResultContentBlock.add_member_subclass(:video, Types::ToolResultContentBlock::Video)
656
944
  ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown)
657
945
  ToolResultContentBlock.struct_class = Types::ToolResultContentBlock
658
946
 
@@ -678,6 +966,18 @@ module Aws::BedrockRuntime
678
966
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
679
967
  ValidationException.struct_class = Types::ValidationException
680
968
 
969
+ VideoBlock.add_member(:format, Shapes::ShapeRef.new(shape: VideoFormat, required: true, location_name: "format"))
970
+ VideoBlock.add_member(:source, Shapes::ShapeRef.new(shape: VideoSource, required: true, location_name: "source"))
971
+ VideoBlock.struct_class = Types::VideoBlock
972
+
973
+ VideoSource.add_member(:bytes, Shapes::ShapeRef.new(shape: VideoSourceBytesBlob, location_name: "bytes"))
974
+ VideoSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3Location"))
975
+ VideoSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
976
+ VideoSource.add_member_subclass(:bytes, Types::VideoSource::Bytes)
977
+ VideoSource.add_member_subclass(:s3_location, Types::VideoSource::S3Location)
978
+ VideoSource.add_member_subclass(:unknown, Types::VideoSource::Unknown)
979
+ VideoSource.struct_class = Types::VideoSource
980
+
681
981
 
682
982
  # @api private
683
983
  API = Seahorse::Model::Api.new.tap do |api|
@@ -689,6 +989,7 @@ module Aws::BedrockRuntime
689
989
  "auth" => ["aws.auth#sigv4"],
690
990
  "endpointPrefix" => "bedrock-runtime",
691
991
  "protocol" => "rest-json",
992
+ "protocolSettings" => {"h2"=>"optional"},
692
993
  "protocols" => ["rest-json"],
693
994
  "serviceFullName" => "Amazon Bedrock Runtime",
694
995
  "serviceId" => "Bedrock Runtime",
@@ -718,8 +1019,8 @@ module Aws::BedrockRuntime
718
1019
  o.input = Shapes::ShapeRef.new(shape: ConverseRequest)
719
1020
  o.output = Shapes::ShapeRef.new(shape: ConverseResponse)
720
1021
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
721
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
722
1022
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1023
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
723
1024
  o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
724
1025
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
725
1026
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
@@ -735,8 +1036,8 @@ module Aws::BedrockRuntime
735
1036
  o.input = Shapes::ShapeRef.new(shape: ConverseStreamRequest)
736
1037
  o.output = Shapes::ShapeRef.new(shape: ConverseStreamResponse)
737
1038
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
738
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
739
1039
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1040
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
740
1041
  o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
741
1042
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
742
1043
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
@@ -745,6 +1046,18 @@ module Aws::BedrockRuntime
745
1046
  o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
746
1047
  end)
747
1048
 
1049
+ api.add_operation(:get_async_invoke, Seahorse::Model::Operation.new.tap do |o|
1050
+ o.name = "GetAsyncInvoke"
1051
+ o.http_method = "GET"
1052
+ o.http_request_uri = "/async-invoke/{invocationArn}"
1053
+ o.input = Shapes::ShapeRef.new(shape: GetAsyncInvokeRequest)
1054
+ o.output = Shapes::ShapeRef.new(shape: GetAsyncInvokeResponse)
1055
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1056
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1057
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1058
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1059
+ end)
1060
+
748
1061
  api.add_operation(:invoke_model, Seahorse::Model::Operation.new.tap do |o|
749
1062
  o.name = "InvokeModel"
750
1063
  o.http_method = "POST"
@@ -758,9 +1071,29 @@ module Aws::BedrockRuntime
758
1071
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
759
1072
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
760
1073
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1074
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
761
1075
  o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
1076
+ o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
1077
+ end)
1078
+
1079
+ api.add_operation(:invoke_model_with_bidirectional_stream, Seahorse::Model::Operation.new.tap do |o|
1080
+ o.name = "InvokeModelWithBidirectionalStream"
1081
+ o.http_method = "POST"
1082
+ o.http_request_uri = "/model/{modelId}/invoke-with-bidirectional-stream"
1083
+ o.input = Shapes::ShapeRef.new(shape: InvokeModelWithBidirectionalStreamRequest)
1084
+ o.output = Shapes::ShapeRef.new(shape: InvokeModelWithBidirectionalStreamResponse)
1085
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1086
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1087
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1088
+ o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
1089
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1090
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1091
+ o.errors << Shapes::ShapeRef.new(shape: ModelStreamErrorException)
1092
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
762
1093
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1094
+ o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
763
1095
  o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
1096
+ o.async = true
764
1097
  end)
765
1098
 
766
1099
  api.add_operation(:invoke_model_with_response_stream, Seahorse::Model::Operation.new.tap do |o|
@@ -777,10 +1110,44 @@ module Aws::BedrockRuntime
777
1110
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
778
1111
  o.errors << Shapes::ShapeRef.new(shape: ModelStreamErrorException)
779
1112
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
780
- o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
781
1113
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1114
+ o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
782
1115
  o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
783
1116
  end)
1117
+
1118
+ api.add_operation(:list_async_invokes, Seahorse::Model::Operation.new.tap do |o|
1119
+ o.name = "ListAsyncInvokes"
1120
+ o.http_method = "GET"
1121
+ o.http_request_uri = "/async-invoke"
1122
+ o.input = Shapes::ShapeRef.new(shape: ListAsyncInvokesRequest)
1123
+ o.output = Shapes::ShapeRef.new(shape: ListAsyncInvokesResponse)
1124
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1125
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1126
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1127
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1128
+ o[:pager] = Aws::Pager.new(
1129
+ limit_key: "max_results",
1130
+ tokens: {
1131
+ "next_token" => "next_token"
1132
+ }
1133
+ )
1134
+ end)
1135
+
1136
+ api.add_operation(:start_async_invoke, Seahorse::Model::Operation.new.tap do |o|
1137
+ o.name = "StartAsyncInvoke"
1138
+ o.http_method = "POST"
1139
+ o.http_request_uri = "/async-invoke"
1140
+ o.input = Shapes::ShapeRef.new(shape: StartAsyncInvokeRequest)
1141
+ o.output = Shapes::ShapeRef.new(shape: StartAsyncInvokeResponse)
1142
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1143
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1144
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1145
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1146
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1147
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1148
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1149
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1150
+ end)
784
1151
  end
785
1152
 
786
1153
  end