aws-sdk-bedrock 1.40.0 → 1.42.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +152 -8
- data/lib/aws-sdk-bedrock/client_api.rb +114 -2
- data/lib/aws-sdk-bedrock/types.rb +716 -28
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +92 -14
- data/sig/types.rbs +122 -14
- 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: 9d0f164ba5fc2410b7f4f1e90bba72a55935b8968fa451d9a672a117b085a9a4
|
4
|
+
data.tar.gz: 3afc3e64b1a798f8f8755e0f827e82922350794c92e88e4de9f0f04875e2f73f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94dc660266ae76090c24be7ebbce195fe4c0745a4bf04187fd09bd107377f4cfb01d5e33b9517ddc9f236c0d21f84dccc74e4f57c21df6c6d921f03d77cbb58a
|
7
|
+
data.tar.gz: d09329fabb979c240e03bdc1f98364fdc033e27428e0b6aedbd3cb7e57211a447ad158b5467129d3ef17d6dca746488198b4cf40110ac3b8507309ce0f12059a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.42.0 (2025-04-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - With this release, Bedrock Evaluation will now support custom metrics for evaluation.
|
8
|
+
|
9
|
+
1.41.0 (2025-04-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - New options for how to handle harmful content detected by Amazon Bedrock Guardrails.
|
13
|
+
|
4
14
|
1.40.0 (2025-03-21)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.42.0
|
@@ -484,6 +484,35 @@ module Aws::Bedrock
|
|
484
484
|
# * {Types::BatchDeleteEvaluationJobResponse#errors #errors} => Array<Types::BatchDeleteEvaluationJobError>
|
485
485
|
# * {Types::BatchDeleteEvaluationJobResponse#evaluation_jobs #evaluation_jobs} => Array<Types::BatchDeleteEvaluationJobItem>
|
486
486
|
#
|
487
|
+
#
|
488
|
+
# @example Example: Delete evaluation jobs
|
489
|
+
#
|
490
|
+
# # The following example shows a request to delete two model evaluation jobs, where one of the jobs is not found.
|
491
|
+
#
|
492
|
+
# resp = client.batch_delete_evaluation_job({
|
493
|
+
# job_identifiers: [
|
494
|
+
# "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v",
|
495
|
+
# "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn",
|
496
|
+
# ],
|
497
|
+
# })
|
498
|
+
#
|
499
|
+
# resp.to_h outputs the following:
|
500
|
+
# {
|
501
|
+
# errors: [
|
502
|
+
# {
|
503
|
+
# code: "404",
|
504
|
+
# job_identifier: "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn",
|
505
|
+
# message: "Unable to locate this job to delete.",
|
506
|
+
# },
|
507
|
+
# ],
|
508
|
+
# evaluation_jobs: [
|
509
|
+
# {
|
510
|
+
# job_identifier: "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v",
|
511
|
+
# job_status: "Deleting",
|
512
|
+
# },
|
513
|
+
# ],
|
514
|
+
# }
|
515
|
+
#
|
487
516
|
# @example Request syntax with placeholder values
|
488
517
|
#
|
489
518
|
# resp = client.batch_delete_evaluation_job({
|
@@ -612,6 +641,32 @@ module Aws::Bedrock
|
|
612
641
|
# },
|
613
642
|
# ],
|
614
643
|
# },
|
644
|
+
# custom_metric_config: {
|
645
|
+
# custom_metrics: [ # required
|
646
|
+
# {
|
647
|
+
# custom_metric_definition: {
|
648
|
+
# name: "MetricName", # required
|
649
|
+
# instructions: "CustomMetricInstructions", # required
|
650
|
+
# rating_scale: [
|
651
|
+
# {
|
652
|
+
# definition: "RatingScaleItemDefinition", # required
|
653
|
+
# value: { # required
|
654
|
+
# string_value: "RatingScaleItemValueStringValueString",
|
655
|
+
# float_value: 1.0,
|
656
|
+
# },
|
657
|
+
# },
|
658
|
+
# ],
|
659
|
+
# },
|
660
|
+
# },
|
661
|
+
# ],
|
662
|
+
# evaluator_model_config: { # required
|
663
|
+
# bedrock_evaluator_models: [ # required
|
664
|
+
# {
|
665
|
+
# model_identifier: "EvaluatorModelIdentifier", # required
|
666
|
+
# },
|
667
|
+
# ],
|
668
|
+
# },
|
669
|
+
# },
|
615
670
|
# },
|
616
671
|
# human: {
|
617
672
|
# human_workflow_config: {
|
@@ -1006,6 +1061,10 @@ module Aws::Bedrock
|
|
1006
1061
|
# definition: "GuardrailTopicDefinition", # required
|
1007
1062
|
# examples: ["GuardrailTopicExample"],
|
1008
1063
|
# type: "DENY", # required, accepts DENY
|
1064
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1065
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1066
|
+
# input_enabled: false,
|
1067
|
+
# output_enabled: false,
|
1009
1068
|
# },
|
1010
1069
|
# ],
|
1011
1070
|
# },
|
@@ -1017,6 +1076,10 @@ module Aws::Bedrock
|
|
1017
1076
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
1018
1077
|
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
1019
1078
|
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
1079
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1080
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1081
|
+
# input_enabled: false,
|
1082
|
+
# output_enabled: false,
|
1020
1083
|
# },
|
1021
1084
|
# ],
|
1022
1085
|
# },
|
@@ -1024,11 +1087,19 @@ module Aws::Bedrock
|
|
1024
1087
|
# words_config: [
|
1025
1088
|
# {
|
1026
1089
|
# text: "GuardrailWordConfigTextString", # required
|
1090
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1091
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1092
|
+
# input_enabled: false,
|
1093
|
+
# output_enabled: false,
|
1027
1094
|
# },
|
1028
1095
|
# ],
|
1029
1096
|
# managed_word_lists_config: [
|
1030
1097
|
# {
|
1031
1098
|
# type: "PROFANITY", # required, accepts PROFANITY
|
1099
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1100
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1101
|
+
# input_enabled: false,
|
1102
|
+
# output_enabled: false,
|
1032
1103
|
# },
|
1033
1104
|
# ],
|
1034
1105
|
# },
|
@@ -1036,7 +1107,11 @@ module Aws::Bedrock
|
|
1036
1107
|
# pii_entities_config: [
|
1037
1108
|
# {
|
1038
1109
|
# type: "ADDRESS", # required, accepts 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
|
1039
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
1110
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
1111
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1112
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1113
|
+
# input_enabled: false,
|
1114
|
+
# output_enabled: false,
|
1040
1115
|
# },
|
1041
1116
|
# ],
|
1042
1117
|
# regexes_config: [
|
@@ -1044,7 +1119,11 @@ module Aws::Bedrock
|
|
1044
1119
|
# name: "GuardrailRegexConfigNameString", # required
|
1045
1120
|
# description: "GuardrailRegexConfigDescriptionString",
|
1046
1121
|
# pattern: "GuardrailRegexConfigPatternString", # required
|
1047
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
1122
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
1123
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1124
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1125
|
+
# input_enabled: false,
|
1126
|
+
# output_enabled: false,
|
1048
1127
|
# },
|
1049
1128
|
# ],
|
1050
1129
|
# },
|
@@ -1053,6 +1132,8 @@ module Aws::Bedrock
|
|
1053
1132
|
# {
|
1054
1133
|
# type: "GROUNDING", # required, accepts GROUNDING, RELEVANCE
|
1055
1134
|
# threshold: 1.0, # required
|
1135
|
+
# action: "BLOCK", # accepts BLOCK, NONE
|
1136
|
+
# enabled: false,
|
1056
1137
|
# },
|
1057
1138
|
# ],
|
1058
1139
|
# },
|
@@ -2341,6 +2422,15 @@ module Aws::Bedrock
|
|
2341
2422
|
# resp.evaluation_config.automated.dataset_metric_configs[0].metric_names[0] #=> String
|
2342
2423
|
# resp.evaluation_config.automated.evaluator_model_config.bedrock_evaluator_models #=> Array
|
2343
2424
|
# resp.evaluation_config.automated.evaluator_model_config.bedrock_evaluator_models[0].model_identifier #=> String
|
2425
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics #=> Array
|
2426
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.name #=> String
|
2427
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.instructions #=> String
|
2428
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.rating_scale #=> Array
|
2429
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.rating_scale[0].definition #=> String
|
2430
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.rating_scale[0].value.string_value #=> String
|
2431
|
+
# resp.evaluation_config.automated.custom_metric_config.custom_metrics[0].custom_metric_definition.rating_scale[0].value.float_value #=> Float
|
2432
|
+
# resp.evaluation_config.automated.custom_metric_config.evaluator_model_config.bedrock_evaluator_models #=> Array
|
2433
|
+
# resp.evaluation_config.automated.custom_metric_config.evaluator_model_config.bedrock_evaluator_models[0].model_identifier #=> String
|
2344
2434
|
# resp.evaluation_config.human.human_workflow_config.flow_definition_arn #=> String
|
2345
2435
|
# resp.evaluation_config.human.human_workflow_config.instructions #=> String
|
2346
2436
|
# resp.evaluation_config.human.custom_metrics #=> Array
|
@@ -2535,6 +2625,10 @@ module Aws::Bedrock
|
|
2535
2625
|
# resp.topic_policy.topics[0].examples #=> Array
|
2536
2626
|
# resp.topic_policy.topics[0].examples[0] #=> String
|
2537
2627
|
# resp.topic_policy.topics[0].type #=> String, one of "DENY"
|
2628
|
+
# resp.topic_policy.topics[0].input_action #=> String, one of "BLOCK", "NONE"
|
2629
|
+
# resp.topic_policy.topics[0].output_action #=> String, one of "BLOCK", "NONE"
|
2630
|
+
# resp.topic_policy.topics[0].input_enabled #=> Boolean
|
2631
|
+
# resp.topic_policy.topics[0].output_enabled #=> Boolean
|
2538
2632
|
# resp.content_policy.filters #=> Array
|
2539
2633
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2540
2634
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
@@ -2543,21 +2637,43 @@ module Aws::Bedrock
|
|
2543
2637
|
# resp.content_policy.filters[0].input_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2544
2638
|
# resp.content_policy.filters[0].output_modalities #=> Array
|
2545
2639
|
# resp.content_policy.filters[0].output_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2640
|
+
# resp.content_policy.filters[0].input_action #=> String, one of "BLOCK", "NONE"
|
2641
|
+
# resp.content_policy.filters[0].output_action #=> String, one of "BLOCK", "NONE"
|
2642
|
+
# resp.content_policy.filters[0].input_enabled #=> Boolean
|
2643
|
+
# resp.content_policy.filters[0].output_enabled #=> Boolean
|
2546
2644
|
# resp.word_policy.words #=> Array
|
2547
2645
|
# resp.word_policy.words[0].text #=> String
|
2646
|
+
# resp.word_policy.words[0].input_action #=> String, one of "BLOCK", "NONE"
|
2647
|
+
# resp.word_policy.words[0].output_action #=> String, one of "BLOCK", "NONE"
|
2648
|
+
# resp.word_policy.words[0].input_enabled #=> Boolean
|
2649
|
+
# resp.word_policy.words[0].output_enabled #=> Boolean
|
2548
2650
|
# resp.word_policy.managed_word_lists #=> Array
|
2549
2651
|
# resp.word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
2652
|
+
# resp.word_policy.managed_word_lists[0].input_action #=> String, one of "BLOCK", "NONE"
|
2653
|
+
# resp.word_policy.managed_word_lists[0].output_action #=> String, one of "BLOCK", "NONE"
|
2654
|
+
# resp.word_policy.managed_word_lists[0].input_enabled #=> Boolean
|
2655
|
+
# resp.word_policy.managed_word_lists[0].output_enabled #=> Boolean
|
2550
2656
|
# resp.sensitive_information_policy.pii_entities #=> Array
|
2551
2657
|
# resp.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"
|
2552
|
-
# resp.sensitive_information_policy.pii_entities[0].action #=> String, one of "BLOCK", "ANONYMIZE"
|
2658
|
+
# resp.sensitive_information_policy.pii_entities[0].action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2659
|
+
# resp.sensitive_information_policy.pii_entities[0].input_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2660
|
+
# resp.sensitive_information_policy.pii_entities[0].output_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2661
|
+
# resp.sensitive_information_policy.pii_entities[0].input_enabled #=> Boolean
|
2662
|
+
# resp.sensitive_information_policy.pii_entities[0].output_enabled #=> Boolean
|
2553
2663
|
# resp.sensitive_information_policy.regexes #=> Array
|
2554
2664
|
# resp.sensitive_information_policy.regexes[0].name #=> String
|
2555
2665
|
# resp.sensitive_information_policy.regexes[0].description #=> String
|
2556
2666
|
# resp.sensitive_information_policy.regexes[0].pattern #=> String
|
2557
|
-
# resp.sensitive_information_policy.regexes[0].action #=> String, one of "BLOCK", "ANONYMIZE"
|
2667
|
+
# resp.sensitive_information_policy.regexes[0].action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2668
|
+
# resp.sensitive_information_policy.regexes[0].input_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2669
|
+
# resp.sensitive_information_policy.regexes[0].output_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2670
|
+
# resp.sensitive_information_policy.regexes[0].input_enabled #=> Boolean
|
2671
|
+
# resp.sensitive_information_policy.regexes[0].output_enabled #=> Boolean
|
2558
2672
|
# resp.contextual_grounding_policy.filters #=> Array
|
2559
2673
|
# resp.contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
2560
2674
|
# resp.contextual_grounding_policy.filters[0].threshold #=> Float
|
2675
|
+
# resp.contextual_grounding_policy.filters[0].action #=> String, one of "BLOCK", "NONE"
|
2676
|
+
# resp.contextual_grounding_policy.filters[0].enabled #=> Boolean
|
2561
2677
|
# resp.created_at #=> Time
|
2562
2678
|
# resp.updated_at #=> Time
|
2563
2679
|
# resp.status_reasons #=> Array
|
@@ -3305,6 +3421,8 @@ module Aws::Bedrock
|
|
3305
3421
|
# resp.job_summaries[0].rag_identifiers[0] #=> String
|
3306
3422
|
# resp.job_summaries[0].evaluator_model_identifiers #=> Array
|
3307
3423
|
# resp.job_summaries[0].evaluator_model_identifiers[0] #=> String
|
3424
|
+
# resp.job_summaries[0].custom_metrics_evaluator_model_identifiers #=> Array
|
3425
|
+
# resp.job_summaries[0].custom_metrics_evaluator_model_identifiers[0] #=> String
|
3308
3426
|
# resp.job_summaries[0].inference_config_summary.model_config_summary.bedrock_model_identifiers #=> Array
|
3309
3427
|
# resp.job_summaries[0].inference_config_summary.model_config_summary.bedrock_model_identifiers[0] #=> String
|
3310
3428
|
# resp.job_summaries[0].inference_config_summary.model_config_summary.precomputed_inference_source_identifiers #=> Array
|
@@ -3977,7 +4095,7 @@ module Aws::Bedrock
|
|
3977
4095
|
#
|
3978
4096
|
# * Failed – This job has failed. Check the failure message for any
|
3979
4097
|
# further details. For further assistance, reach out to the [Amazon
|
3980
|
-
# Web
|
4098
|
+
# Web ServicesSupport Center][3].
|
3981
4099
|
#
|
3982
4100
|
# * Stopped – This job was stopped by a user.
|
3983
4101
|
#
|
@@ -4580,6 +4698,10 @@ module Aws::Bedrock
|
|
4580
4698
|
# definition: "GuardrailTopicDefinition", # required
|
4581
4699
|
# examples: ["GuardrailTopicExample"],
|
4582
4700
|
# type: "DENY", # required, accepts DENY
|
4701
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4702
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4703
|
+
# input_enabled: false,
|
4704
|
+
# output_enabled: false,
|
4583
4705
|
# },
|
4584
4706
|
# ],
|
4585
4707
|
# },
|
@@ -4591,6 +4713,10 @@ module Aws::Bedrock
|
|
4591
4713
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
4592
4714
|
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4593
4715
|
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4716
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4717
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4718
|
+
# input_enabled: false,
|
4719
|
+
# output_enabled: false,
|
4594
4720
|
# },
|
4595
4721
|
# ],
|
4596
4722
|
# },
|
@@ -4598,11 +4724,19 @@ module Aws::Bedrock
|
|
4598
4724
|
# words_config: [
|
4599
4725
|
# {
|
4600
4726
|
# text: "GuardrailWordConfigTextString", # required
|
4727
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4728
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4729
|
+
# input_enabled: false,
|
4730
|
+
# output_enabled: false,
|
4601
4731
|
# },
|
4602
4732
|
# ],
|
4603
4733
|
# managed_word_lists_config: [
|
4604
4734
|
# {
|
4605
4735
|
# type: "PROFANITY", # required, accepts PROFANITY
|
4736
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4737
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4738
|
+
# input_enabled: false,
|
4739
|
+
# output_enabled: false,
|
4606
4740
|
# },
|
4607
4741
|
# ],
|
4608
4742
|
# },
|
@@ -4610,7 +4744,11 @@ module Aws::Bedrock
|
|
4610
4744
|
# pii_entities_config: [
|
4611
4745
|
# {
|
4612
4746
|
# type: "ADDRESS", # required, accepts 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
|
4613
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
4747
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
4748
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4749
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4750
|
+
# input_enabled: false,
|
4751
|
+
# output_enabled: false,
|
4614
4752
|
# },
|
4615
4753
|
# ],
|
4616
4754
|
# regexes_config: [
|
@@ -4618,7 +4756,11 @@ module Aws::Bedrock
|
|
4618
4756
|
# name: "GuardrailRegexConfigNameString", # required
|
4619
4757
|
# description: "GuardrailRegexConfigDescriptionString",
|
4620
4758
|
# pattern: "GuardrailRegexConfigPatternString", # required
|
4621
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
4759
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
4760
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4761
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4762
|
+
# input_enabled: false,
|
4763
|
+
# output_enabled: false,
|
4622
4764
|
# },
|
4623
4765
|
# ],
|
4624
4766
|
# },
|
@@ -4627,6 +4769,8 @@ module Aws::Bedrock
|
|
4627
4769
|
# {
|
4628
4770
|
# type: "GROUNDING", # required, accepts GROUNDING, RELEVANCE
|
4629
4771
|
# threshold: 1.0, # required
|
4772
|
+
# action: "BLOCK", # accepts BLOCK, NONE
|
4773
|
+
# enabled: false,
|
4630
4774
|
# },
|
4631
4775
|
# ],
|
4632
4776
|
# },
|
@@ -4788,7 +4932,7 @@ module Aws::Bedrock
|
|
4788
4932
|
tracer: tracer
|
4789
4933
|
)
|
4790
4934
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4791
|
-
context[:gem_version] = '1.
|
4935
|
+
context[:gem_version] = '1.42.0'
|
4792
4936
|
Seahorse::Client::Request.new(handlers, context)
|
4793
4937
|
end
|
4794
4938
|
|