aws-sdk-bedrockruntime 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0e0200afdf318bf8b42e56aa891f1c946e2ec4e9d7809d27eb667fa6cbc8387
4
- data.tar.gz: 1fede36e7d7af358c468cef01370b6638486dc034f6b73e830d500ad692f9d86
3
+ metadata.gz: '018cc360f160c622096a32202404eaabe2ad23115886e6089f5fc96325ca39d9'
4
+ data.tar.gz: af955e1589a328c30bf3512f568bda00a7accd21c15fe2ff98bb89513e24b37e
5
5
  SHA512:
6
- metadata.gz: c78778047928bc6fec7f83e47fb6e23016e760d1da29ea312d5a36dcb88612e69c878d6bedf5ed27f1ece1a6295f60114161e277c1b2552db09fae535b7ccc07
7
- data.tar.gz: f8ae819ac4a3205c105e66b2195867a45e600ac7001f878f3730662c15536080fe52ba2affe3d06340b5352f31780efcd9d969ee73148f4aceefa297eb00a0dd
6
+ metadata.gz: fbfb7db5193408a5c0ac3cc9ef06e11bb52fce61eb8fd13f5b63463043c57865a1a19fb197449bd73636b6a290846e3ced50dc32476f9ae9532b2be6a3206808
7
+ data.tar.gz: 81e0f4d90de18e7852b34b389a7c34f65a670844c944422942932e14da7dd7f88d5a7d00788f4edd08a9661e68898eab2b615198ed2ec311a4fd46c5a049fb8e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.11.0 (2024-06-18)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for using Guardrails with the Converse and ConverseStream APIs.
8
+
4
9
  1.10.0 (2024-06-05)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.0
1
+ 1.11.0
@@ -428,15 +428,19 @@ module Aws::BedrockRuntime
428
428
  # provides a consistent interface that works with all models that
429
429
  # support messages. This allows you to write code once and use it with
430
430
  # different models. Should a model have unique inference parameters, you
431
- # can also pass those unique parameters to the model. For more
432
- # information, see [Run inference][1] in the Bedrock User Guide.
433
- #
434
- # This operation requires permission for the `bedrock:InvokeModel`
435
- # action.
431
+ # can also pass those unique parameters to the model.
436
432
  #
433
+ # For information about the Converse API, see *Use the Converse API* in
434
+ # the *Amazon Bedrock User Guide*. To use a guardrail, see *Use a
435
+ # guardrail with the Converse API* in the *Amazon Bedrock User Guide*.
436
+ # To use a tool with a model, see *Tool use (Function calling)* in the
437
+ # *Amazon Bedrock User Guide*
437
438
  #
439
+ # For example code, see *Converse API examples* in the *Amazon Bedrock
440
+ # User Guide*.
438
441
  #
439
- # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
442
+ # This operation requires permission for the `bedrock:InvokeModel`
443
+ # action.
440
444
  #
441
445
  # @option params [required, String] :model_id
442
446
  # The identifier for the model that you want to call.
@@ -483,6 +487,10 @@ module Aws::BedrockRuntime
483
487
  #
484
488
  # </note>
485
489
  #
490
+ # @option params [Types::GuardrailConfiguration] :guardrail_config
491
+ # Configuration information for a guardrail that you want to use in the
492
+ # request.
493
+ #
486
494
  # @option params [Hash,Array,String,Numeric,Boolean] :additional_model_request_fields
487
495
  # Additional inference parameters that the model supports, beyond the
488
496
  # base set of inference parameters that `Converse` supports in the
@@ -501,8 +509,8 @@ module Aws::BedrockRuntime
501
509
  # @option params [Array<String>] :additional_model_response_field_paths
502
510
  # Additional model parameters field paths to return in the response.
503
511
  # `Converse` returns the requested fields as a JSON Pointer object in
504
- # the `additionalModelResultFields` field. The following is example JSON
505
- # for `additionalModelResponseFieldPaths`.
512
+ # the `additionalModelResponseFields` field. The following is example
513
+ # JSON for `additionalModelResponseFieldPaths`.
506
514
  #
507
515
  # `[ "/stop_sequence" ]`
508
516
  #
@@ -525,6 +533,7 @@ module Aws::BedrockRuntime
525
533
  # * {Types::ConverseResponse#usage #usage} => Types::TokenUsage
526
534
  # * {Types::ConverseResponse#metrics #metrics} => Types::ConverseMetrics
527
535
  # * {Types::ConverseResponse#additional_model_response_fields #additional_model_response_fields} => Hash,Array,String,Numeric,Boolean
536
+ # * {Types::ConverseResponse#trace #trace} => Types::ConverseTrace
528
537
  #
529
538
  # @example Request syntax with placeholder values
530
539
  #
@@ -565,6 +574,11 @@ module Aws::BedrockRuntime
565
574
  # ],
566
575
  # status: "success", # accepts success, error
567
576
  # },
577
+ # guard_content: {
578
+ # text: {
579
+ # text: "String", # required
580
+ # },
581
+ # },
568
582
  # },
569
583
  # ],
570
584
  # },
@@ -572,6 +586,11 @@ module Aws::BedrockRuntime
572
586
  # system: [
573
587
  # {
574
588
  # text: "NonEmptyString",
589
+ # guard_content: {
590
+ # text: {
591
+ # text: "String", # required
592
+ # },
593
+ # },
575
594
  # },
576
595
  # ],
577
596
  # inference_config: {
@@ -603,6 +622,11 @@ module Aws::BedrockRuntime
603
622
  # },
604
623
  # },
605
624
  # },
625
+ # guardrail_config: {
626
+ # guardrail_identifier: "GuardrailIdentifier", # required
627
+ # guardrail_version: "GuardrailVersion", # required
628
+ # trace: "enabled", # accepts enabled, disabled
629
+ # },
606
630
  # additional_model_request_fields: {
607
631
  # },
608
632
  # additional_model_response_field_paths: ["ConverseRequestAdditionalModelResponseFieldPathsListMemberString"],
@@ -623,11 +647,65 @@ module Aws::BedrockRuntime
623
647
  # resp.output.message.content[0].tool_result.content[0].image.format #=> String, one of "png", "jpeg", "gif", "webp"
624
648
  # resp.output.message.content[0].tool_result.content[0].image.source.bytes #=> String
625
649
  # resp.output.message.content[0].tool_result.status #=> String, one of "success", "error"
626
- # resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "content_filtered"
650
+ # resp.output.message.content[0].guard_content.text.text #=> String
651
+ # resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"
627
652
  # resp.usage.input_tokens #=> Integer
628
653
  # resp.usage.output_tokens #=> Integer
629
654
  # resp.usage.total_tokens #=> Integer
630
655
  # resp.metrics.latency_ms #=> Integer
656
+ # resp.trace.guardrail.model_output #=> Array
657
+ # resp.trace.guardrail.model_output[0] #=> String
658
+ # resp.trace.guardrail.input_assessment #=> Hash
659
+ # resp.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
660
+ # resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
661
+ # resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
662
+ # resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
663
+ # resp.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
664
+ # resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
665
+ # resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
666
+ # resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
667
+ # resp.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
668
+ # resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
669
+ # resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
670
+ # resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
671
+ # resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
672
+ # resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
673
+ # resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
674
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
675
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
676
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].type #=> String, one of "ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"
677
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
678
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
679
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
680
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
681
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
682
+ # resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
683
+ # resp.trace.guardrail.output_assessments #=> Hash
684
+ # resp.trace.guardrail.output_assessments["String"] #=> Array
685
+ # resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
686
+ # resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
687
+ # resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
688
+ # resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
689
+ # resp.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
690
+ # resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
691
+ # resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
692
+ # resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
693
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
694
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
695
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
696
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
697
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
698
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
699
+ # resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
700
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
701
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
702
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].type #=> String, one of "ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"
703
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
704
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
705
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
706
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
707
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
708
+ # resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
631
709
  #
632
710
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Converse AWS API Documentation
633
711
  #
@@ -643,23 +721,27 @@ module Aws::BedrockRuntime
643
721
  # works with all Amazon Bedrock models that support messages. This
644
722
  # allows you to write code once and use it with different models. Should
645
723
  # a model have unique inference parameters, you can also pass those
646
- # unique parameters to the model. For more information, see [Run
647
- # inference][1] in the Bedrock User Guide.
724
+ # unique parameters to the model.
648
725
  #
649
726
  # To find out if a model supports streaming, call
650
- # [GetFoundationModel][2] and check the `responseStreamingSupported`
727
+ # [GetFoundationModel][1] and check the `responseStreamingSupported`
651
728
  # field in the response.
652
729
  #
653
- # For example code, see *Invoke model with streaming code example* in
654
- # the *Amazon Bedrock User Guide*.
730
+ # For information about the Converse API, see *Use the Converse API* in
731
+ # the *Amazon Bedrock User Guide*. To use a guardrail, see *Use a
732
+ # guardrail with the Converse API* in the *Amazon Bedrock User Guide*.
733
+ # To use a tool with a model, see *Tool use (Function calling)* in the
734
+ # *Amazon Bedrock User Guide*
735
+ #
736
+ # For example code, see *Conversation streaming example* in the *Amazon
737
+ # Bedrock User Guide*.
655
738
  #
656
739
  # This operation requires permission for the
657
740
  # `bedrock:InvokeModelWithResponseStream` action.
658
741
  #
659
742
  #
660
743
  #
661
- # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
662
- # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html
744
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html
663
745
  #
664
746
  # @option params [required, String] :model_id
665
747
  # The ID for the model.
@@ -705,6 +787,10 @@ module Aws::BedrockRuntime
705
787
  #
706
788
  # </note>
707
789
  #
790
+ # @option params [Types::GuardrailStreamConfiguration] :guardrail_config
791
+ # Configuration information for a guardrail that you want to use in the
792
+ # request.
793
+ #
708
794
  # @option params [Hash,Array,String,Numeric,Boolean] :additional_model_request_fields
709
795
  # Additional inference parameters that the model supports, beyond the
710
796
  # base set of inference parameters that `ConverseStream` supports in the
@@ -718,7 +804,7 @@ module Aws::BedrockRuntime
718
804
  # @option params [Array<String>] :additional_model_response_field_paths
719
805
  # Additional model parameters field paths to return in the response.
720
806
  # `ConverseStream` returns the requested fields as a JSON Pointer object
721
- # in the `additionalModelResultFields` field. The following is example
807
+ # in the `additionalModelResponseFields` field. The following is example
722
808
  # JSON for `additionalModelResponseFieldPaths`.
723
809
  #
724
810
  # `[ "/stop_sequence" ]`
@@ -942,6 +1028,11 @@ module Aws::BedrockRuntime
942
1028
  # ],
943
1029
  # status: "success", # accepts success, error
944
1030
  # },
1031
+ # guard_content: {
1032
+ # text: {
1033
+ # text: "String", # required
1034
+ # },
1035
+ # },
945
1036
  # },
946
1037
  # ],
947
1038
  # },
@@ -949,6 +1040,11 @@ module Aws::BedrockRuntime
949
1040
  # system: [
950
1041
  # {
951
1042
  # text: "NonEmptyString",
1043
+ # guard_content: {
1044
+ # text: {
1045
+ # text: "String", # required
1046
+ # },
1047
+ # },
952
1048
  # },
953
1049
  # ],
954
1050
  # inference_config: {
@@ -980,6 +1076,12 @@ module Aws::BedrockRuntime
980
1076
  # },
981
1077
  # },
982
1078
  # },
1079
+ # guardrail_config: {
1080
+ # guardrail_identifier: "GuardrailIdentifier", # required
1081
+ # guardrail_version: "GuardrailVersion", # required
1082
+ # trace: "enabled", # accepts enabled, disabled
1083
+ # stream_processing_mode: "sync", # accepts sync, async
1084
+ # },
983
1085
  # additional_model_request_fields: {
984
1086
  # },
985
1087
  # additional_model_response_field_paths: ["ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString"],
@@ -1008,13 +1110,66 @@ module Aws::BedrockRuntime
1008
1110
  # event.content_block_index #=> Integer
1009
1111
  #
1010
1112
  # For :message_stop event available at #on_message_stop_event callback and response eventstream enumerator:
1011
- # event.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "content_filtered"
1113
+ # event.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"
1012
1114
  #
1013
1115
  # For :metadata event available at #on_metadata_event callback and response eventstream enumerator:
1014
1116
  # event.usage.input_tokens #=> Integer
1015
1117
  # event.usage.output_tokens #=> Integer
1016
1118
  # event.usage.total_tokens #=> Integer
1017
1119
  # event.metrics.latency_ms #=> Integer
1120
+ # event.trace.guardrail.model_output #=> Array
1121
+ # event.trace.guardrail.model_output[0] #=> String
1122
+ # event.trace.guardrail.input_assessment #=> Hash
1123
+ # event.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
1124
+ # event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
1125
+ # event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
1126
+ # event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
1127
+ # event.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
1128
+ # event.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
1129
+ # event.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
1130
+ # event.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
1131
+ # event.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
1132
+ # event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
1133
+ # event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
1134
+ # event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
1135
+ # event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
1136
+ # event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
1137
+ # event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
1138
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
1139
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
1140
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].type #=> String, one of "ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"
1141
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
1142
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
1143
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
1144
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
1145
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
1146
+ # event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
1147
+ # event.trace.guardrail.output_assessments #=> Hash
1148
+ # event.trace.guardrail.output_assessments["String"] #=> Array
1149
+ # event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
1150
+ # event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
1151
+ # event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
1152
+ # event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
1153
+ # event.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
1154
+ # event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
1155
+ # event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
1156
+ # event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
1157
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
1158
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
1159
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
1160
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
1161
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
1162
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
1163
+ # event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
1164
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
1165
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
1166
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].type #=> String, one of "ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"
1167
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
1168
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
1169
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
1170
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
1171
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
1172
+ # event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
1018
1173
  #
1019
1174
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
1020
1175
  # event.message #=> String
@@ -1069,10 +1224,10 @@ module Aws::BedrockRuntime
1069
1224
  #
1070
1225
  # @option params [required, String, StringIO, File] :body
1071
1226
  # The prompt and inference parameters in the format specified in the
1072
- # `contentType` in the header. To see the format and content of the
1073
- # request and response bodies for different models, refer to [Inference
1074
- # parameters][1]. For more information, see [Run inference][2] in the
1075
- # Bedrock User Guide.
1227
+ # `contentType` in the header. You must provide the body in JSON format.
1228
+ # To see the format and content of the request and response bodies for
1229
+ # different models, refer to [Inference parameters][1]. For more
1230
+ # information, see [Run inference][2] in the Bedrock User Guide.
1076
1231
  #
1077
1232
  #
1078
1233
  #
@@ -1080,7 +1235,7 @@ module Aws::BedrockRuntime
1080
1235
  # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
1081
1236
  #
1082
1237
  # @option params [String] :content_type
1083
- # The MIME type of the input data in the request. The default value is
1238
+ # The MIME type of the input data in the request. You must specify
1084
1239
  # `application/json`.
1085
1240
  #
1086
1241
  # @option params [String] :accept
@@ -1187,10 +1342,10 @@ module Aws::BedrockRuntime
1187
1342
  #
1188
1343
  # @option params [required, String, StringIO, File] :body
1189
1344
  # The prompt and inference parameters in the format specified in the
1190
- # `contentType` in the header. To see the format and content of the
1191
- # request and response bodies for different models, refer to [Inference
1192
- # parameters][1]. For more information, see [Run inference][2] in the
1193
- # Bedrock User Guide.
1345
+ # `contentType` in the header. You must provide the body in JSON format.
1346
+ # To see the format and content of the request and response bodies for
1347
+ # different models, refer to [Inference parameters][1]. For more
1348
+ # information, see [Run inference][2] in the Bedrock User Guide.
1194
1349
  #
1195
1350
  #
1196
1351
  #
@@ -1198,7 +1353,7 @@ module Aws::BedrockRuntime
1198
1353
  # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
1199
1354
  #
1200
1355
  # @option params [String] :content_type
1201
- # The MIME type of the input data in the request. The default value is
1356
+ # The MIME type of the input data in the request. You must specify
1202
1357
  # `application/json`.
1203
1358
  #
1204
1359
  # @option params [String] :accept
@@ -1464,7 +1619,7 @@ module Aws::BedrockRuntime
1464
1619
  params: params,
1465
1620
  config: config)
1466
1621
  context[:gem_name] = 'aws-sdk-bedrockruntime'
1467
- context[:gem_version] = '1.10.0'
1622
+ context[:gem_version] = '1.11.0'
1468
1623
  Seahorse::Client::Request.new(handlers, context)
1469
1624
  end
1470
1625