aws-sdk-bedrock 1.40.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/client.rbs CHANGED
@@ -414,7 +414,11 @@ module Aws
414
414
  name: ::String,
415
415
  definition: ::String,
416
416
  examples: Array[::String]?,
417
- type: ("DENY")
417
+ type: ("DENY"),
418
+ input_action: ("BLOCK" | "NONE")?,
419
+ output_action: ("BLOCK" | "NONE")?,
420
+ input_enabled: bool?,
421
+ output_enabled: bool?
418
422
  },
419
423
  ]
420
424
  },
@@ -425,19 +429,31 @@ module Aws
425
429
  input_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
426
430
  output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
427
431
  input_modalities: Array[("TEXT" | "IMAGE")]?,
428
- output_modalities: Array[("TEXT" | "IMAGE")]?
432
+ output_modalities: Array[("TEXT" | "IMAGE")]?,
433
+ input_action: ("BLOCK" | "NONE")?,
434
+ output_action: ("BLOCK" | "NONE")?,
435
+ input_enabled: bool?,
436
+ output_enabled: bool?
429
437
  },
430
438
  ]
431
439
  },
432
440
  ?word_policy_config: {
433
441
  words_config: Array[
434
442
  {
435
- text: ::String
443
+ text: ::String,
444
+ input_action: ("BLOCK" | "NONE")?,
445
+ output_action: ("BLOCK" | "NONE")?,
446
+ input_enabled: bool?,
447
+ output_enabled: bool?
436
448
  },
437
449
  ]?,
438
450
  managed_word_lists_config: Array[
439
451
  {
440
- type: ("PROFANITY")
452
+ type: ("PROFANITY"),
453
+ input_action: ("BLOCK" | "NONE")?,
454
+ output_action: ("BLOCK" | "NONE")?,
455
+ input_enabled: bool?,
456
+ output_enabled: bool?
441
457
  },
442
458
  ]?
443
459
  },
@@ -445,7 +461,11 @@ module Aws
445
461
  pii_entities_config: Array[
446
462
  {
447
463
  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"),
448
- action: ("BLOCK" | "ANONYMIZE")
464
+ action: ("BLOCK" | "ANONYMIZE" | "NONE"),
465
+ input_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
466
+ output_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
467
+ input_enabled: bool?,
468
+ output_enabled: bool?
449
469
  },
450
470
  ]?,
451
471
  regexes_config: Array[
@@ -453,7 +473,11 @@ module Aws
453
473
  name: ::String,
454
474
  description: ::String?,
455
475
  pattern: ::String,
456
- action: ("BLOCK" | "ANONYMIZE")
476
+ action: ("BLOCK" | "ANONYMIZE" | "NONE"),
477
+ input_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
478
+ output_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
479
+ input_enabled: bool?,
480
+ output_enabled: bool?
457
481
  },
458
482
  ]?
459
483
  },
@@ -461,7 +485,9 @@ module Aws
461
485
  filters_config: Array[
462
486
  {
463
487
  type: ("GROUNDING" | "RELEVANCE"),
464
- threshold: ::Float
488
+ threshold: ::Float,
489
+ action: ("BLOCK" | "NONE")?,
490
+ enabled: bool?
465
491
  },
466
492
  ]
467
493
  },
@@ -1452,7 +1478,11 @@ module Aws
1452
1478
  name: ::String,
1453
1479
  definition: ::String,
1454
1480
  examples: Array[::String]?,
1455
- type: ("DENY")
1481
+ type: ("DENY"),
1482
+ input_action: ("BLOCK" | "NONE")?,
1483
+ output_action: ("BLOCK" | "NONE")?,
1484
+ input_enabled: bool?,
1485
+ output_enabled: bool?
1456
1486
  },
1457
1487
  ]
1458
1488
  },
@@ -1463,19 +1493,31 @@ module Aws
1463
1493
  input_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
1464
1494
  output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
1465
1495
  input_modalities: Array[("TEXT" | "IMAGE")]?,
1466
- output_modalities: Array[("TEXT" | "IMAGE")]?
1496
+ output_modalities: Array[("TEXT" | "IMAGE")]?,
1497
+ input_action: ("BLOCK" | "NONE")?,
1498
+ output_action: ("BLOCK" | "NONE")?,
1499
+ input_enabled: bool?,
1500
+ output_enabled: bool?
1467
1501
  },
1468
1502
  ]
1469
1503
  },
1470
1504
  ?word_policy_config: {
1471
1505
  words_config: Array[
1472
1506
  {
1473
- text: ::String
1507
+ text: ::String,
1508
+ input_action: ("BLOCK" | "NONE")?,
1509
+ output_action: ("BLOCK" | "NONE")?,
1510
+ input_enabled: bool?,
1511
+ output_enabled: bool?
1474
1512
  },
1475
1513
  ]?,
1476
1514
  managed_word_lists_config: Array[
1477
1515
  {
1478
- type: ("PROFANITY")
1516
+ type: ("PROFANITY"),
1517
+ input_action: ("BLOCK" | "NONE")?,
1518
+ output_action: ("BLOCK" | "NONE")?,
1519
+ input_enabled: bool?,
1520
+ output_enabled: bool?
1479
1521
  },
1480
1522
  ]?
1481
1523
  },
@@ -1483,7 +1525,11 @@ module Aws
1483
1525
  pii_entities_config: Array[
1484
1526
  {
1485
1527
  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"),
1486
- action: ("BLOCK" | "ANONYMIZE")
1528
+ action: ("BLOCK" | "ANONYMIZE" | "NONE"),
1529
+ input_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
1530
+ output_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
1531
+ input_enabled: bool?,
1532
+ output_enabled: bool?
1487
1533
  },
1488
1534
  ]?,
1489
1535
  regexes_config: Array[
@@ -1491,7 +1537,11 @@ module Aws
1491
1537
  name: ::String,
1492
1538
  description: ::String?,
1493
1539
  pattern: ::String,
1494
- action: ("BLOCK" | "ANONYMIZE")
1540
+ action: ("BLOCK" | "ANONYMIZE" | "NONE"),
1541
+ input_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
1542
+ output_action: ("BLOCK" | "ANONYMIZE" | "NONE")?,
1543
+ input_enabled: bool?,
1544
+ output_enabled: bool?
1495
1545
  },
1496
1546
  ]?
1497
1547
  },
@@ -1499,7 +1549,9 @@ module Aws
1499
1549
  filters_config: Array[
1500
1550
  {
1501
1551
  type: ("GROUNDING" | "RELEVANCE"),
1502
- threshold: ::Float
1552
+ threshold: ::Float,
1553
+ action: ("BLOCK" | "NONE")?,
1554
+ enabled: bool?
1503
1555
  },
1504
1556
  ]
1505
1557
  },
data/sig/types.rbs CHANGED
@@ -883,7 +883,11 @@ module Aws::Bedrock
883
883
  attr_accessor output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
884
884
  attr_accessor input_modalities: ::Array[("TEXT" | "IMAGE")]
885
885
  attr_accessor output_modalities: ::Array[("TEXT" | "IMAGE")]
886
- SENSITIVE: []
886
+ attr_accessor input_action: ("BLOCK" | "NONE")
887
+ attr_accessor output_action: ("BLOCK" | "NONE")
888
+ attr_accessor input_enabled: bool
889
+ attr_accessor output_enabled: bool
890
+ SENSITIVE: [:input_action, :output_action]
887
891
  end
888
892
 
889
893
  class GuardrailContentFilterConfig
@@ -892,7 +896,11 @@ module Aws::Bedrock
892
896
  attr_accessor output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
893
897
  attr_accessor input_modalities: ::Array[("TEXT" | "IMAGE")]
894
898
  attr_accessor output_modalities: ::Array[("TEXT" | "IMAGE")]
895
- SENSITIVE: []
899
+ attr_accessor input_action: ("BLOCK" | "NONE")
900
+ attr_accessor output_action: ("BLOCK" | "NONE")
901
+ attr_accessor input_enabled: bool
902
+ attr_accessor output_enabled: bool
903
+ SENSITIVE: [:input_action, :output_action]
896
904
  end
897
905
 
898
906
  class GuardrailContentPolicy
@@ -908,13 +916,17 @@ module Aws::Bedrock
908
916
  class GuardrailContextualGroundingFilter
909
917
  attr_accessor type: ("GROUNDING" | "RELEVANCE")
910
918
  attr_accessor threshold: ::Float
911
- SENSITIVE: []
919
+ attr_accessor action: ("BLOCK" | "NONE")
920
+ attr_accessor enabled: bool
921
+ SENSITIVE: [:action]
912
922
  end
913
923
 
914
924
  class GuardrailContextualGroundingFilterConfig
915
925
  attr_accessor type: ("GROUNDING" | "RELEVANCE")
916
926
  attr_accessor threshold: ::Float
917
- SENSITIVE: []
927
+ attr_accessor action: ("BLOCK" | "NONE")
928
+ attr_accessor enabled: bool
929
+ SENSITIVE: [:action]
918
930
  end
919
931
 
920
932
  class GuardrailContextualGroundingPolicy
@@ -929,23 +941,39 @@ module Aws::Bedrock
929
941
 
930
942
  class GuardrailManagedWords
931
943
  attr_accessor type: ("PROFANITY")
932
- SENSITIVE: []
944
+ attr_accessor input_action: ("BLOCK" | "NONE")
945
+ attr_accessor output_action: ("BLOCK" | "NONE")
946
+ attr_accessor input_enabled: bool
947
+ attr_accessor output_enabled: bool
948
+ SENSITIVE: [:input_action, :output_action]
933
949
  end
934
950
 
935
951
  class GuardrailManagedWordsConfig
936
952
  attr_accessor type: ("PROFANITY")
937
- SENSITIVE: []
953
+ attr_accessor input_action: ("BLOCK" | "NONE")
954
+ attr_accessor output_action: ("BLOCK" | "NONE")
955
+ attr_accessor input_enabled: bool
956
+ attr_accessor output_enabled: bool
957
+ SENSITIVE: [:input_action, :output_action]
938
958
  end
939
959
 
940
960
  class GuardrailPiiEntity
941
961
  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")
942
- attr_accessor action: ("BLOCK" | "ANONYMIZE")
962
+ attr_accessor action: ("BLOCK" | "ANONYMIZE" | "NONE")
963
+ attr_accessor input_action: ("BLOCK" | "ANONYMIZE" | "NONE")
964
+ attr_accessor output_action: ("BLOCK" | "ANONYMIZE" | "NONE")
965
+ attr_accessor input_enabled: bool
966
+ attr_accessor output_enabled: bool
943
967
  SENSITIVE: []
944
968
  end
945
969
 
946
970
  class GuardrailPiiEntityConfig
947
971
  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")
948
- attr_accessor action: ("BLOCK" | "ANONYMIZE")
972
+ attr_accessor action: ("BLOCK" | "ANONYMIZE" | "NONE")
973
+ attr_accessor input_action: ("BLOCK" | "ANONYMIZE" | "NONE")
974
+ attr_accessor output_action: ("BLOCK" | "ANONYMIZE" | "NONE")
975
+ attr_accessor input_enabled: bool
976
+ attr_accessor output_enabled: bool
949
977
  SENSITIVE: []
950
978
  end
951
979
 
@@ -953,7 +981,11 @@ module Aws::Bedrock
953
981
  attr_accessor name: ::String
954
982
  attr_accessor description: ::String
955
983
  attr_accessor pattern: ::String
956
- attr_accessor action: ("BLOCK" | "ANONYMIZE")
984
+ attr_accessor action: ("BLOCK" | "ANONYMIZE" | "NONE")
985
+ attr_accessor input_action: ("BLOCK" | "ANONYMIZE" | "NONE")
986
+ attr_accessor output_action: ("BLOCK" | "ANONYMIZE" | "NONE")
987
+ attr_accessor input_enabled: bool
988
+ attr_accessor output_enabled: bool
957
989
  SENSITIVE: []
958
990
  end
959
991
 
@@ -961,7 +993,11 @@ module Aws::Bedrock
961
993
  attr_accessor name: ::String
962
994
  attr_accessor description: ::String
963
995
  attr_accessor pattern: ::String
964
- attr_accessor action: ("BLOCK" | "ANONYMIZE")
996
+ attr_accessor action: ("BLOCK" | "ANONYMIZE" | "NONE")
997
+ attr_accessor input_action: ("BLOCK" | "ANONYMIZE" | "NONE")
998
+ attr_accessor output_action: ("BLOCK" | "ANONYMIZE" | "NONE")
999
+ attr_accessor input_enabled: bool
1000
+ attr_accessor output_enabled: bool
965
1001
  SENSITIVE: []
966
1002
  end
967
1003
 
@@ -994,7 +1030,11 @@ module Aws::Bedrock
994
1030
  attr_accessor definition: ::String
995
1031
  attr_accessor examples: ::Array[::String]
996
1032
  attr_accessor type: ("DENY")
997
- SENSITIVE: [:name, :definition]
1033
+ attr_accessor input_action: ("BLOCK" | "NONE")
1034
+ attr_accessor output_action: ("BLOCK" | "NONE")
1035
+ attr_accessor input_enabled: bool
1036
+ attr_accessor output_enabled: bool
1037
+ SENSITIVE: [:name, :definition, :input_action, :output_action]
998
1038
  end
999
1039
 
1000
1040
  class GuardrailTopicConfig
@@ -1002,7 +1042,11 @@ module Aws::Bedrock
1002
1042
  attr_accessor definition: ::String
1003
1043
  attr_accessor examples: ::Array[::String]
1004
1044
  attr_accessor type: ("DENY")
1005
- SENSITIVE: [:name, :definition]
1045
+ attr_accessor input_action: ("BLOCK" | "NONE")
1046
+ attr_accessor output_action: ("BLOCK" | "NONE")
1047
+ attr_accessor input_enabled: bool
1048
+ attr_accessor output_enabled: bool
1049
+ SENSITIVE: [:name, :definition, :input_action, :output_action]
1006
1050
  end
1007
1051
 
1008
1052
  class GuardrailTopicPolicy
@@ -1017,12 +1061,20 @@ module Aws::Bedrock
1017
1061
 
1018
1062
  class GuardrailWord
1019
1063
  attr_accessor text: ::String
1020
- SENSITIVE: []
1064
+ attr_accessor input_action: ("BLOCK" | "NONE")
1065
+ attr_accessor output_action: ("BLOCK" | "NONE")
1066
+ attr_accessor input_enabled: bool
1067
+ attr_accessor output_enabled: bool
1068
+ SENSITIVE: [:input_action, :output_action]
1021
1069
  end
1022
1070
 
1023
1071
  class GuardrailWordConfig
1024
1072
  attr_accessor text: ::String
1025
- SENSITIVE: []
1073
+ attr_accessor input_action: ("BLOCK" | "NONE")
1074
+ attr_accessor output_action: ("BLOCK" | "NONE")
1075
+ attr_accessor input_enabled: bool
1076
+ attr_accessor output_enabled: bool
1077
+ SENSITIVE: [:input_action, :output_action]
1026
1078
  end
1027
1079
 
1028
1080
  class GuardrailWordPolicy
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.41.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-03-21 00:00:00.000000000 Z
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