aws-sdk-bedrockagent 1.62.0 → 1.63.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/client.rbs CHANGED
@@ -84,15 +84,15 @@ module Aws
84
84
  end
85
85
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#associate_agent_collaborator-instance_method
86
86
  def associate_agent_collaborator: (
87
+ agent_id: ::String,
88
+ agent_version: ::String,
87
89
  agent_descriptor: {
88
90
  alias_arn: ::String?
89
91
  },
90
- agent_id: ::String,
91
- agent_version: ::String,
92
- ?client_token: ::String,
93
- collaboration_instruction: ::String,
94
92
  collaborator_name: ::String,
95
- ?relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")
93
+ collaboration_instruction: ::String,
94
+ ?relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED"),
95
+ ?client_token: ::String
96
96
  ) -> _AssociateAgentCollaboratorResponseSuccess
97
97
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateAgentCollaboratorResponseSuccess
98
98
 
@@ -104,8 +104,8 @@ module Aws
104
104
  def associate_agent_knowledge_base: (
105
105
  agent_id: ::String,
106
106
  agent_version: ::String,
107
- description: ::String,
108
107
  knowledge_base_id: ::String,
108
+ description: ::String,
109
109
  ?knowledge_base_state: ("ENABLED" | "DISABLED")
110
110
  ) -> _AssociateAgentKnowledgeBaseResponseSuccess
111
111
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateAgentKnowledgeBaseResponseSuccess
@@ -116,55 +116,55 @@ module Aws
116
116
  end
117
117
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_agent-instance_method
118
118
  def create_agent: (
119
- ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
120
119
  agent_name: ::String,
121
- ?agent_resource_role_arn: ::String,
122
120
  ?client_token: ::String,
121
+ ?instruction: ::String,
122
+ ?foundation_model: ::String,
123
+ ?description: ::String,
124
+ ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
123
125
  ?custom_orchestration: {
124
126
  executor: {
125
127
  lambda: ::String?
126
128
  }?
127
129
  },
128
- ?customer_encryption_key_arn: ::String,
129
- ?description: ::String,
130
- ?foundation_model: ::String,
131
- ?guardrail_configuration: {
132
- guardrail_identifier: ::String?,
133
- guardrail_version: ::String?
134
- },
135
130
  ?idle_session_ttl_in_seconds: ::Integer,
136
- ?instruction: ::String,
137
- ?memory_configuration: {
138
- enabled_memory_types: Array[("SESSION_SUMMARY")],
139
- session_summary_configuration: {
140
- max_recent_sessions: ::Integer?
141
- }?,
142
- storage_days: ::Integer?
143
- },
144
- ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
131
+ ?agent_resource_role_arn: ::String,
132
+ ?customer_encryption_key_arn: ::String,
133
+ ?tags: Hash[::String, ::String],
145
134
  ?prompt_override_configuration: {
146
- override_lambda: ::String?,
147
135
  prompt_configurations: Array[
148
136
  {
149
- additional_model_request_fields: {
150
- }?,
137
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "POST_PROCESSING" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "MEMORY_SUMMARIZATION")?,
138
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
139
+ prompt_state: ("ENABLED" | "DISABLED")?,
151
140
  base_prompt_template: ::String?,
152
- foundation_model: ::String?,
153
141
  inference_configuration: {
154
- maximum_length: ::Integer?,
155
- stop_sequences: Array[::String]?,
156
142
  temperature: ::Float?,
143
+ top_p: ::Float?,
157
144
  top_k: ::Integer?,
158
- top_p: ::Float?
145
+ maximum_length: ::Integer?,
146
+ stop_sequences: Array[::String]?
159
147
  }?,
160
148
  parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
161
- prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
162
- prompt_state: ("ENABLED" | "DISABLED")?,
163
- prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "POST_PROCESSING" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "MEMORY_SUMMARIZATION")?
149
+ foundation_model: ::String?,
150
+ additional_model_request_fields: {
151
+ }?
164
152
  },
165
- ]
153
+ ],
154
+ override_lambda: ::String?
155
+ },
156
+ ?guardrail_configuration: {
157
+ guardrail_identifier: ::String?,
158
+ guardrail_version: ::String?
159
+ },
160
+ ?memory_configuration: {
161
+ enabled_memory_types: Array[("SESSION_SUMMARY")],
162
+ storage_days: ::Integer?,
163
+ session_summary_configuration: {
164
+ max_recent_sessions: ::Integer?
165
+ }?
166
166
  },
167
- ?tags: Hash[::String, ::String]
167
+ ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
168
168
  ) -> _CreateAgentResponseSuccess
169
169
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAgentResponseSuccess
170
170
 
@@ -174,39 +174,39 @@ module Aws
174
174
  end
175
175
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_agent_action_group-instance_method
176
176
  def create_agent_action_group: (
177
- ?action_group_executor: {
178
- custom_control: ("RETURN_CONTROL")?,
179
- lambda: ::String?
180
- },
181
- action_group_name: ::String,
182
- ?action_group_state: ("ENABLED" | "DISABLED"),
183
177
  agent_id: ::String,
184
178
  agent_version: ::String,
179
+ action_group_name: ::String,
180
+ ?client_token: ::String,
181
+ ?description: ::String,
182
+ ?parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor"),
183
+ ?parent_action_group_signature_params: Hash[::String, ::String],
184
+ ?action_group_executor: {
185
+ lambda: ::String?,
186
+ custom_control: ("RETURN_CONTROL")?
187
+ },
185
188
  ?api_schema: {
186
- payload: ::String?,
187
189
  s3: {
188
190
  s3_bucket_name: ::String?,
189
191
  s3_object_key: ::String?
190
- }?
192
+ }?,
193
+ payload: ::String?
191
194
  },
192
- ?client_token: ::String,
193
- ?description: ::String,
195
+ ?action_group_state: ("ENABLED" | "DISABLED"),
194
196
  ?function_schema: {
195
197
  functions: Array[
196
198
  {
197
- description: ::String?,
198
199
  name: ::String,
200
+ description: ::String?,
199
201
  parameters: Hash[::String, {
200
202
  description: ::String?,
201
- required: bool?,
202
- type: ("string" | "number" | "integer" | "boolean" | "array")
203
+ type: ("string" | "number" | "integer" | "boolean" | "array"),
204
+ required: bool?
203
205
  }]?,
204
206
  require_confirmation: ("ENABLED" | "DISABLED")?
205
207
  },
206
208
  ]?
207
- },
208
- ?parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor"),
209
- ?parent_action_group_signature_params: Hash[::String, ::String]
209
+ }
210
210
  ) -> _CreateAgentActionGroupResponseSuccess
211
211
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAgentActionGroupResponseSuccess
212
212
 
@@ -216,8 +216,8 @@ module Aws
216
216
  end
217
217
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_agent_alias-instance_method
218
218
  def create_agent_alias: (
219
- agent_alias_name: ::String,
220
219
  agent_id: ::String,
220
+ agent_alias_name: ::String,
221
221
  ?client_token: ::String,
222
222
  ?description: ::String,
223
223
  ?routing_configuration: Array[
@@ -236,108 +236,108 @@ module Aws
236
236
  end
237
237
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_data_source-instance_method
238
238
  def create_data_source: (
239
+ knowledge_base_id: ::String,
239
240
  ?client_token: ::String,
240
- ?data_deletion_policy: ("RETAIN" | "DELETE"),
241
+ name: ::String,
242
+ ?description: ::String,
241
243
  data_source_configuration: {
244
+ type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "REDSHIFT_METADATA"),
245
+ s3_configuration: {
246
+ bucket_arn: ::String,
247
+ inclusion_prefixes: Array[::String]?,
248
+ bucket_owner_account_id: ::String?
249
+ }?,
250
+ web_configuration: {
251
+ source_configuration: {
252
+ url_configuration: {
253
+ seed_urls: Array[
254
+ {
255
+ url: ::String?
256
+ },
257
+ ]?
258
+ }
259
+ },
260
+ crawler_configuration: {
261
+ crawler_limits: {
262
+ rate_limit: ::Integer?,
263
+ max_pages: ::Integer?
264
+ }?,
265
+ inclusion_filters: Array[::String]?,
266
+ exclusion_filters: Array[::String]?,
267
+ scope: ("HOST_ONLY" | "SUBDOMAINS")?,
268
+ user_agent: ::String?,
269
+ user_agent_header: ::String?
270
+ }?
271
+ }?,
242
272
  confluence_configuration: {
273
+ source_configuration: {
274
+ host_url: ::String,
275
+ host_type: ("SAAS"),
276
+ auth_type: ("BASIC" | "OAUTH2_CLIENT_CREDENTIALS"),
277
+ credentials_secret_arn: ::String
278
+ },
243
279
  crawler_configuration: {
244
280
  filter_configuration: {
281
+ type: ("PATTERN"),
245
282
  pattern_object_filter: {
246
283
  filters: Array[
247
284
  {
248
- exclusion_filters: Array[::String]?,
285
+ object_type: ::String,
249
286
  inclusion_filters: Array[::String]?,
250
- object_type: ::String
287
+ exclusion_filters: Array[::String]?
251
288
  },
252
289
  ]
253
- }?,
254
- type: ("PATTERN")
290
+ }?
255
291
  }?
256
- }?,
257
- source_configuration: {
258
- auth_type: ("BASIC" | "OAUTH2_CLIENT_CREDENTIALS"),
259
- credentials_secret_arn: ::String,
260
- host_type: ("SAAS"),
261
- host_url: ::String
262
- }
263
- }?,
264
- s3_configuration: {
265
- bucket_arn: ::String,
266
- bucket_owner_account_id: ::String?,
267
- inclusion_prefixes: Array[::String]?
292
+ }?
268
293
  }?,
269
294
  salesforce_configuration: {
295
+ source_configuration: {
296
+ host_url: ::String,
297
+ auth_type: ("OAUTH2_CLIENT_CREDENTIALS"),
298
+ credentials_secret_arn: ::String
299
+ },
270
300
  crawler_configuration: {
271
301
  filter_configuration: {
302
+ type: ("PATTERN"),
272
303
  pattern_object_filter: {
273
304
  filters: Array[
274
305
  {
275
- exclusion_filters: Array[::String]?,
306
+ object_type: ::String,
276
307
  inclusion_filters: Array[::String]?,
277
- object_type: ::String
308
+ exclusion_filters: Array[::String]?
278
309
  },
279
310
  ]
280
- }?,
281
- type: ("PATTERN")
311
+ }?
282
312
  }?
283
- }?,
284
- source_configuration: {
285
- auth_type: ("OAUTH2_CLIENT_CREDENTIALS"),
286
- credentials_secret_arn: ::String,
287
- host_url: ::String
288
- }
313
+ }?
289
314
  }?,
290
315
  share_point_configuration: {
316
+ source_configuration: {
317
+ tenant_id: ::String?,
318
+ domain: ::String,
319
+ site_urls: Array[::String],
320
+ host_type: ("ONLINE"),
321
+ auth_type: ("OAUTH2_CLIENT_CREDENTIALS" | "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS"),
322
+ credentials_secret_arn: ::String
323
+ },
291
324
  crawler_configuration: {
292
325
  filter_configuration: {
326
+ type: ("PATTERN"),
293
327
  pattern_object_filter: {
294
328
  filters: Array[
295
329
  {
296
- exclusion_filters: Array[::String]?,
330
+ object_type: ::String,
297
331
  inclusion_filters: Array[::String]?,
298
- object_type: ::String
332
+ exclusion_filters: Array[::String]?
299
333
  },
300
334
  ]
301
- }?,
302
- type: ("PATTERN")
335
+ }?
303
336
  }?
304
- }?,
305
- source_configuration: {
306
- auth_type: ("OAUTH2_CLIENT_CREDENTIALS" | "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS"),
307
- credentials_secret_arn: ::String,
308
- domain: ::String,
309
- host_type: ("ONLINE"),
310
- site_urls: Array[::String],
311
- tenant_id: ::String?
312
- }
313
- }?,
314
- type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "REDSHIFT_METADATA"),
315
- web_configuration: {
316
- crawler_configuration: {
317
- crawler_limits: {
318
- max_pages: ::Integer?,
319
- rate_limit: ::Integer?
320
- }?,
321
- exclusion_filters: Array[::String]?,
322
- inclusion_filters: Array[::String]?,
323
- scope: ("HOST_ONLY" | "SUBDOMAINS")?,
324
- user_agent: ::String?,
325
- user_agent_header: ::String?
326
- }?,
327
- source_configuration: {
328
- url_configuration: {
329
- seed_urls: Array[
330
- {
331
- url: ::String?
332
- },
333
- ]?
334
- }
335
- }
337
+ }?
336
338
  }?
337
339
  },
338
- ?description: ::String,
339
- knowledge_base_id: ::String,
340
- name: ::String,
340
+ ?data_deletion_policy: ("RETAIN" | "DELETE"),
341
341
  ?server_side_encryption_configuration: {
342
342
  kms_key_arn: ::String?
343
343
  },
@@ -357,20 +357,11 @@ module Aws
357
357
  overlap_tokens: ::Integer
358
358
  }?,
359
359
  semantic_chunking_configuration: {
360
- breakpoint_percentile_threshold: ::Integer,
360
+ max_tokens: ::Integer,
361
361
  buffer_size: ::Integer,
362
- max_tokens: ::Integer
362
+ breakpoint_percentile_threshold: ::Integer
363
363
  }?
364
364
  }?,
365
- context_enrichment_configuration: {
366
- bedrock_foundation_model_configuration: {
367
- enrichment_strategy_configuration: {
368
- method: ("CHUNK_ENTITY_EXTRACTION")
369
- },
370
- model_arn: ::String
371
- }?,
372
- type: ("BEDROCK_FOUNDATION_MODEL")
373
- }?,
374
365
  custom_transformation_configuration: {
375
366
  intermediate_storage: {
376
367
  s3_location: {
@@ -379,27 +370,36 @@ module Aws
379
370
  },
380
371
  transformations: Array[
381
372
  {
382
- step_to_apply: ("POST_CHUNKING"),
383
373
  transformation_function: {
384
374
  transformation_lambda_configuration: {
385
375
  lambda_arn: ::String
386
376
  }
387
- }
377
+ },
378
+ step_to_apply: ("POST_CHUNKING")
388
379
  },
389
380
  ]
390
381
  }?,
391
382
  parsing_configuration: {
392
- bedrock_data_automation_configuration: {
393
- parsing_modality: ("MULTIMODAL")?
394
- }?,
383
+ parsing_strategy: ("BEDROCK_FOUNDATION_MODEL" | "BEDROCK_DATA_AUTOMATION"),
395
384
  bedrock_foundation_model_configuration: {
396
385
  model_arn: ::String,
397
- parsing_modality: ("MULTIMODAL")?,
398
386
  parsing_prompt: {
399
387
  parsing_prompt_text: ::String
400
- }?
388
+ }?,
389
+ parsing_modality: ("MULTIMODAL")?
401
390
  }?,
402
- parsing_strategy: ("BEDROCK_FOUNDATION_MODEL" | "BEDROCK_DATA_AUTOMATION")
391
+ bedrock_data_automation_configuration: {
392
+ parsing_modality: ("MULTIMODAL")?
393
+ }?
394
+ }?,
395
+ context_enrichment_configuration: {
396
+ type: ("BEDROCK_FOUNDATION_MODEL"),
397
+ bedrock_foundation_model_configuration: {
398
+ enrichment_strategy_configuration: {
399
+ method: ("CHUNK_ENTITY_EXTRACTION")
400
+ },
401
+ model_arn: ::String
402
+ }?
403
403
  }?
404
404
  }
405
405
  ) -> _CreateDataSourceResponseSuccess
@@ -407,331 +407,331 @@ module Aws
407
407
 
408
408
  interface _CreateFlowResponseSuccess
409
409
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateFlowResponse]
410
- def arn: () -> ::String
411
- def created_at: () -> ::Time
412
- def customer_encryption_key_arn: () -> ::String
413
- def definition: () -> Types::FlowDefinition
410
+ def name: () -> ::String
414
411
  def description: () -> ::String
415
412
  def execution_role_arn: () -> ::String
413
+ def customer_encryption_key_arn: () -> ::String
416
414
  def id: () -> ::String
417
- def name: () -> ::String
415
+ def arn: () -> ::String
418
416
  def status: () -> ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
417
+ def created_at: () -> ::Time
419
418
  def updated_at: () -> ::Time
420
419
  def version: () -> ::String
420
+ def definition: () -> Types::FlowDefinition
421
421
  end
422
422
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_flow-instance_method
423
423
  def create_flow: (
424
- ?client_token: ::String,
424
+ name: ::String,
425
+ ?description: ::String,
426
+ execution_role_arn: ::String,
425
427
  ?customer_encryption_key_arn: ::String,
426
428
  ?definition: {
427
- connections: Array[
428
- {
429
- configuration: {
430
- conditional: {
431
- condition: ::String
432
- }?,
433
- data: {
434
- source_output: ::String,
435
- target_input: ::String
436
- }?
437
- }?,
438
- name: ::String,
439
- source: ::String,
440
- target: ::String,
441
- type: ("Data" | "Conditional")
442
- },
443
- ]?,
444
429
  nodes: Array[
445
430
  {
431
+ name: ::String,
432
+ type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController"),
446
433
  configuration: {
447
- agent: {
448
- agent_alias_arn: ::String
449
- }?,
450
- collector: {
451
- }?,
452
- condition: {
453
- conditions: Array[
454
- {
455
- expression: ::String?,
456
- name: ::String
457
- },
458
- ]
459
- }?,
460
- inline_code: {
461
- code: ::String,
462
- language: ("Python_3")
463
- }?,
464
434
  input: {
465
435
  }?,
466
- iterator: {
436
+ output: {
467
437
  }?,
468
438
  knowledge_base: {
439
+ knowledge_base_id: ::String,
440
+ model_id: ::String?,
469
441
  guardrail_configuration: {
470
442
  guardrail_identifier: ::String?,
471
443
  guardrail_version: ::String?
472
444
  }?,
445
+ number_of_results: ::Integer?,
446
+ prompt_template: {
447
+ text_prompt_template: ::String?
448
+ }?,
473
449
  inference_configuration: {
474
450
  text: {
475
- max_tokens: ::Integer?,
476
- stop_sequences: Array[::String]?,
477
451
  temperature: ::Float?,
478
- top_p: ::Float?
452
+ top_p: ::Float?,
453
+ max_tokens: ::Integer?,
454
+ stop_sequences: Array[::String]?
479
455
  }?
480
456
  }?,
481
- knowledge_base_id: ::String,
482
- model_id: ::String?,
483
- number_of_results: ::Integer?,
484
- orchestration_configuration: {
485
- additional_model_request_fields: Hash[::String, {
486
- }]?,
487
- inference_config: {
488
- text: {
489
- max_tokens: ::Integer?,
490
- stop_sequences: Array[::String]?,
491
- temperature: ::Float?,
492
- top_p: ::Float?
493
- }?
494
- }?,
495
- performance_config: {
496
- latency: ("standard" | "optimized")?
497
- }?,
498
- prompt_template: {
499
- text_prompt_template: ::String?
500
- }?
501
- }?,
502
- prompt_template: {
503
- text_prompt_template: ::String?
504
- }?,
505
457
  reranking_configuration: {
458
+ type: ("BEDROCK_RERANKING_MODEL"),
506
459
  bedrock_reranking_configuration: {
460
+ model_configuration: {
461
+ model_arn: ::String,
462
+ additional_model_request_fields: Hash[::String, {
463
+ }]?
464
+ },
465
+ number_of_reranked_results: ::Integer?,
507
466
  metadata_configuration: {
508
467
  selection_mode: ("SELECTIVE" | "ALL"),
509
468
  selective_mode_configuration: {
510
- fields_to_exclude: Array[
469
+ fields_to_include: Array[
511
470
  {
512
471
  field_name: ::String
513
472
  },
514
473
  ]?,
515
- fields_to_include: Array[
474
+ fields_to_exclude: Array[
516
475
  {
517
476
  field_name: ::String
518
477
  },
519
478
  ]?
520
479
  }?
521
- }?,
522
- model_configuration: {
523
- additional_model_request_fields: Hash[::String, {
524
- }]?,
525
- model_arn: ::String
526
- },
527
- number_of_reranked_results: ::Integer?
480
+ }?
481
+ }?
482
+ }?,
483
+ orchestration_configuration: {
484
+ prompt_template: {
485
+ text_prompt_template: ::String?
486
+ }?,
487
+ inference_config: {
488
+ text: {
489
+ temperature: ::Float?,
490
+ top_p: ::Float?,
491
+ max_tokens: ::Integer?,
492
+ stop_sequences: Array[::String]?
493
+ }?
528
494
  }?,
529
- type: ("BEDROCK_RERANKING_MODEL")
495
+ additional_model_request_fields: Hash[::String, {
496
+ }]?,
497
+ performance_config: {
498
+ latency: ("standard" | "optimized")?
499
+ }?
530
500
  }?
531
501
  }?,
532
- lambda_function: {
533
- lambda_arn: ::String
502
+ condition: {
503
+ conditions: Array[
504
+ {
505
+ name: ::String,
506
+ expression: ::String?
507
+ },
508
+ ]
534
509
  }?,
535
510
  lex: {
536
511
  bot_alias_arn: ::String,
537
512
  locale_id: ::String
538
513
  }?,
539
- loop: {
540
- definition: untyped
541
- }?,
542
- loop_controller: {
543
- continue_condition: {
544
- expression: ::String?,
545
- name: ::String
546
- },
547
- max_iterations: ::Integer?
548
- }?,
549
- loop_input: {
550
- }?,
551
- output: {
552
- }?,
553
514
  prompt: {
554
- guardrail_configuration: {
555
- guardrail_identifier: ::String?,
556
- guardrail_version: ::String?
557
- }?,
558
515
  source_configuration: {
516
+ resource: {
517
+ prompt_arn: ::String
518
+ }?,
559
519
  inline: {
560
- additional_model_request_fields: {
561
- }?,
562
- inference_configuration: {
563
- text: {
564
- max_tokens: ::Integer?,
565
- stop_sequences: Array[::String]?,
566
- temperature: ::Float?,
567
- top_p: ::Float?
568
- }?
569
- }?,
570
- model_id: ::String,
520
+ template_type: ("TEXT" | "CHAT"),
571
521
  template_configuration: {
572
- chat: {
522
+ text: {
523
+ text: ::String,
524
+ cache_point: {
525
+ type: ("default")
526
+ }?,
573
527
  input_variables: Array[
574
528
  {
575
529
  name: ::String?
576
530
  },
577
- ]?,
531
+ ]?
532
+ }?,
533
+ chat: {
578
534
  messages: Array[
579
535
  {
536
+ role: ("user" | "assistant"),
580
537
  content: Array[
581
538
  {
539
+ text: ::String?,
582
540
  cache_point: {
583
541
  type: ("default")
584
- }?,
585
- text: ::String?
542
+ }?
586
543
  },
587
- ],
588
- role: ("user" | "assistant")
544
+ ]
589
545
  },
590
546
  ],
591
547
  system: Array[
592
548
  {
549
+ text: ::String?,
593
550
  cache_point: {
594
551
  type: ("default")
595
- }?,
596
- text: ::String?
552
+ }?
553
+ },
554
+ ]?,
555
+ input_variables: Array[
556
+ {
557
+ name: ::String?
597
558
  },
598
559
  ]?,
599
560
  tool_configuration: {
600
- tool_choice: {
601
- any: {
602
- }?,
603
- auto: {
604
- }?,
605
- tool: {
606
- name: ::String
607
- }?
608
- }?,
609
561
  tools: Array[
610
562
  {
611
- cache_point: {
612
- type: ("default")
613
- }?,
614
563
  tool_spec: {
564
+ name: ::String,
615
565
  description: ::String?,
616
566
  input_schema: {
617
567
  json: {
618
568
  }?
619
- },
620
- name: ::String
569
+ }
570
+ }?,
571
+ cache_point: {
572
+ type: ("default")
621
573
  }?
622
574
  },
623
- ]
575
+ ],
576
+ tool_choice: {
577
+ auto: {
578
+ }?,
579
+ any: {
580
+ }?,
581
+ tool: {
582
+ name: ::String
583
+ }?
584
+ }?
624
585
  }?
625
- }?,
626
- text: {
627
- cache_point: {
628
- type: ("default")
629
- }?,
630
- input_variables: Array[
631
- {
632
- name: ::String?
633
- },
634
- ]?,
635
- text: ::String
636
586
  }?
637
587
  },
638
- template_type: ("TEXT" | "CHAT")
639
- }?,
640
- resource: {
641
- prompt_arn: ::String
588
+ model_id: ::String,
589
+ inference_configuration: {
590
+ text: {
591
+ temperature: ::Float?,
592
+ top_p: ::Float?,
593
+ max_tokens: ::Integer?,
594
+ stop_sequences: Array[::String]?
595
+ }?
596
+ }?,
597
+ additional_model_request_fields: {
598
+ }?
642
599
  }?
643
- }
600
+ },
601
+ guardrail_configuration: {
602
+ guardrail_identifier: ::String?,
603
+ guardrail_version: ::String?
604
+ }?
644
605
  }?,
645
- retrieval: {
606
+ lambda_function: {
607
+ lambda_arn: ::String
608
+ }?,
609
+ storage: {
646
610
  service_configuration: {
647
611
  s3: {
648
612
  bucket_name: ::String
649
613
  }?
650
614
  }
651
615
  }?,
652
- storage: {
616
+ agent: {
617
+ agent_alias_arn: ::String
618
+ }?,
619
+ retrieval: {
653
620
  service_configuration: {
654
621
  s3: {
655
622
  bucket_name: ::String
656
623
  }?
657
624
  }
625
+ }?,
626
+ iterator: {
627
+ }?,
628
+ collector: {
629
+ }?,
630
+ inline_code: {
631
+ code: ::String,
632
+ language: ("Python_3")
633
+ }?,
634
+ loop: {
635
+ definition: untyped
636
+ }?,
637
+ loop_input: {
638
+ }?,
639
+ loop_controller: {
640
+ continue_condition: {
641
+ name: ::String,
642
+ expression: ::String?
643
+ },
644
+ max_iterations: ::Integer?
658
645
  }?
659
646
  }?,
660
647
  inputs: Array[
661
648
  {
662
- category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
663
- expression: ::String,
664
649
  name: ::String,
665
- type: ("String" | "Number" | "Boolean" | "Object" | "Array")
650
+ type: ("String" | "Number" | "Boolean" | "Object" | "Array"),
651
+ expression: ::String,
652
+ category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?
666
653
  },
667
654
  ]?,
668
- name: ::String,
669
655
  outputs: Array[
670
656
  {
671
657
  name: ::String,
672
658
  type: ("String" | "Number" | "Boolean" | "Object" | "Array")
673
659
  },
674
- ]?,
675
- type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
660
+ ]?
661
+ },
662
+ ]?,
663
+ connections: Array[
664
+ {
665
+ type: ("Data" | "Conditional"),
666
+ name: ::String,
667
+ source: ::String,
668
+ target: ::String,
669
+ configuration: {
670
+ data: {
671
+ source_output: ::String,
672
+ target_input: ::String
673
+ }?,
674
+ conditional: {
675
+ condition: ::String
676
+ }?
677
+ }?
676
678
  },
677
679
  ]?
678
680
  },
679
- ?description: ::String,
680
- execution_role_arn: ::String,
681
- name: ::String,
681
+ ?client_token: ::String,
682
682
  ?tags: Hash[::String, ::String]
683
683
  ) -> _CreateFlowResponseSuccess
684
684
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFlowResponseSuccess
685
685
 
686
686
  interface _CreateFlowAliasResponseSuccess
687
687
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateFlowAliasResponse]
688
- def arn: () -> ::String
689
- def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
690
- def created_at: () -> ::Time
688
+ def name: () -> ::String
691
689
  def description: () -> ::String
690
+ def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
691
+ def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
692
692
  def flow_id: () -> ::String
693
693
  def id: () -> ::String
694
- def name: () -> ::String
695
- def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
694
+ def arn: () -> ::String
695
+ def created_at: () -> ::Time
696
696
  def updated_at: () -> ::Time
697
697
  end
698
698
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_flow_alias-instance_method
699
699
  def create_flow_alias: (
700
- ?client_token: ::String,
701
- ?concurrency_configuration: {
702
- max_concurrency: ::Integer?,
703
- type: ("Automatic" | "Manual")
704
- },
705
- ?description: ::String,
706
- flow_identifier: ::String,
707
700
  name: ::String,
701
+ ?description: ::String,
708
702
  routing_configuration: Array[
709
703
  {
710
704
  flow_version: ::String?
711
705
  },
712
706
  ],
707
+ ?concurrency_configuration: {
708
+ type: ("Automatic" | "Manual"),
709
+ max_concurrency: ::Integer?
710
+ },
711
+ flow_identifier: ::String,
712
+ ?client_token: ::String,
713
713
  ?tags: Hash[::String, ::String]
714
714
  ) -> _CreateFlowAliasResponseSuccess
715
715
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFlowAliasResponseSuccess
716
716
 
717
717
  interface _CreateFlowVersionResponseSuccess
718
718
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateFlowVersionResponse]
719
- def arn: () -> ::String
720
- def created_at: () -> ::Time
721
- def customer_encryption_key_arn: () -> ::String
722
- def definition: () -> Types::FlowDefinition
719
+ def name: () -> ::String
723
720
  def description: () -> ::String
724
721
  def execution_role_arn: () -> ::String
722
+ def customer_encryption_key_arn: () -> ::String
725
723
  def id: () -> ::String
726
- def name: () -> ::String
724
+ def arn: () -> ::String
727
725
  def status: () -> ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
726
+ def created_at: () -> ::Time
728
727
  def version: () -> ::String
728
+ def definition: () -> Types::FlowDefinition
729
729
  end
730
730
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_flow_version-instance_method
731
731
  def create_flow_version: (
732
- ?client_token: ::String,
732
+ flow_identifier: ::String,
733
733
  ?description: ::String,
734
- flow_identifier: ::String
734
+ ?client_token: ::String
735
735
  ) -> _CreateFlowVersionResponseSuccess
736
736
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFlowVersionResponseSuccess
737
737
 
@@ -742,172 +742,172 @@ module Aws
742
742
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_knowledge_base-instance_method
743
743
  def create_knowledge_base: (
744
744
  ?client_token: ::String,
745
+ name: ::String,
745
746
  ?description: ::String,
747
+ role_arn: ::String,
746
748
  knowledge_base_configuration: {
749
+ type: ("VECTOR" | "KENDRA" | "SQL"),
750
+ vector_knowledge_base_configuration: {
751
+ embedding_model_arn: ::String,
752
+ embedding_model_configuration: {
753
+ bedrock_embedding_model_configuration: {
754
+ dimensions: ::Integer?,
755
+ embedding_data_type: ("FLOAT32" | "BINARY")?
756
+ }?
757
+ }?,
758
+ supplemental_data_storage_configuration: {
759
+ storage_locations: Array[
760
+ {
761
+ type: ("S3"),
762
+ s3_location: {
763
+ uri: ::String
764
+ }?
765
+ },
766
+ ]
767
+ }?
768
+ }?,
747
769
  kendra_knowledge_base_configuration: {
748
770
  kendra_index_arn: ::String
749
771
  }?,
750
772
  sql_knowledge_base_configuration: {
773
+ type: ("REDSHIFT"),
751
774
  redshift_configuration: {
775
+ storage_configurations: Array[
776
+ {
777
+ type: ("REDSHIFT" | "AWS_DATA_CATALOG"),
778
+ aws_data_catalog_configuration: {
779
+ table_names: Array[::String]
780
+ }?,
781
+ redshift_configuration: {
782
+ database_name: ::String
783
+ }?
784
+ },
785
+ ],
752
786
  query_engine_configuration: {
753
- provisioned_configuration: {
787
+ type: ("SERVERLESS" | "PROVISIONED"),
788
+ serverless_configuration: {
789
+ workgroup_arn: ::String,
754
790
  auth_configuration: {
755
- database_user: ::String?,
756
- type: ("IAM" | "USERNAME_PASSWORD" | "USERNAME"),
791
+ type: ("IAM" | "USERNAME_PASSWORD"),
757
792
  username_password_secret_arn: ::String?
758
- },
759
- cluster_identifier: ::String
793
+ }
760
794
  }?,
761
- serverless_configuration: {
795
+ provisioned_configuration: {
796
+ cluster_identifier: ::String,
762
797
  auth_configuration: {
763
- type: ("IAM" | "USERNAME_PASSWORD"),
798
+ type: ("IAM" | "USERNAME_PASSWORD" | "USERNAME"),
799
+ database_user: ::String?,
764
800
  username_password_secret_arn: ::String?
765
- },
766
- workgroup_arn: ::String
767
- }?,
768
- type: ("SERVERLESS" | "PROVISIONED")
801
+ }
802
+ }?
769
803
  },
770
804
  query_generation_configuration: {
771
805
  execution_timeout_seconds: ::Integer?,
772
806
  generation_context: {
773
- curated_queries: Array[
774
- {
775
- natural_language: ::String,
776
- sql: ::String
777
- },
778
- ]?,
779
807
  tables: Array[
780
808
  {
809
+ name: ::String,
810
+ description: ::String?,
811
+ inclusion: ("INCLUDE" | "EXCLUDE")?,
781
812
  columns: Array[
782
813
  {
814
+ name: ::String?,
783
815
  description: ::String?,
784
- inclusion: ("INCLUDE" | "EXCLUDE")?,
785
- name: ::String?
816
+ inclusion: ("INCLUDE" | "EXCLUDE")?
786
817
  },
787
- ]?,
788
- description: ::String?,
789
- inclusion: ("INCLUDE" | "EXCLUDE")?,
790
- name: ::String
818
+ ]?
819
+ },
820
+ ]?,
821
+ curated_queries: Array[
822
+ {
823
+ natural_language: ::String,
824
+ sql: ::String
791
825
  },
792
826
  ]?
793
827
  }?
794
- }?,
795
- storage_configurations: Array[
796
- {
797
- aws_data_catalog_configuration: {
798
- table_names: Array[::String]
799
- }?,
800
- redshift_configuration: {
801
- database_name: ::String
802
- }?,
803
- type: ("REDSHIFT" | "AWS_DATA_CATALOG")
804
- },
805
- ]
806
- }?,
807
- type: ("REDSHIFT")
808
- }?,
809
- type: ("VECTOR" | "KENDRA" | "SQL"),
810
- vector_knowledge_base_configuration: {
811
- embedding_model_arn: ::String,
812
- embedding_model_configuration: {
813
- bedrock_embedding_model_configuration: {
814
- dimensions: ::Integer?,
815
- embedding_data_type: ("FLOAT32" | "BINARY")?
816
828
  }?
817
- }?,
818
- supplemental_data_storage_configuration: {
819
- storage_locations: Array[
820
- {
821
- s3_location: {
822
- uri: ::String
823
- }?,
824
- type: ("S3")
825
- },
826
- ]
827
829
  }?
828
830
  }?
829
831
  },
830
- name: ::String,
831
- role_arn: ::String,
832
832
  ?storage_configuration: {
833
- mongo_db_atlas_configuration: {
834
- collection_name: ::String,
835
- credentials_secret_arn: ::String,
836
- database_name: ::String,
837
- endpoint: ::String,
838
- endpoint_service_name: ::String?,
833
+ type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS" | "NEPTUNE_ANALYTICS" | "OPENSEARCH_MANAGED_CLUSTER" | "S3_VECTORS"),
834
+ opensearch_serverless_configuration: {
835
+ collection_arn: ::String,
836
+ vector_index_name: ::String,
839
837
  field_mapping: {
840
- metadata_field: ::String,
838
+ vector_field: ::String,
841
839
  text_field: ::String,
842
- vector_field: ::String
843
- },
844
- text_index_name: ::String?,
845
- vector_index_name: ::String
846
- }?,
847
- neptune_analytics_configuration: {
848
- field_mapping: {
849
- metadata_field: ::String,
850
- text_field: ::String
851
- },
852
- graph_arn: ::String
840
+ metadata_field: ::String
841
+ }
853
842
  }?,
854
843
  opensearch_managed_cluster_configuration: {
855
- domain_arn: ::String,
856
844
  domain_endpoint: ::String,
845
+ domain_arn: ::String,
846
+ vector_index_name: ::String,
857
847
  field_mapping: {
858
- metadata_field: ::String,
848
+ vector_field: ::String,
859
849
  text_field: ::String,
860
- vector_field: ::String
861
- },
862
- vector_index_name: ::String
850
+ metadata_field: ::String
851
+ }
863
852
  }?,
864
- opensearch_serverless_configuration: {
865
- collection_arn: ::String,
853
+ pinecone_configuration: {
854
+ connection_string: ::String,
855
+ credentials_secret_arn: ::String,
856
+ namespace: ::String?,
866
857
  field_mapping: {
867
- metadata_field: ::String,
868
858
  text_field: ::String,
869
- vector_field: ::String
870
- },
871
- vector_index_name: ::String
859
+ metadata_field: ::String
860
+ }
872
861
  }?,
873
- pinecone_configuration: {
874
- connection_string: ::String,
862
+ redis_enterprise_cloud_configuration: {
863
+ endpoint: ::String,
864
+ vector_index_name: ::String,
875
865
  credentials_secret_arn: ::String,
876
866
  field_mapping: {
877
- metadata_field: ::String,
878
- text_field: ::String
879
- },
880
- namespace: ::String?
867
+ vector_field: ::String,
868
+ text_field: ::String,
869
+ metadata_field: ::String
870
+ }
881
871
  }?,
882
872
  rds_configuration: {
873
+ resource_arn: ::String,
883
874
  credentials_secret_arn: ::String,
884
875
  database_name: ::String,
876
+ table_name: ::String,
885
877
  field_mapping: {
886
- custom_metadata_field: ::String?,
887
- metadata_field: ::String,
888
878
  primary_key_field: ::String,
879
+ vector_field: ::String,
889
880
  text_field: ::String,
890
- vector_field: ::String
891
- },
892
- resource_arn: ::String,
893
- table_name: ::String
881
+ metadata_field: ::String,
882
+ custom_metadata_field: ::String?
883
+ }
894
884
  }?,
895
- redis_enterprise_cloud_configuration: {
896
- credentials_secret_arn: ::String,
885
+ mongo_db_atlas_configuration: {
897
886
  endpoint: ::String,
887
+ database_name: ::String,
888
+ collection_name: ::String,
889
+ vector_index_name: ::String,
890
+ credentials_secret_arn: ::String,
898
891
  field_mapping: {
899
- metadata_field: ::String,
892
+ vector_field: ::String,
900
893
  text_field: ::String,
901
- vector_field: ::String
894
+ metadata_field: ::String
902
895
  },
903
- vector_index_name: ::String
896
+ endpoint_service_name: ::String?,
897
+ text_index_name: ::String?
898
+ }?,
899
+ neptune_analytics_configuration: {
900
+ graph_arn: ::String,
901
+ field_mapping: {
902
+ text_field: ::String,
903
+ metadata_field: ::String
904
+ }
904
905
  }?,
905
906
  s3_vectors_configuration: {
907
+ vector_bucket_arn: ::String?,
906
908
  index_arn: ::String?,
907
- index_name: ::String?,
908
- vector_bucket_arn: ::String?
909
- }?,
910
- type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS" | "NEPTUNE_ANALYTICS" | "OPENSEARCH_MANAGED_CLUSTER" | "S3_VECTORS")
909
+ index_name: ::String?
910
+ }?
911
911
  },
912
912
  ?tags: Hash[::String, ::String]
913
913
  ) -> _CreateKnowledgeBaseResponseSuccess
@@ -915,141 +915,141 @@ module Aws
915
915
 
916
916
  interface _CreatePromptResponseSuccess
917
917
  include ::Seahorse::Client::_ResponseSuccess[Types::CreatePromptResponse]
918
- def arn: () -> ::String
919
- def created_at: () -> ::Time
918
+ def name: () -> ::String
919
+ def description: () -> ::String
920
920
  def customer_encryption_key_arn: () -> ::String
921
921
  def default_variant: () -> ::String
922
- def description: () -> ::String
923
- def id: () -> ::String
924
- def name: () -> ::String
925
- def updated_at: () -> ::Time
926
922
  def variants: () -> ::Array[Types::PromptVariant]
923
+ def id: () -> ::String
924
+ def arn: () -> ::String
927
925
  def version: () -> ::String
926
+ def created_at: () -> ::Time
927
+ def updated_at: () -> ::Time
928
928
  end
929
929
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_prompt-instance_method
930
930
  def create_prompt: (
931
- ?client_token: ::String,
931
+ name: ::String,
932
+ ?description: ::String,
932
933
  ?customer_encryption_key_arn: ::String,
933
934
  ?default_variant: ::String,
934
- ?description: ::String,
935
- name: ::String,
936
- ?tags: Hash[::String, ::String],
937
935
  ?variants: Array[
938
936
  {
939
- additional_model_request_fields: {
940
- }?,
941
- gen_ai_resource: {
942
- agent: {
943
- agent_identifier: ::String
944
- }?
945
- }?,
946
- inference_configuration: {
947
- text: {
948
- max_tokens: ::Integer?,
949
- stop_sequences: Array[::String]?,
950
- temperature: ::Float?,
951
- top_p: ::Float?
952
- }?
953
- }?,
954
- metadata: Array[
955
- {
956
- key: ::String,
957
- value: ::String
958
- },
959
- ]?,
960
- model_id: ::String?,
961
937
  name: ::String,
938
+ template_type: ("TEXT" | "CHAT"),
962
939
  template_configuration: {
963
- chat: {
940
+ text: {
941
+ text: ::String,
942
+ cache_point: {
943
+ type: ("default")
944
+ }?,
964
945
  input_variables: Array[
965
946
  {
966
947
  name: ::String?
967
948
  },
968
- ]?,
949
+ ]?
950
+ }?,
951
+ chat: {
969
952
  messages: Array[
970
953
  {
954
+ role: ("user" | "assistant"),
971
955
  content: Array[
972
956
  {
957
+ text: ::String?,
973
958
  cache_point: {
974
959
  type: ("default")
975
- }?,
976
- text: ::String?
960
+ }?
977
961
  },
978
- ],
979
- role: ("user" | "assistant")
962
+ ]
980
963
  },
981
964
  ],
982
965
  system: Array[
983
966
  {
967
+ text: ::String?,
984
968
  cache_point: {
985
969
  type: ("default")
986
- }?,
987
- text: ::String?
970
+ }?
971
+ },
972
+ ]?,
973
+ input_variables: Array[
974
+ {
975
+ name: ::String?
988
976
  },
989
977
  ]?,
990
978
  tool_configuration: {
991
- tool_choice: {
992
- any: {
993
- }?,
994
- auto: {
995
- }?,
996
- tool: {
997
- name: ::String
998
- }?
999
- }?,
1000
979
  tools: Array[
1001
980
  {
1002
- cache_point: {
1003
- type: ("default")
1004
- }?,
1005
981
  tool_spec: {
982
+ name: ::String,
1006
983
  description: ::String?,
1007
984
  input_schema: {
1008
985
  json: {
1009
986
  }?
1010
- },
1011
- name: ::String
987
+ }
988
+ }?,
989
+ cache_point: {
990
+ type: ("default")
1012
991
  }?
1013
992
  },
1014
- ]
993
+ ],
994
+ tool_choice: {
995
+ auto: {
996
+ }?,
997
+ any: {
998
+ }?,
999
+ tool: {
1000
+ name: ::String
1001
+ }?
1002
+ }?
1015
1003
  }?
1016
- }?,
1017
- text: {
1018
- cache_point: {
1019
- type: ("default")
1020
- }?,
1021
- input_variables: Array[
1022
- {
1023
- name: ::String?
1024
- },
1025
- ]?,
1026
- text: ::String
1027
1004
  }?
1028
1005
  },
1029
- template_type: ("TEXT" | "CHAT")
1006
+ model_id: ::String?,
1007
+ inference_configuration: {
1008
+ text: {
1009
+ temperature: ::Float?,
1010
+ top_p: ::Float?,
1011
+ max_tokens: ::Integer?,
1012
+ stop_sequences: Array[::String]?
1013
+ }?
1014
+ }?,
1015
+ metadata: Array[
1016
+ {
1017
+ key: ::String,
1018
+ value: ::String
1019
+ },
1020
+ ]?,
1021
+ additional_model_request_fields: {
1022
+ }?,
1023
+ gen_ai_resource: {
1024
+ agent: {
1025
+ agent_identifier: ::String
1026
+ }?
1027
+ }?
1030
1028
  },
1031
- ]
1029
+ ],
1030
+ ?client_token: ::String,
1031
+ ?tags: Hash[::String, ::String]
1032
1032
  ) -> _CreatePromptResponseSuccess
1033
1033
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePromptResponseSuccess
1034
1034
 
1035
1035
  interface _CreatePromptVersionResponseSuccess
1036
1036
  include ::Seahorse::Client::_ResponseSuccess[Types::CreatePromptVersionResponse]
1037
- def arn: () -> ::String
1038
- def created_at: () -> ::Time
1037
+ def name: () -> ::String
1038
+ def description: () -> ::String
1039
1039
  def customer_encryption_key_arn: () -> ::String
1040
1040
  def default_variant: () -> ::String
1041
- def description: () -> ::String
1042
- def id: () -> ::String
1043
- def name: () -> ::String
1044
- def updated_at: () -> ::Time
1045
1041
  def variants: () -> ::Array[Types::PromptVariant]
1042
+ def id: () -> ::String
1043
+ def arn: () -> ::String
1046
1044
  def version: () -> ::String
1045
+ def created_at: () -> ::Time
1046
+ def updated_at: () -> ::Time
1047
1047
  end
1048
1048
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_prompt_version-instance_method
1049
1049
  def create_prompt_version: (
1050
- ?client_token: ::String,
1051
- ?description: ::String,
1052
1050
  prompt_identifier: ::String,
1051
+ ?description: ::String,
1052
+ ?client_token: ::String,
1053
1053
  ?tags: Hash[::String, ::String]
1054
1054
  ) -> _CreatePromptVersionResponseSuccess
1055
1055
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePromptVersionResponseSuccess
@@ -1071,31 +1071,31 @@ module Aws
1071
1071
  end
1072
1072
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_agent_action_group-instance_method
1073
1073
  def delete_agent_action_group: (
1074
- action_group_id: ::String,
1075
1074
  agent_id: ::String,
1076
1075
  agent_version: ::String,
1076
+ action_group_id: ::String,
1077
1077
  ?skip_resource_in_use_check: bool
1078
1078
  ) -> _DeleteAgentActionGroupResponseSuccess
1079
1079
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAgentActionGroupResponseSuccess
1080
1080
 
1081
1081
  interface _DeleteAgentAliasResponseSuccess
1082
1082
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAgentAliasResponse]
1083
+ def agent_id: () -> ::String
1083
1084
  def agent_alias_id: () -> ::String
1084
1085
  def agent_alias_status: () -> ("CREATING" | "PREPARED" | "FAILED" | "UPDATING" | "DELETING" | "DISSOCIATED")
1085
- def agent_id: () -> ::String
1086
1086
  end
1087
1087
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_agent_alias-instance_method
1088
1088
  def delete_agent_alias: (
1089
- agent_alias_id: ::String,
1090
- agent_id: ::String
1089
+ agent_id: ::String,
1090
+ agent_alias_id: ::String
1091
1091
  ) -> _DeleteAgentAliasResponseSuccess
1092
1092
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAgentAliasResponseSuccess
1093
1093
 
1094
1094
  interface _DeleteAgentVersionResponseSuccess
1095
1095
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAgentVersionResponse]
1096
1096
  def agent_id: () -> ::String
1097
- def agent_status: () -> ("CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING")
1098
1097
  def agent_version: () -> ::String
1098
+ def agent_status: () -> ("CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING")
1099
1099
  end
1100
1100
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_agent_version-instance_method
1101
1101
  def delete_agent_version: (
@@ -1107,14 +1107,14 @@ module Aws
1107
1107
 
1108
1108
  interface _DeleteDataSourceResponseSuccess
1109
1109
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteDataSourceResponse]
1110
- def data_source_id: () -> ::String
1111
1110
  def knowledge_base_id: () -> ::String
1111
+ def data_source_id: () -> ::String
1112
1112
  def status: () -> ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
1113
1113
  end
1114
1114
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_data_source-instance_method
1115
1115
  def delete_data_source: (
1116
- data_source_id: ::String,
1117
- knowledge_base_id: ::String
1116
+ knowledge_base_id: ::String,
1117
+ data_source_id: ::String
1118
1118
  ) -> _DeleteDataSourceResponseSuccess
1119
1119
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteDataSourceResponseSuccess
1120
1120
 
@@ -1136,8 +1136,8 @@ module Aws
1136
1136
  end
1137
1137
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_flow_alias-instance_method
1138
1138
  def delete_flow_alias: (
1139
- alias_identifier: ::String,
1140
- flow_identifier: ::String
1139
+ flow_identifier: ::String,
1140
+ alias_identifier: ::String
1141
1141
  ) -> _DeleteFlowAliasResponseSuccess
1142
1142
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFlowAliasResponseSuccess
1143
1143
 
@@ -1171,20 +1171,20 @@ module Aws
1171
1171
  end
1172
1172
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_knowledge_base_documents-instance_method
1173
1173
  def delete_knowledge_base_documents: (
1174
- ?client_token: ::String,
1174
+ knowledge_base_id: ::String,
1175
1175
  data_source_id: ::String,
1176
+ ?client_token: ::String,
1176
1177
  document_identifiers: Array[
1177
1178
  {
1178
- custom: {
1179
- id: ::String
1180
- }?,
1181
1179
  data_source_type: ("CUSTOM" | "S3"),
1182
1180
  s3: {
1183
1181
  uri: ::String
1182
+ }?,
1183
+ custom: {
1184
+ id: ::String
1184
1185
  }?
1185
1186
  },
1186
- ],
1187
- knowledge_base_id: ::String
1187
+ ]
1188
1188
  ) -> _DeleteKnowledgeBaseDocumentsResponseSuccess
1189
1189
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteKnowledgeBaseDocumentsResponseSuccess
1190
1190
 
@@ -1238,9 +1238,9 @@ module Aws
1238
1238
  end
1239
1239
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_agent_action_group-instance_method
1240
1240
  def get_agent_action_group: (
1241
- action_group_id: ::String,
1242
1241
  agent_id: ::String,
1243
- agent_version: ::String
1242
+ agent_version: ::String,
1243
+ action_group_id: ::String
1244
1244
  ) -> _GetAgentActionGroupResponseSuccess
1245
1245
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentActionGroupResponseSuccess
1246
1246
 
@@ -1250,8 +1250,8 @@ module Aws
1250
1250
  end
1251
1251
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_agent_alias-instance_method
1252
1252
  def get_agent_alias: (
1253
- agent_alias_id: ::String,
1254
- agent_id: ::String
1253
+ agent_id: ::String,
1254
+ agent_alias_id: ::String
1255
1255
  ) -> _GetAgentAliasResponseSuccess
1256
1256
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentAliasResponseSuccess
1257
1257
 
@@ -1296,25 +1296,25 @@ module Aws
1296
1296
  end
1297
1297
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_data_source-instance_method
1298
1298
  def get_data_source: (
1299
- data_source_id: ::String,
1300
- knowledge_base_id: ::String
1299
+ knowledge_base_id: ::String,
1300
+ data_source_id: ::String
1301
1301
  ) -> _GetDataSourceResponseSuccess
1302
1302
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDataSourceResponseSuccess
1303
1303
 
1304
1304
  interface _GetFlowResponseSuccess
1305
1305
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowResponse]
1306
- def arn: () -> ::String
1307
- def created_at: () -> ::Time
1308
- def customer_encryption_key_arn: () -> ::String
1309
- def definition: () -> Types::FlowDefinition
1306
+ def name: () -> ::String
1310
1307
  def description: () -> ::String
1311
1308
  def execution_role_arn: () -> ::String
1309
+ def customer_encryption_key_arn: () -> ::String
1312
1310
  def id: () -> ::String
1313
- def name: () -> ::String
1311
+ def arn: () -> ::String
1314
1312
  def status: () -> ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
1313
+ def created_at: () -> ::Time
1315
1314
  def updated_at: () -> ::Time
1316
- def validations: () -> ::Array[Types::FlowValidation]
1317
1315
  def version: () -> ::String
1316
+ def definition: () -> Types::FlowDefinition
1317
+ def validations: () -> ::Array[Types::FlowValidation]
1318
1318
  end
1319
1319
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_flow-instance_method
1320
1320
  def get_flow: (
@@ -1324,35 +1324,35 @@ module Aws
1324
1324
 
1325
1325
  interface _GetFlowAliasResponseSuccess
1326
1326
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowAliasResponse]
1327
- def arn: () -> ::String
1328
- def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
1329
- def created_at: () -> ::Time
1327
+ def name: () -> ::String
1330
1328
  def description: () -> ::String
1329
+ def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
1330
+ def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
1331
1331
  def flow_id: () -> ::String
1332
1332
  def id: () -> ::String
1333
- def name: () -> ::String
1334
- def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
1333
+ def arn: () -> ::String
1334
+ def created_at: () -> ::Time
1335
1335
  def updated_at: () -> ::Time
1336
1336
  end
1337
1337
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_flow_alias-instance_method
1338
1338
  def get_flow_alias: (
1339
- alias_identifier: ::String,
1340
- flow_identifier: ::String
1339
+ flow_identifier: ::String,
1340
+ alias_identifier: ::String
1341
1341
  ) -> _GetFlowAliasResponseSuccess
1342
1342
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFlowAliasResponseSuccess
1343
1343
 
1344
1344
  interface _GetFlowVersionResponseSuccess
1345
1345
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowVersionResponse]
1346
- def arn: () -> ::String
1347
- def created_at: () -> ::Time
1348
- def customer_encryption_key_arn: () -> ::String
1349
- def definition: () -> Types::FlowDefinition
1346
+ def name: () -> ::String
1350
1347
  def description: () -> ::String
1351
1348
  def execution_role_arn: () -> ::String
1349
+ def customer_encryption_key_arn: () -> ::String
1352
1350
  def id: () -> ::String
1353
- def name: () -> ::String
1351
+ def arn: () -> ::String
1354
1352
  def status: () -> ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
1353
+ def created_at: () -> ::Time
1355
1354
  def version: () -> ::String
1355
+ def definition: () -> Types::FlowDefinition
1356
1356
  end
1357
1357
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_flow_version-instance_method
1358
1358
  def get_flow_version: (
@@ -1367,9 +1367,9 @@ module Aws
1367
1367
  end
1368
1368
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_ingestion_job-instance_method
1369
1369
  def get_ingestion_job: (
1370
+ knowledge_base_id: ::String,
1370
1371
  data_source_id: ::String,
1371
- ingestion_job_id: ::String,
1372
- knowledge_base_id: ::String
1372
+ ingestion_job_id: ::String
1373
1373
  ) -> _GetIngestionJobResponseSuccess
1374
1374
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetIngestionJobResponseSuccess
1375
1375
 
@@ -1389,34 +1389,34 @@ module Aws
1389
1389
  end
1390
1390
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_knowledge_base_documents-instance_method
1391
1391
  def get_knowledge_base_documents: (
1392
+ knowledge_base_id: ::String,
1392
1393
  data_source_id: ::String,
1393
1394
  document_identifiers: Array[
1394
1395
  {
1395
- custom: {
1396
- id: ::String
1397
- }?,
1398
1396
  data_source_type: ("CUSTOM" | "S3"),
1399
1397
  s3: {
1400
1398
  uri: ::String
1399
+ }?,
1400
+ custom: {
1401
+ id: ::String
1401
1402
  }?
1402
1403
  },
1403
- ],
1404
- knowledge_base_id: ::String
1404
+ ]
1405
1405
  ) -> _GetKnowledgeBaseDocumentsResponseSuccess
1406
1406
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKnowledgeBaseDocumentsResponseSuccess
1407
1407
 
1408
1408
  interface _GetPromptResponseSuccess
1409
1409
  include ::Seahorse::Client::_ResponseSuccess[Types::GetPromptResponse]
1410
- def arn: () -> ::String
1411
- def created_at: () -> ::Time
1410
+ def name: () -> ::String
1411
+ def description: () -> ::String
1412
1412
  def customer_encryption_key_arn: () -> ::String
1413
1413
  def default_variant: () -> ::String
1414
- def description: () -> ::String
1415
- def id: () -> ::String
1416
- def name: () -> ::String
1417
- def updated_at: () -> ::Time
1418
1414
  def variants: () -> ::Array[Types::PromptVariant]
1415
+ def id: () -> ::String
1416
+ def arn: () -> ::String
1419
1417
  def version: () -> ::String
1418
+ def created_at: () -> ::Time
1419
+ def updated_at: () -> ::Time
1420
1420
  end
1421
1421
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#get_prompt-instance_method
1422
1422
  def get_prompt: (
@@ -1431,60 +1431,60 @@ module Aws
1431
1431
  end
1432
1432
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#ingest_knowledge_base_documents-instance_method
1433
1433
  def ingest_knowledge_base_documents: (
1434
- ?client_token: ::String,
1434
+ knowledge_base_id: ::String,
1435
1435
  data_source_id: ::String,
1436
+ ?client_token: ::String,
1436
1437
  documents: Array[
1437
1438
  {
1439
+ metadata: {
1440
+ type: ("IN_LINE_ATTRIBUTE" | "S3_LOCATION"),
1441
+ inline_attributes: Array[
1442
+ {
1443
+ key: ::String,
1444
+ value: {
1445
+ type: ("BOOLEAN" | "NUMBER" | "STRING" | "STRING_LIST"),
1446
+ number_value: ::Float?,
1447
+ boolean_value: bool?,
1448
+ string_value: ::String?,
1449
+ string_list_value: Array[::String]?
1450
+ }
1451
+ },
1452
+ ]?,
1453
+ s3_location: {
1454
+ uri: ::String,
1455
+ bucket_owner_account_id: ::String?
1456
+ }?
1457
+ }?,
1438
1458
  content: {
1459
+ data_source_type: ("CUSTOM" | "S3"),
1439
1460
  custom: {
1440
1461
  custom_document_identifier: {
1441
1462
  id: ::String
1442
1463
  },
1464
+ source_type: ("IN_LINE" | "S3_LOCATION"),
1465
+ s3_location: {
1466
+ uri: ::String,
1467
+ bucket_owner_account_id: ::String?
1468
+ }?,
1443
1469
  inline_content: {
1470
+ type: ("BYTE" | "TEXT"),
1444
1471
  byte_content: {
1445
- data: ::String,
1446
- mime_type: ::String
1472
+ mime_type: ::String,
1473
+ data: ::String
1447
1474
  }?,
1448
1475
  text_content: {
1449
1476
  data: ::String
1450
- }?,
1451
- type: ("BYTE" | "TEXT")
1452
- }?,
1453
- s3_location: {
1454
- bucket_owner_account_id: ::String?,
1455
- uri: ::String
1456
- }?,
1457
- source_type: ("IN_LINE" | "S3_LOCATION")
1477
+ }?
1478
+ }?
1458
1479
  }?,
1459
- data_source_type: ("CUSTOM" | "S3"),
1460
1480
  s3: {
1461
1481
  s3_location: {
1462
1482
  uri: ::String
1463
1483
  }
1464
1484
  }?
1465
- },
1466
- metadata: {
1467
- inline_attributes: Array[
1468
- {
1469
- key: ::String,
1470
- value: {
1471
- boolean_value: bool?,
1472
- number_value: ::Float?,
1473
- string_list_value: Array[::String]?,
1474
- string_value: ::String?,
1475
- type: ("BOOLEAN" | "NUMBER" | "STRING" | "STRING_LIST")
1476
- }
1477
- },
1478
- ]?,
1479
- s3_location: {
1480
- bucket_owner_account_id: ::String?,
1481
- uri: ::String
1482
- }?,
1483
- type: ("IN_LINE_ATTRIBUTE" | "S3_LOCATION")
1484
- }?
1485
+ }
1485
1486
  },
1486
- ],
1487
- knowledge_base_id: ::String
1487
+ ]
1488
1488
  ) -> _IngestKnowledgeBaseDocumentsResponseSuccess
1489
1489
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IngestKnowledgeBaseDocumentsResponseSuccess
1490
1490
 
@@ -1626,6 +1626,7 @@ module Aws
1626
1626
  end
1627
1627
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#list_ingestion_jobs-instance_method
1628
1628
  def list_ingestion_jobs: (
1629
+ knowledge_base_id: ::String,
1629
1630
  data_source_id: ::String,
1630
1631
  ?filters: Array[
1631
1632
  {
@@ -1634,13 +1635,12 @@ module Aws
1634
1635
  values: Array[::String]
1635
1636
  },
1636
1637
  ],
1637
- knowledge_base_id: ::String,
1638
- ?max_results: ::Integer,
1639
- ?next_token: ::String,
1640
1638
  ?sort_by: {
1641
1639
  attribute: ("STATUS" | "STARTED_AT"),
1642
1640
  order: ("ASCENDING" | "DESCENDING")
1643
- }
1641
+ },
1642
+ ?max_results: ::Integer,
1643
+ ?next_token: ::String
1644
1644
  ) -> _ListIngestionJobsResponseSuccess
1645
1645
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListIngestionJobsResponseSuccess
1646
1646
 
@@ -1651,8 +1651,8 @@ module Aws
1651
1651
  end
1652
1652
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#list_knowledge_base_documents-instance_method
1653
1653
  def list_knowledge_base_documents: (
1654
- data_source_id: ::String,
1655
1654
  knowledge_base_id: ::String,
1655
+ data_source_id: ::String,
1656
1656
  ?max_results: ::Integer,
1657
1657
  ?next_token: ::String
1658
1658
  ) -> _ListKnowledgeBaseDocumentsResponseSuccess
@@ -1672,14 +1672,14 @@ module Aws
1672
1672
 
1673
1673
  interface _ListPromptsResponseSuccess
1674
1674
  include ::Seahorse::Client::_ResponseSuccess[Types::ListPromptsResponse]
1675
- def next_token: () -> ::String
1676
1675
  def prompt_summaries: () -> ::Array[Types::PromptSummary]
1676
+ def next_token: () -> ::String
1677
1677
  end
1678
1678
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#list_prompts-instance_method
1679
1679
  def list_prompts: (
1680
+ ?prompt_identifier: ::String,
1680
1681
  ?max_results: ::Integer,
1681
- ?next_token: ::String,
1682
- ?prompt_identifier: ::String
1682
+ ?next_token: ::String
1683
1683
  ) -> _ListPromptsResponseSuccess
1684
1684
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPromptsResponseSuccess
1685
1685
 
@@ -1723,10 +1723,10 @@ module Aws
1723
1723
  end
1724
1724
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#start_ingestion_job-instance_method
1725
1725
  def start_ingestion_job: (
1726
- ?client_token: ::String,
1726
+ knowledge_base_id: ::String,
1727
1727
  data_source_id: ::String,
1728
- ?description: ::String,
1729
- knowledge_base_id: ::String
1728
+ ?client_token: ::String,
1729
+ ?description: ::String
1730
1730
  ) -> _StartIngestionJobResponseSuccess
1731
1731
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartIngestionJobResponseSuccess
1732
1732
 
@@ -1736,9 +1736,9 @@ module Aws
1736
1736
  end
1737
1737
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#stop_ingestion_job-instance_method
1738
1738
  def stop_ingestion_job: (
1739
+ knowledge_base_id: ::String,
1739
1740
  data_source_id: ::String,
1740
- ingestion_job_id: ::String,
1741
- knowledge_base_id: ::String
1741
+ ingestion_job_id: ::String
1742
1742
  ) -> _StopIngestionJobResponseSuccess
1743
1743
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopIngestionJobResponseSuccess
1744
1744
 
@@ -1768,54 +1768,54 @@ module Aws
1768
1768
  end
1769
1769
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_agent-instance_method
1770
1770
  def update_agent: (
1771
- ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
1772
1771
  agent_id: ::String,
1773
1772
  agent_name: ::String,
1774
- agent_resource_role_arn: ::String,
1773
+ ?instruction: ::String,
1774
+ foundation_model: ::String,
1775
+ ?description: ::String,
1776
+ ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
1775
1777
  ?custom_orchestration: {
1776
1778
  executor: {
1777
1779
  lambda: ::String?
1778
1780
  }?
1779
1781
  },
1780
- ?customer_encryption_key_arn: ::String,
1781
- ?description: ::String,
1782
- foundation_model: ::String,
1783
- ?guardrail_configuration: {
1784
- guardrail_identifier: ::String?,
1785
- guardrail_version: ::String?
1786
- },
1787
1782
  ?idle_session_ttl_in_seconds: ::Integer,
1788
- ?instruction: ::String,
1789
- ?memory_configuration: {
1790
- enabled_memory_types: Array[("SESSION_SUMMARY")],
1791
- session_summary_configuration: {
1792
- max_recent_sessions: ::Integer?
1793
- }?,
1794
- storage_days: ::Integer?
1795
- },
1796
- ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
1783
+ agent_resource_role_arn: ::String,
1784
+ ?customer_encryption_key_arn: ::String,
1797
1785
  ?prompt_override_configuration: {
1798
- override_lambda: ::String?,
1799
1786
  prompt_configurations: Array[
1800
1787
  {
1801
- additional_model_request_fields: {
1802
- }?,
1788
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "POST_PROCESSING" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "MEMORY_SUMMARIZATION")?,
1789
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
1790
+ prompt_state: ("ENABLED" | "DISABLED")?,
1803
1791
  base_prompt_template: ::String?,
1804
- foundation_model: ::String?,
1805
1792
  inference_configuration: {
1806
- maximum_length: ::Integer?,
1807
- stop_sequences: Array[::String]?,
1808
1793
  temperature: ::Float?,
1794
+ top_p: ::Float?,
1809
1795
  top_k: ::Integer?,
1810
- top_p: ::Float?
1796
+ maximum_length: ::Integer?,
1797
+ stop_sequences: Array[::String]?
1811
1798
  }?,
1812
1799
  parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
1813
- prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
1814
- prompt_state: ("ENABLED" | "DISABLED")?,
1815
- prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "POST_PROCESSING" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "MEMORY_SUMMARIZATION")?
1800
+ foundation_model: ::String?,
1801
+ additional_model_request_fields: {
1802
+ }?
1816
1803
  },
1817
- ]
1818
- }
1804
+ ],
1805
+ override_lambda: ::String?
1806
+ },
1807
+ ?guardrail_configuration: {
1808
+ guardrail_identifier: ::String?,
1809
+ guardrail_version: ::String?
1810
+ },
1811
+ ?memory_configuration: {
1812
+ enabled_memory_types: Array[("SESSION_SUMMARY")],
1813
+ storage_days: ::Integer?,
1814
+ session_summary_configuration: {
1815
+ max_recent_sessions: ::Integer?
1816
+ }?
1817
+ },
1818
+ ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
1819
1819
  ) -> _UpdateAgentResponseSuccess
1820
1820
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentResponseSuccess
1821
1821
 
@@ -1825,39 +1825,39 @@ module Aws
1825
1825
  end
1826
1826
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_agent_action_group-instance_method
1827
1827
  def update_agent_action_group: (
1828
- ?action_group_executor: {
1829
- custom_control: ("RETURN_CONTROL")?,
1830
- lambda: ::String?
1831
- },
1828
+ agent_id: ::String,
1829
+ agent_version: ::String,
1832
1830
  action_group_id: ::String,
1833
1831
  action_group_name: ::String,
1832
+ ?description: ::String,
1833
+ ?parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor"),
1834
+ ?parent_action_group_signature_params: Hash[::String, ::String],
1835
+ ?action_group_executor: {
1836
+ lambda: ::String?,
1837
+ custom_control: ("RETURN_CONTROL")?
1838
+ },
1834
1839
  ?action_group_state: ("ENABLED" | "DISABLED"),
1835
- agent_id: ::String,
1836
- agent_version: ::String,
1837
1840
  ?api_schema: {
1838
- payload: ::String?,
1839
1841
  s3: {
1840
1842
  s3_bucket_name: ::String?,
1841
1843
  s3_object_key: ::String?
1842
- }?
1844
+ }?,
1845
+ payload: ::String?
1843
1846
  },
1844
- ?description: ::String,
1845
1847
  ?function_schema: {
1846
1848
  functions: Array[
1847
1849
  {
1848
- description: ::String?,
1849
1850
  name: ::String,
1851
+ description: ::String?,
1850
1852
  parameters: Hash[::String, {
1851
1853
  description: ::String?,
1852
- required: bool?,
1853
- type: ("string" | "number" | "integer" | "boolean" | "array")
1854
+ type: ("string" | "number" | "integer" | "boolean" | "array"),
1855
+ required: bool?
1854
1856
  }]?,
1855
1857
  require_confirmation: ("ENABLED" | "DISABLED")?
1856
1858
  },
1857
1859
  ]?
1858
- },
1859
- ?parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor"),
1860
- ?parent_action_group_signature_params: Hash[::String, ::String]
1860
+ }
1861
1861
  ) -> _UpdateAgentActionGroupResponseSuccess
1862
1862
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentActionGroupResponseSuccess
1863
1863
 
@@ -1867,17 +1867,17 @@ module Aws
1867
1867
  end
1868
1868
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_agent_alias-instance_method
1869
1869
  def update_agent_alias: (
1870
+ agent_id: ::String,
1870
1871
  agent_alias_id: ::String,
1871
1872
  agent_alias_name: ::String,
1872
- agent_id: ::String,
1873
- ?alias_invocation_state: ("ACCEPT_INVOCATIONS" | "REJECT_INVOCATIONS"),
1874
1873
  ?description: ::String,
1875
1874
  ?routing_configuration: Array[
1876
1875
  {
1877
1876
  agent_version: ::String?,
1878
1877
  provisioned_throughput: ::String?
1879
1878
  },
1880
- ]
1879
+ ],
1880
+ ?alias_invocation_state: ("ACCEPT_INVOCATIONS" | "REJECT_INVOCATIONS")
1881
1881
  ) -> _UpdateAgentAliasResponseSuccess
1882
1882
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentAliasResponseSuccess
1883
1883
 
@@ -1887,14 +1887,14 @@ module Aws
1887
1887
  end
1888
1888
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_agent_collaborator-instance_method
1889
1889
  def update_agent_collaborator: (
1890
- agent_descriptor: {
1891
- alias_arn: ::String?
1892
- },
1893
1890
  agent_id: ::String,
1894
1891
  agent_version: ::String,
1895
- collaboration_instruction: ::String,
1896
1892
  collaborator_id: ::String,
1893
+ agent_descriptor: {
1894
+ alias_arn: ::String?
1895
+ },
1897
1896
  collaborator_name: ::String,
1897
+ collaboration_instruction: ::String,
1898
1898
  ?relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")
1899
1899
  ) -> _UpdateAgentCollaboratorResponseSuccess
1900
1900
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentCollaboratorResponseSuccess
@@ -1907,8 +1907,8 @@ module Aws
1907
1907
  def update_agent_knowledge_base: (
1908
1908
  agent_id: ::String,
1909
1909
  agent_version: ::String,
1910
- ?description: ::String,
1911
1910
  knowledge_base_id: ::String,
1911
+ ?description: ::String,
1912
1912
  ?knowledge_base_state: ("ENABLED" | "DISABLED")
1913
1913
  ) -> _UpdateAgentKnowledgeBaseResponseSuccess
1914
1914
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentKnowledgeBaseResponseSuccess
@@ -1919,108 +1919,108 @@ module Aws
1919
1919
  end
1920
1920
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_data_source-instance_method
1921
1921
  def update_data_source: (
1922
- ?data_deletion_policy: ("RETAIN" | "DELETE"),
1922
+ knowledge_base_id: ::String,
1923
+ data_source_id: ::String,
1924
+ name: ::String,
1925
+ ?description: ::String,
1923
1926
  data_source_configuration: {
1927
+ type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "REDSHIFT_METADATA"),
1928
+ s3_configuration: {
1929
+ bucket_arn: ::String,
1930
+ inclusion_prefixes: Array[::String]?,
1931
+ bucket_owner_account_id: ::String?
1932
+ }?,
1933
+ web_configuration: {
1934
+ source_configuration: {
1935
+ url_configuration: {
1936
+ seed_urls: Array[
1937
+ {
1938
+ url: ::String?
1939
+ },
1940
+ ]?
1941
+ }
1942
+ },
1943
+ crawler_configuration: {
1944
+ crawler_limits: {
1945
+ rate_limit: ::Integer?,
1946
+ max_pages: ::Integer?
1947
+ }?,
1948
+ inclusion_filters: Array[::String]?,
1949
+ exclusion_filters: Array[::String]?,
1950
+ scope: ("HOST_ONLY" | "SUBDOMAINS")?,
1951
+ user_agent: ::String?,
1952
+ user_agent_header: ::String?
1953
+ }?
1954
+ }?,
1924
1955
  confluence_configuration: {
1956
+ source_configuration: {
1957
+ host_url: ::String,
1958
+ host_type: ("SAAS"),
1959
+ auth_type: ("BASIC" | "OAUTH2_CLIENT_CREDENTIALS"),
1960
+ credentials_secret_arn: ::String
1961
+ },
1925
1962
  crawler_configuration: {
1926
1963
  filter_configuration: {
1964
+ type: ("PATTERN"),
1927
1965
  pattern_object_filter: {
1928
1966
  filters: Array[
1929
1967
  {
1930
- exclusion_filters: Array[::String]?,
1968
+ object_type: ::String,
1931
1969
  inclusion_filters: Array[::String]?,
1932
- object_type: ::String
1970
+ exclusion_filters: Array[::String]?
1933
1971
  },
1934
1972
  ]
1935
- }?,
1936
- type: ("PATTERN")
1973
+ }?
1937
1974
  }?
1938
- }?,
1939
- source_configuration: {
1940
- auth_type: ("BASIC" | "OAUTH2_CLIENT_CREDENTIALS"),
1941
- credentials_secret_arn: ::String,
1942
- host_type: ("SAAS"),
1943
- host_url: ::String
1944
- }
1945
- }?,
1946
- s3_configuration: {
1947
- bucket_arn: ::String,
1948
- bucket_owner_account_id: ::String?,
1949
- inclusion_prefixes: Array[::String]?
1975
+ }?
1950
1976
  }?,
1951
1977
  salesforce_configuration: {
1978
+ source_configuration: {
1979
+ host_url: ::String,
1980
+ auth_type: ("OAUTH2_CLIENT_CREDENTIALS"),
1981
+ credentials_secret_arn: ::String
1982
+ },
1952
1983
  crawler_configuration: {
1953
1984
  filter_configuration: {
1985
+ type: ("PATTERN"),
1954
1986
  pattern_object_filter: {
1955
1987
  filters: Array[
1956
1988
  {
1957
- exclusion_filters: Array[::String]?,
1989
+ object_type: ::String,
1958
1990
  inclusion_filters: Array[::String]?,
1959
- object_type: ::String
1991
+ exclusion_filters: Array[::String]?
1960
1992
  },
1961
1993
  ]
1962
- }?,
1963
- type: ("PATTERN")
1994
+ }?
1964
1995
  }?
1965
- }?,
1966
- source_configuration: {
1967
- auth_type: ("OAUTH2_CLIENT_CREDENTIALS"),
1968
- credentials_secret_arn: ::String,
1969
- host_url: ::String
1970
- }
1996
+ }?
1971
1997
  }?,
1972
1998
  share_point_configuration: {
1999
+ source_configuration: {
2000
+ tenant_id: ::String?,
2001
+ domain: ::String,
2002
+ site_urls: Array[::String],
2003
+ host_type: ("ONLINE"),
2004
+ auth_type: ("OAUTH2_CLIENT_CREDENTIALS" | "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS"),
2005
+ credentials_secret_arn: ::String
2006
+ },
1973
2007
  crawler_configuration: {
1974
2008
  filter_configuration: {
2009
+ type: ("PATTERN"),
1975
2010
  pattern_object_filter: {
1976
2011
  filters: Array[
1977
2012
  {
1978
- exclusion_filters: Array[::String]?,
2013
+ object_type: ::String,
1979
2014
  inclusion_filters: Array[::String]?,
1980
- object_type: ::String
2015
+ exclusion_filters: Array[::String]?
1981
2016
  },
1982
2017
  ]
1983
- }?,
1984
- type: ("PATTERN")
2018
+ }?
1985
2019
  }?
1986
- }?,
1987
- source_configuration: {
1988
- auth_type: ("OAUTH2_CLIENT_CREDENTIALS" | "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS"),
1989
- credentials_secret_arn: ::String,
1990
- domain: ::String,
1991
- host_type: ("ONLINE"),
1992
- site_urls: Array[::String],
1993
- tenant_id: ::String?
1994
- }
1995
- }?,
1996
- type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "REDSHIFT_METADATA"),
1997
- web_configuration: {
1998
- crawler_configuration: {
1999
- crawler_limits: {
2000
- max_pages: ::Integer?,
2001
- rate_limit: ::Integer?
2002
- }?,
2003
- exclusion_filters: Array[::String]?,
2004
- inclusion_filters: Array[::String]?,
2005
- scope: ("HOST_ONLY" | "SUBDOMAINS")?,
2006
- user_agent: ::String?,
2007
- user_agent_header: ::String?
2008
- }?,
2009
- source_configuration: {
2010
- url_configuration: {
2011
- seed_urls: Array[
2012
- {
2013
- url: ::String?
2014
- },
2015
- ]?
2016
- }
2017
- }
2020
+ }?
2018
2021
  }?
2019
2022
  },
2020
- data_source_id: ::String,
2021
- ?description: ::String,
2022
- knowledge_base_id: ::String,
2023
- name: ::String,
2023
+ ?data_deletion_policy: ("RETAIN" | "DELETE"),
2024
2024
  ?server_side_encryption_configuration: {
2025
2025
  kms_key_arn: ::String?
2026
2026
  },
@@ -2040,20 +2040,11 @@ module Aws
2040
2040
  overlap_tokens: ::Integer
2041
2041
  }?,
2042
2042
  semantic_chunking_configuration: {
2043
- breakpoint_percentile_threshold: ::Integer,
2043
+ max_tokens: ::Integer,
2044
2044
  buffer_size: ::Integer,
2045
- max_tokens: ::Integer
2045
+ breakpoint_percentile_threshold: ::Integer
2046
2046
  }?
2047
2047
  }?,
2048
- context_enrichment_configuration: {
2049
- bedrock_foundation_model_configuration: {
2050
- enrichment_strategy_configuration: {
2051
- method: ("CHUNK_ENTITY_EXTRACTION")
2052
- },
2053
- model_arn: ::String
2054
- }?,
2055
- type: ("BEDROCK_FOUNDATION_MODEL")
2056
- }?,
2057
2048
  custom_transformation_configuration: {
2058
2049
  intermediate_storage: {
2059
2050
  s3_location: {
@@ -2062,27 +2053,36 @@ module Aws
2062
2053
  },
2063
2054
  transformations: Array[
2064
2055
  {
2065
- step_to_apply: ("POST_CHUNKING"),
2066
2056
  transformation_function: {
2067
2057
  transformation_lambda_configuration: {
2068
2058
  lambda_arn: ::String
2069
2059
  }
2070
- }
2060
+ },
2061
+ step_to_apply: ("POST_CHUNKING")
2071
2062
  },
2072
2063
  ]
2073
2064
  }?,
2074
2065
  parsing_configuration: {
2075
- bedrock_data_automation_configuration: {
2076
- parsing_modality: ("MULTIMODAL")?
2077
- }?,
2066
+ parsing_strategy: ("BEDROCK_FOUNDATION_MODEL" | "BEDROCK_DATA_AUTOMATION"),
2078
2067
  bedrock_foundation_model_configuration: {
2079
2068
  model_arn: ::String,
2080
- parsing_modality: ("MULTIMODAL")?,
2081
2069
  parsing_prompt: {
2082
2070
  parsing_prompt_text: ::String
2083
- }?
2071
+ }?,
2072
+ parsing_modality: ("MULTIMODAL")?
2084
2073
  }?,
2085
- parsing_strategy: ("BEDROCK_FOUNDATION_MODEL" | "BEDROCK_DATA_AUTOMATION")
2074
+ bedrock_data_automation_configuration: {
2075
+ parsing_modality: ("MULTIMODAL")?
2076
+ }?
2077
+ }?,
2078
+ context_enrichment_configuration: {
2079
+ type: ("BEDROCK_FOUNDATION_MODEL"),
2080
+ bedrock_foundation_model_configuration: {
2081
+ enrichment_strategy_configuration: {
2082
+ method: ("CHUNK_ENTITY_EXTRACTION")
2083
+ },
2084
+ model_arn: ::String
2085
+ }?
2086
2086
  }?
2087
2087
  }
2088
2088
  ) -> _UpdateDataSourceResponseSuccess
@@ -2090,308 +2090,308 @@ module Aws
2090
2090
 
2091
2091
  interface _UpdateFlowResponseSuccess
2092
2092
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFlowResponse]
2093
- def arn: () -> ::String
2094
- def created_at: () -> ::Time
2095
- def customer_encryption_key_arn: () -> ::String
2096
- def definition: () -> Types::FlowDefinition
2093
+ def name: () -> ::String
2097
2094
  def description: () -> ::String
2098
2095
  def execution_role_arn: () -> ::String
2096
+ def customer_encryption_key_arn: () -> ::String
2099
2097
  def id: () -> ::String
2100
- def name: () -> ::String
2098
+ def arn: () -> ::String
2101
2099
  def status: () -> ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
2100
+ def created_at: () -> ::Time
2102
2101
  def updated_at: () -> ::Time
2103
2102
  def version: () -> ::String
2103
+ def definition: () -> Types::FlowDefinition
2104
2104
  end
2105
2105
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_flow-instance_method
2106
2106
  def update_flow: (
2107
+ name: ::String,
2108
+ ?description: ::String,
2109
+ execution_role_arn: ::String,
2107
2110
  ?customer_encryption_key_arn: ::String,
2108
2111
  ?definition: {
2109
- connections: Array[
2110
- {
2111
- configuration: {
2112
- conditional: {
2113
- condition: ::String
2114
- }?,
2115
- data: {
2116
- source_output: ::String,
2117
- target_input: ::String
2118
- }?
2119
- }?,
2120
- name: ::String,
2121
- source: ::String,
2122
- target: ::String,
2123
- type: ("Data" | "Conditional")
2124
- },
2125
- ]?,
2126
2112
  nodes: Array[
2127
2113
  {
2114
+ name: ::String,
2115
+ type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController"),
2128
2116
  configuration: {
2129
- agent: {
2130
- agent_alias_arn: ::String
2131
- }?,
2132
- collector: {
2133
- }?,
2134
- condition: {
2135
- conditions: Array[
2136
- {
2137
- expression: ::String?,
2138
- name: ::String
2139
- },
2140
- ]
2141
- }?,
2142
- inline_code: {
2143
- code: ::String,
2144
- language: ("Python_3")
2145
- }?,
2146
2117
  input: {
2147
2118
  }?,
2148
- iterator: {
2119
+ output: {
2149
2120
  }?,
2150
2121
  knowledge_base: {
2122
+ knowledge_base_id: ::String,
2123
+ model_id: ::String?,
2151
2124
  guardrail_configuration: {
2152
2125
  guardrail_identifier: ::String?,
2153
2126
  guardrail_version: ::String?
2154
2127
  }?,
2128
+ number_of_results: ::Integer?,
2129
+ prompt_template: {
2130
+ text_prompt_template: ::String?
2131
+ }?,
2155
2132
  inference_configuration: {
2156
2133
  text: {
2157
- max_tokens: ::Integer?,
2158
- stop_sequences: Array[::String]?,
2159
2134
  temperature: ::Float?,
2160
- top_p: ::Float?
2161
- }?
2162
- }?,
2163
- knowledge_base_id: ::String,
2164
- model_id: ::String?,
2165
- number_of_results: ::Integer?,
2166
- orchestration_configuration: {
2167
- additional_model_request_fields: Hash[::String, {
2168
- }]?,
2169
- inference_config: {
2170
- text: {
2171
- max_tokens: ::Integer?,
2172
- stop_sequences: Array[::String]?,
2173
- temperature: ::Float?,
2174
- top_p: ::Float?
2175
- }?
2176
- }?,
2177
- performance_config: {
2178
- latency: ("standard" | "optimized")?
2179
- }?,
2180
- prompt_template: {
2181
- text_prompt_template: ::String?
2135
+ top_p: ::Float?,
2136
+ max_tokens: ::Integer?,
2137
+ stop_sequences: Array[::String]?
2182
2138
  }?
2183
2139
  }?,
2184
- prompt_template: {
2185
- text_prompt_template: ::String?
2186
- }?,
2187
2140
  reranking_configuration: {
2141
+ type: ("BEDROCK_RERANKING_MODEL"),
2188
2142
  bedrock_reranking_configuration: {
2143
+ model_configuration: {
2144
+ model_arn: ::String,
2145
+ additional_model_request_fields: Hash[::String, {
2146
+ }]?
2147
+ },
2148
+ number_of_reranked_results: ::Integer?,
2189
2149
  metadata_configuration: {
2190
2150
  selection_mode: ("SELECTIVE" | "ALL"),
2191
2151
  selective_mode_configuration: {
2192
- fields_to_exclude: Array[
2152
+ fields_to_include: Array[
2193
2153
  {
2194
2154
  field_name: ::String
2195
2155
  },
2196
2156
  ]?,
2197
- fields_to_include: Array[
2157
+ fields_to_exclude: Array[
2198
2158
  {
2199
2159
  field_name: ::String
2200
2160
  },
2201
2161
  ]?
2202
2162
  }?
2203
- }?,
2204
- model_configuration: {
2205
- additional_model_request_fields: Hash[::String, {
2206
- }]?,
2207
- model_arn: ::String
2208
- },
2209
- number_of_reranked_results: ::Integer?
2163
+ }?
2164
+ }?
2165
+ }?,
2166
+ orchestration_configuration: {
2167
+ prompt_template: {
2168
+ text_prompt_template: ::String?
2169
+ }?,
2170
+ inference_config: {
2171
+ text: {
2172
+ temperature: ::Float?,
2173
+ top_p: ::Float?,
2174
+ max_tokens: ::Integer?,
2175
+ stop_sequences: Array[::String]?
2176
+ }?
2210
2177
  }?,
2211
- type: ("BEDROCK_RERANKING_MODEL")
2178
+ additional_model_request_fields: Hash[::String, {
2179
+ }]?,
2180
+ performance_config: {
2181
+ latency: ("standard" | "optimized")?
2182
+ }?
2212
2183
  }?
2213
2184
  }?,
2214
- lambda_function: {
2215
- lambda_arn: ::String
2185
+ condition: {
2186
+ conditions: Array[
2187
+ {
2188
+ name: ::String,
2189
+ expression: ::String?
2190
+ },
2191
+ ]
2216
2192
  }?,
2217
2193
  lex: {
2218
2194
  bot_alias_arn: ::String,
2219
2195
  locale_id: ::String
2220
2196
  }?,
2221
- loop: {
2222
- definition: untyped
2223
- }?,
2224
- loop_controller: {
2225
- continue_condition: {
2226
- expression: ::String?,
2227
- name: ::String
2228
- },
2229
- max_iterations: ::Integer?
2230
- }?,
2231
- loop_input: {
2232
- }?,
2233
- output: {
2234
- }?,
2235
2197
  prompt: {
2236
- guardrail_configuration: {
2237
- guardrail_identifier: ::String?,
2238
- guardrail_version: ::String?
2239
- }?,
2240
2198
  source_configuration: {
2199
+ resource: {
2200
+ prompt_arn: ::String
2201
+ }?,
2241
2202
  inline: {
2242
- additional_model_request_fields: {
2243
- }?,
2244
- inference_configuration: {
2245
- text: {
2246
- max_tokens: ::Integer?,
2247
- stop_sequences: Array[::String]?,
2248
- temperature: ::Float?,
2249
- top_p: ::Float?
2250
- }?
2251
- }?,
2252
- model_id: ::String,
2203
+ template_type: ("TEXT" | "CHAT"),
2253
2204
  template_configuration: {
2254
- chat: {
2205
+ text: {
2206
+ text: ::String,
2207
+ cache_point: {
2208
+ type: ("default")
2209
+ }?,
2255
2210
  input_variables: Array[
2256
2211
  {
2257
2212
  name: ::String?
2258
2213
  },
2259
- ]?,
2214
+ ]?
2215
+ }?,
2216
+ chat: {
2260
2217
  messages: Array[
2261
2218
  {
2219
+ role: ("user" | "assistant"),
2262
2220
  content: Array[
2263
2221
  {
2222
+ text: ::String?,
2264
2223
  cache_point: {
2265
2224
  type: ("default")
2266
- }?,
2267
- text: ::String?
2225
+ }?
2268
2226
  },
2269
- ],
2270
- role: ("user" | "assistant")
2227
+ ]
2271
2228
  },
2272
2229
  ],
2273
2230
  system: Array[
2274
2231
  {
2232
+ text: ::String?,
2275
2233
  cache_point: {
2276
2234
  type: ("default")
2277
- }?,
2278
- text: ::String?
2235
+ }?
2236
+ },
2237
+ ]?,
2238
+ input_variables: Array[
2239
+ {
2240
+ name: ::String?
2279
2241
  },
2280
2242
  ]?,
2281
2243
  tool_configuration: {
2282
- tool_choice: {
2283
- any: {
2284
- }?,
2285
- auto: {
2286
- }?,
2287
- tool: {
2288
- name: ::String
2289
- }?
2290
- }?,
2291
2244
  tools: Array[
2292
2245
  {
2293
- cache_point: {
2294
- type: ("default")
2295
- }?,
2296
2246
  tool_spec: {
2247
+ name: ::String,
2297
2248
  description: ::String?,
2298
2249
  input_schema: {
2299
2250
  json: {
2300
2251
  }?
2301
- },
2302
- name: ::String
2252
+ }
2253
+ }?,
2254
+ cache_point: {
2255
+ type: ("default")
2303
2256
  }?
2304
2257
  },
2305
- ]
2258
+ ],
2259
+ tool_choice: {
2260
+ auto: {
2261
+ }?,
2262
+ any: {
2263
+ }?,
2264
+ tool: {
2265
+ name: ::String
2266
+ }?
2267
+ }?
2306
2268
  }?
2307
- }?,
2308
- text: {
2309
- cache_point: {
2310
- type: ("default")
2311
- }?,
2312
- input_variables: Array[
2313
- {
2314
- name: ::String?
2315
- },
2316
- ]?,
2317
- text: ::String
2318
2269
  }?
2319
2270
  },
2320
- template_type: ("TEXT" | "CHAT")
2321
- }?,
2322
- resource: {
2323
- prompt_arn: ::String
2271
+ model_id: ::String,
2272
+ inference_configuration: {
2273
+ text: {
2274
+ temperature: ::Float?,
2275
+ top_p: ::Float?,
2276
+ max_tokens: ::Integer?,
2277
+ stop_sequences: Array[::String]?
2278
+ }?
2279
+ }?,
2280
+ additional_model_request_fields: {
2281
+ }?
2324
2282
  }?
2325
- }
2283
+ },
2284
+ guardrail_configuration: {
2285
+ guardrail_identifier: ::String?,
2286
+ guardrail_version: ::String?
2287
+ }?
2326
2288
  }?,
2327
- retrieval: {
2289
+ lambda_function: {
2290
+ lambda_arn: ::String
2291
+ }?,
2292
+ storage: {
2328
2293
  service_configuration: {
2329
2294
  s3: {
2330
2295
  bucket_name: ::String
2331
2296
  }?
2332
2297
  }
2333
2298
  }?,
2334
- storage: {
2299
+ agent: {
2300
+ agent_alias_arn: ::String
2301
+ }?,
2302
+ retrieval: {
2335
2303
  service_configuration: {
2336
2304
  s3: {
2337
2305
  bucket_name: ::String
2338
2306
  }?
2339
2307
  }
2308
+ }?,
2309
+ iterator: {
2310
+ }?,
2311
+ collector: {
2312
+ }?,
2313
+ inline_code: {
2314
+ code: ::String,
2315
+ language: ("Python_3")
2316
+ }?,
2317
+ loop: {
2318
+ definition: untyped
2319
+ }?,
2320
+ loop_input: {
2321
+ }?,
2322
+ loop_controller: {
2323
+ continue_condition: {
2324
+ name: ::String,
2325
+ expression: ::String?
2326
+ },
2327
+ max_iterations: ::Integer?
2340
2328
  }?
2341
2329
  }?,
2342
2330
  inputs: Array[
2343
2331
  {
2344
- category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
2345
- expression: ::String,
2346
2332
  name: ::String,
2347
- type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2333
+ type: ("String" | "Number" | "Boolean" | "Object" | "Array"),
2334
+ expression: ::String,
2335
+ category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?
2348
2336
  },
2349
2337
  ]?,
2350
- name: ::String,
2351
2338
  outputs: Array[
2352
2339
  {
2353
2340
  name: ::String,
2354
2341
  type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2355
2342
  },
2356
- ]?,
2357
- type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
2343
+ ]?
2344
+ },
2345
+ ]?,
2346
+ connections: Array[
2347
+ {
2348
+ type: ("Data" | "Conditional"),
2349
+ name: ::String,
2350
+ source: ::String,
2351
+ target: ::String,
2352
+ configuration: {
2353
+ data: {
2354
+ source_output: ::String,
2355
+ target_input: ::String
2356
+ }?,
2357
+ conditional: {
2358
+ condition: ::String
2359
+ }?
2360
+ }?
2358
2361
  },
2359
2362
  ]?
2360
2363
  },
2361
- ?description: ::String,
2362
- execution_role_arn: ::String,
2363
- flow_identifier: ::String,
2364
- name: ::String
2364
+ flow_identifier: ::String
2365
2365
  ) -> _UpdateFlowResponseSuccess
2366
2366
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFlowResponseSuccess
2367
2367
 
2368
2368
  interface _UpdateFlowAliasResponseSuccess
2369
2369
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFlowAliasResponse]
2370
- def arn: () -> ::String
2371
- def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
2372
- def created_at: () -> ::Time
2370
+ def name: () -> ::String
2373
2371
  def description: () -> ::String
2372
+ def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
2373
+ def concurrency_configuration: () -> Types::FlowAliasConcurrencyConfiguration
2374
2374
  def flow_id: () -> ::String
2375
2375
  def id: () -> ::String
2376
- def name: () -> ::String
2377
- def routing_configuration: () -> ::Array[Types::FlowAliasRoutingConfigurationListItem]
2376
+ def arn: () -> ::String
2377
+ def created_at: () -> ::Time
2378
2378
  def updated_at: () -> ::Time
2379
2379
  end
2380
2380
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_flow_alias-instance_method
2381
2381
  def update_flow_alias: (
2382
- alias_identifier: ::String,
2383
- ?concurrency_configuration: {
2384
- max_concurrency: ::Integer?,
2385
- type: ("Automatic" | "Manual")
2386
- },
2387
- ?description: ::String,
2388
- flow_identifier: ::String,
2389
2382
  name: ::String,
2383
+ ?description: ::String,
2390
2384
  routing_configuration: Array[
2391
2385
  {
2392
2386
  flow_version: ::String?
2393
2387
  },
2394
- ]
2388
+ ],
2389
+ ?concurrency_configuration: {
2390
+ type: ("Automatic" | "Manual"),
2391
+ max_concurrency: ::Integer?
2392
+ },
2393
+ flow_identifier: ::String,
2394
+ alias_identifier: ::String
2395
2395
  ) -> _UpdateFlowAliasResponseSuccess
2396
2396
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFlowAliasResponseSuccess
2397
2397
 
@@ -2401,292 +2401,292 @@ module Aws
2401
2401
  end
2402
2402
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_knowledge_base-instance_method
2403
2403
  def update_knowledge_base: (
2404
+ knowledge_base_id: ::String,
2405
+ name: ::String,
2404
2406
  ?description: ::String,
2407
+ role_arn: ::String,
2405
2408
  knowledge_base_configuration: {
2409
+ type: ("VECTOR" | "KENDRA" | "SQL"),
2410
+ vector_knowledge_base_configuration: {
2411
+ embedding_model_arn: ::String,
2412
+ embedding_model_configuration: {
2413
+ bedrock_embedding_model_configuration: {
2414
+ dimensions: ::Integer?,
2415
+ embedding_data_type: ("FLOAT32" | "BINARY")?
2416
+ }?
2417
+ }?,
2418
+ supplemental_data_storage_configuration: {
2419
+ storage_locations: Array[
2420
+ {
2421
+ type: ("S3"),
2422
+ s3_location: {
2423
+ uri: ::String
2424
+ }?
2425
+ },
2426
+ ]
2427
+ }?
2428
+ }?,
2406
2429
  kendra_knowledge_base_configuration: {
2407
2430
  kendra_index_arn: ::String
2408
2431
  }?,
2409
2432
  sql_knowledge_base_configuration: {
2433
+ type: ("REDSHIFT"),
2410
2434
  redshift_configuration: {
2435
+ storage_configurations: Array[
2436
+ {
2437
+ type: ("REDSHIFT" | "AWS_DATA_CATALOG"),
2438
+ aws_data_catalog_configuration: {
2439
+ table_names: Array[::String]
2440
+ }?,
2441
+ redshift_configuration: {
2442
+ database_name: ::String
2443
+ }?
2444
+ },
2445
+ ],
2411
2446
  query_engine_configuration: {
2412
- provisioned_configuration: {
2413
- auth_configuration: {
2414
- database_user: ::String?,
2415
- type: ("IAM" | "USERNAME_PASSWORD" | "USERNAME"),
2416
- username_password_secret_arn: ::String?
2417
- },
2418
- cluster_identifier: ::String
2419
- }?,
2447
+ type: ("SERVERLESS" | "PROVISIONED"),
2420
2448
  serverless_configuration: {
2449
+ workgroup_arn: ::String,
2421
2450
  auth_configuration: {
2422
2451
  type: ("IAM" | "USERNAME_PASSWORD"),
2423
2452
  username_password_secret_arn: ::String?
2424
- },
2425
- workgroup_arn: ::String
2453
+ }
2426
2454
  }?,
2427
- type: ("SERVERLESS" | "PROVISIONED")
2455
+ provisioned_configuration: {
2456
+ cluster_identifier: ::String,
2457
+ auth_configuration: {
2458
+ type: ("IAM" | "USERNAME_PASSWORD" | "USERNAME"),
2459
+ database_user: ::String?,
2460
+ username_password_secret_arn: ::String?
2461
+ }
2462
+ }?
2428
2463
  },
2429
2464
  query_generation_configuration: {
2430
2465
  execution_timeout_seconds: ::Integer?,
2431
2466
  generation_context: {
2432
- curated_queries: Array[
2433
- {
2434
- natural_language: ::String,
2435
- sql: ::String
2436
- },
2437
- ]?,
2438
2467
  tables: Array[
2439
2468
  {
2469
+ name: ::String,
2470
+ description: ::String?,
2471
+ inclusion: ("INCLUDE" | "EXCLUDE")?,
2440
2472
  columns: Array[
2441
2473
  {
2474
+ name: ::String?,
2442
2475
  description: ::String?,
2443
- inclusion: ("INCLUDE" | "EXCLUDE")?,
2444
- name: ::String?
2476
+ inclusion: ("INCLUDE" | "EXCLUDE")?
2445
2477
  },
2446
- ]?,
2447
- description: ::String?,
2448
- inclusion: ("INCLUDE" | "EXCLUDE")?,
2449
- name: ::String
2478
+ ]?
2479
+ },
2480
+ ]?,
2481
+ curated_queries: Array[
2482
+ {
2483
+ natural_language: ::String,
2484
+ sql: ::String
2450
2485
  },
2451
2486
  ]?
2452
2487
  }?
2453
- }?,
2454
- storage_configurations: Array[
2455
- {
2456
- aws_data_catalog_configuration: {
2457
- table_names: Array[::String]
2458
- }?,
2459
- redshift_configuration: {
2460
- database_name: ::String
2461
- }?,
2462
- type: ("REDSHIFT" | "AWS_DATA_CATALOG")
2463
- },
2464
- ]
2465
- }?,
2466
- type: ("REDSHIFT")
2467
- }?,
2468
- type: ("VECTOR" | "KENDRA" | "SQL"),
2469
- vector_knowledge_base_configuration: {
2470
- embedding_model_arn: ::String,
2471
- embedding_model_configuration: {
2472
- bedrock_embedding_model_configuration: {
2473
- dimensions: ::Integer?,
2474
- embedding_data_type: ("FLOAT32" | "BINARY")?
2475
2488
  }?
2476
- }?,
2477
- supplemental_data_storage_configuration: {
2478
- storage_locations: Array[
2479
- {
2480
- s3_location: {
2481
- uri: ::String
2482
- }?,
2483
- type: ("S3")
2484
- },
2485
- ]
2486
2489
  }?
2487
2490
  }?
2488
2491
  },
2489
- knowledge_base_id: ::String,
2490
- name: ::String,
2491
- role_arn: ::String,
2492
2492
  ?storage_configuration: {
2493
- mongo_db_atlas_configuration: {
2494
- collection_name: ::String,
2495
- credentials_secret_arn: ::String,
2496
- database_name: ::String,
2497
- endpoint: ::String,
2498
- endpoint_service_name: ::String?,
2493
+ type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS" | "NEPTUNE_ANALYTICS" | "OPENSEARCH_MANAGED_CLUSTER" | "S3_VECTORS"),
2494
+ opensearch_serverless_configuration: {
2495
+ collection_arn: ::String,
2496
+ vector_index_name: ::String,
2499
2497
  field_mapping: {
2500
- metadata_field: ::String,
2498
+ vector_field: ::String,
2501
2499
  text_field: ::String,
2502
- vector_field: ::String
2503
- },
2504
- text_index_name: ::String?,
2505
- vector_index_name: ::String
2506
- }?,
2507
- neptune_analytics_configuration: {
2508
- field_mapping: {
2509
- metadata_field: ::String,
2510
- text_field: ::String
2511
- },
2512
- graph_arn: ::String
2500
+ metadata_field: ::String
2501
+ }
2513
2502
  }?,
2514
2503
  opensearch_managed_cluster_configuration: {
2515
- domain_arn: ::String,
2516
2504
  domain_endpoint: ::String,
2505
+ domain_arn: ::String,
2506
+ vector_index_name: ::String,
2517
2507
  field_mapping: {
2518
- metadata_field: ::String,
2508
+ vector_field: ::String,
2519
2509
  text_field: ::String,
2520
- vector_field: ::String
2521
- },
2522
- vector_index_name: ::String
2510
+ metadata_field: ::String
2511
+ }
2523
2512
  }?,
2524
- opensearch_serverless_configuration: {
2525
- collection_arn: ::String,
2513
+ pinecone_configuration: {
2514
+ connection_string: ::String,
2515
+ credentials_secret_arn: ::String,
2516
+ namespace: ::String?,
2526
2517
  field_mapping: {
2527
- metadata_field: ::String,
2528
2518
  text_field: ::String,
2529
- vector_field: ::String
2530
- },
2531
- vector_index_name: ::String
2519
+ metadata_field: ::String
2520
+ }
2532
2521
  }?,
2533
- pinecone_configuration: {
2534
- connection_string: ::String,
2522
+ redis_enterprise_cloud_configuration: {
2523
+ endpoint: ::String,
2524
+ vector_index_name: ::String,
2535
2525
  credentials_secret_arn: ::String,
2536
2526
  field_mapping: {
2537
- metadata_field: ::String,
2538
- text_field: ::String
2539
- },
2540
- namespace: ::String?
2527
+ vector_field: ::String,
2528
+ text_field: ::String,
2529
+ metadata_field: ::String
2530
+ }
2541
2531
  }?,
2542
2532
  rds_configuration: {
2533
+ resource_arn: ::String,
2543
2534
  credentials_secret_arn: ::String,
2544
2535
  database_name: ::String,
2536
+ table_name: ::String,
2545
2537
  field_mapping: {
2546
- custom_metadata_field: ::String?,
2547
- metadata_field: ::String,
2548
2538
  primary_key_field: ::String,
2539
+ vector_field: ::String,
2549
2540
  text_field: ::String,
2550
- vector_field: ::String
2551
- },
2552
- resource_arn: ::String,
2553
- table_name: ::String
2541
+ metadata_field: ::String,
2542
+ custom_metadata_field: ::String?
2543
+ }
2554
2544
  }?,
2555
- redis_enterprise_cloud_configuration: {
2556
- credentials_secret_arn: ::String,
2545
+ mongo_db_atlas_configuration: {
2557
2546
  endpoint: ::String,
2547
+ database_name: ::String,
2548
+ collection_name: ::String,
2549
+ vector_index_name: ::String,
2550
+ credentials_secret_arn: ::String,
2558
2551
  field_mapping: {
2559
- metadata_field: ::String,
2552
+ vector_field: ::String,
2560
2553
  text_field: ::String,
2561
- vector_field: ::String
2554
+ metadata_field: ::String
2562
2555
  },
2563
- vector_index_name: ::String
2556
+ endpoint_service_name: ::String?,
2557
+ text_index_name: ::String?
2558
+ }?,
2559
+ neptune_analytics_configuration: {
2560
+ graph_arn: ::String,
2561
+ field_mapping: {
2562
+ text_field: ::String,
2563
+ metadata_field: ::String
2564
+ }
2564
2565
  }?,
2565
2566
  s3_vectors_configuration: {
2567
+ vector_bucket_arn: ::String?,
2566
2568
  index_arn: ::String?,
2567
- index_name: ::String?,
2568
- vector_bucket_arn: ::String?
2569
- }?,
2570
- type: ("OPENSEARCH_SERVERLESS" | "PINECONE" | "REDIS_ENTERPRISE_CLOUD" | "RDS" | "MONGO_DB_ATLAS" | "NEPTUNE_ANALYTICS" | "OPENSEARCH_MANAGED_CLUSTER" | "S3_VECTORS")
2569
+ index_name: ::String?
2570
+ }?
2571
2571
  }
2572
2572
  ) -> _UpdateKnowledgeBaseResponseSuccess
2573
2573
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateKnowledgeBaseResponseSuccess
2574
2574
 
2575
2575
  interface _UpdatePromptResponseSuccess
2576
2576
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePromptResponse]
2577
- def arn: () -> ::String
2578
- def created_at: () -> ::Time
2577
+ def name: () -> ::String
2578
+ def description: () -> ::String
2579
2579
  def customer_encryption_key_arn: () -> ::String
2580
2580
  def default_variant: () -> ::String
2581
- def description: () -> ::String
2582
- def id: () -> ::String
2583
- def name: () -> ::String
2584
- def updated_at: () -> ::Time
2585
2581
  def variants: () -> ::Array[Types::PromptVariant]
2582
+ def id: () -> ::String
2583
+ def arn: () -> ::String
2586
2584
  def version: () -> ::String
2585
+ def created_at: () -> ::Time
2586
+ def updated_at: () -> ::Time
2587
2587
  end
2588
2588
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_prompt-instance_method
2589
2589
  def update_prompt: (
2590
+ name: ::String,
2591
+ ?description: ::String,
2590
2592
  ?customer_encryption_key_arn: ::String,
2591
2593
  ?default_variant: ::String,
2592
- ?description: ::String,
2593
- name: ::String,
2594
- prompt_identifier: ::String,
2595
2594
  ?variants: Array[
2596
2595
  {
2597
- additional_model_request_fields: {
2598
- }?,
2599
- gen_ai_resource: {
2600
- agent: {
2601
- agent_identifier: ::String
2602
- }?
2603
- }?,
2604
- inference_configuration: {
2596
+ name: ::String,
2597
+ template_type: ("TEXT" | "CHAT"),
2598
+ template_configuration: {
2605
2599
  text: {
2606
- max_tokens: ::Integer?,
2607
- stop_sequences: Array[::String]?,
2608
- temperature: ::Float?,
2609
- top_p: ::Float?
2610
- }?
2611
- }?,
2612
- metadata: Array[
2613
- {
2614
- key: ::String,
2615
- value: ::String
2616
- },
2617
- ]?,
2618
- model_id: ::String?,
2619
- name: ::String,
2620
- template_configuration: {
2621
- chat: {
2600
+ text: ::String,
2601
+ cache_point: {
2602
+ type: ("default")
2603
+ }?,
2622
2604
  input_variables: Array[
2623
2605
  {
2624
2606
  name: ::String?
2625
2607
  },
2626
- ]?,
2608
+ ]?
2609
+ }?,
2610
+ chat: {
2627
2611
  messages: Array[
2628
2612
  {
2613
+ role: ("user" | "assistant"),
2629
2614
  content: Array[
2630
2615
  {
2616
+ text: ::String?,
2631
2617
  cache_point: {
2632
2618
  type: ("default")
2633
- }?,
2634
- text: ::String?
2619
+ }?
2635
2620
  },
2636
- ],
2637
- role: ("user" | "assistant")
2621
+ ]
2638
2622
  },
2639
2623
  ],
2640
2624
  system: Array[
2641
2625
  {
2626
+ text: ::String?,
2642
2627
  cache_point: {
2643
2628
  type: ("default")
2644
- }?,
2645
- text: ::String?
2629
+ }?
2630
+ },
2631
+ ]?,
2632
+ input_variables: Array[
2633
+ {
2634
+ name: ::String?
2646
2635
  },
2647
2636
  ]?,
2648
2637
  tool_configuration: {
2649
- tool_choice: {
2650
- any: {
2651
- }?,
2652
- auto: {
2653
- }?,
2654
- tool: {
2655
- name: ::String
2656
- }?
2657
- }?,
2658
2638
  tools: Array[
2659
2639
  {
2660
- cache_point: {
2661
- type: ("default")
2662
- }?,
2663
2640
  tool_spec: {
2641
+ name: ::String,
2664
2642
  description: ::String?,
2665
2643
  input_schema: {
2666
2644
  json: {
2667
2645
  }?
2668
- },
2669
- name: ::String
2646
+ }
2647
+ }?,
2648
+ cache_point: {
2649
+ type: ("default")
2670
2650
  }?
2671
2651
  },
2672
- ]
2652
+ ],
2653
+ tool_choice: {
2654
+ auto: {
2655
+ }?,
2656
+ any: {
2657
+ }?,
2658
+ tool: {
2659
+ name: ::String
2660
+ }?
2661
+ }?
2673
2662
  }?
2674
- }?,
2675
- text: {
2676
- cache_point: {
2677
- type: ("default")
2678
- }?,
2679
- input_variables: Array[
2680
- {
2681
- name: ::String?
2682
- },
2683
- ]?,
2684
- text: ::String
2685
2663
  }?
2686
2664
  },
2687
- template_type: ("TEXT" | "CHAT")
2665
+ model_id: ::String?,
2666
+ inference_configuration: {
2667
+ text: {
2668
+ temperature: ::Float?,
2669
+ top_p: ::Float?,
2670
+ max_tokens: ::Integer?,
2671
+ stop_sequences: Array[::String]?
2672
+ }?
2673
+ }?,
2674
+ metadata: Array[
2675
+ {
2676
+ key: ::String,
2677
+ value: ::String
2678
+ },
2679
+ ]?,
2680
+ additional_model_request_fields: {
2681
+ }?,
2682
+ gen_ai_resource: {
2683
+ agent: {
2684
+ agent_identifier: ::String
2685
+ }?
2686
+ }?
2688
2687
  },
2689
- ]
2688
+ ],
2689
+ prompt_identifier: ::String
2690
2690
  ) -> _UpdatePromptResponseSuccess
2691
2691
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePromptResponseSuccess
2692
2692
 
@@ -2697,255 +2697,255 @@ module Aws
2697
2697
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#validate_flow_definition-instance_method
2698
2698
  def validate_flow_definition: (
2699
2699
  definition: {
2700
- connections: Array[
2701
- {
2702
- configuration: {
2703
- conditional: {
2704
- condition: ::String
2705
- }?,
2706
- data: {
2707
- source_output: ::String,
2708
- target_input: ::String
2709
- }?
2710
- }?,
2711
- name: ::String,
2712
- source: ::String,
2713
- target: ::String,
2714
- type: ("Data" | "Conditional")
2715
- },
2716
- ]?,
2717
2700
  nodes: Array[
2718
2701
  {
2702
+ name: ::String,
2703
+ type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController"),
2719
2704
  configuration: {
2720
- agent: {
2721
- agent_alias_arn: ::String
2722
- }?,
2723
- collector: {
2724
- }?,
2725
- condition: {
2726
- conditions: Array[
2727
- {
2728
- expression: ::String?,
2729
- name: ::String
2730
- },
2731
- ]
2732
- }?,
2733
- inline_code: {
2734
- code: ::String,
2735
- language: ("Python_3")
2736
- }?,
2737
2705
  input: {
2738
2706
  }?,
2739
- iterator: {
2707
+ output: {
2740
2708
  }?,
2741
2709
  knowledge_base: {
2710
+ knowledge_base_id: ::String,
2711
+ model_id: ::String?,
2742
2712
  guardrail_configuration: {
2743
2713
  guardrail_identifier: ::String?,
2744
2714
  guardrail_version: ::String?
2745
2715
  }?,
2716
+ number_of_results: ::Integer?,
2717
+ prompt_template: {
2718
+ text_prompt_template: ::String?
2719
+ }?,
2746
2720
  inference_configuration: {
2747
2721
  text: {
2748
- max_tokens: ::Integer?,
2749
- stop_sequences: Array[::String]?,
2750
2722
  temperature: ::Float?,
2751
- top_p: ::Float?
2752
- }?
2753
- }?,
2754
- knowledge_base_id: ::String,
2755
- model_id: ::String?,
2756
- number_of_results: ::Integer?,
2757
- orchestration_configuration: {
2758
- additional_model_request_fields: Hash[::String, {
2759
- }]?,
2760
- inference_config: {
2761
- text: {
2762
- max_tokens: ::Integer?,
2763
- stop_sequences: Array[::String]?,
2764
- temperature: ::Float?,
2765
- top_p: ::Float?
2766
- }?
2767
- }?,
2768
- performance_config: {
2769
- latency: ("standard" | "optimized")?
2770
- }?,
2771
- prompt_template: {
2772
- text_prompt_template: ::String?
2723
+ top_p: ::Float?,
2724
+ max_tokens: ::Integer?,
2725
+ stop_sequences: Array[::String]?
2773
2726
  }?
2774
2727
  }?,
2775
- prompt_template: {
2776
- text_prompt_template: ::String?
2777
- }?,
2778
2728
  reranking_configuration: {
2729
+ type: ("BEDROCK_RERANKING_MODEL"),
2779
2730
  bedrock_reranking_configuration: {
2731
+ model_configuration: {
2732
+ model_arn: ::String,
2733
+ additional_model_request_fields: Hash[::String, {
2734
+ }]?
2735
+ },
2736
+ number_of_reranked_results: ::Integer?,
2780
2737
  metadata_configuration: {
2781
2738
  selection_mode: ("SELECTIVE" | "ALL"),
2782
2739
  selective_mode_configuration: {
2783
- fields_to_exclude: Array[
2740
+ fields_to_include: Array[
2784
2741
  {
2785
2742
  field_name: ::String
2786
2743
  },
2787
2744
  ]?,
2788
- fields_to_include: Array[
2745
+ fields_to_exclude: Array[
2789
2746
  {
2790
2747
  field_name: ::String
2791
2748
  },
2792
2749
  ]?
2793
2750
  }?
2794
- }?,
2795
- model_configuration: {
2796
- additional_model_request_fields: Hash[::String, {
2797
- }]?,
2798
- model_arn: ::String
2799
- },
2800
- number_of_reranked_results: ::Integer?
2751
+ }?
2752
+ }?
2753
+ }?,
2754
+ orchestration_configuration: {
2755
+ prompt_template: {
2756
+ text_prompt_template: ::String?
2757
+ }?,
2758
+ inference_config: {
2759
+ text: {
2760
+ temperature: ::Float?,
2761
+ top_p: ::Float?,
2762
+ max_tokens: ::Integer?,
2763
+ stop_sequences: Array[::String]?
2764
+ }?
2801
2765
  }?,
2802
- type: ("BEDROCK_RERANKING_MODEL")
2766
+ additional_model_request_fields: Hash[::String, {
2767
+ }]?,
2768
+ performance_config: {
2769
+ latency: ("standard" | "optimized")?
2770
+ }?
2803
2771
  }?
2804
2772
  }?,
2805
- lambda_function: {
2806
- lambda_arn: ::String
2773
+ condition: {
2774
+ conditions: Array[
2775
+ {
2776
+ name: ::String,
2777
+ expression: ::String?
2778
+ },
2779
+ ]
2807
2780
  }?,
2808
2781
  lex: {
2809
2782
  bot_alias_arn: ::String,
2810
2783
  locale_id: ::String
2811
2784
  }?,
2812
- loop: {
2813
- definition: untyped
2814
- }?,
2815
- loop_controller: {
2816
- continue_condition: {
2817
- expression: ::String?,
2818
- name: ::String
2819
- },
2820
- max_iterations: ::Integer?
2821
- }?,
2822
- loop_input: {
2823
- }?,
2824
- output: {
2825
- }?,
2826
2785
  prompt: {
2827
- guardrail_configuration: {
2828
- guardrail_identifier: ::String?,
2829
- guardrail_version: ::String?
2830
- }?,
2831
2786
  source_configuration: {
2787
+ resource: {
2788
+ prompt_arn: ::String
2789
+ }?,
2832
2790
  inline: {
2833
- additional_model_request_fields: {
2834
- }?,
2835
- inference_configuration: {
2836
- text: {
2837
- max_tokens: ::Integer?,
2838
- stop_sequences: Array[::String]?,
2839
- temperature: ::Float?,
2840
- top_p: ::Float?
2841
- }?
2842
- }?,
2843
- model_id: ::String,
2791
+ template_type: ("TEXT" | "CHAT"),
2844
2792
  template_configuration: {
2845
- chat: {
2793
+ text: {
2794
+ text: ::String,
2795
+ cache_point: {
2796
+ type: ("default")
2797
+ }?,
2846
2798
  input_variables: Array[
2847
2799
  {
2848
2800
  name: ::String?
2849
2801
  },
2850
- ]?,
2802
+ ]?
2803
+ }?,
2804
+ chat: {
2851
2805
  messages: Array[
2852
2806
  {
2807
+ role: ("user" | "assistant"),
2853
2808
  content: Array[
2854
2809
  {
2810
+ text: ::String?,
2855
2811
  cache_point: {
2856
2812
  type: ("default")
2857
- }?,
2858
- text: ::String?
2813
+ }?
2859
2814
  },
2860
- ],
2861
- role: ("user" | "assistant")
2815
+ ]
2862
2816
  },
2863
2817
  ],
2864
2818
  system: Array[
2865
2819
  {
2820
+ text: ::String?,
2866
2821
  cache_point: {
2867
2822
  type: ("default")
2868
- }?,
2869
- text: ::String?
2823
+ }?
2824
+ },
2825
+ ]?,
2826
+ input_variables: Array[
2827
+ {
2828
+ name: ::String?
2870
2829
  },
2871
2830
  ]?,
2872
2831
  tool_configuration: {
2873
- tool_choice: {
2874
- any: {
2875
- }?,
2876
- auto: {
2877
- }?,
2878
- tool: {
2879
- name: ::String
2880
- }?
2881
- }?,
2882
2832
  tools: Array[
2883
2833
  {
2884
- cache_point: {
2885
- type: ("default")
2886
- }?,
2887
2834
  tool_spec: {
2835
+ name: ::String,
2888
2836
  description: ::String?,
2889
2837
  input_schema: {
2890
2838
  json: {
2891
2839
  }?
2892
- },
2893
- name: ::String
2840
+ }
2841
+ }?,
2842
+ cache_point: {
2843
+ type: ("default")
2894
2844
  }?
2895
2845
  },
2896
- ]
2846
+ ],
2847
+ tool_choice: {
2848
+ auto: {
2849
+ }?,
2850
+ any: {
2851
+ }?,
2852
+ tool: {
2853
+ name: ::String
2854
+ }?
2855
+ }?
2897
2856
  }?
2898
- }?,
2899
- text: {
2900
- cache_point: {
2901
- type: ("default")
2902
- }?,
2903
- input_variables: Array[
2904
- {
2905
- name: ::String?
2906
- },
2907
- ]?,
2908
- text: ::String
2909
2857
  }?
2910
2858
  },
2911
- template_type: ("TEXT" | "CHAT")
2912
- }?,
2913
- resource: {
2914
- prompt_arn: ::String
2859
+ model_id: ::String,
2860
+ inference_configuration: {
2861
+ text: {
2862
+ temperature: ::Float?,
2863
+ top_p: ::Float?,
2864
+ max_tokens: ::Integer?,
2865
+ stop_sequences: Array[::String]?
2866
+ }?
2867
+ }?,
2868
+ additional_model_request_fields: {
2869
+ }?
2915
2870
  }?
2916
- }
2871
+ },
2872
+ guardrail_configuration: {
2873
+ guardrail_identifier: ::String?,
2874
+ guardrail_version: ::String?
2875
+ }?
2917
2876
  }?,
2918
- retrieval: {
2877
+ lambda_function: {
2878
+ lambda_arn: ::String
2879
+ }?,
2880
+ storage: {
2919
2881
  service_configuration: {
2920
2882
  s3: {
2921
2883
  bucket_name: ::String
2922
2884
  }?
2923
2885
  }
2924
2886
  }?,
2925
- storage: {
2887
+ agent: {
2888
+ agent_alias_arn: ::String
2889
+ }?,
2890
+ retrieval: {
2926
2891
  service_configuration: {
2927
2892
  s3: {
2928
2893
  bucket_name: ::String
2929
2894
  }?
2930
2895
  }
2896
+ }?,
2897
+ iterator: {
2898
+ }?,
2899
+ collector: {
2900
+ }?,
2901
+ inline_code: {
2902
+ code: ::String,
2903
+ language: ("Python_3")
2904
+ }?,
2905
+ loop: {
2906
+ definition: untyped
2907
+ }?,
2908
+ loop_input: {
2909
+ }?,
2910
+ loop_controller: {
2911
+ continue_condition: {
2912
+ name: ::String,
2913
+ expression: ::String?
2914
+ },
2915
+ max_iterations: ::Integer?
2931
2916
  }?
2932
2917
  }?,
2933
2918
  inputs: Array[
2934
2919
  {
2935
- category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?,
2936
- expression: ::String,
2937
2920
  name: ::String,
2938
- type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2921
+ type: ("String" | "Number" | "Boolean" | "Object" | "Array"),
2922
+ expression: ::String,
2923
+ category: ("LoopCondition" | "ReturnValueToLoopStart" | "ExitLoop")?
2939
2924
  },
2940
2925
  ]?,
2941
- name: ::String,
2942
2926
  outputs: Array[
2943
2927
  {
2944
2928
  name: ::String,
2945
2929
  type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2946
2930
  },
2947
- ]?,
2948
- type: ("Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction" | "Storage" | "Agent" | "Retrieval" | "Iterator" | "Collector" | "InlineCode" | "Loop" | "LoopInput" | "LoopController")
2931
+ ]?
2932
+ },
2933
+ ]?,
2934
+ connections: Array[
2935
+ {
2936
+ type: ("Data" | "Conditional"),
2937
+ name: ::String,
2938
+ source: ::String,
2939
+ target: ::String,
2940
+ configuration: {
2941
+ data: {
2942
+ source_output: ::String,
2943
+ target_input: ::String
2944
+ }?,
2945
+ conditional: {
2946
+ condition: ::String
2947
+ }?
2948
+ }?
2949
2949
  },
2950
2950
  ]?
2951
2951
  }