aws-sdk-bedrock 1.39.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.
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.39.0'
58
+ GEM_VERSION = '1.41.0'
59
59
 
60
60
  end
61
61
 
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
  },
@@ -938,6 +964,7 @@ module Aws
938
964
  def model_architecture: () -> ::String
939
965
  def model_kms_key_arn: () -> ::String
940
966
  def instruct_supported: () -> bool
967
+ def custom_model_units: () -> Types::CustomModelUnits
941
968
  end
942
969
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_imported_model-instance_method
943
970
  def get_imported_model: (
@@ -1451,7 +1478,11 @@ module Aws
1451
1478
  name: ::String,
1452
1479
  definition: ::String,
1453
1480
  examples: Array[::String]?,
1454
- type: ("DENY")
1481
+ type: ("DENY"),
1482
+ input_action: ("BLOCK" | "NONE")?,
1483
+ output_action: ("BLOCK" | "NONE")?,
1484
+ input_enabled: bool?,
1485
+ output_enabled: bool?
1455
1486
  },
1456
1487
  ]
1457
1488
  },
@@ -1462,19 +1493,31 @@ module Aws
1462
1493
  input_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
1463
1494
  output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
1464
1495
  input_modalities: Array[("TEXT" | "IMAGE")]?,
1465
- 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?
1466
1501
  },
1467
1502
  ]
1468
1503
  },
1469
1504
  ?word_policy_config: {
1470
1505
  words_config: Array[
1471
1506
  {
1472
- text: ::String
1507
+ text: ::String,
1508
+ input_action: ("BLOCK" | "NONE")?,
1509
+ output_action: ("BLOCK" | "NONE")?,
1510
+ input_enabled: bool?,
1511
+ output_enabled: bool?
1473
1512
  },
1474
1513
  ]?,
1475
1514
  managed_word_lists_config: Array[
1476
1515
  {
1477
- type: ("PROFANITY")
1516
+ type: ("PROFANITY"),
1517
+ input_action: ("BLOCK" | "NONE")?,
1518
+ output_action: ("BLOCK" | "NONE")?,
1519
+ input_enabled: bool?,
1520
+ output_enabled: bool?
1478
1521
  },
1479
1522
  ]?
1480
1523
  },
@@ -1482,7 +1525,11 @@ module Aws
1482
1525
  pii_entities_config: Array[
1483
1526
  {
1484
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"),
1485
- 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?
1486
1533
  },
1487
1534
  ]?,
1488
1535
  regexes_config: Array[
@@ -1490,7 +1537,11 @@ module Aws
1490
1537
  name: ::String,
1491
1538
  description: ::String?,
1492
1539
  pattern: ::String,
1493
- 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?
1494
1545
  },
1495
1546
  ]?
1496
1547
  },
@@ -1498,7 +1549,9 @@ module Aws
1498
1549
  filters_config: Array[
1499
1550
  {
1500
1551
  type: ("GROUNDING" | "RELEVANCE"),
1501
- threshold: ::Float
1552
+ threshold: ::Float,
1553
+ action: ("BLOCK" | "NONE")?,
1554
+ enabled: bool?
1502
1555
  },
1503
1556
  ]
1504
1557
  },
data/sig/types.rbs CHANGED
@@ -269,6 +269,12 @@ module Aws::Bedrock
269
269
  SENSITIVE: []
270
270
  end
271
271
 
272
+ class CustomModelUnits
273
+ attr_accessor custom_model_units_per_model_copy: ::Integer
274
+ attr_accessor custom_model_units_version: ::String
275
+ SENSITIVE: []
276
+ end
277
+
272
278
  class CustomizationConfig
273
279
  attr_accessor distillation_config: Types::DistillationConfig
274
280
  attr_accessor unknown: untyped
@@ -687,6 +693,7 @@ module Aws::Bedrock
687
693
  attr_accessor model_architecture: ::String
688
694
  attr_accessor model_kms_key_arn: ::String
689
695
  attr_accessor instruct_supported: bool
696
+ attr_accessor custom_model_units: Types::CustomModelUnits
690
697
  SENSITIVE: []
691
698
  end
692
699
 
@@ -876,7 +883,11 @@ module Aws::Bedrock
876
883
  attr_accessor output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
877
884
  attr_accessor input_modalities: ::Array[("TEXT" | "IMAGE")]
878
885
  attr_accessor output_modalities: ::Array[("TEXT" | "IMAGE")]
879
- 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]
880
891
  end
881
892
 
882
893
  class GuardrailContentFilterConfig
@@ -885,7 +896,11 @@ module Aws::Bedrock
885
896
  attr_accessor output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
886
897
  attr_accessor input_modalities: ::Array[("TEXT" | "IMAGE")]
887
898
  attr_accessor output_modalities: ::Array[("TEXT" | "IMAGE")]
888
- 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]
889
904
  end
890
905
 
891
906
  class GuardrailContentPolicy
@@ -901,13 +916,17 @@ module Aws::Bedrock
901
916
  class GuardrailContextualGroundingFilter
902
917
  attr_accessor type: ("GROUNDING" | "RELEVANCE")
903
918
  attr_accessor threshold: ::Float
904
- SENSITIVE: []
919
+ attr_accessor action: ("BLOCK" | "NONE")
920
+ attr_accessor enabled: bool
921
+ SENSITIVE: [:action]
905
922
  end
906
923
 
907
924
  class GuardrailContextualGroundingFilterConfig
908
925
  attr_accessor type: ("GROUNDING" | "RELEVANCE")
909
926
  attr_accessor threshold: ::Float
910
- SENSITIVE: []
927
+ attr_accessor action: ("BLOCK" | "NONE")
928
+ attr_accessor enabled: bool
929
+ SENSITIVE: [:action]
911
930
  end
912
931
 
913
932
  class GuardrailContextualGroundingPolicy
@@ -922,23 +941,39 @@ module Aws::Bedrock
922
941
 
923
942
  class GuardrailManagedWords
924
943
  attr_accessor type: ("PROFANITY")
925
- 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]
926
949
  end
927
950
 
928
951
  class GuardrailManagedWordsConfig
929
952
  attr_accessor type: ("PROFANITY")
930
- 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]
931
958
  end
932
959
 
933
960
  class GuardrailPiiEntity
934
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")
935
- 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
936
967
  SENSITIVE: []
937
968
  end
938
969
 
939
970
  class GuardrailPiiEntityConfig
940
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")
941
- 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
942
977
  SENSITIVE: []
943
978
  end
944
979
 
@@ -946,7 +981,11 @@ module Aws::Bedrock
946
981
  attr_accessor name: ::String
947
982
  attr_accessor description: ::String
948
983
  attr_accessor pattern: ::String
949
- 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
950
989
  SENSITIVE: []
951
990
  end
952
991
 
@@ -954,7 +993,11 @@ module Aws::Bedrock
954
993
  attr_accessor name: ::String
955
994
  attr_accessor description: ::String
956
995
  attr_accessor pattern: ::String
957
- 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
958
1001
  SENSITIVE: []
959
1002
  end
960
1003
 
@@ -987,7 +1030,11 @@ module Aws::Bedrock
987
1030
  attr_accessor definition: ::String
988
1031
  attr_accessor examples: ::Array[::String]
989
1032
  attr_accessor type: ("DENY")
990
- 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]
991
1038
  end
992
1039
 
993
1040
  class GuardrailTopicConfig
@@ -995,7 +1042,11 @@ module Aws::Bedrock
995
1042
  attr_accessor definition: ::String
996
1043
  attr_accessor examples: ::Array[::String]
997
1044
  attr_accessor type: ("DENY")
998
- 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]
999
1050
  end
1000
1051
 
1001
1052
  class GuardrailTopicPolicy
@@ -1010,12 +1061,20 @@ module Aws::Bedrock
1010
1061
 
1011
1062
  class GuardrailWord
1012
1063
  attr_accessor text: ::String
1013
- 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]
1014
1069
  end
1015
1070
 
1016
1071
  class GuardrailWordConfig
1017
1072
  attr_accessor text: ::String
1018
- 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]
1019
1078
  end
1020
1079
 
1021
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.39.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-20 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