aws-sdk-bedrockruntime 1.42.0 → 1.43.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +85 -35
- data/lib/aws-sdk-bedrockruntime/client_api.rb +12 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +75 -9
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +7 -5
- data/sig/types.rbs +20 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01ca98a7431e868f90e1e847e206af0a3a51cc9f67b00cb90d6a4ce5d01760ab
|
4
|
+
data.tar.gz: dc510bf498b5977831b44c8b2a2655907aa69f3ecd18a33ffa3a946adf168738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8050bb5f6451ef3aa3c1b03dc9f18bf44c612b446d09c78b4191787162ac191fa2521f25365c8813ffd6011d4eb9d0bd59485f186212eed46e31378929ea798
|
7
|
+
data.tar.gz: 646b5aa373058b4f9376a4591fa894a0f62cbbede5f146028d53725fee114296868e4e8d502364c9e05f807740da6a74a0767f213f45d168f058a3449b8384fa
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.43.0
|
@@ -503,10 +503,21 @@ module Aws::BedrockRuntime
|
|
503
503
|
# @option params [required, Array<Types::GuardrailContentBlock>] :content
|
504
504
|
# The content details used in the request to apply the guardrail.
|
505
505
|
#
|
506
|
+
# @option params [String] :output_scope
|
507
|
+
# Specifies the scope of the output that you get in the response. Set to
|
508
|
+
# `FULL` to return the entire output, including any detected and
|
509
|
+
# non-detected entries in the response for enhanced debugging.
|
510
|
+
#
|
511
|
+
# Note that the full output scope doesn't apply to word filters or
|
512
|
+
# regex in sensitive information filters. It does apply to all other
|
513
|
+
# filtering policies, including sensitive information with filters that
|
514
|
+
# can detect personally identifiable information (PII).
|
515
|
+
#
|
506
516
|
# @return [Types::ApplyGuardrailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
507
517
|
#
|
508
518
|
# * {Types::ApplyGuardrailResponse#usage #usage} => Types::GuardrailUsage
|
509
519
|
# * {Types::ApplyGuardrailResponse#action #action} => String
|
520
|
+
# * {Types::ApplyGuardrailResponse#action_reason #action_reason} => String
|
510
521
|
# * {Types::ApplyGuardrailResponse#outputs #outputs} => Array<Types::GuardrailOutputContent>
|
511
522
|
# * {Types::ApplyGuardrailResponse#assessments #assessments} => Array<Types::GuardrailAssessment>
|
512
523
|
# * {Types::ApplyGuardrailResponse#guardrail_coverage #guardrail_coverage} => Types::GuardrailCoverage
|
@@ -531,6 +542,7 @@ module Aws::BedrockRuntime
|
|
531
542
|
# },
|
532
543
|
# },
|
533
544
|
# ],
|
545
|
+
# output_scope: "INTERVENTIONS", # accepts INTERVENTIONS, FULL
|
534
546
|
# })
|
535
547
|
#
|
536
548
|
# @example Response structure
|
@@ -543,39 +555,47 @@ module Aws::BedrockRuntime
|
|
543
555
|
# resp.usage.contextual_grounding_policy_units #=> Integer
|
544
556
|
# resp.usage.content_policy_image_units #=> Integer
|
545
557
|
# resp.action #=> String, one of "NONE", "GUARDRAIL_INTERVENED"
|
558
|
+
# resp.action_reason #=> String
|
546
559
|
# resp.outputs #=> Array
|
547
560
|
# resp.outputs[0].text #=> String
|
548
561
|
# resp.assessments #=> Array
|
549
562
|
# resp.assessments[0].topic_policy.topics #=> Array
|
550
563
|
# resp.assessments[0].topic_policy.topics[0].name #=> String
|
551
564
|
# resp.assessments[0].topic_policy.topics[0].type #=> String, one of "DENY"
|
552
|
-
# resp.assessments[0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
565
|
+
# resp.assessments[0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
566
|
+
# resp.assessments[0].topic_policy.topics[0].detected #=> Boolean
|
553
567
|
# resp.assessments[0].content_policy.filters #=> Array
|
554
568
|
# resp.assessments[0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
555
569
|
# resp.assessments[0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
556
570
|
# resp.assessments[0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
557
|
-
# resp.assessments[0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
571
|
+
# resp.assessments[0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
572
|
+
# resp.assessments[0].content_policy.filters[0].detected #=> Boolean
|
558
573
|
# resp.assessments[0].word_policy.custom_words #=> Array
|
559
574
|
# resp.assessments[0].word_policy.custom_words[0].match #=> String
|
560
|
-
# resp.assessments[0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
575
|
+
# resp.assessments[0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
576
|
+
# resp.assessments[0].word_policy.custom_words[0].detected #=> Boolean
|
561
577
|
# resp.assessments[0].word_policy.managed_word_lists #=> Array
|
562
578
|
# resp.assessments[0].word_policy.managed_word_lists[0].match #=> String
|
563
579
|
# resp.assessments[0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
564
|
-
# resp.assessments[0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
580
|
+
# resp.assessments[0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
581
|
+
# resp.assessments[0].word_policy.managed_word_lists[0].detected #=> Boolean
|
565
582
|
# resp.assessments[0].sensitive_information_policy.pii_entities #=> Array
|
566
583
|
# resp.assessments[0].sensitive_information_policy.pii_entities[0].match #=> String
|
567
584
|
# resp.assessments[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"
|
568
|
-
# resp.assessments[0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
585
|
+
# resp.assessments[0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
586
|
+
# resp.assessments[0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
569
587
|
# resp.assessments[0].sensitive_information_policy.regexes #=> Array
|
570
588
|
# resp.assessments[0].sensitive_information_policy.regexes[0].name #=> String
|
571
589
|
# resp.assessments[0].sensitive_information_policy.regexes[0].match #=> String
|
572
590
|
# resp.assessments[0].sensitive_information_policy.regexes[0].regex #=> String
|
573
|
-
# resp.assessments[0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
591
|
+
# resp.assessments[0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
592
|
+
# resp.assessments[0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
574
593
|
# resp.assessments[0].contextual_grounding_policy.filters #=> Array
|
575
594
|
# resp.assessments[0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
576
595
|
# resp.assessments[0].contextual_grounding_policy.filters[0].threshold #=> Float
|
577
596
|
# resp.assessments[0].contextual_grounding_policy.filters[0].score #=> Float
|
578
597
|
# resp.assessments[0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
598
|
+
# resp.assessments[0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
579
599
|
# resp.assessments[0].invocation_metrics.guardrail_processing_latency #=> Integer
|
580
600
|
# resp.assessments[0].invocation_metrics.usage.topic_policy_units #=> Integer
|
581
601
|
# resp.assessments[0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -938,7 +958,7 @@ module Aws::BedrockRuntime
|
|
938
958
|
# guardrail_config: {
|
939
959
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
940
960
|
# guardrail_version: "GuardrailVersion", # required
|
941
|
-
# trace: "enabled", # accepts enabled, disabled
|
961
|
+
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
942
962
|
# },
|
943
963
|
# additional_model_request_fields: {
|
944
964
|
# },
|
@@ -1007,33 +1027,40 @@ module Aws::BedrockRuntime
|
|
1007
1027
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
|
1008
1028
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
|
1009
1029
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
|
1010
|
-
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1030
|
+
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1031
|
+
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].detected #=> Boolean
|
1011
1032
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
|
1012
1033
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1013
1034
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1014
1035
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1015
|
-
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1036
|
+
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1037
|
+
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].detected #=> Boolean
|
1016
1038
|
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
|
1017
1039
|
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
|
1018
|
-
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1040
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1041
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].detected #=> Boolean
|
1019
1042
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
|
1020
1043
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
|
1021
1044
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1022
|
-
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1045
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1046
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].detected #=> Boolean
|
1023
1047
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
|
1024
1048
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
|
1025
1049
|
# 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"
|
1026
|
-
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1050
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1051
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1027
1052
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
|
1028
1053
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
|
1029
1054
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
|
1030
1055
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
|
1031
|
-
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1056
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1057
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1032
1058
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters #=> Array
|
1033
1059
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1034
1060
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].threshold #=> Float
|
1035
1061
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].score #=> Float
|
1036
1062
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1063
|
+
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1037
1064
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_processing_latency #=> Integer
|
1038
1065
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.usage.topic_policy_units #=> Integer
|
1039
1066
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1051,33 +1078,40 @@ module Aws::BedrockRuntime
|
|
1051
1078
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
1052
1079
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
|
1053
1080
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
|
1054
|
-
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1081
|
+
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1082
|
+
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].detected #=> Boolean
|
1055
1083
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
|
1056
1084
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1057
1085
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1058
1086
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1059
|
-
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1087
|
+
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1088
|
+
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].detected #=> Boolean
|
1060
1089
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
|
1061
1090
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
|
1062
|
-
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1091
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1092
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].detected #=> Boolean
|
1063
1093
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
|
1064
1094
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
|
1065
1095
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1066
|
-
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1096
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1097
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].detected #=> Boolean
|
1067
1098
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
|
1068
1099
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
|
1069
1100
|
# 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"
|
1070
|
-
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1101
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1102
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1071
1103
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
|
1072
1104
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
|
1073
1105
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
|
1074
1106
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
|
1075
|
-
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1107
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1108
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1076
1109
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters #=> Array
|
1077
1110
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1078
1111
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].threshold #=> Float
|
1079
1112
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].score #=> Float
|
1080
1113
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1114
|
+
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1081
1115
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_processing_latency #=> Integer
|
1082
1116
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.topic_policy_units #=> Integer
|
1083
1117
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1090,6 +1124,7 @@ module Aws::BedrockRuntime
|
|
1090
1124
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
1091
1125
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
1092
1126
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
1127
|
+
# resp.trace.guardrail.action_reason #=> String
|
1093
1128
|
# resp.trace.prompt_router.invoked_model_id #=> String
|
1094
1129
|
# resp.performance_config.latency #=> String, one of "standard", "optimized"
|
1095
1130
|
#
|
@@ -1616,7 +1651,7 @@ module Aws::BedrockRuntime
|
|
1616
1651
|
# guardrail_config: {
|
1617
1652
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
1618
1653
|
# guardrail_version: "GuardrailVersion", # required
|
1619
|
-
# trace: "enabled", # accepts enabled, disabled
|
1654
|
+
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
1620
1655
|
# stream_processing_mode: "sync", # accepts sync, async
|
1621
1656
|
# },
|
1622
1657
|
# additional_model_request_fields: {
|
@@ -1676,33 +1711,40 @@ module Aws::BedrockRuntime
|
|
1676
1711
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
|
1677
1712
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
|
1678
1713
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
|
1679
|
-
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1714
|
+
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1715
|
+
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].detected #=> Boolean
|
1680
1716
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
|
1681
1717
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1682
1718
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1683
1719
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1684
|
-
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1720
|
+
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1721
|
+
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].detected #=> Boolean
|
1685
1722
|
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
|
1686
1723
|
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
|
1687
|
-
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1724
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1725
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].detected #=> Boolean
|
1688
1726
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
|
1689
1727
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
|
1690
1728
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1691
|
-
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1729
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1730
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].detected #=> Boolean
|
1692
1731
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
|
1693
1732
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
|
1694
1733
|
# 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"
|
1695
|
-
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1734
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1735
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1696
1736
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
|
1697
1737
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
|
1698
1738
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
|
1699
1739
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
|
1700
|
-
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1740
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1741
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1701
1742
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters #=> Array
|
1702
1743
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1703
1744
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].threshold #=> Float
|
1704
1745
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].score #=> Float
|
1705
1746
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1747
|
+
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1706
1748
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_processing_latency #=> Integer
|
1707
1749
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.usage.topic_policy_units #=> Integer
|
1708
1750
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1720,33 +1762,40 @@ module Aws::BedrockRuntime
|
|
1720
1762
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
1721
1763
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
|
1722
1764
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
|
1723
|
-
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1765
|
+
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1766
|
+
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].detected #=> Boolean
|
1724
1767
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
|
1725
1768
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1726
1769
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1727
1770
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1728
|
-
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1771
|
+
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1772
|
+
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].detected #=> Boolean
|
1729
1773
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
|
1730
1774
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
|
1731
|
-
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1775
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1776
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].detected #=> Boolean
|
1732
1777
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
|
1733
1778
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
|
1734
1779
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1735
|
-
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1780
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1781
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].detected #=> Boolean
|
1736
1782
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
|
1737
1783
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
|
1738
1784
|
# 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"
|
1739
|
-
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1785
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1786
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1740
1787
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
|
1741
1788
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
|
1742
1789
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
|
1743
1790
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
|
1744
|
-
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1791
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1792
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1745
1793
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters #=> Array
|
1746
1794
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1747
1795
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].threshold #=> Float
|
1748
1796
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].score #=> Float
|
1749
1797
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1798
|
+
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1750
1799
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_processing_latency #=> Integer
|
1751
1800
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.topic_policy_units #=> Integer
|
1752
1801
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1759,6 +1808,7 @@ module Aws::BedrockRuntime
|
|
1759
1808
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
1760
1809
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
1761
1810
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
1811
|
+
# event.trace.guardrail.action_reason #=> String
|
1762
1812
|
# event.trace.prompt_router.invoked_model_id #=> String
|
1763
1813
|
# event.performance_config.latency #=> String, one of "standard", "optimized"
|
1764
1814
|
#
|
@@ -1976,7 +2026,7 @@ module Aws::BedrockRuntime
|
|
1976
2026
|
# content_type: "MimeType",
|
1977
2027
|
# accept: "MimeType",
|
1978
2028
|
# model_id: "InvokeModelIdentifier", # required
|
1979
|
-
# trace: "ENABLED", # accepts ENABLED, DISABLED
|
2029
|
+
# trace: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_FULL
|
1980
2030
|
# guardrail_identifier: "GuardrailIdentifier",
|
1981
2031
|
# guardrail_version: "GuardrailVersion",
|
1982
2032
|
# performance_config_latency: "standard", # accepts standard, optimized
|
@@ -2267,7 +2317,7 @@ module Aws::BedrockRuntime
|
|
2267
2317
|
# content_type: "MimeType",
|
2268
2318
|
# accept: "MimeType",
|
2269
2319
|
# model_id: "InvokeModelIdentifier", # required
|
2270
|
-
# trace: "ENABLED", # accepts ENABLED, DISABLED
|
2320
|
+
# trace: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_FULL
|
2271
2321
|
# guardrail_identifier: "GuardrailIdentifier",
|
2272
2322
|
# guardrail_version: "GuardrailVersion",
|
2273
2323
|
# performance_config_latency: "standard", # accepts standard, optimized
|
@@ -2498,7 +2548,7 @@ module Aws::BedrockRuntime
|
|
2498
2548
|
tracer: tracer
|
2499
2549
|
)
|
2500
2550
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
2501
|
-
context[:gem_version] = '1.
|
2551
|
+
context[:gem_version] = '1.43.0'
|
2502
2552
|
Seahorse::Client::Request.new(handlers, context)
|
2503
2553
|
end
|
2504
2554
|
|
@@ -31,6 +31,7 @@ module Aws::BedrockRuntime
|
|
31
31
|
AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice')
|
32
32
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
33
33
|
Body = Shapes::BlobShape.new(name: 'Body')
|
34
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
34
35
|
CachePointBlock = Shapes::StructureShape.new(name: 'CachePointBlock')
|
35
36
|
CachePointType = Shapes::StringShape.new(name: 'CachePointType')
|
36
37
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
@@ -117,6 +118,7 @@ module Aws::BedrockRuntime
|
|
117
118
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
118
119
|
GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
|
119
120
|
GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
|
121
|
+
GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
|
120
122
|
GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
|
121
123
|
GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
|
122
124
|
GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
|
@@ -258,10 +260,12 @@ module Aws::BedrockRuntime
|
|
258
260
|
ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
|
259
261
|
ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
|
260
262
|
ApplyGuardrailRequest.add_member(:content, Shapes::ShapeRef.new(shape: GuardrailContentBlockList, required: true, location_name: "content"))
|
263
|
+
ApplyGuardrailRequest.add_member(:output_scope, Shapes::ShapeRef.new(shape: GuardrailOutputScope, location_name: "outputScope"))
|
261
264
|
ApplyGuardrailRequest.struct_class = Types::ApplyGuardrailRequest
|
262
265
|
|
263
266
|
ApplyGuardrailResponse.add_member(:usage, Shapes::ShapeRef.new(shape: GuardrailUsage, required: true, location_name: "usage"))
|
264
267
|
ApplyGuardrailResponse.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action"))
|
268
|
+
ApplyGuardrailResponse.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
|
265
269
|
ApplyGuardrailResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GuardrailOutputContentList, required: true, location_name: "outputs"))
|
266
270
|
ApplyGuardrailResponse.add_member(:assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentList, required: true, location_name: "assessments"))
|
267
271
|
ApplyGuardrailResponse.add_member(:guardrail_coverage, Shapes::ShapeRef.new(shape: GuardrailCoverage, location_name: "guardrailCoverage"))
|
@@ -493,6 +497,7 @@ module Aws::BedrockRuntime
|
|
493
497
|
GuardrailContentFilter.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailContentFilterConfidence, required: true, location_name: "confidence"))
|
494
498
|
GuardrailContentFilter.add_member(:filter_strength, Shapes::ShapeRef.new(shape: GuardrailContentFilterStrength, location_name: "filterStrength"))
|
495
499
|
GuardrailContentFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAction, required: true, location_name: "action"))
|
500
|
+
GuardrailContentFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
496
501
|
GuardrailContentFilter.struct_class = Types::GuardrailContentFilter
|
497
502
|
|
498
503
|
GuardrailContentFilterList.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter)
|
@@ -506,6 +511,7 @@ module Aws::BedrockRuntime
|
|
506
511
|
GuardrailContextualGroundingFilter.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterThresholdDouble, required: true, location_name: "threshold"))
|
507
512
|
GuardrailContextualGroundingFilter.add_member(:score, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterScoreDouble, required: true, location_name: "score"))
|
508
513
|
GuardrailContextualGroundingFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAction, required: true, location_name: "action"))
|
514
|
+
GuardrailContextualGroundingFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
509
515
|
GuardrailContextualGroundingFilter.struct_class = Types::GuardrailContextualGroundingFilter
|
510
516
|
|
511
517
|
GuardrailContextualGroundingFilters.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilter)
|
@@ -543,6 +549,7 @@ module Aws::BedrockRuntime
|
|
543
549
|
|
544
550
|
GuardrailCustomWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
545
551
|
GuardrailCustomWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
|
552
|
+
GuardrailCustomWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
546
553
|
GuardrailCustomWord.struct_class = Types::GuardrailCustomWord
|
547
554
|
|
548
555
|
GuardrailCustomWordList.member = Shapes::ShapeRef.new(shape: GuardrailCustomWord)
|
@@ -569,6 +576,7 @@ module Aws::BedrockRuntime
|
|
569
576
|
GuardrailManagedWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
570
577
|
GuardrailManagedWord.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordType, required: true, location_name: "type"))
|
571
578
|
GuardrailManagedWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
|
579
|
+
GuardrailManagedWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
572
580
|
GuardrailManagedWord.struct_class = Types::GuardrailManagedWord
|
573
581
|
|
574
582
|
GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
|
@@ -581,6 +589,7 @@ module Aws::BedrockRuntime
|
|
581
589
|
GuardrailPiiEntityFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
582
590
|
GuardrailPiiEntityFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
|
583
591
|
GuardrailPiiEntityFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
|
592
|
+
GuardrailPiiEntityFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
584
593
|
GuardrailPiiEntityFilter.struct_class = Types::GuardrailPiiEntityFilter
|
585
594
|
|
586
595
|
GuardrailPiiEntityFilterList.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntityFilter)
|
@@ -589,6 +598,7 @@ module Aws::BedrockRuntime
|
|
589
598
|
GuardrailRegexFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, location_name: "match"))
|
590
599
|
GuardrailRegexFilter.add_member(:regex, Shapes::ShapeRef.new(shape: String, location_name: "regex"))
|
591
600
|
GuardrailRegexFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
|
601
|
+
GuardrailRegexFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
592
602
|
GuardrailRegexFilter.struct_class = Types::GuardrailRegexFilter
|
593
603
|
|
594
604
|
GuardrailRegexFilterList.member = Shapes::ShapeRef.new(shape: GuardrailRegexFilter)
|
@@ -614,6 +624,7 @@ module Aws::BedrockRuntime
|
|
614
624
|
GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
615
625
|
GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type"))
|
616
626
|
GuardrailTopic.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAction, required: true, location_name: "action"))
|
627
|
+
GuardrailTopic.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
617
628
|
GuardrailTopic.struct_class = Types::GuardrailTopic
|
618
629
|
|
619
630
|
GuardrailTopicList.member = Shapes::ShapeRef.new(shape: GuardrailTopic)
|
@@ -624,6 +635,7 @@ module Aws::BedrockRuntime
|
|
624
635
|
GuardrailTraceAssessment.add_member(:model_output, Shapes::ShapeRef.new(shape: ModelOutputs, location_name: "modelOutput"))
|
625
636
|
GuardrailTraceAssessment.add_member(:input_assessment, Shapes::ShapeRef.new(shape: GuardrailAssessmentMap, location_name: "inputAssessment"))
|
626
637
|
GuardrailTraceAssessment.add_member(:output_assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentListMap, location_name: "outputAssessments"))
|
638
|
+
GuardrailTraceAssessment.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
|
627
639
|
GuardrailTraceAssessment.struct_class = Types::GuardrailTraceAssessment
|
628
640
|
|
629
641
|
GuardrailUsage.add_member(:topic_policy_units, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyUnitsProcessed, required: true, location_name: "topicPolicyUnits"))
|
@@ -54,13 +54,25 @@ module Aws::BedrockRuntime
|
|
54
54
|
# The content details used in the request to apply the guardrail.
|
55
55
|
# @return [Array<Types::GuardrailContentBlock>]
|
56
56
|
#
|
57
|
+
# @!attribute [rw] output_scope
|
58
|
+
# Specifies the scope of the output that you get in the response. Set
|
59
|
+
# to `FULL` to return the entire output, including any detected and
|
60
|
+
# non-detected entries in the response for enhanced debugging.
|
61
|
+
#
|
62
|
+
# Note that the full output scope doesn't apply to word filters or
|
63
|
+
# regex in sensitive information filters. It does apply to all other
|
64
|
+
# filtering policies, including sensitive information with filters
|
65
|
+
# that can detect personally identifiable information (PII).
|
66
|
+
# @return [String]
|
67
|
+
#
|
57
68
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ApplyGuardrailRequest AWS API Documentation
|
58
69
|
#
|
59
70
|
class ApplyGuardrailRequest < Struct.new(
|
60
71
|
:guardrail_identifier,
|
61
72
|
:guardrail_version,
|
62
73
|
:source,
|
63
|
-
:content
|
74
|
+
:content,
|
75
|
+
:output_scope)
|
64
76
|
SENSITIVE = []
|
65
77
|
include Aws::Structure
|
66
78
|
end
|
@@ -73,6 +85,10 @@ module Aws::BedrockRuntime
|
|
73
85
|
# The action taken in the response from the guardrail.
|
74
86
|
# @return [String]
|
75
87
|
#
|
88
|
+
# @!attribute [rw] action_reason
|
89
|
+
# The reason for the action taken when harmful content is detected.
|
90
|
+
# @return [String]
|
91
|
+
#
|
76
92
|
# @!attribute [rw] outputs
|
77
93
|
# The output details in the response from the guardrail.
|
78
94
|
# @return [Array<Types::GuardrailOutputContent>]
|
@@ -90,6 +106,7 @@ module Aws::BedrockRuntime
|
|
90
106
|
class ApplyGuardrailResponse < Struct.new(
|
91
107
|
:usage,
|
92
108
|
:action,
|
109
|
+
:action_reason,
|
93
110
|
:outputs,
|
94
111
|
:assessments,
|
95
112
|
:guardrail_coverage)
|
@@ -1161,13 +1178,19 @@ module Aws::BedrockRuntime
|
|
1161
1178
|
# The guardrail action.
|
1162
1179
|
# @return [String]
|
1163
1180
|
#
|
1181
|
+
# @!attribute [rw] detected
|
1182
|
+
# Indicates whether content that breaches the guardrail configuration
|
1183
|
+
# is detected.
|
1184
|
+
# @return [Boolean]
|
1185
|
+
#
|
1164
1186
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailContentFilter AWS API Documentation
|
1165
1187
|
#
|
1166
1188
|
class GuardrailContentFilter < Struct.new(
|
1167
1189
|
:type,
|
1168
1190
|
:confidence,
|
1169
1191
|
:filter_strength,
|
1170
|
-
:action
|
1192
|
+
:action,
|
1193
|
+
:detected)
|
1171
1194
|
SENSITIVE = []
|
1172
1195
|
include Aws::Structure
|
1173
1196
|
end
|
@@ -1205,13 +1228,20 @@ module Aws::BedrockRuntime
|
|
1205
1228
|
# The action performed by the guardrails contextual grounding filter.
|
1206
1229
|
# @return [String]
|
1207
1230
|
#
|
1231
|
+
# @!attribute [rw] detected
|
1232
|
+
# Indicates whether content that fails the contextual grounding
|
1233
|
+
# evaluation (grounding or relevance score less than the corresponding
|
1234
|
+
# threshold) was detected.
|
1235
|
+
# @return [Boolean]
|
1236
|
+
#
|
1208
1237
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailContextualGroundingFilter AWS API Documentation
|
1209
1238
|
#
|
1210
1239
|
class GuardrailContextualGroundingFilter < Struct.new(
|
1211
1240
|
:type,
|
1212
1241
|
:threshold,
|
1213
1242
|
:score,
|
1214
|
-
:action
|
1243
|
+
:action,
|
1244
|
+
:detected)
|
1215
1245
|
SENSITIVE = []
|
1216
1246
|
include Aws::Structure
|
1217
1247
|
end
|
@@ -1363,11 +1393,17 @@ module Aws::BedrockRuntime
|
|
1363
1393
|
# The action for the custom word.
|
1364
1394
|
# @return [String]
|
1365
1395
|
#
|
1396
|
+
# @!attribute [rw] detected
|
1397
|
+
# Indicates whether custom word content that breaches the guardrail
|
1398
|
+
# configuration is detected.
|
1399
|
+
# @return [Boolean]
|
1400
|
+
#
|
1366
1401
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailCustomWord AWS API Documentation
|
1367
1402
|
#
|
1368
1403
|
class GuardrailCustomWord < Struct.new(
|
1369
1404
|
:match,
|
1370
|
-
:action
|
1405
|
+
:action,
|
1406
|
+
:detected)
|
1371
1407
|
SENSITIVE = []
|
1372
1408
|
include Aws::Structure
|
1373
1409
|
end
|
@@ -1475,12 +1511,18 @@ module Aws::BedrockRuntime
|
|
1475
1511
|
# The action for the managed word.
|
1476
1512
|
# @return [String]
|
1477
1513
|
#
|
1514
|
+
# @!attribute [rw] detected
|
1515
|
+
# Indicates whether managed word content that breaches the guardrail
|
1516
|
+
# configuration is detected.
|
1517
|
+
# @return [Boolean]
|
1518
|
+
#
|
1478
1519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailManagedWord AWS API Documentation
|
1479
1520
|
#
|
1480
1521
|
class GuardrailManagedWord < Struct.new(
|
1481
1522
|
:match,
|
1482
1523
|
:type,
|
1483
|
-
:action
|
1524
|
+
:action,
|
1525
|
+
:detected)
|
1484
1526
|
SENSITIVE = []
|
1485
1527
|
include Aws::Structure
|
1486
1528
|
end
|
@@ -1514,12 +1556,18 @@ module Aws::BedrockRuntime
|
|
1514
1556
|
# The PII entity filter action.
|
1515
1557
|
# @return [String]
|
1516
1558
|
#
|
1559
|
+
# @!attribute [rw] detected
|
1560
|
+
# Indicates whether personally identifiable information (PII) that
|
1561
|
+
# breaches the guardrail configuration is detected.
|
1562
|
+
# @return [Boolean]
|
1563
|
+
#
|
1517
1564
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailPiiEntityFilter AWS API Documentation
|
1518
1565
|
#
|
1519
1566
|
class GuardrailPiiEntityFilter < Struct.new(
|
1520
1567
|
:match,
|
1521
1568
|
:type,
|
1522
|
-
:action
|
1569
|
+
:action,
|
1570
|
+
:detected)
|
1523
1571
|
SENSITIVE = []
|
1524
1572
|
include Aws::Structure
|
1525
1573
|
end
|
@@ -1542,13 +1590,19 @@ module Aws::BedrockRuntime
|
|
1542
1590
|
# The region filter action.
|
1543
1591
|
# @return [String]
|
1544
1592
|
#
|
1593
|
+
# @!attribute [rw] detected
|
1594
|
+
# Indicates whether custom regex entities that breach the guardrail
|
1595
|
+
# configuration are detected.
|
1596
|
+
# @return [Boolean]
|
1597
|
+
#
|
1545
1598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailRegexFilter AWS API Documentation
|
1546
1599
|
#
|
1547
1600
|
class GuardrailRegexFilter < Struct.new(
|
1548
1601
|
:name,
|
1549
1602
|
:match,
|
1550
1603
|
:regex,
|
1551
|
-
:action
|
1604
|
+
:action,
|
1605
|
+
:detected)
|
1552
1606
|
SENSITIVE = []
|
1553
1607
|
include Aws::Structure
|
1554
1608
|
end
|
@@ -1658,12 +1712,18 @@ module Aws::BedrockRuntime
|
|
1658
1712
|
# The action the guardrail should take when it intervenes on a topic.
|
1659
1713
|
# @return [String]
|
1660
1714
|
#
|
1715
|
+
# @!attribute [rw] detected
|
1716
|
+
# Indicates whether topic content that breaches the guardrail
|
1717
|
+
# configuration is detected.
|
1718
|
+
# @return [Boolean]
|
1719
|
+
#
|
1661
1720
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailTopic AWS API Documentation
|
1662
1721
|
#
|
1663
1722
|
class GuardrailTopic < Struct.new(
|
1664
1723
|
:name,
|
1665
1724
|
:type,
|
1666
|
-
:action
|
1725
|
+
:action,
|
1726
|
+
:detected)
|
1667
1727
|
SENSITIVE = []
|
1668
1728
|
include Aws::Structure
|
1669
1729
|
end
|
@@ -1697,12 +1757,18 @@ module Aws::BedrockRuntime
|
|
1697
1757
|
# the output assessments.
|
1698
1758
|
# @return [Hash<String,Array<Types::GuardrailAssessment>>]
|
1699
1759
|
#
|
1760
|
+
# @!attribute [rw] action_reason
|
1761
|
+
# Provides the reason for the action taken when harmful content is
|
1762
|
+
# detected.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1700
1765
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailTraceAssessment AWS API Documentation
|
1701
1766
|
#
|
1702
1767
|
class GuardrailTraceAssessment < Struct.new(
|
1703
1768
|
:model_output,
|
1704
1769
|
:input_assessment,
|
1705
|
-
:output_assessments
|
1770
|
+
:output_assessments,
|
1771
|
+
:action_reason)
|
1706
1772
|
SENSITIVE = []
|
1707
1773
|
include Aws::Structure
|
1708
1774
|
end
|
data/sig/client.rbs
CHANGED
@@ -84,6 +84,7 @@ module Aws
|
|
84
84
|
include ::Seahorse::Client::_ResponseSuccess[Types::ApplyGuardrailResponse]
|
85
85
|
def usage: () -> Types::GuardrailUsage
|
86
86
|
def action: () -> ("NONE" | "GUARDRAIL_INTERVENED")
|
87
|
+
def action_reason: () -> ::String
|
87
88
|
def outputs: () -> ::Array[Types::GuardrailOutputContent]
|
88
89
|
def assessments: () -> ::Array[Types::GuardrailAssessment]
|
89
90
|
def guardrail_coverage: () -> Types::GuardrailCoverage
|
@@ -106,7 +107,8 @@ module Aws
|
|
106
107
|
}
|
107
108
|
}?
|
108
109
|
},
|
109
|
-
]
|
110
|
+
],
|
111
|
+
?output_scope: ("INTERVENTIONS" | "FULL")
|
110
112
|
) -> _ApplyGuardrailResponseSuccess
|
111
113
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ApplyGuardrailResponseSuccess
|
112
114
|
|
@@ -273,7 +275,7 @@ module Aws
|
|
273
275
|
?guardrail_config: {
|
274
276
|
guardrail_identifier: ::String,
|
275
277
|
guardrail_version: ::String,
|
276
|
-
trace: ("enabled" | "disabled")?
|
278
|
+
trace: ("enabled" | "disabled" | "enabled_full")?
|
277
279
|
},
|
278
280
|
?additional_model_request_fields: {
|
279
281
|
},
|
@@ -445,7 +447,7 @@ module Aws
|
|
445
447
|
?guardrail_config: {
|
446
448
|
guardrail_identifier: ::String,
|
447
449
|
guardrail_version: ::String,
|
448
|
-
trace: ("enabled" | "disabled")?,
|
450
|
+
trace: ("enabled" | "disabled" | "enabled_full")?,
|
449
451
|
stream_processing_mode: ("sync" | "async")?
|
450
452
|
},
|
451
453
|
?additional_model_request_fields: {
|
@@ -491,7 +493,7 @@ module Aws
|
|
491
493
|
?content_type: ::String,
|
492
494
|
?accept: ::String,
|
493
495
|
model_id: ::String,
|
494
|
-
?trace: ("ENABLED" | "DISABLED"),
|
496
|
+
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
495
497
|
?guardrail_identifier: ::String,
|
496
498
|
?guardrail_version: ::String,
|
497
499
|
?performance_config_latency: ("standard" | "optimized")
|
@@ -510,7 +512,7 @@ module Aws
|
|
510
512
|
?content_type: ::String,
|
511
513
|
?accept: ::String,
|
512
514
|
model_id: ::String,
|
513
|
-
?trace: ("ENABLED" | "DISABLED"),
|
515
|
+
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
514
516
|
?guardrail_identifier: ::String,
|
515
517
|
?guardrail_version: ::String,
|
516
518
|
?performance_config_latency: ("standard" | "optimized")
|
data/sig/types.rbs
CHANGED
@@ -21,12 +21,14 @@ module Aws::BedrockRuntime
|
|
21
21
|
attr_accessor guardrail_version: ::String
|
22
22
|
attr_accessor source: ("INPUT" | "OUTPUT")
|
23
23
|
attr_accessor content: ::Array[Types::GuardrailContentBlock]
|
24
|
+
attr_accessor output_scope: ("INTERVENTIONS" | "FULL")
|
24
25
|
SENSITIVE: []
|
25
26
|
end
|
26
27
|
|
27
28
|
class ApplyGuardrailResponse
|
28
29
|
attr_accessor usage: Types::GuardrailUsage
|
29
30
|
attr_accessor action: ("NONE" | "GUARDRAIL_INTERVENED")
|
31
|
+
attr_accessor action_reason: ::String
|
30
32
|
attr_accessor outputs: ::Array[Types::GuardrailOutputContent]
|
31
33
|
attr_accessor assessments: ::Array[Types::GuardrailAssessment]
|
32
34
|
attr_accessor guardrail_coverage: Types::GuardrailCoverage
|
@@ -297,7 +299,7 @@ module Aws::BedrockRuntime
|
|
297
299
|
class GuardrailConfiguration
|
298
300
|
attr_accessor guardrail_identifier: ::String
|
299
301
|
attr_accessor guardrail_version: ::String
|
300
|
-
attr_accessor trace: ("enabled" | "disabled")
|
302
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
301
303
|
SENSITIVE: []
|
302
304
|
end
|
303
305
|
|
@@ -319,7 +321,8 @@ module Aws::BedrockRuntime
|
|
319
321
|
attr_accessor type: ("INSULTS" | "HATE" | "SEXUAL" | "VIOLENCE" | "MISCONDUCT" | "PROMPT_ATTACK")
|
320
322
|
attr_accessor confidence: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
321
323
|
attr_accessor filter_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
322
|
-
attr_accessor action: ("BLOCKED")
|
324
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
325
|
+
attr_accessor detected: bool
|
323
326
|
SENSITIVE: []
|
324
327
|
end
|
325
328
|
|
@@ -333,6 +336,7 @@ module Aws::BedrockRuntime
|
|
333
336
|
attr_accessor threshold: ::Float
|
334
337
|
attr_accessor score: ::Float
|
335
338
|
attr_accessor action: ("BLOCKED" | "NONE")
|
339
|
+
attr_accessor detected: bool
|
336
340
|
SENSITIVE: []
|
337
341
|
end
|
338
342
|
|
@@ -386,7 +390,8 @@ module Aws::BedrockRuntime
|
|
386
390
|
|
387
391
|
class GuardrailCustomWord
|
388
392
|
attr_accessor match: ::String
|
389
|
-
attr_accessor action: ("BLOCKED")
|
393
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
394
|
+
attr_accessor detected: bool
|
390
395
|
SENSITIVE: []
|
391
396
|
end
|
392
397
|
|
@@ -423,7 +428,8 @@ module Aws::BedrockRuntime
|
|
423
428
|
class GuardrailManagedWord
|
424
429
|
attr_accessor match: ::String
|
425
430
|
attr_accessor type: ("PROFANITY")
|
426
|
-
attr_accessor action: ("BLOCKED")
|
431
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
432
|
+
attr_accessor detected: bool
|
427
433
|
SENSITIVE: []
|
428
434
|
end
|
429
435
|
|
@@ -435,7 +441,8 @@ module Aws::BedrockRuntime
|
|
435
441
|
class GuardrailPiiEntityFilter
|
436
442
|
attr_accessor match: ::String
|
437
443
|
attr_accessor type: ("ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER")
|
438
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
444
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
445
|
+
attr_accessor detected: bool
|
439
446
|
SENSITIVE: []
|
440
447
|
end
|
441
448
|
|
@@ -443,7 +450,8 @@ module Aws::BedrockRuntime
|
|
443
450
|
attr_accessor name: ::String
|
444
451
|
attr_accessor match: ::String
|
445
452
|
attr_accessor regex: ::String
|
446
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
453
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
454
|
+
attr_accessor detected: bool
|
447
455
|
SENSITIVE: []
|
448
456
|
end
|
449
457
|
|
@@ -456,7 +464,7 @@ module Aws::BedrockRuntime
|
|
456
464
|
class GuardrailStreamConfiguration
|
457
465
|
attr_accessor guardrail_identifier: ::String
|
458
466
|
attr_accessor guardrail_version: ::String
|
459
|
-
attr_accessor trace: ("enabled" | "disabled")
|
467
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
460
468
|
attr_accessor stream_processing_mode: ("sync" | "async")
|
461
469
|
SENSITIVE: []
|
462
470
|
end
|
@@ -476,7 +484,8 @@ module Aws::BedrockRuntime
|
|
476
484
|
class GuardrailTopic
|
477
485
|
attr_accessor name: ::String
|
478
486
|
attr_accessor type: ("DENY")
|
479
|
-
attr_accessor action: ("BLOCKED")
|
487
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
488
|
+
attr_accessor detected: bool
|
480
489
|
SENSITIVE: []
|
481
490
|
end
|
482
491
|
|
@@ -489,6 +498,7 @@ module Aws::BedrockRuntime
|
|
489
498
|
attr_accessor model_output: ::Array[::String]
|
490
499
|
attr_accessor input_assessment: ::Hash[::String, Types::GuardrailAssessment]
|
491
500
|
attr_accessor output_assessments: ::Hash[::String, ::Array[Types::GuardrailAssessment]]
|
501
|
+
attr_accessor action_reason: ::String
|
492
502
|
SENSITIVE: []
|
493
503
|
end
|
494
504
|
|
@@ -545,7 +555,7 @@ module Aws::BedrockRuntime
|
|
545
555
|
attr_accessor content_type: ::String
|
546
556
|
attr_accessor accept: ::String
|
547
557
|
attr_accessor model_id: ::String
|
548
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
558
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
549
559
|
attr_accessor guardrail_identifier: ::String
|
550
560
|
attr_accessor guardrail_version: ::String
|
551
561
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
@@ -564,7 +574,7 @@ module Aws::BedrockRuntime
|
|
564
574
|
attr_accessor content_type: ::String
|
565
575
|
attr_accessor accept: ::String
|
566
576
|
attr_accessor model_id: ::String
|
567
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
577
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
568
578
|
attr_accessor guardrail_identifier: ::String
|
569
579
|
attr_accessor guardrail_version: ::String
|
570
580
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|