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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +88 -7
- data/lib/aws-sdk-bedrock/client_api.rb +63 -0
- data/lib/aws-sdk-bedrock/types.rb +540 -25
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +67 -14
- data/sig/types.rbs +73 -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: 87923521772094c9ec78f8e86a115fe80cc75f9094a6123b8d7d094fe4cbc07d
|
4
|
+
data.tar.gz: 73e72424273ad3dc26502454113fa810107fba80b7e02a4ef69ebb6ba2730e05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837e2fd591a620addc22e9f1e68947b679af09089f7663ee38e04c2eec6a58589b1828b462f92c1adf4fa3695ca2ccee62d53443680194ab4e4e75433cfeabd9
|
7
|
+
data.tar.gz: 25c1c7e1756a78927a4836a66bdaf27dd443d6f0daa1aedfca9c68938c7569353fa11f0d78d67b31f30629bcc6da40c81d1e55466cf7bffe8b88f4e095304866
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.41.0 (2025-04-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - New options for how to handle harmful content detected by Amazon Bedrock Guardrails.
|
8
|
+
|
9
|
+
1.40.0 (2025-03-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - A CustomModelUnit(CMU) is an abstract view of the hardware utilization that Bedrock needs to host a a single copy of your custom imported model. Bedrock determines the number of CMUs that a model copy needs when you import the custom model. You can use CMUs to estimate the cost of Inference's.
|
13
|
+
|
4
14
|
1.39.0 (2025-03-20)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.0
|
@@ -1006,6 +1006,10 @@ module Aws::Bedrock
|
|
1006
1006
|
# definition: "GuardrailTopicDefinition", # required
|
1007
1007
|
# examples: ["GuardrailTopicExample"],
|
1008
1008
|
# type: "DENY", # required, accepts DENY
|
1009
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1010
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1011
|
+
# input_enabled: false,
|
1012
|
+
# output_enabled: false,
|
1009
1013
|
# },
|
1010
1014
|
# ],
|
1011
1015
|
# },
|
@@ -1017,6 +1021,10 @@ module Aws::Bedrock
|
|
1017
1021
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
1018
1022
|
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
1019
1023
|
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
1024
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1025
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1026
|
+
# input_enabled: false,
|
1027
|
+
# output_enabled: false,
|
1020
1028
|
# },
|
1021
1029
|
# ],
|
1022
1030
|
# },
|
@@ -1024,11 +1032,19 @@ module Aws::Bedrock
|
|
1024
1032
|
# words_config: [
|
1025
1033
|
# {
|
1026
1034
|
# text: "GuardrailWordConfigTextString", # required
|
1035
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1036
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1037
|
+
# input_enabled: false,
|
1038
|
+
# output_enabled: false,
|
1027
1039
|
# },
|
1028
1040
|
# ],
|
1029
1041
|
# managed_word_lists_config: [
|
1030
1042
|
# {
|
1031
1043
|
# type: "PROFANITY", # required, accepts PROFANITY
|
1044
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
1045
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
1046
|
+
# input_enabled: false,
|
1047
|
+
# output_enabled: false,
|
1032
1048
|
# },
|
1033
1049
|
# ],
|
1034
1050
|
# },
|
@@ -1036,7 +1052,11 @@ module Aws::Bedrock
|
|
1036
1052
|
# pii_entities_config: [
|
1037
1053
|
# {
|
1038
1054
|
# 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
|
1055
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
1056
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1057
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1058
|
+
# input_enabled: false,
|
1059
|
+
# output_enabled: false,
|
1040
1060
|
# },
|
1041
1061
|
# ],
|
1042
1062
|
# regexes_config: [
|
@@ -1044,7 +1064,11 @@ module Aws::Bedrock
|
|
1044
1064
|
# name: "GuardrailRegexConfigNameString", # required
|
1045
1065
|
# description: "GuardrailRegexConfigDescriptionString",
|
1046
1066
|
# pattern: "GuardrailRegexConfigPatternString", # required
|
1047
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
1067
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
1068
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1069
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
1070
|
+
# input_enabled: false,
|
1071
|
+
# output_enabled: false,
|
1048
1072
|
# },
|
1049
1073
|
# ],
|
1050
1074
|
# },
|
@@ -1053,6 +1077,8 @@ module Aws::Bedrock
|
|
1053
1077
|
# {
|
1054
1078
|
# type: "GROUNDING", # required, accepts GROUNDING, RELEVANCE
|
1055
1079
|
# threshold: 1.0, # required
|
1080
|
+
# action: "BLOCK", # accepts BLOCK, NONE
|
1081
|
+
# enabled: false,
|
1056
1082
|
# },
|
1057
1083
|
# ],
|
1058
1084
|
# },
|
@@ -2535,6 +2561,10 @@ module Aws::Bedrock
|
|
2535
2561
|
# resp.topic_policy.topics[0].examples #=> Array
|
2536
2562
|
# resp.topic_policy.topics[0].examples[0] #=> String
|
2537
2563
|
# resp.topic_policy.topics[0].type #=> String, one of "DENY"
|
2564
|
+
# resp.topic_policy.topics[0].input_action #=> String, one of "BLOCK", "NONE"
|
2565
|
+
# resp.topic_policy.topics[0].output_action #=> String, one of "BLOCK", "NONE"
|
2566
|
+
# resp.topic_policy.topics[0].input_enabled #=> Boolean
|
2567
|
+
# resp.topic_policy.topics[0].output_enabled #=> Boolean
|
2538
2568
|
# resp.content_policy.filters #=> Array
|
2539
2569
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2540
2570
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
@@ -2543,21 +2573,43 @@ module Aws::Bedrock
|
|
2543
2573
|
# resp.content_policy.filters[0].input_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2544
2574
|
# resp.content_policy.filters[0].output_modalities #=> Array
|
2545
2575
|
# resp.content_policy.filters[0].output_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2576
|
+
# resp.content_policy.filters[0].input_action #=> String, one of "BLOCK", "NONE"
|
2577
|
+
# resp.content_policy.filters[0].output_action #=> String, one of "BLOCK", "NONE"
|
2578
|
+
# resp.content_policy.filters[0].input_enabled #=> Boolean
|
2579
|
+
# resp.content_policy.filters[0].output_enabled #=> Boolean
|
2546
2580
|
# resp.word_policy.words #=> Array
|
2547
2581
|
# resp.word_policy.words[0].text #=> String
|
2582
|
+
# resp.word_policy.words[0].input_action #=> String, one of "BLOCK", "NONE"
|
2583
|
+
# resp.word_policy.words[0].output_action #=> String, one of "BLOCK", "NONE"
|
2584
|
+
# resp.word_policy.words[0].input_enabled #=> Boolean
|
2585
|
+
# resp.word_policy.words[0].output_enabled #=> Boolean
|
2548
2586
|
# resp.word_policy.managed_word_lists #=> Array
|
2549
2587
|
# resp.word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
2588
|
+
# resp.word_policy.managed_word_lists[0].input_action #=> String, one of "BLOCK", "NONE"
|
2589
|
+
# resp.word_policy.managed_word_lists[0].output_action #=> String, one of "BLOCK", "NONE"
|
2590
|
+
# resp.word_policy.managed_word_lists[0].input_enabled #=> Boolean
|
2591
|
+
# resp.word_policy.managed_word_lists[0].output_enabled #=> Boolean
|
2550
2592
|
# resp.sensitive_information_policy.pii_entities #=> Array
|
2551
2593
|
# 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"
|
2594
|
+
# resp.sensitive_information_policy.pii_entities[0].action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2595
|
+
# resp.sensitive_information_policy.pii_entities[0].input_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2596
|
+
# resp.sensitive_information_policy.pii_entities[0].output_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2597
|
+
# resp.sensitive_information_policy.pii_entities[0].input_enabled #=> Boolean
|
2598
|
+
# resp.sensitive_information_policy.pii_entities[0].output_enabled #=> Boolean
|
2553
2599
|
# resp.sensitive_information_policy.regexes #=> Array
|
2554
2600
|
# resp.sensitive_information_policy.regexes[0].name #=> String
|
2555
2601
|
# resp.sensitive_information_policy.regexes[0].description #=> String
|
2556
2602
|
# resp.sensitive_information_policy.regexes[0].pattern #=> String
|
2557
|
-
# resp.sensitive_information_policy.regexes[0].action #=> String, one of "BLOCK", "ANONYMIZE"
|
2603
|
+
# resp.sensitive_information_policy.regexes[0].action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2604
|
+
# resp.sensitive_information_policy.regexes[0].input_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2605
|
+
# resp.sensitive_information_policy.regexes[0].output_action #=> String, one of "BLOCK", "ANONYMIZE", "NONE"
|
2606
|
+
# resp.sensitive_information_policy.regexes[0].input_enabled #=> Boolean
|
2607
|
+
# resp.sensitive_information_policy.regexes[0].output_enabled #=> Boolean
|
2558
2608
|
# resp.contextual_grounding_policy.filters #=> Array
|
2559
2609
|
# resp.contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
2560
2610
|
# resp.contextual_grounding_policy.filters[0].threshold #=> Float
|
2611
|
+
# resp.contextual_grounding_policy.filters[0].action #=> String, one of "BLOCK", "NONE"
|
2612
|
+
# resp.contextual_grounding_policy.filters[0].enabled #=> Boolean
|
2561
2613
|
# resp.created_at #=> Time
|
2562
2614
|
# resp.updated_at #=> Time
|
2563
2615
|
# resp.status_reasons #=> Array
|
@@ -2593,6 +2645,7 @@ module Aws::Bedrock
|
|
2593
2645
|
# * {Types::GetImportedModelResponse#model_architecture #model_architecture} => String
|
2594
2646
|
# * {Types::GetImportedModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
2595
2647
|
# * {Types::GetImportedModelResponse#instruct_supported #instruct_supported} => Boolean
|
2648
|
+
# * {Types::GetImportedModelResponse#custom_model_units #custom_model_units} => Types::CustomModelUnits
|
2596
2649
|
#
|
2597
2650
|
# @example Request syntax with placeholder values
|
2598
2651
|
#
|
@@ -2611,6 +2664,8 @@ module Aws::Bedrock
|
|
2611
2664
|
# resp.model_architecture #=> String
|
2612
2665
|
# resp.model_kms_key_arn #=> String
|
2613
2666
|
# resp.instruct_supported #=> Boolean
|
2667
|
+
# resp.custom_model_units.custom_model_units_per_model_copy #=> Integer
|
2668
|
+
# resp.custom_model_units.custom_model_units_version #=> String
|
2614
2669
|
#
|
2615
2670
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModel AWS API Documentation
|
2616
2671
|
#
|
@@ -4577,6 +4632,10 @@ module Aws::Bedrock
|
|
4577
4632
|
# definition: "GuardrailTopicDefinition", # required
|
4578
4633
|
# examples: ["GuardrailTopicExample"],
|
4579
4634
|
# type: "DENY", # required, accepts DENY
|
4635
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4636
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4637
|
+
# input_enabled: false,
|
4638
|
+
# output_enabled: false,
|
4580
4639
|
# },
|
4581
4640
|
# ],
|
4582
4641
|
# },
|
@@ -4588,6 +4647,10 @@ module Aws::Bedrock
|
|
4588
4647
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
4589
4648
|
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4590
4649
|
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4650
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4651
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4652
|
+
# input_enabled: false,
|
4653
|
+
# output_enabled: false,
|
4591
4654
|
# },
|
4592
4655
|
# ],
|
4593
4656
|
# },
|
@@ -4595,11 +4658,19 @@ module Aws::Bedrock
|
|
4595
4658
|
# words_config: [
|
4596
4659
|
# {
|
4597
4660
|
# text: "GuardrailWordConfigTextString", # required
|
4661
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4662
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4663
|
+
# input_enabled: false,
|
4664
|
+
# output_enabled: false,
|
4598
4665
|
# },
|
4599
4666
|
# ],
|
4600
4667
|
# managed_word_lists_config: [
|
4601
4668
|
# {
|
4602
4669
|
# type: "PROFANITY", # required, accepts PROFANITY
|
4670
|
+
# input_action: "BLOCK", # accepts BLOCK, NONE
|
4671
|
+
# output_action: "BLOCK", # accepts BLOCK, NONE
|
4672
|
+
# input_enabled: false,
|
4673
|
+
# output_enabled: false,
|
4603
4674
|
# },
|
4604
4675
|
# ],
|
4605
4676
|
# },
|
@@ -4607,7 +4678,11 @@ module Aws::Bedrock
|
|
4607
4678
|
# pii_entities_config: [
|
4608
4679
|
# {
|
4609
4680
|
# 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
|
4610
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
4681
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
4682
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4683
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4684
|
+
# input_enabled: false,
|
4685
|
+
# output_enabled: false,
|
4611
4686
|
# },
|
4612
4687
|
# ],
|
4613
4688
|
# regexes_config: [
|
@@ -4615,7 +4690,11 @@ module Aws::Bedrock
|
|
4615
4690
|
# name: "GuardrailRegexConfigNameString", # required
|
4616
4691
|
# description: "GuardrailRegexConfigDescriptionString",
|
4617
4692
|
# pattern: "GuardrailRegexConfigPatternString", # required
|
4618
|
-
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE
|
4693
|
+
# action: "BLOCK", # required, accepts BLOCK, ANONYMIZE, NONE
|
4694
|
+
# input_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4695
|
+
# output_action: "BLOCK", # accepts BLOCK, ANONYMIZE, NONE
|
4696
|
+
# input_enabled: false,
|
4697
|
+
# output_enabled: false,
|
4619
4698
|
# },
|
4620
4699
|
# ],
|
4621
4700
|
# },
|
@@ -4624,6 +4703,8 @@ module Aws::Bedrock
|
|
4624
4703
|
# {
|
4625
4704
|
# type: "GROUNDING", # required, accepts GROUNDING, RELEVANCE
|
4626
4705
|
# threshold: 1.0, # required
|
4706
|
+
# action: "BLOCK", # accepts BLOCK, NONE
|
4707
|
+
# enabled: false,
|
4627
4708
|
# },
|
4628
4709
|
# ],
|
4629
4710
|
# },
|
@@ -4785,7 +4866,7 @@ module Aws::Bedrock
|
|
4785
4866
|
tracer: tracer
|
4786
4867
|
)
|
4787
4868
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4788
|
-
context[:gem_version] = '1.
|
4869
|
+
context[:gem_version] = '1.41.0'
|
4789
4870
|
Seahorse::Client::Request.new(handlers, context)
|
4790
4871
|
end
|
4791
4872
|
|
@@ -69,6 +69,8 @@ module Aws::Bedrock
|
|
69
69
|
CustomModelName = Shapes::StringShape.new(name: 'CustomModelName')
|
70
70
|
CustomModelSummary = Shapes::StructureShape.new(name: 'CustomModelSummary')
|
71
71
|
CustomModelSummaryList = Shapes::ListShape.new(name: 'CustomModelSummaryList')
|
72
|
+
CustomModelUnits = Shapes::StructureShape.new(name: 'CustomModelUnits')
|
73
|
+
CustomModelUnitsVersion = Shapes::StringShape.new(name: 'CustomModelUnitsVersion')
|
72
74
|
CustomizationConfig = Shapes::UnionShape.new(name: 'CustomizationConfig')
|
73
75
|
CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
|
74
76
|
DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
|
@@ -188,12 +190,14 @@ module Aws::Bedrock
|
|
188
190
|
GuardrailConfigurationGuardrailIdString = Shapes::StringShape.new(name: 'GuardrailConfigurationGuardrailIdString')
|
189
191
|
GuardrailConfigurationGuardrailVersionString = Shapes::StringShape.new(name: 'GuardrailConfigurationGuardrailVersionString')
|
190
192
|
GuardrailContentFilter = Shapes::StructureShape.new(name: 'GuardrailContentFilter')
|
193
|
+
GuardrailContentFilterAction = Shapes::StringShape.new(name: 'GuardrailContentFilterAction')
|
191
194
|
GuardrailContentFilterConfig = Shapes::StructureShape.new(name: 'GuardrailContentFilterConfig')
|
192
195
|
GuardrailContentFilterType = Shapes::StringShape.new(name: 'GuardrailContentFilterType')
|
193
196
|
GuardrailContentFilters = Shapes::ListShape.new(name: 'GuardrailContentFilters')
|
194
197
|
GuardrailContentFiltersConfig = Shapes::ListShape.new(name: 'GuardrailContentFiltersConfig')
|
195
198
|
GuardrailContentPolicy = Shapes::StructureShape.new(name: 'GuardrailContentPolicy')
|
196
199
|
GuardrailContentPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailContentPolicyConfig')
|
200
|
+
GuardrailContextualGroundingAction = Shapes::StringShape.new(name: 'GuardrailContextualGroundingAction')
|
197
201
|
GuardrailContextualGroundingFilter = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingFilter')
|
198
202
|
GuardrailContextualGroundingFilterConfig = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingFilterConfig')
|
199
203
|
GuardrailContextualGroundingFilterConfigThresholdDouble = Shapes::FloatShape.new(name: 'GuardrailContextualGroundingFilterConfigThresholdDouble')
|
@@ -243,6 +247,7 @@ module Aws::Bedrock
|
|
243
247
|
GuardrailSummaries = Shapes::ListShape.new(name: 'GuardrailSummaries')
|
244
248
|
GuardrailSummary = Shapes::StructureShape.new(name: 'GuardrailSummary')
|
245
249
|
GuardrailTopic = Shapes::StructureShape.new(name: 'GuardrailTopic')
|
250
|
+
GuardrailTopicAction = Shapes::StringShape.new(name: 'GuardrailTopicAction')
|
246
251
|
GuardrailTopicConfig = Shapes::StructureShape.new(name: 'GuardrailTopicConfig')
|
247
252
|
GuardrailTopicDefinition = Shapes::StringShape.new(name: 'GuardrailTopicDefinition')
|
248
253
|
GuardrailTopicExample = Shapes::StringShape.new(name: 'GuardrailTopicExample')
|
@@ -255,6 +260,7 @@ module Aws::Bedrock
|
|
255
260
|
GuardrailTopicsConfig = Shapes::ListShape.new(name: 'GuardrailTopicsConfig')
|
256
261
|
GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion')
|
257
262
|
GuardrailWord = Shapes::StructureShape.new(name: 'GuardrailWord')
|
263
|
+
GuardrailWordAction = Shapes::StringShape.new(name: 'GuardrailWordAction')
|
258
264
|
GuardrailWordConfig = Shapes::StructureShape.new(name: 'GuardrailWordConfig')
|
259
265
|
GuardrailWordConfigTextString = Shapes::StringShape.new(name: 'GuardrailWordConfigTextString')
|
260
266
|
GuardrailWordPolicy = Shapes::StructureShape.new(name: 'GuardrailWordPolicy')
|
@@ -701,6 +707,10 @@ module Aws::Bedrock
|
|
701
707
|
|
702
708
|
CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
|
703
709
|
|
710
|
+
CustomModelUnits.add_member(:custom_model_units_per_model_copy, Shapes::ShapeRef.new(shape: Integer, location_name: "customModelUnitsPerModelCopy"))
|
711
|
+
CustomModelUnits.add_member(:custom_model_units_version, Shapes::ShapeRef.new(shape: CustomModelUnitsVersion, location_name: "customModelUnitsVersion"))
|
712
|
+
CustomModelUnits.struct_class = Types::CustomModelUnits
|
713
|
+
|
704
714
|
CustomizationConfig.add_member(:distillation_config, Shapes::ShapeRef.new(shape: DistillationConfig, location_name: "distillationConfig"))
|
705
715
|
CustomizationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
706
716
|
CustomizationConfig.add_member_subclass(:distillation_config, Types::CustomizationConfig::DistillationConfig)
|
@@ -1018,6 +1028,7 @@ module Aws::Bedrock
|
|
1018
1028
|
GetImportedModelResponse.add_member(:model_architecture, Shapes::ShapeRef.new(shape: String, location_name: "modelArchitecture"))
|
1019
1029
|
GetImportedModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
1020
1030
|
GetImportedModelResponse.add_member(:instruct_supported, Shapes::ShapeRef.new(shape: InstructSupported, location_name: "instructSupported"))
|
1031
|
+
GetImportedModelResponse.add_member(:custom_model_units, Shapes::ShapeRef.new(shape: CustomModelUnits, location_name: "customModelUnits"))
|
1021
1032
|
GetImportedModelResponse.struct_class = Types::GetImportedModelResponse
|
1022
1033
|
|
1023
1034
|
GetInferenceProfileRequest.add_member(:inference_profile_identifier, Shapes::ShapeRef.new(shape: InferenceProfileIdentifier, required: true, location: "uri", location_name: "inferenceProfileIdentifier"))
|
@@ -1168,6 +1179,10 @@ module Aws::Bedrock
|
|
1168
1179
|
GuardrailContentFilter.add_member(:output_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "outputStrength"))
|
1169
1180
|
GuardrailContentFilter.add_member(:input_modalities, Shapes::ShapeRef.new(shape: GuardrailModalities, location_name: "inputModalities"))
|
1170
1181
|
GuardrailContentFilter.add_member(:output_modalities, Shapes::ShapeRef.new(shape: GuardrailModalities, location_name: "outputModalities"))
|
1182
|
+
GuardrailContentFilter.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailContentFilterAction, location_name: "inputAction"))
|
1183
|
+
GuardrailContentFilter.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailContentFilterAction, location_name: "outputAction"))
|
1184
|
+
GuardrailContentFilter.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1185
|
+
GuardrailContentFilter.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1171
1186
|
GuardrailContentFilter.struct_class = Types::GuardrailContentFilter
|
1172
1187
|
|
1173
1188
|
GuardrailContentFilterConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContentFilterType, required: true, location_name: "type"))
|
@@ -1175,6 +1190,10 @@ module Aws::Bedrock
|
|
1175
1190
|
GuardrailContentFilterConfig.add_member(:output_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "outputStrength"))
|
1176
1191
|
GuardrailContentFilterConfig.add_member(:input_modalities, Shapes::ShapeRef.new(shape: GuardrailModalities, location_name: "inputModalities"))
|
1177
1192
|
GuardrailContentFilterConfig.add_member(:output_modalities, Shapes::ShapeRef.new(shape: GuardrailModalities, location_name: "outputModalities"))
|
1193
|
+
GuardrailContentFilterConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailContentFilterAction, location_name: "inputAction"))
|
1194
|
+
GuardrailContentFilterConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailContentFilterAction, location_name: "outputAction"))
|
1195
|
+
GuardrailContentFilterConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1196
|
+
GuardrailContentFilterConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1178
1197
|
GuardrailContentFilterConfig.struct_class = Types::GuardrailContentFilterConfig
|
1179
1198
|
|
1180
1199
|
GuardrailContentFilters.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter)
|
@@ -1189,10 +1208,14 @@ module Aws::Bedrock
|
|
1189
1208
|
|
1190
1209
|
GuardrailContextualGroundingFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterType, required: true, location_name: "type"))
|
1191
1210
|
GuardrailContextualGroundingFilter.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterThresholdDouble, required: true, location_name: "threshold"))
|
1211
|
+
GuardrailContextualGroundingFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingAction, location_name: "action"))
|
1212
|
+
GuardrailContextualGroundingFilter.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "enabled"))
|
1192
1213
|
GuardrailContextualGroundingFilter.struct_class = Types::GuardrailContextualGroundingFilter
|
1193
1214
|
|
1194
1215
|
GuardrailContextualGroundingFilterConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterType, required: true, location_name: "type"))
|
1195
1216
|
GuardrailContextualGroundingFilterConfig.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterConfigThresholdDouble, required: true, location_name: "threshold"))
|
1217
|
+
GuardrailContextualGroundingFilterConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingAction, location_name: "action"))
|
1218
|
+
GuardrailContextualGroundingFilterConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "enabled"))
|
1196
1219
|
GuardrailContextualGroundingFilterConfig.struct_class = Types::GuardrailContextualGroundingFilterConfig
|
1197
1220
|
|
1198
1221
|
GuardrailContextualGroundingFilters.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilter)
|
@@ -1212,9 +1235,17 @@ module Aws::Bedrock
|
|
1212
1235
|
GuardrailManagedWordListsConfig.member = Shapes::ShapeRef.new(shape: GuardrailManagedWordsConfig)
|
1213
1236
|
|
1214
1237
|
GuardrailManagedWords.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordsType, required: true, location_name: "type"))
|
1238
|
+
GuardrailManagedWords.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "inputAction"))
|
1239
|
+
GuardrailManagedWords.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "outputAction"))
|
1240
|
+
GuardrailManagedWords.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1241
|
+
GuardrailManagedWords.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1215
1242
|
GuardrailManagedWords.struct_class = Types::GuardrailManagedWords
|
1216
1243
|
|
1217
1244
|
GuardrailManagedWordsConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordsType, required: true, location_name: "type"))
|
1245
|
+
GuardrailManagedWordsConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "inputAction"))
|
1246
|
+
GuardrailManagedWordsConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "outputAction"))
|
1247
|
+
GuardrailManagedWordsConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1248
|
+
GuardrailManagedWordsConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1218
1249
|
GuardrailManagedWordsConfig.struct_class = Types::GuardrailManagedWordsConfig
|
1219
1250
|
|
1220
1251
|
GuardrailModalities.member = Shapes::ShapeRef.new(shape: GuardrailModality)
|
@@ -1225,22 +1256,38 @@ module Aws::Bedrock
|
|
1225
1256
|
|
1226
1257
|
GuardrailPiiEntity.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
|
1227
1258
|
GuardrailPiiEntity.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
|
1259
|
+
GuardrailPiiEntity.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "inputAction"))
|
1260
|
+
GuardrailPiiEntity.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "outputAction"))
|
1261
|
+
GuardrailPiiEntity.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1262
|
+
GuardrailPiiEntity.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1228
1263
|
GuardrailPiiEntity.struct_class = Types::GuardrailPiiEntity
|
1229
1264
|
|
1230
1265
|
GuardrailPiiEntityConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
|
1231
1266
|
GuardrailPiiEntityConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
|
1267
|
+
GuardrailPiiEntityConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "inputAction"))
|
1268
|
+
GuardrailPiiEntityConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "outputAction"))
|
1269
|
+
GuardrailPiiEntityConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1270
|
+
GuardrailPiiEntityConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1232
1271
|
GuardrailPiiEntityConfig.struct_class = Types::GuardrailPiiEntityConfig
|
1233
1272
|
|
1234
1273
|
GuardrailRegex.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailRegexNameString, required: true, location_name: "name"))
|
1235
1274
|
GuardrailRegex.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailRegexDescriptionString, location_name: "description"))
|
1236
1275
|
GuardrailRegex.add_member(:pattern, Shapes::ShapeRef.new(shape: GuardrailRegexPatternString, required: true, location_name: "pattern"))
|
1237
1276
|
GuardrailRegex.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
|
1277
|
+
GuardrailRegex.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "inputAction"))
|
1278
|
+
GuardrailRegex.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "outputAction"))
|
1279
|
+
GuardrailRegex.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1280
|
+
GuardrailRegex.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1238
1281
|
GuardrailRegex.struct_class = Types::GuardrailRegex
|
1239
1282
|
|
1240
1283
|
GuardrailRegexConfig.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailRegexConfigNameString, required: true, location_name: "name"))
|
1241
1284
|
GuardrailRegexConfig.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailRegexConfigDescriptionString, location_name: "description"))
|
1242
1285
|
GuardrailRegexConfig.add_member(:pattern, Shapes::ShapeRef.new(shape: GuardrailRegexConfigPatternString, required: true, location_name: "pattern"))
|
1243
1286
|
GuardrailRegexConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
|
1287
|
+
GuardrailRegexConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "inputAction"))
|
1288
|
+
GuardrailRegexConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, location_name: "outputAction"))
|
1289
|
+
GuardrailRegexConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1290
|
+
GuardrailRegexConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1244
1291
|
GuardrailRegexConfig.struct_class = Types::GuardrailRegexConfig
|
1245
1292
|
|
1246
1293
|
GuardrailRegexes.member = Shapes::ShapeRef.new(shape: GuardrailRegex)
|
@@ -1273,12 +1320,20 @@ module Aws::Bedrock
|
|
1273
1320
|
GuardrailTopic.add_member(:definition, Shapes::ShapeRef.new(shape: GuardrailTopicDefinition, required: true, location_name: "definition"))
|
1274
1321
|
GuardrailTopic.add_member(:examples, Shapes::ShapeRef.new(shape: GuardrailTopicExamples, location_name: "examples"))
|
1275
1322
|
GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, location_name: "type"))
|
1323
|
+
GuardrailTopic.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailTopicAction, location_name: "inputAction"))
|
1324
|
+
GuardrailTopic.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailTopicAction, location_name: "outputAction"))
|
1325
|
+
GuardrailTopic.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1326
|
+
GuardrailTopic.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1276
1327
|
GuardrailTopic.struct_class = Types::GuardrailTopic
|
1277
1328
|
|
1278
1329
|
GuardrailTopicConfig.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailTopicName, required: true, location_name: "name"))
|
1279
1330
|
GuardrailTopicConfig.add_member(:definition, Shapes::ShapeRef.new(shape: GuardrailTopicDefinition, required: true, location_name: "definition"))
|
1280
1331
|
GuardrailTopicConfig.add_member(:examples, Shapes::ShapeRef.new(shape: GuardrailTopicExamples, location_name: "examples"))
|
1281
1332
|
GuardrailTopicConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type"))
|
1333
|
+
GuardrailTopicConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailTopicAction, location_name: "inputAction"))
|
1334
|
+
GuardrailTopicConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailTopicAction, location_name: "outputAction"))
|
1335
|
+
GuardrailTopicConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1336
|
+
GuardrailTopicConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1282
1337
|
GuardrailTopicConfig.struct_class = Types::GuardrailTopicConfig
|
1283
1338
|
|
1284
1339
|
GuardrailTopicExamples.member = Shapes::ShapeRef.new(shape: GuardrailTopicExample)
|
@@ -1294,9 +1349,17 @@ module Aws::Bedrock
|
|
1294
1349
|
GuardrailTopicsConfig.member = Shapes::ShapeRef.new(shape: GuardrailTopicConfig)
|
1295
1350
|
|
1296
1351
|
GuardrailWord.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailWordTextString, required: true, location_name: "text"))
|
1352
|
+
GuardrailWord.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "inputAction"))
|
1353
|
+
GuardrailWord.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "outputAction"))
|
1354
|
+
GuardrailWord.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1355
|
+
GuardrailWord.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1297
1356
|
GuardrailWord.struct_class = Types::GuardrailWord
|
1298
1357
|
|
1299
1358
|
GuardrailWordConfig.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailWordConfigTextString, required: true, location_name: "text"))
|
1359
|
+
GuardrailWordConfig.add_member(:input_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "inputAction"))
|
1360
|
+
GuardrailWordConfig.add_member(:output_action, Shapes::ShapeRef.new(shape: GuardrailWordAction, location_name: "outputAction"))
|
1361
|
+
GuardrailWordConfig.add_member(:input_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "inputEnabled"))
|
1362
|
+
GuardrailWordConfig.add_member(:output_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "outputEnabled"))
|
1300
1363
|
GuardrailWordConfig.struct_class = Types::GuardrailWordConfig
|
1301
1364
|
|
1302
1365
|
GuardrailWordPolicy.add_member(:words, Shapes::ShapeRef.new(shape: GuardrailWords, location_name: "words"))
|