aws-sdk-bedrock 1.57.0 → 1.58.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-bedrock/client.rb +1970 -106
- data/lib/aws-sdk-bedrock/client_api.rb +1252 -0
- data/lib/aws-sdk-bedrock/errors.rb +16 -0
- data/lib/aws-sdk-bedrock/types.rb +3343 -156
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +606 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +927 -0
- metadata +1 -1
@@ -546,6 +546,315 @@ module Aws::Bedrock
|
|
546
546
|
req.send_request(options)
|
547
547
|
end
|
548
548
|
|
549
|
+
# Cancels a running Automated Reasoning policy build workflow. This
|
550
|
+
# stops the policy generation process and prevents further processing of
|
551
|
+
# the source documents.
|
552
|
+
#
|
553
|
+
# @option params [required, String] :policy_arn
|
554
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
555
|
+
# build workflow you want to cancel.
|
556
|
+
#
|
557
|
+
# @option params [required, String] :build_workflow_id
|
558
|
+
# The unique identifier of the build workflow to cancel. You can get
|
559
|
+
# this ID from the StartAutomatedReasoningPolicyBuildWorkflow response
|
560
|
+
# or by listing build workflows.
|
561
|
+
#
|
562
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
563
|
+
#
|
564
|
+
# @example Request syntax with placeholder values
|
565
|
+
#
|
566
|
+
# resp = client.cancel_automated_reasoning_policy_build_workflow({
|
567
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
568
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
569
|
+
# })
|
570
|
+
#
|
571
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CancelAutomatedReasoningPolicyBuildWorkflow AWS API Documentation
|
572
|
+
#
|
573
|
+
# @overload cancel_automated_reasoning_policy_build_workflow(params = {})
|
574
|
+
# @param [Hash] params ({})
|
575
|
+
def cancel_automated_reasoning_policy_build_workflow(params = {}, options = {})
|
576
|
+
req = build_request(:cancel_automated_reasoning_policy_build_workflow, params)
|
577
|
+
req.send_request(options)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.
|
581
|
+
# Automated Reasoning policies use mathematical techniques to detect
|
582
|
+
# hallucinations, suggest corrections, and highlight unstated
|
583
|
+
# assumptions in the responses of your GenAI application.
|
584
|
+
#
|
585
|
+
# To create a policy, you upload a source document that describes the
|
586
|
+
# rules that you're encoding. Automated Reasoning extracts important
|
587
|
+
# concepts from the source document that will become variables in the
|
588
|
+
# policy and infers policy rules.
|
589
|
+
#
|
590
|
+
# @option params [required, String] :name
|
591
|
+
# A unique name for the Automated Reasoning policy. The name must be
|
592
|
+
# between 1 and 63 characters and can contain letters, numbers, hyphens,
|
593
|
+
# and underscores.
|
594
|
+
#
|
595
|
+
# @option params [String] :description
|
596
|
+
# A description of the Automated Reasoning policy. Use this to provide
|
597
|
+
# context about the policy's purpose and the types of validations it
|
598
|
+
# performs.
|
599
|
+
#
|
600
|
+
# @option params [String] :client_request_token
|
601
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
602
|
+
# completes no more than once. If this token matches a previous request,
|
603
|
+
# Amazon Bedrock ignores the request but doesn't return an error.
|
604
|
+
#
|
605
|
+
# **A suitable default value is auto-generated.** You should normally
|
606
|
+
# not need to pass this option.**
|
607
|
+
#
|
608
|
+
# @option params [Types::AutomatedReasoningPolicyDefinition] :policy_definition
|
609
|
+
# The policy definition that contains the formal logic rules, variables,
|
610
|
+
# and custom variable types used to validate foundation model responses
|
611
|
+
# in your application.
|
612
|
+
#
|
613
|
+
# @option params [Array<Types::Tag>] :tags
|
614
|
+
# A list of tags to associate with the Automated Reasoning policy. Tags
|
615
|
+
# help you organize and manage your policies.
|
616
|
+
#
|
617
|
+
# @return [Types::CreateAutomatedReasoningPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
618
|
+
#
|
619
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#policy_arn #policy_arn} => String
|
620
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#version #version} => String
|
621
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#name #name} => String
|
622
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#description #description} => String
|
623
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#definition_hash #definition_hash} => String
|
624
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#created_at #created_at} => Time
|
625
|
+
# * {Types::CreateAutomatedReasoningPolicyResponse#updated_at #updated_at} => Time
|
626
|
+
#
|
627
|
+
# @example Request syntax with placeholder values
|
628
|
+
#
|
629
|
+
# resp = client.create_automated_reasoning_policy({
|
630
|
+
# name: "AutomatedReasoningPolicyName", # required
|
631
|
+
# description: "AutomatedReasoningPolicyDescription",
|
632
|
+
# client_request_token: "IdempotencyToken",
|
633
|
+
# policy_definition: {
|
634
|
+
# version: "AutomatedReasoningPolicyFormatVersion",
|
635
|
+
# types: [
|
636
|
+
# {
|
637
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
638
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription",
|
639
|
+
# values: [ # required
|
640
|
+
# {
|
641
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
642
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
643
|
+
# },
|
644
|
+
# ],
|
645
|
+
# },
|
646
|
+
# ],
|
647
|
+
# rules: [
|
648
|
+
# {
|
649
|
+
# id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
650
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
651
|
+
# alternate_expression: "AutomatedReasoningPolicyDefinitionRuleAlternateExpression",
|
652
|
+
# },
|
653
|
+
# ],
|
654
|
+
# variables: [
|
655
|
+
# {
|
656
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
657
|
+
# type: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
658
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription", # required
|
659
|
+
# },
|
660
|
+
# ],
|
661
|
+
# },
|
662
|
+
# tags: [
|
663
|
+
# {
|
664
|
+
# key: "TagKey", # required
|
665
|
+
# value: "TagValue", # required
|
666
|
+
# },
|
667
|
+
# ],
|
668
|
+
# })
|
669
|
+
#
|
670
|
+
# @example Response structure
|
671
|
+
#
|
672
|
+
# resp.policy_arn #=> String
|
673
|
+
# resp.version #=> String
|
674
|
+
# resp.name #=> String
|
675
|
+
# resp.description #=> String
|
676
|
+
# resp.definition_hash #=> String
|
677
|
+
# resp.created_at #=> Time
|
678
|
+
# resp.updated_at #=> Time
|
679
|
+
#
|
680
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicy AWS API Documentation
|
681
|
+
#
|
682
|
+
# @overload create_automated_reasoning_policy(params = {})
|
683
|
+
# @param [Hash] params ({})
|
684
|
+
def create_automated_reasoning_policy(params = {}, options = {})
|
685
|
+
req = build_request(:create_automated_reasoning_policy, params)
|
686
|
+
req.send_request(options)
|
687
|
+
end
|
688
|
+
|
689
|
+
# Creates a test for an Automated Reasoning policy. Tests validate that
|
690
|
+
# your policy works as expected by providing sample inputs and expected
|
691
|
+
# outcomes. Use tests to verify policy behavior before deploying to
|
692
|
+
# production.
|
693
|
+
#
|
694
|
+
# @option params [required, String] :policy_arn
|
695
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy for
|
696
|
+
# which to create the test.
|
697
|
+
#
|
698
|
+
# @option params [required, String] :guard_content
|
699
|
+
# The output content that's validated by the Automated Reasoning
|
700
|
+
# policy. This represents the foundation model response that will be
|
701
|
+
# checked for accuracy.
|
702
|
+
#
|
703
|
+
# @option params [String] :query_content
|
704
|
+
# The input query or prompt that generated the content. This provides
|
705
|
+
# context for the validation.
|
706
|
+
#
|
707
|
+
# @option params [required, String] :expected_aggregated_findings_result
|
708
|
+
# The expected result of the Automated Reasoning check. Valid values
|
709
|
+
# include: , TOO\_COMPLEX, and NO\_TRANSLATIONS.
|
710
|
+
#
|
711
|
+
# * `VALID` - The claims are true. The claims are implied by the
|
712
|
+
# premises and the Automated Reasoning policy. Given the Automated
|
713
|
+
# Reasoning policy and premises, it is not possible for these claims
|
714
|
+
# to be false. In other words, there are no alternative answers that
|
715
|
+
# are true that contradict the claims.
|
716
|
+
#
|
717
|
+
# * `INVALID` - The claims are false. The claims are not implied by the
|
718
|
+
# premises and Automated Reasoning policy. Furthermore, there exists
|
719
|
+
# different claims that are consistent with the premises and Automated
|
720
|
+
# Reasoning policy.
|
721
|
+
#
|
722
|
+
# * `SATISFIABLE` - The claims can be true or false. It depends on what
|
723
|
+
# assumptions are made for the claim to be implied from the premises
|
724
|
+
# and Automated Reasoning policy rules. In this situation, different
|
725
|
+
# assumptions can make input claims false and alternative claims true.
|
726
|
+
#
|
727
|
+
# * `IMPOSSIBLE` - Automated Reasoning can’t make a statement about the
|
728
|
+
# claims. This can happen if the premises are logically incorrect, or
|
729
|
+
# if there is a conflict within the Automated Reasoning policy itself.
|
730
|
+
#
|
731
|
+
# * `TRANSLATION_AMBIGUOUS` - Detected an ambiguity in the translation
|
732
|
+
# meant it would be unsound to continue with validity checking.
|
733
|
+
# Additional context or follow-up questions might be needed to get
|
734
|
+
# translation to succeed.
|
735
|
+
#
|
736
|
+
# * `TOO_COMPLEX` - The input contains too much information for
|
737
|
+
# Automated Reasoning to process within its latency limits.
|
738
|
+
#
|
739
|
+
# * `NO_TRANSLATIONS` - Identifies that some or all of the input prompt
|
740
|
+
# wasn't translated into logic. This can happen if the input isn't
|
741
|
+
# relevant to the Automated Reasoning policy, or if the policy
|
742
|
+
# doesn't have variables to model relevant input. If Automated
|
743
|
+
# Reasoning can't translate anything, you get a single
|
744
|
+
# `NO_TRANSLATIONS` finding. You might also see a `NO_TRANSLATIONS`
|
745
|
+
# (along with other findings) if some part of the validation isn't
|
746
|
+
# translated.
|
747
|
+
#
|
748
|
+
# @option params [String] :client_request_token
|
749
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
750
|
+
# completes no more than one time. If this token matches a previous
|
751
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
752
|
+
# error.
|
753
|
+
#
|
754
|
+
# **A suitable default value is auto-generated.** You should normally
|
755
|
+
# not need to pass this option.**
|
756
|
+
#
|
757
|
+
# @option params [Float] :confidence_threshold
|
758
|
+
# The minimum confidence level for logic validation. Content that meets
|
759
|
+
# the threshold is considered a high-confidence finding that can be
|
760
|
+
# validated.
|
761
|
+
#
|
762
|
+
# @return [Types::CreateAutomatedReasoningPolicyTestCaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
763
|
+
#
|
764
|
+
# * {Types::CreateAutomatedReasoningPolicyTestCaseResponse#policy_arn #policy_arn} => String
|
765
|
+
# * {Types::CreateAutomatedReasoningPolicyTestCaseResponse#test_case_id #test_case_id} => String
|
766
|
+
#
|
767
|
+
# @example Request syntax with placeholder values
|
768
|
+
#
|
769
|
+
# resp = client.create_automated_reasoning_policy_test_case({
|
770
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
771
|
+
# guard_content: "AutomatedReasoningPolicyTestGuardContent", # required
|
772
|
+
# query_content: "AutomatedReasoningPolicyTestQueryContent",
|
773
|
+
# expected_aggregated_findings_result: "VALID", # required, accepts VALID, INVALID, SATISFIABLE, IMPOSSIBLE, TRANSLATION_AMBIGUOUS, TOO_COMPLEX, NO_TRANSLATION
|
774
|
+
# client_request_token: "IdempotencyToken",
|
775
|
+
# confidence_threshold: 1.0,
|
776
|
+
# })
|
777
|
+
#
|
778
|
+
# @example Response structure
|
779
|
+
#
|
780
|
+
# resp.policy_arn #=> String
|
781
|
+
# resp.test_case_id #=> String
|
782
|
+
#
|
783
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyTestCase AWS API Documentation
|
784
|
+
#
|
785
|
+
# @overload create_automated_reasoning_policy_test_case(params = {})
|
786
|
+
# @param [Hash] params ({})
|
787
|
+
def create_automated_reasoning_policy_test_case(params = {}, options = {})
|
788
|
+
req = build_request(:create_automated_reasoning_policy_test_case, params)
|
789
|
+
req.send_request(options)
|
790
|
+
end
|
791
|
+
|
792
|
+
# Creates a new version of an existing Automated Reasoning policy. This
|
793
|
+
# allows you to iterate on your policy rules while maintaining previous
|
794
|
+
# versions for rollback or comparison purposes.
|
795
|
+
#
|
796
|
+
# @option params [required, String] :policy_arn
|
797
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy for
|
798
|
+
# which to create a version.
|
799
|
+
#
|
800
|
+
# @option params [String] :client_request_token
|
801
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
802
|
+
# completes no more than one time. If this token matches a previous
|
803
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
804
|
+
# error.
|
805
|
+
#
|
806
|
+
# **A suitable default value is auto-generated.** You should normally
|
807
|
+
# not need to pass this option.**
|
808
|
+
#
|
809
|
+
# @option params [required, String] :last_updated_definition_hash
|
810
|
+
# The hash of the current policy definition used as a concurrency token
|
811
|
+
# to ensure the policy hasn't been modified since you last retrieved
|
812
|
+
# it.
|
813
|
+
#
|
814
|
+
# @option params [Array<Types::Tag>] :tags
|
815
|
+
# A list of tags to associate with the policy version.
|
816
|
+
#
|
817
|
+
# @return [Types::CreateAutomatedReasoningPolicyVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
818
|
+
#
|
819
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#policy_arn #policy_arn} => String
|
820
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#version #version} => String
|
821
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#name #name} => String
|
822
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#description #description} => String
|
823
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#definition_hash #definition_hash} => String
|
824
|
+
# * {Types::CreateAutomatedReasoningPolicyVersionResponse#created_at #created_at} => Time
|
825
|
+
#
|
826
|
+
# @example Request syntax with placeholder values
|
827
|
+
#
|
828
|
+
# resp = client.create_automated_reasoning_policy_version({
|
829
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
830
|
+
# client_request_token: "IdempotencyToken",
|
831
|
+
# last_updated_definition_hash: "AutomatedReasoningPolicyHash", # required
|
832
|
+
# tags: [
|
833
|
+
# {
|
834
|
+
# key: "TagKey", # required
|
835
|
+
# value: "TagValue", # required
|
836
|
+
# },
|
837
|
+
# ],
|
838
|
+
# })
|
839
|
+
#
|
840
|
+
# @example Response structure
|
841
|
+
#
|
842
|
+
# resp.policy_arn #=> String
|
843
|
+
# resp.version #=> String
|
844
|
+
# resp.name #=> String
|
845
|
+
# resp.description #=> String
|
846
|
+
# resp.definition_hash #=> String
|
847
|
+
# resp.created_at #=> Time
|
848
|
+
#
|
849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyVersion AWS API Documentation
|
850
|
+
#
|
851
|
+
# @overload create_automated_reasoning_policy_version(params = {})
|
852
|
+
# @param [Hash] params ({})
|
853
|
+
def create_automated_reasoning_policy_version(params = {}, options = {})
|
854
|
+
req = build_request(:create_automated_reasoning_policy_version, params)
|
855
|
+
req.send_request(options)
|
856
|
+
end
|
857
|
+
|
549
858
|
# Creates a new custom model in Amazon Bedrock. After the model is
|
550
859
|
# active, you can use it for inference.
|
551
860
|
#
|
@@ -1378,6 +1687,10 @@ module Aws::Bedrock
|
|
1378
1687
|
# The contextual grounding policy configuration used to create a
|
1379
1688
|
# guardrail.
|
1380
1689
|
#
|
1690
|
+
# @option params [Types::GuardrailAutomatedReasoningPolicyConfig] :automated_reasoning_policy_config
|
1691
|
+
# Optional configuration for integrating Automated Reasoning policies
|
1692
|
+
# with the new guardrail.
|
1693
|
+
#
|
1381
1694
|
# @option params [Types::GuardrailCrossRegionConfig] :cross_region_config
|
1382
1695
|
# The system-defined guardrail profile that you're using with your
|
1383
1696
|
# guardrail. Guardrail profiles define the destination Amazon Web
|
@@ -1517,6 +1830,10 @@ module Aws::Bedrock
|
|
1517
1830
|
# },
|
1518
1831
|
# ],
|
1519
1832
|
# },
|
1833
|
+
# automated_reasoning_policy_config: {
|
1834
|
+
# policies: ["AutomatedReasoningPolicyArn"], # required
|
1835
|
+
# confidence_threshold: 1.0,
|
1836
|
+
# },
|
1520
1837
|
# cross_region_config: {
|
1521
1838
|
# guardrail_profile_identifier: "GuardrailCrossRegionGuardrailProfileIdentifier", # required
|
1522
1839
|
# },
|
@@ -2444,6 +2761,100 @@ module Aws::Bedrock
|
|
2444
2761
|
req.send_request(options)
|
2445
2762
|
end
|
2446
2763
|
|
2764
|
+
# Deletes an Automated Reasoning policy or policy version. This
|
2765
|
+
# operation is idempotent. If you delete a policy more than once, each
|
2766
|
+
# call succeeds. Deleting a policy removes it permanently and cannot be
|
2767
|
+
# undone.
|
2768
|
+
#
|
2769
|
+
# @option params [required, String] :policy_arn
|
2770
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy to
|
2771
|
+
# delete.
|
2772
|
+
#
|
2773
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2774
|
+
#
|
2775
|
+
# @example Request syntax with placeholder values
|
2776
|
+
#
|
2777
|
+
# resp = client.delete_automated_reasoning_policy({
|
2778
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
2779
|
+
# })
|
2780
|
+
#
|
2781
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicy AWS API Documentation
|
2782
|
+
#
|
2783
|
+
# @overload delete_automated_reasoning_policy(params = {})
|
2784
|
+
# @param [Hash] params ({})
|
2785
|
+
def delete_automated_reasoning_policy(params = {}, options = {})
|
2786
|
+
req = build_request(:delete_automated_reasoning_policy, params)
|
2787
|
+
req.send_request(options)
|
2788
|
+
end
|
2789
|
+
|
2790
|
+
# Deletes an Automated Reasoning policy build workflow and its
|
2791
|
+
# associated artifacts. This permanently removes the workflow history
|
2792
|
+
# and any generated assets.
|
2793
|
+
#
|
2794
|
+
# @option params [required, String] :policy_arn
|
2795
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
2796
|
+
# build workflow you want to delete.
|
2797
|
+
#
|
2798
|
+
# @option params [required, String] :build_workflow_id
|
2799
|
+
# The unique identifier of the build workflow to delete.
|
2800
|
+
#
|
2801
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :last_updated_at
|
2802
|
+
# The timestamp when the build workflow was last updated. This is used
|
2803
|
+
# for optimistic concurrency control to prevent accidental deletion of
|
2804
|
+
# workflows that have been modified.
|
2805
|
+
#
|
2806
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2807
|
+
#
|
2808
|
+
# @example Request syntax with placeholder values
|
2809
|
+
#
|
2810
|
+
# resp = client.delete_automated_reasoning_policy_build_workflow({
|
2811
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
2812
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
2813
|
+
# last_updated_at: Time.now, # required
|
2814
|
+
# })
|
2815
|
+
#
|
2816
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyBuildWorkflow AWS API Documentation
|
2817
|
+
#
|
2818
|
+
# @overload delete_automated_reasoning_policy_build_workflow(params = {})
|
2819
|
+
# @param [Hash] params ({})
|
2820
|
+
def delete_automated_reasoning_policy_build_workflow(params = {}, options = {})
|
2821
|
+
req = build_request(:delete_automated_reasoning_policy_build_workflow, params)
|
2822
|
+
req.send_request(options)
|
2823
|
+
end
|
2824
|
+
|
2825
|
+
# Deletes an Automated Reasoning policy test. This operation is
|
2826
|
+
# idempotent; if you delete a test more than once, each call succeeds.
|
2827
|
+
#
|
2828
|
+
# @option params [required, String] :policy_arn
|
2829
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy that
|
2830
|
+
# contains the test.
|
2831
|
+
#
|
2832
|
+
# @option params [required, String] :test_case_id
|
2833
|
+
# The unique identifier of the test to delete.
|
2834
|
+
#
|
2835
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :last_updated_at
|
2836
|
+
# The timestamp when the test was last updated. This is used as a
|
2837
|
+
# concurrency token to prevent conflicting modifications.
|
2838
|
+
#
|
2839
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2840
|
+
#
|
2841
|
+
# @example Request syntax with placeholder values
|
2842
|
+
#
|
2843
|
+
# resp = client.delete_automated_reasoning_policy_test_case({
|
2844
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
2845
|
+
# test_case_id: "AutomatedReasoningPolicyTestCaseId", # required
|
2846
|
+
# last_updated_at: Time.now, # required
|
2847
|
+
# })
|
2848
|
+
#
|
2849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyTestCase AWS API Documentation
|
2850
|
+
#
|
2851
|
+
# @overload delete_automated_reasoning_policy_test_case(params = {})
|
2852
|
+
# @param [Hash] params ({})
|
2853
|
+
def delete_automated_reasoning_policy_test_case(params = {}, options = {})
|
2854
|
+
req = build_request(:delete_automated_reasoning_policy_test_case, params)
|
2855
|
+
req.send_request(options)
|
2856
|
+
end
|
2857
|
+
|
2447
2858
|
# Deletes a custom model that you created earlier. For more information,
|
2448
2859
|
# see [Custom models][1] in the [Amazon Bedrock User Guide][2].
|
2449
2860
|
#
|
@@ -2736,99 +3147,717 @@ module Aws::Bedrock
|
|
2736
3147
|
req.send_request(options)
|
2737
3148
|
end
|
2738
3149
|
|
2739
|
-
#
|
2740
|
-
#
|
2741
|
-
#
|
2742
|
-
#
|
2743
|
-
#
|
2744
|
-
#
|
2745
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
2746
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
3150
|
+
# Exports the policy definition for an Automated Reasoning policy
|
3151
|
+
# version. Returns the complete policy definition including rules,
|
3152
|
+
# variables, and custom variable types in a structured format.
|
2747
3153
|
#
|
2748
|
-
# @option params [required, String] :
|
2749
|
-
#
|
3154
|
+
# @option params [required, String] :policy_arn
|
3155
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy to
|
3156
|
+
# export. Can be either the unversioned ARN for the draft policy or a
|
3157
|
+
# versioned ARN for a specific policy version.
|
2750
3158
|
#
|
2751
|
-
# @return [Types::
|
3159
|
+
# @return [Types::ExportAutomatedReasoningPolicyVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2752
3160
|
#
|
2753
|
-
# * {Types::
|
2754
|
-
# * {Types::GetCustomModelResponse#model_name #model_name} => String
|
2755
|
-
# * {Types::GetCustomModelResponse#job_name #job_name} => String
|
2756
|
-
# * {Types::GetCustomModelResponse#job_arn #job_arn} => String
|
2757
|
-
# * {Types::GetCustomModelResponse#base_model_arn #base_model_arn} => String
|
2758
|
-
# * {Types::GetCustomModelResponse#customization_type #customization_type} => String
|
2759
|
-
# * {Types::GetCustomModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
2760
|
-
# * {Types::GetCustomModelResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
2761
|
-
# * {Types::GetCustomModelResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
2762
|
-
# * {Types::GetCustomModelResponse#validation_data_config #validation_data_config} => Types::ValidationDataConfig
|
2763
|
-
# * {Types::GetCustomModelResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
2764
|
-
# * {Types::GetCustomModelResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
2765
|
-
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
2766
|
-
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
2767
|
-
# * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
|
2768
|
-
# * {Types::GetCustomModelResponse#model_status #model_status} => String
|
2769
|
-
# * {Types::GetCustomModelResponse#failure_message #failure_message} => String
|
3161
|
+
# * {Types::ExportAutomatedReasoningPolicyVersionResponse#policy_definition #policy_definition} => Types::AutomatedReasoningPolicyDefinition
|
2770
3162
|
#
|
2771
3163
|
# @example Request syntax with placeholder values
|
2772
3164
|
#
|
2773
|
-
# resp = client.
|
2774
|
-
#
|
3165
|
+
# resp = client.export_automated_reasoning_policy_version({
|
3166
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
2775
3167
|
# })
|
2776
3168
|
#
|
2777
3169
|
# @example Response structure
|
2778
3170
|
#
|
2779
|
-
# resp.
|
2780
|
-
# resp.
|
2781
|
-
# resp.
|
2782
|
-
# resp.
|
2783
|
-
# resp.
|
2784
|
-
# resp.
|
2785
|
-
# resp.
|
2786
|
-
# resp.
|
2787
|
-
# resp.
|
2788
|
-
# resp.
|
2789
|
-
# resp.
|
2790
|
-
# resp.
|
2791
|
-
# resp.
|
2792
|
-
# resp.
|
2793
|
-
# resp.
|
2794
|
-
#
|
2795
|
-
#
|
2796
|
-
#
|
2797
|
-
#
|
2798
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].not_equals #=> Hash
|
2799
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].not_equals["RequestMetadataMapKeyString"] #=> String
|
2800
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all #=> Array
|
2801
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].equals #=> Hash
|
2802
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].equals["RequestMetadataMapKeyString"] #=> String
|
2803
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].not_equals #=> Hash
|
2804
|
-
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].not_equals["RequestMetadataMapKeyString"] #=> String
|
2805
|
-
# resp.validation_data_config.validators #=> Array
|
2806
|
-
# resp.validation_data_config.validators[0].s3_uri #=> String
|
2807
|
-
# resp.output_data_config.s3_uri #=> String
|
2808
|
-
# resp.training_metrics.training_loss #=> Float
|
2809
|
-
# resp.validation_metrics #=> Array
|
2810
|
-
# resp.validation_metrics[0].validation_loss #=> Float
|
2811
|
-
# resp.creation_time #=> Time
|
2812
|
-
# resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
|
2813
|
-
# resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
|
2814
|
-
# resp.model_status #=> String, one of "Active", "Creating", "Failed"
|
2815
|
-
# resp.failure_message #=> String
|
2816
|
-
#
|
2817
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
2818
|
-
#
|
2819
|
-
# @overload get_custom_model(params = {})
|
3171
|
+
# resp.policy_definition.version #=> String
|
3172
|
+
# resp.policy_definition.types #=> Array
|
3173
|
+
# resp.policy_definition.types[0].name #=> String
|
3174
|
+
# resp.policy_definition.types[0].description #=> String
|
3175
|
+
# resp.policy_definition.types[0].values #=> Array
|
3176
|
+
# resp.policy_definition.types[0].values[0].value #=> String
|
3177
|
+
# resp.policy_definition.types[0].values[0].description #=> String
|
3178
|
+
# resp.policy_definition.rules #=> Array
|
3179
|
+
# resp.policy_definition.rules[0].id #=> String
|
3180
|
+
# resp.policy_definition.rules[0].expression #=> String
|
3181
|
+
# resp.policy_definition.rules[0].alternate_expression #=> String
|
3182
|
+
# resp.policy_definition.variables #=> Array
|
3183
|
+
# resp.policy_definition.variables[0].name #=> String
|
3184
|
+
# resp.policy_definition.variables[0].type #=> String
|
3185
|
+
# resp.policy_definition.variables[0].description #=> String
|
3186
|
+
#
|
3187
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ExportAutomatedReasoningPolicyVersion AWS API Documentation
|
3188
|
+
#
|
3189
|
+
# @overload export_automated_reasoning_policy_version(params = {})
|
2820
3190
|
# @param [Hash] params ({})
|
2821
|
-
def
|
2822
|
-
req = build_request(:
|
3191
|
+
def export_automated_reasoning_policy_version(params = {}, options = {})
|
3192
|
+
req = build_request(:export_automated_reasoning_policy_version, params)
|
2823
3193
|
req.send_request(options)
|
2824
3194
|
end
|
2825
3195
|
|
2826
|
-
# Retrieves
|
2827
|
-
#
|
2828
|
-
#
|
3196
|
+
# Retrieves details about an Automated Reasoning policy or policy
|
3197
|
+
# version. Returns information including the policy definition,
|
3198
|
+
# metadata, and timestamps.
|
3199
|
+
#
|
3200
|
+
# @option params [required, String] :policy_arn
|
3201
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy to
|
3202
|
+
# retrieve. Can be either the unversioned ARN for the draft policy or an
|
3203
|
+
# ARN for a specific policy version.
|
3204
|
+
#
|
3205
|
+
# @return [Types::GetAutomatedReasoningPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3206
|
+
#
|
3207
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#policy_arn #policy_arn} => String
|
3208
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#name #name} => String
|
3209
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#version #version} => String
|
3210
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#policy_id #policy_id} => String
|
3211
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#description #description} => String
|
3212
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#definition_hash #definition_hash} => String
|
3213
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#created_at #created_at} => Time
|
3214
|
+
# * {Types::GetAutomatedReasoningPolicyResponse#updated_at #updated_at} => Time
|
2829
3215
|
#
|
2830
|
-
#
|
2831
|
-
#
|
3216
|
+
# @example Request syntax with placeholder values
|
3217
|
+
#
|
3218
|
+
# resp = client.get_automated_reasoning_policy({
|
3219
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3220
|
+
# })
|
3221
|
+
#
|
3222
|
+
# @example Response structure
|
3223
|
+
#
|
3224
|
+
# resp.policy_arn #=> String
|
3225
|
+
# resp.name #=> String
|
3226
|
+
# resp.version #=> String
|
3227
|
+
# resp.policy_id #=> String
|
3228
|
+
# resp.description #=> String
|
3229
|
+
# resp.definition_hash #=> String
|
3230
|
+
# resp.created_at #=> Time
|
3231
|
+
# resp.updated_at #=> Time
|
3232
|
+
#
|
3233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicy AWS API Documentation
|
3234
|
+
#
|
3235
|
+
# @overload get_automated_reasoning_policy(params = {})
|
3236
|
+
# @param [Hash] params ({})
|
3237
|
+
def get_automated_reasoning_policy(params = {}, options = {})
|
3238
|
+
req = build_request(:get_automated_reasoning_policy, params)
|
3239
|
+
req.send_request(options)
|
3240
|
+
end
|
3241
|
+
|
3242
|
+
# Retrieves the current annotations for an Automated Reasoning policy
|
3243
|
+
# build workflow. Annotations contain corrections to the rules,
|
3244
|
+
# variables and types to be applied to the policy.
|
3245
|
+
#
|
3246
|
+
# @option params [required, String] :policy_arn
|
3247
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
3248
|
+
# annotations you want to retrieve.
|
3249
|
+
#
|
3250
|
+
# @option params [required, String] :build_workflow_id
|
3251
|
+
# The unique identifier of the build workflow whose annotations you want
|
3252
|
+
# to retrieve.
|
3253
|
+
#
|
3254
|
+
# @return [Types::GetAutomatedReasoningPolicyAnnotationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3255
|
+
#
|
3256
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#policy_arn #policy_arn} => String
|
3257
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#name #name} => String
|
3258
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#build_workflow_id #build_workflow_id} => String
|
3259
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#annotations #annotations} => Array<Types::AutomatedReasoningPolicyAnnotation>
|
3260
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#annotation_set_hash #annotation_set_hash} => String
|
3261
|
+
# * {Types::GetAutomatedReasoningPolicyAnnotationsResponse#updated_at #updated_at} => Time
|
3262
|
+
#
|
3263
|
+
# @example Request syntax with placeholder values
|
3264
|
+
#
|
3265
|
+
# resp = client.get_automated_reasoning_policy_annotations({
|
3266
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3267
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
3268
|
+
# })
|
3269
|
+
#
|
3270
|
+
# @example Response structure
|
3271
|
+
#
|
3272
|
+
# resp.policy_arn #=> String
|
3273
|
+
# resp.name #=> String
|
3274
|
+
# resp.build_workflow_id #=> String
|
3275
|
+
# resp.annotations #=> Array
|
3276
|
+
# resp.annotations[0].add_type.name #=> String
|
3277
|
+
# resp.annotations[0].add_type.description #=> String
|
3278
|
+
# resp.annotations[0].add_type.values #=> Array
|
3279
|
+
# resp.annotations[0].add_type.values[0].value #=> String
|
3280
|
+
# resp.annotations[0].add_type.values[0].description #=> String
|
3281
|
+
# resp.annotations[0].update_type.name #=> String
|
3282
|
+
# resp.annotations[0].update_type.new_name #=> String
|
3283
|
+
# resp.annotations[0].update_type.description #=> String
|
3284
|
+
# resp.annotations[0].update_type.values #=> Array
|
3285
|
+
# resp.annotations[0].update_type.values[0].add_type_value.value #=> String
|
3286
|
+
# resp.annotations[0].update_type.values[0].add_type_value.description #=> String
|
3287
|
+
# resp.annotations[0].update_type.values[0].update_type_value.value #=> String
|
3288
|
+
# resp.annotations[0].update_type.values[0].update_type_value.new_value #=> String
|
3289
|
+
# resp.annotations[0].update_type.values[0].update_type_value.description #=> String
|
3290
|
+
# resp.annotations[0].update_type.values[0].delete_type_value.value #=> String
|
3291
|
+
# resp.annotations[0].delete_type.name #=> String
|
3292
|
+
# resp.annotations[0].add_variable.name #=> String
|
3293
|
+
# resp.annotations[0].add_variable.type #=> String
|
3294
|
+
# resp.annotations[0].add_variable.description #=> String
|
3295
|
+
# resp.annotations[0].update_variable.name #=> String
|
3296
|
+
# resp.annotations[0].update_variable.new_name #=> String
|
3297
|
+
# resp.annotations[0].update_variable.description #=> String
|
3298
|
+
# resp.annotations[0].delete_variable.name #=> String
|
3299
|
+
# resp.annotations[0].add_rule.expression #=> String
|
3300
|
+
# resp.annotations[0].update_rule.rule_id #=> String
|
3301
|
+
# resp.annotations[0].update_rule.expression #=> String
|
3302
|
+
# resp.annotations[0].delete_rule.rule_id #=> String
|
3303
|
+
# resp.annotations[0].add_rule_from_natural_language.natural_language #=> String
|
3304
|
+
# resp.annotations[0].update_from_rules_feedback.rule_ids #=> Array
|
3305
|
+
# resp.annotations[0].update_from_rules_feedback.rule_ids[0] #=> String
|
3306
|
+
# resp.annotations[0].update_from_rules_feedback.feedback #=> String
|
3307
|
+
# resp.annotations[0].update_from_scenario_feedback.rule_ids #=> Array
|
3308
|
+
# resp.annotations[0].update_from_scenario_feedback.rule_ids[0] #=> String
|
3309
|
+
# resp.annotations[0].update_from_scenario_feedback.scenario_expression #=> String
|
3310
|
+
# resp.annotations[0].update_from_scenario_feedback.feedback #=> String
|
3311
|
+
# resp.annotations[0].ingest_content.content #=> String
|
3312
|
+
# resp.annotation_set_hash #=> String
|
3313
|
+
# resp.updated_at #=> Time
|
3314
|
+
#
|
3315
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyAnnotations AWS API Documentation
|
3316
|
+
#
|
3317
|
+
# @overload get_automated_reasoning_policy_annotations(params = {})
|
3318
|
+
# @param [Hash] params ({})
|
3319
|
+
def get_automated_reasoning_policy_annotations(params = {}, options = {})
|
3320
|
+
req = build_request(:get_automated_reasoning_policy_annotations, params)
|
3321
|
+
req.send_request(options)
|
3322
|
+
end
|
3323
|
+
|
3324
|
+
# Retrieves detailed information about an Automated Reasoning policy
|
3325
|
+
# build workflow, including its status, configuration, and metadata.
|
3326
|
+
#
|
3327
|
+
# @option params [required, String] :policy_arn
|
3328
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
3329
|
+
# build workflow you want to retrieve.
|
3330
|
+
#
|
3331
|
+
# @option params [required, String] :build_workflow_id
|
3332
|
+
# The unique identifier of the build workflow to retrieve.
|
3333
|
+
#
|
3334
|
+
# @return [Types::GetAutomatedReasoningPolicyBuildWorkflowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3335
|
+
#
|
3336
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#policy_arn #policy_arn} => String
|
3337
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#build_workflow_id #build_workflow_id} => String
|
3338
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#status #status} => String
|
3339
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#build_workflow_type #build_workflow_type} => String
|
3340
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#document_name #document_name} => String
|
3341
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#document_content_type #document_content_type} => String
|
3342
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#document_description #document_description} => String
|
3343
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#created_at #created_at} => Time
|
3344
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResponse#updated_at #updated_at} => Time
|
3345
|
+
#
|
3346
|
+
# @example Request syntax with placeholder values
|
3347
|
+
#
|
3348
|
+
# resp = client.get_automated_reasoning_policy_build_workflow({
|
3349
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3350
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
3351
|
+
# })
|
3352
|
+
#
|
3353
|
+
# @example Response structure
|
3354
|
+
#
|
3355
|
+
# resp.policy_arn #=> String
|
3356
|
+
# resp.build_workflow_id #=> String
|
3357
|
+
# resp.status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
3358
|
+
# resp.build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY"
|
3359
|
+
# resp.document_name #=> String
|
3360
|
+
# resp.document_content_type #=> String, one of "pdf", "txt"
|
3361
|
+
# resp.document_description #=> String
|
3362
|
+
# resp.created_at #=> Time
|
3363
|
+
# resp.updated_at #=> Time
|
3364
|
+
#
|
3365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflow AWS API Documentation
|
3366
|
+
#
|
3367
|
+
# @overload get_automated_reasoning_policy_build_workflow(params = {})
|
3368
|
+
# @param [Hash] params ({})
|
3369
|
+
def get_automated_reasoning_policy_build_workflow(params = {}, options = {})
|
3370
|
+
req = build_request(:get_automated_reasoning_policy_build_workflow, params)
|
3371
|
+
req.send_request(options)
|
3372
|
+
end
|
3373
|
+
|
3374
|
+
# Retrieves the resulting assets from a completed Automated Reasoning
|
3375
|
+
# policy build workflow, including build logs, quality reports, and
|
3376
|
+
# generated policy artifacts.
|
3377
|
+
#
|
3378
|
+
# @option params [required, String] :policy_arn
|
3379
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
3380
|
+
# build workflow assets you want to retrieve.
|
3381
|
+
#
|
3382
|
+
# @option params [required, String] :build_workflow_id
|
3383
|
+
# The unique identifier of the build workflow whose result assets you
|
3384
|
+
# want to retrieve.
|
3385
|
+
#
|
3386
|
+
# @option params [required, String] :asset_type
|
3387
|
+
# The type of asset to retrieve (e.g., BUILD\_LOG, QUALITY\_REPORT,
|
3388
|
+
# POLICY\_DEFINITION).
|
3389
|
+
#
|
3390
|
+
# @return [Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3391
|
+
#
|
3392
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse#policy_arn #policy_arn} => String
|
3393
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse#build_workflow_id #build_workflow_id} => String
|
3394
|
+
# * {Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse#build_workflow_assets #build_workflow_assets} => Types::AutomatedReasoningPolicyBuildResultAssets
|
3395
|
+
#
|
3396
|
+
# @example Request syntax with placeholder values
|
3397
|
+
#
|
3398
|
+
# resp = client.get_automated_reasoning_policy_build_workflow_result_assets({
|
3399
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3400
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
3401
|
+
# asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION
|
3402
|
+
# })
|
3403
|
+
#
|
3404
|
+
# @example Response structure
|
3405
|
+
#
|
3406
|
+
# resp.policy_arn #=> String
|
3407
|
+
# resp.build_workflow_id #=> String
|
3408
|
+
# resp.build_workflow_assets.policy_definition.version #=> String
|
3409
|
+
# resp.build_workflow_assets.policy_definition.types #=> Array
|
3410
|
+
# resp.build_workflow_assets.policy_definition.types[0].name #=> String
|
3411
|
+
# resp.build_workflow_assets.policy_definition.types[0].description #=> String
|
3412
|
+
# resp.build_workflow_assets.policy_definition.types[0].values #=> Array
|
3413
|
+
# resp.build_workflow_assets.policy_definition.types[0].values[0].value #=> String
|
3414
|
+
# resp.build_workflow_assets.policy_definition.types[0].values[0].description #=> String
|
3415
|
+
# resp.build_workflow_assets.policy_definition.rules #=> Array
|
3416
|
+
# resp.build_workflow_assets.policy_definition.rules[0].id #=> String
|
3417
|
+
# resp.build_workflow_assets.policy_definition.rules[0].expression #=> String
|
3418
|
+
# resp.build_workflow_assets.policy_definition.rules[0].alternate_expression #=> String
|
3419
|
+
# resp.build_workflow_assets.policy_definition.variables #=> Array
|
3420
|
+
# resp.build_workflow_assets.policy_definition.variables[0].name #=> String
|
3421
|
+
# resp.build_workflow_assets.policy_definition.variables[0].type #=> String
|
3422
|
+
# resp.build_workflow_assets.policy_definition.variables[0].description #=> String
|
3423
|
+
# resp.build_workflow_assets.quality_report.type_count #=> Integer
|
3424
|
+
# resp.build_workflow_assets.quality_report.variable_count #=> Integer
|
3425
|
+
# resp.build_workflow_assets.quality_report.rule_count #=> Integer
|
3426
|
+
# resp.build_workflow_assets.quality_report.unused_types #=> Array
|
3427
|
+
# resp.build_workflow_assets.quality_report.unused_types[0] #=> String
|
3428
|
+
# resp.build_workflow_assets.quality_report.unused_type_values #=> Array
|
3429
|
+
# resp.build_workflow_assets.quality_report.unused_type_values[0].type_name #=> String
|
3430
|
+
# resp.build_workflow_assets.quality_report.unused_type_values[0].value_name #=> String
|
3431
|
+
# resp.build_workflow_assets.quality_report.unused_variables #=> Array
|
3432
|
+
# resp.build_workflow_assets.quality_report.unused_variables[0] #=> String
|
3433
|
+
# resp.build_workflow_assets.quality_report.conflicting_rules #=> Array
|
3434
|
+
# resp.build_workflow_assets.quality_report.conflicting_rules[0] #=> String
|
3435
|
+
# resp.build_workflow_assets.quality_report.disjoint_rule_sets #=> Array
|
3436
|
+
# resp.build_workflow_assets.quality_report.disjoint_rule_sets[0].variables #=> Array
|
3437
|
+
# resp.build_workflow_assets.quality_report.disjoint_rule_sets[0].variables[0] #=> String
|
3438
|
+
# resp.build_workflow_assets.quality_report.disjoint_rule_sets[0].rules #=> Array
|
3439
|
+
# resp.build_workflow_assets.quality_report.disjoint_rule_sets[0].rules[0] #=> String
|
3440
|
+
# resp.build_workflow_assets.build_log.entries #=> Array
|
3441
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_type.name #=> String
|
3442
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_type.description #=> String
|
3443
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_type.values #=> Array
|
3444
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_type.values[0].value #=> String
|
3445
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_type.values[0].description #=> String
|
3446
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.name #=> String
|
3447
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.new_name #=> String
|
3448
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.description #=> String
|
3449
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values #=> Array
|
3450
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].add_type_value.value #=> String
|
3451
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].add_type_value.description #=> String
|
3452
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].update_type_value.value #=> String
|
3453
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].update_type_value.new_value #=> String
|
3454
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].update_type_value.description #=> String
|
3455
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_type.values[0].delete_type_value.value #=> String
|
3456
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.delete_type.name #=> String
|
3457
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_variable.name #=> String
|
3458
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_variable.type #=> String
|
3459
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_variable.description #=> String
|
3460
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_variable.name #=> String
|
3461
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_variable.new_name #=> String
|
3462
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_variable.description #=> String
|
3463
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.delete_variable.name #=> String
|
3464
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_rule.expression #=> String
|
3465
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_rule.rule_id #=> String
|
3466
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_rule.expression #=> String
|
3467
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.delete_rule.rule_id #=> String
|
3468
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.add_rule_from_natural_language.natural_language #=> String
|
3469
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_rules_feedback.rule_ids #=> Array
|
3470
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_rules_feedback.rule_ids[0] #=> String
|
3471
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_rules_feedback.feedback #=> String
|
3472
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_scenario_feedback.rule_ids #=> Array
|
3473
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_scenario_feedback.rule_ids[0] #=> String
|
3474
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_scenario_feedback.scenario_expression #=> String
|
3475
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.update_from_scenario_feedback.feedback #=> String
|
3476
|
+
# resp.build_workflow_assets.build_log.entries[0].annotation.ingest_content.content #=> String
|
3477
|
+
# resp.build_workflow_assets.build_log.entries[0].status #=> String, one of "APPLIED", "FAILED"
|
3478
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps #=> Array
|
3479
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_type.type.name #=> String
|
3480
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_type.type.description #=> String
|
3481
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_type.type.values #=> Array
|
3482
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_type.type.values[0].value #=> String
|
3483
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_type.type.values[0].description #=> String
|
3484
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_type.type.name #=> String
|
3485
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_type.type.description #=> String
|
3486
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_type.type.values #=> Array
|
3487
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_type.type.values[0].value #=> String
|
3488
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_type.type.values[0].description #=> String
|
3489
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.delete_type.name #=> String
|
3490
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_variable.variable.name #=> String
|
3491
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_variable.variable.type #=> String
|
3492
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_variable.variable.description #=> String
|
3493
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_variable.variable.name #=> String
|
3494
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_variable.variable.type #=> String
|
3495
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_variable.variable.description #=> String
|
3496
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.delete_variable.name #=> String
|
3497
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_rule.rule.id #=> String
|
3498
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_rule.rule.expression #=> String
|
3499
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.add_rule.rule.alternate_expression #=> String
|
3500
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_rule.rule.id #=> String
|
3501
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_rule.rule.expression #=> String
|
3502
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.update_rule.rule.alternate_expression #=> String
|
3503
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].context.mutation.delete_rule.id #=> String
|
3504
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_variable.name #=> String
|
3505
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_variable.type #=> String
|
3506
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_variable.description #=> String
|
3507
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_type.name #=> String
|
3508
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_type.description #=> String
|
3509
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_type.values #=> Array
|
3510
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_type.values[0].value #=> String
|
3511
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_type.values[0].description #=> String
|
3512
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_rule.id #=> String
|
3513
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_rule.expression #=> String
|
3514
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].prior_element.policy_definition_rule.alternate_expression #=> String
|
3515
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages #=> Array
|
3516
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages[0].message #=> String
|
3517
|
+
# resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages[0].message_type #=> String, one of "INFO", "WARNING", "ERROR"
|
3518
|
+
#
|
3519
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssets AWS API Documentation
|
3520
|
+
#
|
3521
|
+
# @overload get_automated_reasoning_policy_build_workflow_result_assets(params = {})
|
3522
|
+
# @param [Hash] params ({})
|
3523
|
+
def get_automated_reasoning_policy_build_workflow_result_assets(params = {}, options = {})
|
3524
|
+
req = build_request(:get_automated_reasoning_policy_build_workflow_result_assets, params)
|
3525
|
+
req.send_request(options)
|
3526
|
+
end
|
3527
|
+
|
3528
|
+
# Retrieves the next test scenario for validating an Automated Reasoning
|
3529
|
+
# policy. This is used during the interactive policy refinement process
|
3530
|
+
# to test policy behavior.
|
3531
|
+
#
|
3532
|
+
# @option params [required, String] :policy_arn
|
3533
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy for
|
3534
|
+
# which you want to get the next test scenario.
|
3535
|
+
#
|
3536
|
+
# @option params [required, String] :build_workflow_id
|
3537
|
+
# The unique identifier of the build workflow associated with the test
|
3538
|
+
# scenarios.
|
3539
|
+
#
|
3540
|
+
# @return [Types::GetAutomatedReasoningPolicyNextScenarioResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3541
|
+
#
|
3542
|
+
# * {Types::GetAutomatedReasoningPolicyNextScenarioResponse#policy_arn #policy_arn} => String
|
3543
|
+
# * {Types::GetAutomatedReasoningPolicyNextScenarioResponse#scenario #scenario} => Types::AutomatedReasoningPolicyScenario
|
3544
|
+
#
|
3545
|
+
# @example Request syntax with placeholder values
|
3546
|
+
#
|
3547
|
+
# resp = client.get_automated_reasoning_policy_next_scenario({
|
3548
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3549
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
3550
|
+
# })
|
3551
|
+
#
|
3552
|
+
# @example Response structure
|
3553
|
+
#
|
3554
|
+
# resp.policy_arn #=> String
|
3555
|
+
# resp.scenario.expression #=> String
|
3556
|
+
# resp.scenario.alternate_expression #=> String
|
3557
|
+
# resp.scenario.rule_ids #=> Array
|
3558
|
+
# resp.scenario.rule_ids[0] #=> String
|
3559
|
+
# resp.scenario.expected_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
3560
|
+
#
|
3561
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyNextScenario AWS API Documentation
|
3562
|
+
#
|
3563
|
+
# @overload get_automated_reasoning_policy_next_scenario(params = {})
|
3564
|
+
# @param [Hash] params ({})
|
3565
|
+
def get_automated_reasoning_policy_next_scenario(params = {}, options = {})
|
3566
|
+
req = build_request(:get_automated_reasoning_policy_next_scenario, params)
|
3567
|
+
req.send_request(options)
|
3568
|
+
end
|
3569
|
+
|
3570
|
+
# Retrieves details about a specific Automated Reasoning policy test.
|
3571
|
+
#
|
3572
|
+
# @option params [required, String] :policy_arn
|
3573
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy that
|
3574
|
+
# contains the test.
|
3575
|
+
#
|
3576
|
+
# @option params [required, String] :test_case_id
|
3577
|
+
# The unique identifier of the test to retrieve.
|
3578
|
+
#
|
3579
|
+
# @return [Types::GetAutomatedReasoningPolicyTestCaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3580
|
+
#
|
3581
|
+
# * {Types::GetAutomatedReasoningPolicyTestCaseResponse#policy_arn #policy_arn} => String
|
3582
|
+
# * {Types::GetAutomatedReasoningPolicyTestCaseResponse#test_case #test_case} => Types::AutomatedReasoningPolicyTestCase
|
3583
|
+
#
|
3584
|
+
# @example Request syntax with placeholder values
|
3585
|
+
#
|
3586
|
+
# resp = client.get_automated_reasoning_policy_test_case({
|
3587
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3588
|
+
# test_case_id: "AutomatedReasoningPolicyTestCaseId", # required
|
3589
|
+
# })
|
3590
|
+
#
|
3591
|
+
# @example Response structure
|
3592
|
+
#
|
3593
|
+
# resp.policy_arn #=> String
|
3594
|
+
# resp.test_case.test_case_id #=> String
|
3595
|
+
# resp.test_case.guard_content #=> String
|
3596
|
+
# resp.test_case.query_content #=> String
|
3597
|
+
# resp.test_case.expected_aggregated_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
3598
|
+
# resp.test_case.created_at #=> Time
|
3599
|
+
# resp.test_case.updated_at #=> Time
|
3600
|
+
# resp.test_case.confidence_threshold #=> Float
|
3601
|
+
#
|
3602
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestCase AWS API Documentation
|
3603
|
+
#
|
3604
|
+
# @overload get_automated_reasoning_policy_test_case(params = {})
|
3605
|
+
# @param [Hash] params ({})
|
3606
|
+
def get_automated_reasoning_policy_test_case(params = {}, options = {})
|
3607
|
+
req = build_request(:get_automated_reasoning_policy_test_case, params)
|
3608
|
+
req.send_request(options)
|
3609
|
+
end
|
3610
|
+
|
3611
|
+
# Retrieves the test result for a specific Automated Reasoning policy
|
3612
|
+
# test. Returns detailed validation findings and execution status.
|
3613
|
+
#
|
3614
|
+
# @option params [required, String] :policy_arn
|
3615
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy.
|
3616
|
+
#
|
3617
|
+
# @option params [required, String] :build_workflow_id
|
3618
|
+
# The build workflow identifier. The build workflow must display a
|
3619
|
+
# `COMPLETED` status to get results.
|
3620
|
+
#
|
3621
|
+
# @option params [required, String] :test_case_id
|
3622
|
+
# The unique identifier of the test for which to retrieve results.
|
3623
|
+
#
|
3624
|
+
# @return [Types::GetAutomatedReasoningPolicyTestResultResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3625
|
+
#
|
3626
|
+
# * {Types::GetAutomatedReasoningPolicyTestResultResponse#test_result #test_result} => Types::AutomatedReasoningPolicyTestResult
|
3627
|
+
#
|
3628
|
+
# @example Request syntax with placeholder values
|
3629
|
+
#
|
3630
|
+
# resp = client.get_automated_reasoning_policy_test_result({
|
3631
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
3632
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
3633
|
+
# test_case_id: "AutomatedReasoningPolicyTestCaseId", # required
|
3634
|
+
# })
|
3635
|
+
#
|
3636
|
+
# @example Response structure
|
3637
|
+
#
|
3638
|
+
# resp.test_result.test_case.test_case_id #=> String
|
3639
|
+
# resp.test_result.test_case.guard_content #=> String
|
3640
|
+
# resp.test_result.test_case.query_content #=> String
|
3641
|
+
# resp.test_result.test_case.expected_aggregated_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
3642
|
+
# resp.test_result.test_case.created_at #=> Time
|
3643
|
+
# resp.test_result.test_case.updated_at #=> Time
|
3644
|
+
# resp.test_result.test_case.confidence_threshold #=> Float
|
3645
|
+
# resp.test_result.policy_arn #=> String
|
3646
|
+
# resp.test_result.test_run_status #=> String, one of "NOT_STARTED", "SCHEDULED", "IN_PROGRESS", "COMPLETED", "FAILED"
|
3647
|
+
# resp.test_result.test_findings #=> Array
|
3648
|
+
# resp.test_result.test_findings[0].valid.translation.premises #=> Array
|
3649
|
+
# resp.test_result.test_findings[0].valid.translation.premises[0].logic #=> String
|
3650
|
+
# resp.test_result.test_findings[0].valid.translation.premises[0].natural_language #=> String
|
3651
|
+
# resp.test_result.test_findings[0].valid.translation.claims #=> Array
|
3652
|
+
# resp.test_result.test_findings[0].valid.translation.claims[0].logic #=> String
|
3653
|
+
# resp.test_result.test_findings[0].valid.translation.claims[0].natural_language #=> String
|
3654
|
+
# resp.test_result.test_findings[0].valid.translation.untranslated_premises #=> Array
|
3655
|
+
# resp.test_result.test_findings[0].valid.translation.untranslated_premises[0].text #=> String
|
3656
|
+
# resp.test_result.test_findings[0].valid.translation.untranslated_claims #=> Array
|
3657
|
+
# resp.test_result.test_findings[0].valid.translation.untranslated_claims[0].text #=> String
|
3658
|
+
# resp.test_result.test_findings[0].valid.translation.confidence #=> Float
|
3659
|
+
# resp.test_result.test_findings[0].valid.claims_true_scenario.statements #=> Array
|
3660
|
+
# resp.test_result.test_findings[0].valid.claims_true_scenario.statements[0].logic #=> String
|
3661
|
+
# resp.test_result.test_findings[0].valid.claims_true_scenario.statements[0].natural_language #=> String
|
3662
|
+
# resp.test_result.test_findings[0].valid.supporting_rules #=> Array
|
3663
|
+
# resp.test_result.test_findings[0].valid.supporting_rules[0].id #=> String
|
3664
|
+
# resp.test_result.test_findings[0].valid.supporting_rules[0].policy_version_arn #=> String
|
3665
|
+
# resp.test_result.test_findings[0].valid.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
3666
|
+
# resp.test_result.test_findings[0].valid.logic_warning.premises #=> Array
|
3667
|
+
# resp.test_result.test_findings[0].valid.logic_warning.premises[0].logic #=> String
|
3668
|
+
# resp.test_result.test_findings[0].valid.logic_warning.premises[0].natural_language #=> String
|
3669
|
+
# resp.test_result.test_findings[0].valid.logic_warning.claims #=> Array
|
3670
|
+
# resp.test_result.test_findings[0].valid.logic_warning.claims[0].logic #=> String
|
3671
|
+
# resp.test_result.test_findings[0].valid.logic_warning.claims[0].natural_language #=> String
|
3672
|
+
# resp.test_result.test_findings[0].invalid.translation.premises #=> Array
|
3673
|
+
# resp.test_result.test_findings[0].invalid.translation.premises[0].logic #=> String
|
3674
|
+
# resp.test_result.test_findings[0].invalid.translation.premises[0].natural_language #=> String
|
3675
|
+
# resp.test_result.test_findings[0].invalid.translation.claims #=> Array
|
3676
|
+
# resp.test_result.test_findings[0].invalid.translation.claims[0].logic #=> String
|
3677
|
+
# resp.test_result.test_findings[0].invalid.translation.claims[0].natural_language #=> String
|
3678
|
+
# resp.test_result.test_findings[0].invalid.translation.untranslated_premises #=> Array
|
3679
|
+
# resp.test_result.test_findings[0].invalid.translation.untranslated_premises[0].text #=> String
|
3680
|
+
# resp.test_result.test_findings[0].invalid.translation.untranslated_claims #=> Array
|
3681
|
+
# resp.test_result.test_findings[0].invalid.translation.untranslated_claims[0].text #=> String
|
3682
|
+
# resp.test_result.test_findings[0].invalid.translation.confidence #=> Float
|
3683
|
+
# resp.test_result.test_findings[0].invalid.contradicting_rules #=> Array
|
3684
|
+
# resp.test_result.test_findings[0].invalid.contradicting_rules[0].id #=> String
|
3685
|
+
# resp.test_result.test_findings[0].invalid.contradicting_rules[0].policy_version_arn #=> String
|
3686
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
3687
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.premises #=> Array
|
3688
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.premises[0].logic #=> String
|
3689
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.premises[0].natural_language #=> String
|
3690
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.claims #=> Array
|
3691
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.claims[0].logic #=> String
|
3692
|
+
# resp.test_result.test_findings[0].invalid.logic_warning.claims[0].natural_language #=> String
|
3693
|
+
# resp.test_result.test_findings[0].satisfiable.translation.premises #=> Array
|
3694
|
+
# resp.test_result.test_findings[0].satisfiable.translation.premises[0].logic #=> String
|
3695
|
+
# resp.test_result.test_findings[0].satisfiable.translation.premises[0].natural_language #=> String
|
3696
|
+
# resp.test_result.test_findings[0].satisfiable.translation.claims #=> Array
|
3697
|
+
# resp.test_result.test_findings[0].satisfiable.translation.claims[0].logic #=> String
|
3698
|
+
# resp.test_result.test_findings[0].satisfiable.translation.claims[0].natural_language #=> String
|
3699
|
+
# resp.test_result.test_findings[0].satisfiable.translation.untranslated_premises #=> Array
|
3700
|
+
# resp.test_result.test_findings[0].satisfiable.translation.untranslated_premises[0].text #=> String
|
3701
|
+
# resp.test_result.test_findings[0].satisfiable.translation.untranslated_claims #=> Array
|
3702
|
+
# resp.test_result.test_findings[0].satisfiable.translation.untranslated_claims[0].text #=> String
|
3703
|
+
# resp.test_result.test_findings[0].satisfiable.translation.confidence #=> Float
|
3704
|
+
# resp.test_result.test_findings[0].satisfiable.claims_true_scenario.statements #=> Array
|
3705
|
+
# resp.test_result.test_findings[0].satisfiable.claims_true_scenario.statements[0].logic #=> String
|
3706
|
+
# resp.test_result.test_findings[0].satisfiable.claims_true_scenario.statements[0].natural_language #=> String
|
3707
|
+
# resp.test_result.test_findings[0].satisfiable.claims_false_scenario.statements #=> Array
|
3708
|
+
# resp.test_result.test_findings[0].satisfiable.claims_false_scenario.statements[0].logic #=> String
|
3709
|
+
# resp.test_result.test_findings[0].satisfiable.claims_false_scenario.statements[0].natural_language #=> String
|
3710
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
3711
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.premises #=> Array
|
3712
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.premises[0].logic #=> String
|
3713
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.premises[0].natural_language #=> String
|
3714
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.claims #=> Array
|
3715
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.claims[0].logic #=> String
|
3716
|
+
# resp.test_result.test_findings[0].satisfiable.logic_warning.claims[0].natural_language #=> String
|
3717
|
+
# resp.test_result.test_findings[0].impossible.translation.premises #=> Array
|
3718
|
+
# resp.test_result.test_findings[0].impossible.translation.premises[0].logic #=> String
|
3719
|
+
# resp.test_result.test_findings[0].impossible.translation.premises[0].natural_language #=> String
|
3720
|
+
# resp.test_result.test_findings[0].impossible.translation.claims #=> Array
|
3721
|
+
# resp.test_result.test_findings[0].impossible.translation.claims[0].logic #=> String
|
3722
|
+
# resp.test_result.test_findings[0].impossible.translation.claims[0].natural_language #=> String
|
3723
|
+
# resp.test_result.test_findings[0].impossible.translation.untranslated_premises #=> Array
|
3724
|
+
# resp.test_result.test_findings[0].impossible.translation.untranslated_premises[0].text #=> String
|
3725
|
+
# resp.test_result.test_findings[0].impossible.translation.untranslated_claims #=> Array
|
3726
|
+
# resp.test_result.test_findings[0].impossible.translation.untranslated_claims[0].text #=> String
|
3727
|
+
# resp.test_result.test_findings[0].impossible.translation.confidence #=> Float
|
3728
|
+
# resp.test_result.test_findings[0].impossible.contradicting_rules #=> Array
|
3729
|
+
# resp.test_result.test_findings[0].impossible.contradicting_rules[0].id #=> String
|
3730
|
+
# resp.test_result.test_findings[0].impossible.contradicting_rules[0].policy_version_arn #=> String
|
3731
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
3732
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.premises #=> Array
|
3733
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.premises[0].logic #=> String
|
3734
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.premises[0].natural_language #=> String
|
3735
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.claims #=> Array
|
3736
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.claims[0].logic #=> String
|
3737
|
+
# resp.test_result.test_findings[0].impossible.logic_warning.claims[0].natural_language #=> String
|
3738
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options #=> Array
|
3739
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations #=> Array
|
3740
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].premises #=> Array
|
3741
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].premises[0].logic #=> String
|
3742
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].premises[0].natural_language #=> String
|
3743
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].claims #=> Array
|
3744
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].claims[0].logic #=> String
|
3745
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].claims[0].natural_language #=> String
|
3746
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_premises #=> Array
|
3747
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_premises[0].text #=> String
|
3748
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_claims #=> Array
|
3749
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_claims[0].text #=> String
|
3750
|
+
# resp.test_result.test_findings[0].translation_ambiguous.options[0].translations[0].confidence #=> Float
|
3751
|
+
# resp.test_result.test_findings[0].translation_ambiguous.difference_scenarios #=> Array
|
3752
|
+
# resp.test_result.test_findings[0].translation_ambiguous.difference_scenarios[0].statements #=> Array
|
3753
|
+
# resp.test_result.test_findings[0].translation_ambiguous.difference_scenarios[0].statements[0].logic #=> String
|
3754
|
+
# resp.test_result.test_findings[0].translation_ambiguous.difference_scenarios[0].statements[0].natural_language #=> String
|
3755
|
+
# resp.test_result.test_run_result #=> String, one of "PASSED", "FAILED"
|
3756
|
+
# resp.test_result.aggregated_test_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
3757
|
+
# resp.test_result.updated_at #=> Time
|
3758
|
+
#
|
3759
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestResult AWS API Documentation
|
3760
|
+
#
|
3761
|
+
# @overload get_automated_reasoning_policy_test_result(params = {})
|
3762
|
+
# @param [Hash] params ({})
|
3763
|
+
def get_automated_reasoning_policy_test_result(params = {}, options = {})
|
3764
|
+
req = build_request(:get_automated_reasoning_policy_test_result, params)
|
3765
|
+
req.send_request(options)
|
3766
|
+
end
|
3767
|
+
|
3768
|
+
# Get the properties associated with a Amazon Bedrock custom model that
|
3769
|
+
# you have created. For more information, see [Custom models][1] in the
|
3770
|
+
# [Amazon Bedrock User Guide][2].
|
3771
|
+
#
|
3772
|
+
#
|
3773
|
+
#
|
3774
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
3775
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
3776
|
+
#
|
3777
|
+
# @option params [required, String] :model_identifier
|
3778
|
+
# Name or Amazon Resource Name (ARN) of the custom model.
|
3779
|
+
#
|
3780
|
+
# @return [Types::GetCustomModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3781
|
+
#
|
3782
|
+
# * {Types::GetCustomModelResponse#model_arn #model_arn} => String
|
3783
|
+
# * {Types::GetCustomModelResponse#model_name #model_name} => String
|
3784
|
+
# * {Types::GetCustomModelResponse#job_name #job_name} => String
|
3785
|
+
# * {Types::GetCustomModelResponse#job_arn #job_arn} => String
|
3786
|
+
# * {Types::GetCustomModelResponse#base_model_arn #base_model_arn} => String
|
3787
|
+
# * {Types::GetCustomModelResponse#customization_type #customization_type} => String
|
3788
|
+
# * {Types::GetCustomModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
3789
|
+
# * {Types::GetCustomModelResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
3790
|
+
# * {Types::GetCustomModelResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
3791
|
+
# * {Types::GetCustomModelResponse#validation_data_config #validation_data_config} => Types::ValidationDataConfig
|
3792
|
+
# * {Types::GetCustomModelResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
3793
|
+
# * {Types::GetCustomModelResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
3794
|
+
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
3795
|
+
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
3796
|
+
# * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
|
3797
|
+
# * {Types::GetCustomModelResponse#model_status #model_status} => String
|
3798
|
+
# * {Types::GetCustomModelResponse#failure_message #failure_message} => String
|
3799
|
+
#
|
3800
|
+
# @example Request syntax with placeholder values
|
3801
|
+
#
|
3802
|
+
# resp = client.get_custom_model({
|
3803
|
+
# model_identifier: "ModelIdentifier", # required
|
3804
|
+
# })
|
3805
|
+
#
|
3806
|
+
# @example Response structure
|
3807
|
+
#
|
3808
|
+
# resp.model_arn #=> String
|
3809
|
+
# resp.model_name #=> String
|
3810
|
+
# resp.job_name #=> String
|
3811
|
+
# resp.job_arn #=> String
|
3812
|
+
# resp.base_model_arn #=> String
|
3813
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3814
|
+
# resp.model_kms_key_arn #=> String
|
3815
|
+
# resp.hyper_parameters #=> Hash
|
3816
|
+
# resp.hyper_parameters["String"] #=> String
|
3817
|
+
# resp.training_data_config.s3_uri #=> String
|
3818
|
+
# resp.training_data_config.invocation_logs_config.use_prompt_response #=> Boolean
|
3819
|
+
# resp.training_data_config.invocation_logs_config.invocation_log_source.s3_uri #=> String
|
3820
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.equals #=> Hash
|
3821
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.equals["RequestMetadataMapKeyString"] #=> String
|
3822
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.not_equals #=> Hash
|
3823
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.not_equals["RequestMetadataMapKeyString"] #=> String
|
3824
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all #=> Array
|
3825
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].equals #=> Hash
|
3826
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].equals["RequestMetadataMapKeyString"] #=> String
|
3827
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].not_equals #=> Hash
|
3828
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.and_all[0].not_equals["RequestMetadataMapKeyString"] #=> String
|
3829
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all #=> Array
|
3830
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].equals #=> Hash
|
3831
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].equals["RequestMetadataMapKeyString"] #=> String
|
3832
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].not_equals #=> Hash
|
3833
|
+
# resp.training_data_config.invocation_logs_config.request_metadata_filters.or_all[0].not_equals["RequestMetadataMapKeyString"] #=> String
|
3834
|
+
# resp.validation_data_config.validators #=> Array
|
3835
|
+
# resp.validation_data_config.validators[0].s3_uri #=> String
|
3836
|
+
# resp.output_data_config.s3_uri #=> String
|
3837
|
+
# resp.training_metrics.training_loss #=> Float
|
3838
|
+
# resp.validation_metrics #=> Array
|
3839
|
+
# resp.validation_metrics[0].validation_loss #=> Float
|
3840
|
+
# resp.creation_time #=> Time
|
3841
|
+
# resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
|
3842
|
+
# resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
|
3843
|
+
# resp.model_status #=> String, one of "Active", "Creating", "Failed"
|
3844
|
+
# resp.failure_message #=> String
|
3845
|
+
#
|
3846
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
3847
|
+
#
|
3848
|
+
# @overload get_custom_model(params = {})
|
3849
|
+
# @param [Hash] params ({})
|
3850
|
+
def get_custom_model(params = {}, options = {})
|
3851
|
+
req = build_request(:get_custom_model, params)
|
3852
|
+
req.send_request(options)
|
3853
|
+
end
|
3854
|
+
|
3855
|
+
# Retrieves information about a custom model deployment, including its
|
3856
|
+
# status, configuration, and metadata. Use this operation to monitor the
|
3857
|
+
# deployment status and retrieve details needed for inference requests.
|
3858
|
+
#
|
3859
|
+
# The following actions are related to the `GetCustomModelDeployment`
|
3860
|
+
# operation:
|
2832
3861
|
#
|
2833
3862
|
# * [CreateCustomModelDeployment][1]
|
2834
3863
|
#
|
@@ -3170,6 +4199,7 @@ module Aws::Bedrock
|
|
3170
4199
|
# * {Types::GetGuardrailResponse#word_policy #word_policy} => Types::GuardrailWordPolicy
|
3171
4200
|
# * {Types::GetGuardrailResponse#sensitive_information_policy #sensitive_information_policy} => Types::GuardrailSensitiveInformationPolicy
|
3172
4201
|
# * {Types::GetGuardrailResponse#contextual_grounding_policy #contextual_grounding_policy} => Types::GuardrailContextualGroundingPolicy
|
4202
|
+
# * {Types::GetGuardrailResponse#automated_reasoning_policy #automated_reasoning_policy} => Types::GuardrailAutomatedReasoningPolicy
|
3173
4203
|
# * {Types::GetGuardrailResponse#cross_region_details #cross_region_details} => Types::GuardrailCrossRegionDetails
|
3174
4204
|
# * {Types::GetGuardrailResponse#created_at #created_at} => Time
|
3175
4205
|
# * {Types::GetGuardrailResponse#updated_at #updated_at} => Time
|
@@ -3251,6 +4281,9 @@ module Aws::Bedrock
|
|
3251
4281
|
# resp.contextual_grounding_policy.filters[0].threshold #=> Float
|
3252
4282
|
# resp.contextual_grounding_policy.filters[0].action #=> String, one of "BLOCK", "NONE"
|
3253
4283
|
# resp.contextual_grounding_policy.filters[0].enabled #=> Boolean
|
4284
|
+
# resp.automated_reasoning_policy.policies #=> Array
|
4285
|
+
# resp.automated_reasoning_policy.policies[0] #=> String
|
4286
|
+
# resp.automated_reasoning_policy.confidence_threshold #=> Float
|
3254
4287
|
# resp.cross_region_details.guardrail_profile_id #=> String
|
3255
4288
|
# resp.cross_region_details.guardrail_profile_arn #=> String
|
3256
4289
|
# resp.created_at #=> Time
|
@@ -3816,51 +4849,373 @@ module Aws::Bedrock
|
|
3816
4849
|
#
|
3817
4850
|
# @example Request syntax with placeholder values
|
3818
4851
|
#
|
3819
|
-
# resp = client.get_provisioned_model_throughput({
|
3820
|
-
# provisioned_model_id: "ProvisionedModelId", # required
|
4852
|
+
# resp = client.get_provisioned_model_throughput({
|
4853
|
+
# provisioned_model_id: "ProvisionedModelId", # required
|
4854
|
+
# })
|
4855
|
+
#
|
4856
|
+
# @example Response structure
|
4857
|
+
#
|
4858
|
+
# resp.model_units #=> Integer
|
4859
|
+
# resp.desired_model_units #=> Integer
|
4860
|
+
# resp.provisioned_model_name #=> String
|
4861
|
+
# resp.provisioned_model_arn #=> String
|
4862
|
+
# resp.model_arn #=> String
|
4863
|
+
# resp.desired_model_arn #=> String
|
4864
|
+
# resp.foundation_model_arn #=> String
|
4865
|
+
# resp.status #=> String, one of "Creating", "InService", "Updating", "Failed"
|
4866
|
+
# resp.creation_time #=> Time
|
4867
|
+
# resp.last_modified_time #=> Time
|
4868
|
+
# resp.failure_message #=> String
|
4869
|
+
# resp.commitment_duration #=> String, one of "OneMonth", "SixMonths"
|
4870
|
+
# resp.commitment_expiration_time #=> Time
|
4871
|
+
#
|
4872
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughput AWS API Documentation
|
4873
|
+
#
|
4874
|
+
# @overload get_provisioned_model_throughput(params = {})
|
4875
|
+
# @param [Hash] params ({})
|
4876
|
+
def get_provisioned_model_throughput(params = {}, options = {})
|
4877
|
+
req = build_request(:get_provisioned_model_throughput, params)
|
4878
|
+
req.send_request(options)
|
4879
|
+
end
|
4880
|
+
|
4881
|
+
# Get usecase for model access.
|
4882
|
+
#
|
4883
|
+
# @return [Types::GetUseCaseForModelAccessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4884
|
+
#
|
4885
|
+
# * {Types::GetUseCaseForModelAccessResponse#form_data #form_data} => String
|
4886
|
+
#
|
4887
|
+
# @example Response structure
|
4888
|
+
#
|
4889
|
+
# resp.form_data #=> String
|
4890
|
+
#
|
4891
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetUseCaseForModelAccess AWS API Documentation
|
4892
|
+
#
|
4893
|
+
# @overload get_use_case_for_model_access(params = {})
|
4894
|
+
# @param [Hash] params ({})
|
4895
|
+
def get_use_case_for_model_access(params = {}, options = {})
|
4896
|
+
req = build_request(:get_use_case_for_model_access, params)
|
4897
|
+
req.send_request(options)
|
4898
|
+
end
|
4899
|
+
|
4900
|
+
# Lists all Automated Reasoning policies in your account, with optional
|
4901
|
+
# filtering by policy ARN. This helps you manage and discover existing
|
4902
|
+
# policies.
|
4903
|
+
#
|
4904
|
+
# @option params [String] :policy_arn
|
4905
|
+
# Optional filter to list only the policy versions with the specified
|
4906
|
+
# Amazon Resource Name (ARN). If not provided, the DRAFT versions for
|
4907
|
+
# all policies are listed.
|
4908
|
+
#
|
4909
|
+
# @option params [String] :next_token
|
4910
|
+
# The pagination token from a previous request to retrieve the next page
|
4911
|
+
# of results.
|
4912
|
+
#
|
4913
|
+
# @option params [Integer] :max_results
|
4914
|
+
# The maximum number of policies to return in a single call.
|
4915
|
+
#
|
4916
|
+
# @return [Types::ListAutomatedReasoningPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4917
|
+
#
|
4918
|
+
# * {Types::ListAutomatedReasoningPoliciesResponse#automated_reasoning_policy_summaries #automated_reasoning_policy_summaries} => Array<Types::AutomatedReasoningPolicySummary>
|
4919
|
+
# * {Types::ListAutomatedReasoningPoliciesResponse#next_token #next_token} => String
|
4920
|
+
#
|
4921
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4922
|
+
#
|
4923
|
+
# @example Request syntax with placeholder values
|
4924
|
+
#
|
4925
|
+
# resp = client.list_automated_reasoning_policies({
|
4926
|
+
# policy_arn: "AutomatedReasoningPolicyArn",
|
4927
|
+
# next_token: "PaginationToken",
|
4928
|
+
# max_results: 1,
|
4929
|
+
# })
|
4930
|
+
#
|
4931
|
+
# @example Response structure
|
4932
|
+
#
|
4933
|
+
# resp.automated_reasoning_policy_summaries #=> Array
|
4934
|
+
# resp.automated_reasoning_policy_summaries[0].policy_arn #=> String
|
4935
|
+
# resp.automated_reasoning_policy_summaries[0].name #=> String
|
4936
|
+
# resp.automated_reasoning_policy_summaries[0].description #=> String
|
4937
|
+
# resp.automated_reasoning_policy_summaries[0].version #=> String
|
4938
|
+
# resp.automated_reasoning_policy_summaries[0].policy_id #=> String
|
4939
|
+
# resp.automated_reasoning_policy_summaries[0].created_at #=> Time
|
4940
|
+
# resp.automated_reasoning_policy_summaries[0].updated_at #=> Time
|
4941
|
+
# resp.next_token #=> String
|
4942
|
+
#
|
4943
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicies AWS API Documentation
|
4944
|
+
#
|
4945
|
+
# @overload list_automated_reasoning_policies(params = {})
|
4946
|
+
# @param [Hash] params ({})
|
4947
|
+
def list_automated_reasoning_policies(params = {}, options = {})
|
4948
|
+
req = build_request(:list_automated_reasoning_policies, params)
|
4949
|
+
req.send_request(options)
|
4950
|
+
end
|
4951
|
+
|
4952
|
+
# Lists all build workflows for an Automated Reasoning policy, showing
|
4953
|
+
# the history of policy creation and modification attempts.
|
4954
|
+
#
|
4955
|
+
# @option params [required, String] :policy_arn
|
4956
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
4957
|
+
# build workflows you want to list.
|
4958
|
+
#
|
4959
|
+
# @option params [String] :next_token
|
4960
|
+
# A pagination token from a previous request to continue listing build
|
4961
|
+
# workflows from where the previous request left off.
|
4962
|
+
#
|
4963
|
+
# @option params [Integer] :max_results
|
4964
|
+
# The maximum number of build workflows to return in a single response.
|
4965
|
+
# Valid range is 1-100.
|
4966
|
+
#
|
4967
|
+
# @return [Types::ListAutomatedReasoningPolicyBuildWorkflowsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4968
|
+
#
|
4969
|
+
# * {Types::ListAutomatedReasoningPolicyBuildWorkflowsResponse#automated_reasoning_policy_build_workflow_summaries #automated_reasoning_policy_build_workflow_summaries} => Array<Types::AutomatedReasoningPolicyBuildWorkflowSummary>
|
4970
|
+
# * {Types::ListAutomatedReasoningPolicyBuildWorkflowsResponse#next_token #next_token} => String
|
4971
|
+
#
|
4972
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4973
|
+
#
|
4974
|
+
# @example Request syntax with placeholder values
|
4975
|
+
#
|
4976
|
+
# resp = client.list_automated_reasoning_policy_build_workflows({
|
4977
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
4978
|
+
# next_token: "PaginationToken",
|
4979
|
+
# max_results: 1,
|
4980
|
+
# })
|
4981
|
+
#
|
4982
|
+
# @example Response structure
|
4983
|
+
#
|
4984
|
+
# resp.automated_reasoning_policy_build_workflow_summaries #=> Array
|
4985
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].policy_arn #=> String
|
4986
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_id #=> String
|
4987
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
4988
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY"
|
4989
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].created_at #=> Time
|
4990
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].updated_at #=> Time
|
4991
|
+
# resp.next_token #=> String
|
4992
|
+
#
|
4993
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyBuildWorkflows AWS API Documentation
|
4994
|
+
#
|
4995
|
+
# @overload list_automated_reasoning_policy_build_workflows(params = {})
|
4996
|
+
# @param [Hash] params ({})
|
4997
|
+
def list_automated_reasoning_policy_build_workflows(params = {}, options = {})
|
4998
|
+
req = build_request(:list_automated_reasoning_policy_build_workflows, params)
|
4999
|
+
req.send_request(options)
|
5000
|
+
end
|
5001
|
+
|
5002
|
+
# Lists tests for an Automated Reasoning policy. We recommend using
|
5003
|
+
# pagination to ensure that the operation returns quickly and
|
5004
|
+
# successfully.
|
5005
|
+
#
|
5006
|
+
# @option params [required, String] :policy_arn
|
5007
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy for
|
5008
|
+
# which to list tests.
|
5009
|
+
#
|
5010
|
+
# @option params [String] :next_token
|
5011
|
+
# The pagination token from a previous request to retrieve the next page
|
5012
|
+
# of results.
|
5013
|
+
#
|
5014
|
+
# @option params [Integer] :max_results
|
5015
|
+
# The maximum number of tests to return in a single call.
|
5016
|
+
#
|
5017
|
+
# @return [Types::ListAutomatedReasoningPolicyTestCasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5018
|
+
#
|
5019
|
+
# * {Types::ListAutomatedReasoningPolicyTestCasesResponse#test_cases #test_cases} => Array<Types::AutomatedReasoningPolicyTestCase>
|
5020
|
+
# * {Types::ListAutomatedReasoningPolicyTestCasesResponse#next_token #next_token} => String
|
5021
|
+
#
|
5022
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5023
|
+
#
|
5024
|
+
# @example Request syntax with placeholder values
|
5025
|
+
#
|
5026
|
+
# resp = client.list_automated_reasoning_policy_test_cases({
|
5027
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
5028
|
+
# next_token: "PaginationToken",
|
5029
|
+
# max_results: 1,
|
3821
5030
|
# })
|
3822
5031
|
#
|
3823
5032
|
# @example Response structure
|
3824
5033
|
#
|
3825
|
-
# resp.
|
3826
|
-
# resp.
|
3827
|
-
# resp.
|
3828
|
-
# resp.
|
3829
|
-
# resp.
|
3830
|
-
# resp.
|
3831
|
-
# resp.
|
3832
|
-
# resp.
|
3833
|
-
# resp.
|
3834
|
-
# resp.last_modified_time #=> Time
|
3835
|
-
# resp.failure_message #=> String
|
3836
|
-
# resp.commitment_duration #=> String, one of "OneMonth", "SixMonths"
|
3837
|
-
# resp.commitment_expiration_time #=> Time
|
5034
|
+
# resp.test_cases #=> Array
|
5035
|
+
# resp.test_cases[0].test_case_id #=> String
|
5036
|
+
# resp.test_cases[0].guard_content #=> String
|
5037
|
+
# resp.test_cases[0].query_content #=> String
|
5038
|
+
# resp.test_cases[0].expected_aggregated_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
5039
|
+
# resp.test_cases[0].created_at #=> Time
|
5040
|
+
# resp.test_cases[0].updated_at #=> Time
|
5041
|
+
# resp.test_cases[0].confidence_threshold #=> Float
|
5042
|
+
# resp.next_token #=> String
|
3838
5043
|
#
|
3839
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/
|
5044
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestCases AWS API Documentation
|
3840
5045
|
#
|
3841
|
-
# @overload
|
5046
|
+
# @overload list_automated_reasoning_policy_test_cases(params = {})
|
3842
5047
|
# @param [Hash] params ({})
|
3843
|
-
def
|
3844
|
-
req = build_request(:
|
5048
|
+
def list_automated_reasoning_policy_test_cases(params = {}, options = {})
|
5049
|
+
req = build_request(:list_automated_reasoning_policy_test_cases, params)
|
3845
5050
|
req.send_request(options)
|
3846
5051
|
end
|
3847
5052
|
|
3848
|
-
#
|
5053
|
+
# Lists test results for an Automated Reasoning policy, showing how the
|
5054
|
+
# policy performed against various test scenarios and validation checks.
|
3849
5055
|
#
|
3850
|
-
# @
|
5056
|
+
# @option params [required, String] :policy_arn
|
5057
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
5058
|
+
# test results you want to list.
|
3851
5059
|
#
|
3852
|
-
#
|
5060
|
+
# @option params [required, String] :build_workflow_id
|
5061
|
+
# The unique identifier of the build workflow whose test results you
|
5062
|
+
# want to list.
|
5063
|
+
#
|
5064
|
+
# @option params [String] :next_token
|
5065
|
+
# A pagination token from a previous request to continue listing test
|
5066
|
+
# results from where the previous request left off.
|
5067
|
+
#
|
5068
|
+
# @option params [Integer] :max_results
|
5069
|
+
# The maximum number of test results to return in a single response.
|
5070
|
+
# Valid range is 1-100.
|
5071
|
+
#
|
5072
|
+
# @return [Types::ListAutomatedReasoningPolicyTestResultsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5073
|
+
#
|
5074
|
+
# * {Types::ListAutomatedReasoningPolicyTestResultsResponse#test_results #test_results} => Array<Types::AutomatedReasoningPolicyTestResult>
|
5075
|
+
# * {Types::ListAutomatedReasoningPolicyTestResultsResponse#next_token #next_token} => String
|
5076
|
+
#
|
5077
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5078
|
+
#
|
5079
|
+
# @example Request syntax with placeholder values
|
5080
|
+
#
|
5081
|
+
# resp = client.list_automated_reasoning_policy_test_results({
|
5082
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
5083
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
5084
|
+
# next_token: "PaginationToken",
|
5085
|
+
# max_results: 1,
|
5086
|
+
# })
|
3853
5087
|
#
|
3854
5088
|
# @example Response structure
|
3855
5089
|
#
|
3856
|
-
# resp.
|
5090
|
+
# resp.test_results #=> Array
|
5091
|
+
# resp.test_results[0].test_case.test_case_id #=> String
|
5092
|
+
# resp.test_results[0].test_case.guard_content #=> String
|
5093
|
+
# resp.test_results[0].test_case.query_content #=> String
|
5094
|
+
# resp.test_results[0].test_case.expected_aggregated_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
5095
|
+
# resp.test_results[0].test_case.created_at #=> Time
|
5096
|
+
# resp.test_results[0].test_case.updated_at #=> Time
|
5097
|
+
# resp.test_results[0].test_case.confidence_threshold #=> Float
|
5098
|
+
# resp.test_results[0].policy_arn #=> String
|
5099
|
+
# resp.test_results[0].test_run_status #=> String, one of "NOT_STARTED", "SCHEDULED", "IN_PROGRESS", "COMPLETED", "FAILED"
|
5100
|
+
# resp.test_results[0].test_findings #=> Array
|
5101
|
+
# resp.test_results[0].test_findings[0].valid.translation.premises #=> Array
|
5102
|
+
# resp.test_results[0].test_findings[0].valid.translation.premises[0].logic #=> String
|
5103
|
+
# resp.test_results[0].test_findings[0].valid.translation.premises[0].natural_language #=> String
|
5104
|
+
# resp.test_results[0].test_findings[0].valid.translation.claims #=> Array
|
5105
|
+
# resp.test_results[0].test_findings[0].valid.translation.claims[0].logic #=> String
|
5106
|
+
# resp.test_results[0].test_findings[0].valid.translation.claims[0].natural_language #=> String
|
5107
|
+
# resp.test_results[0].test_findings[0].valid.translation.untranslated_premises #=> Array
|
5108
|
+
# resp.test_results[0].test_findings[0].valid.translation.untranslated_premises[0].text #=> String
|
5109
|
+
# resp.test_results[0].test_findings[0].valid.translation.untranslated_claims #=> Array
|
5110
|
+
# resp.test_results[0].test_findings[0].valid.translation.untranslated_claims[0].text #=> String
|
5111
|
+
# resp.test_results[0].test_findings[0].valid.translation.confidence #=> Float
|
5112
|
+
# resp.test_results[0].test_findings[0].valid.claims_true_scenario.statements #=> Array
|
5113
|
+
# resp.test_results[0].test_findings[0].valid.claims_true_scenario.statements[0].logic #=> String
|
5114
|
+
# resp.test_results[0].test_findings[0].valid.claims_true_scenario.statements[0].natural_language #=> String
|
5115
|
+
# resp.test_results[0].test_findings[0].valid.supporting_rules #=> Array
|
5116
|
+
# resp.test_results[0].test_findings[0].valid.supporting_rules[0].id #=> String
|
5117
|
+
# resp.test_results[0].test_findings[0].valid.supporting_rules[0].policy_version_arn #=> String
|
5118
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
5119
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.premises #=> Array
|
5120
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.premises[0].logic #=> String
|
5121
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.premises[0].natural_language #=> String
|
5122
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.claims #=> Array
|
5123
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.claims[0].logic #=> String
|
5124
|
+
# resp.test_results[0].test_findings[0].valid.logic_warning.claims[0].natural_language #=> String
|
5125
|
+
# resp.test_results[0].test_findings[0].invalid.translation.premises #=> Array
|
5126
|
+
# resp.test_results[0].test_findings[0].invalid.translation.premises[0].logic #=> String
|
5127
|
+
# resp.test_results[0].test_findings[0].invalid.translation.premises[0].natural_language #=> String
|
5128
|
+
# resp.test_results[0].test_findings[0].invalid.translation.claims #=> Array
|
5129
|
+
# resp.test_results[0].test_findings[0].invalid.translation.claims[0].logic #=> String
|
5130
|
+
# resp.test_results[0].test_findings[0].invalid.translation.claims[0].natural_language #=> String
|
5131
|
+
# resp.test_results[0].test_findings[0].invalid.translation.untranslated_premises #=> Array
|
5132
|
+
# resp.test_results[0].test_findings[0].invalid.translation.untranslated_premises[0].text #=> String
|
5133
|
+
# resp.test_results[0].test_findings[0].invalid.translation.untranslated_claims #=> Array
|
5134
|
+
# resp.test_results[0].test_findings[0].invalid.translation.untranslated_claims[0].text #=> String
|
5135
|
+
# resp.test_results[0].test_findings[0].invalid.translation.confidence #=> Float
|
5136
|
+
# resp.test_results[0].test_findings[0].invalid.contradicting_rules #=> Array
|
5137
|
+
# resp.test_results[0].test_findings[0].invalid.contradicting_rules[0].id #=> String
|
5138
|
+
# resp.test_results[0].test_findings[0].invalid.contradicting_rules[0].policy_version_arn #=> String
|
5139
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
5140
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.premises #=> Array
|
5141
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.premises[0].logic #=> String
|
5142
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.premises[0].natural_language #=> String
|
5143
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.claims #=> Array
|
5144
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.claims[0].logic #=> String
|
5145
|
+
# resp.test_results[0].test_findings[0].invalid.logic_warning.claims[0].natural_language #=> String
|
5146
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.premises #=> Array
|
5147
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.premises[0].logic #=> String
|
5148
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.premises[0].natural_language #=> String
|
5149
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.claims #=> Array
|
5150
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.claims[0].logic #=> String
|
5151
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.claims[0].natural_language #=> String
|
5152
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.untranslated_premises #=> Array
|
5153
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.untranslated_premises[0].text #=> String
|
5154
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.untranslated_claims #=> Array
|
5155
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.untranslated_claims[0].text #=> String
|
5156
|
+
# resp.test_results[0].test_findings[0].satisfiable.translation.confidence #=> Float
|
5157
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_true_scenario.statements #=> Array
|
5158
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_true_scenario.statements[0].logic #=> String
|
5159
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_true_scenario.statements[0].natural_language #=> String
|
5160
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_false_scenario.statements #=> Array
|
5161
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_false_scenario.statements[0].logic #=> String
|
5162
|
+
# resp.test_results[0].test_findings[0].satisfiable.claims_false_scenario.statements[0].natural_language #=> String
|
5163
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
5164
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.premises #=> Array
|
5165
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.premises[0].logic #=> String
|
5166
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.premises[0].natural_language #=> String
|
5167
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.claims #=> Array
|
5168
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.claims[0].logic #=> String
|
5169
|
+
# resp.test_results[0].test_findings[0].satisfiable.logic_warning.claims[0].natural_language #=> String
|
5170
|
+
# resp.test_results[0].test_findings[0].impossible.translation.premises #=> Array
|
5171
|
+
# resp.test_results[0].test_findings[0].impossible.translation.premises[0].logic #=> String
|
5172
|
+
# resp.test_results[0].test_findings[0].impossible.translation.premises[0].natural_language #=> String
|
5173
|
+
# resp.test_results[0].test_findings[0].impossible.translation.claims #=> Array
|
5174
|
+
# resp.test_results[0].test_findings[0].impossible.translation.claims[0].logic #=> String
|
5175
|
+
# resp.test_results[0].test_findings[0].impossible.translation.claims[0].natural_language #=> String
|
5176
|
+
# resp.test_results[0].test_findings[0].impossible.translation.untranslated_premises #=> Array
|
5177
|
+
# resp.test_results[0].test_findings[0].impossible.translation.untranslated_premises[0].text #=> String
|
5178
|
+
# resp.test_results[0].test_findings[0].impossible.translation.untranslated_claims #=> Array
|
5179
|
+
# resp.test_results[0].test_findings[0].impossible.translation.untranslated_claims[0].text #=> String
|
5180
|
+
# resp.test_results[0].test_findings[0].impossible.translation.confidence #=> Float
|
5181
|
+
# resp.test_results[0].test_findings[0].impossible.contradicting_rules #=> Array
|
5182
|
+
# resp.test_results[0].test_findings[0].impossible.contradicting_rules[0].id #=> String
|
5183
|
+
# resp.test_results[0].test_findings[0].impossible.contradicting_rules[0].policy_version_arn #=> String
|
5184
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.type #=> String, one of "ALWAYS_TRUE", "ALWAYS_FALSE"
|
5185
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.premises #=> Array
|
5186
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.premises[0].logic #=> String
|
5187
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.premises[0].natural_language #=> String
|
5188
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.claims #=> Array
|
5189
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.claims[0].logic #=> String
|
5190
|
+
# resp.test_results[0].test_findings[0].impossible.logic_warning.claims[0].natural_language #=> String
|
5191
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options #=> Array
|
5192
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations #=> Array
|
5193
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].premises #=> Array
|
5194
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].premises[0].logic #=> String
|
5195
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].premises[0].natural_language #=> String
|
5196
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].claims #=> Array
|
5197
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].claims[0].logic #=> String
|
5198
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].claims[0].natural_language #=> String
|
5199
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_premises #=> Array
|
5200
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_premises[0].text #=> String
|
5201
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_claims #=> Array
|
5202
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].untranslated_claims[0].text #=> String
|
5203
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.options[0].translations[0].confidence #=> Float
|
5204
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.difference_scenarios #=> Array
|
5205
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.difference_scenarios[0].statements #=> Array
|
5206
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.difference_scenarios[0].statements[0].logic #=> String
|
5207
|
+
# resp.test_results[0].test_findings[0].translation_ambiguous.difference_scenarios[0].statements[0].natural_language #=> String
|
5208
|
+
# resp.test_results[0].test_run_result #=> String, one of "PASSED", "FAILED"
|
5209
|
+
# resp.test_results[0].aggregated_test_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
5210
|
+
# resp.test_results[0].updated_at #=> Time
|
5211
|
+
# resp.next_token #=> String
|
3857
5212
|
#
|
3858
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/
|
5213
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestResults AWS API Documentation
|
3859
5214
|
#
|
3860
|
-
# @overload
|
5215
|
+
# @overload list_automated_reasoning_policy_test_results(params = {})
|
3861
5216
|
# @param [Hash] params ({})
|
3862
|
-
def
|
3863
|
-
req = build_request(:
|
5217
|
+
def list_automated_reasoning_policy_test_results(params = {}, options = {})
|
5218
|
+
req = build_request(:list_automated_reasoning_policy_test_results, params)
|
3864
5219
|
req.send_request(options)
|
3865
5220
|
end
|
3866
5221
|
|
@@ -5256,6 +6611,228 @@ module Aws::Bedrock
|
|
5256
6611
|
req.send_request(options)
|
5257
6612
|
end
|
5258
6613
|
|
6614
|
+
# Starts a new build workflow for an Automated Reasoning policy. This
|
6615
|
+
# initiates the process of analyzing source documents and generating
|
6616
|
+
# policy rules, variables, and types.
|
6617
|
+
#
|
6618
|
+
# @option params [required, String] :policy_arn
|
6619
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy for
|
6620
|
+
# which to start the build workflow.
|
6621
|
+
#
|
6622
|
+
# @option params [required, String] :build_workflow_type
|
6623
|
+
# The type of build workflow to start (e.g., DOCUMENT\_INGESTION for
|
6624
|
+
# processing new documents, POLICY\_REPAIR for fixing existing
|
6625
|
+
# policies).
|
6626
|
+
#
|
6627
|
+
# @option params [String] :client_request_token
|
6628
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
6629
|
+
# completes no more than once. If this token matches a previous request,
|
6630
|
+
# Amazon Bedrock ignores the request but doesn't return an error.
|
6631
|
+
#
|
6632
|
+
# **A suitable default value is auto-generated.** You should normally
|
6633
|
+
# not need to pass this option.**
|
6634
|
+
#
|
6635
|
+
# @option params [required, Types::AutomatedReasoningPolicyBuildWorkflowSource] :source_content
|
6636
|
+
# The source content for the build workflow, such as documents to
|
6637
|
+
# analyze or repair instructions for existing policies.
|
6638
|
+
#
|
6639
|
+
# @return [Types::StartAutomatedReasoningPolicyBuildWorkflowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6640
|
+
#
|
6641
|
+
# * {Types::StartAutomatedReasoningPolicyBuildWorkflowResponse#policy_arn #policy_arn} => String
|
6642
|
+
# * {Types::StartAutomatedReasoningPolicyBuildWorkflowResponse#build_workflow_id #build_workflow_id} => String
|
6643
|
+
#
|
6644
|
+
# @example Request syntax with placeholder values
|
6645
|
+
#
|
6646
|
+
# resp = client.start_automated_reasoning_policy_build_workflow({
|
6647
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
6648
|
+
# build_workflow_type: "INGEST_CONTENT", # required, accepts INGEST_CONTENT, REFINE_POLICY, IMPORT_POLICY
|
6649
|
+
# client_request_token: "IdempotencyToken",
|
6650
|
+
# source_content: { # required
|
6651
|
+
# policy_definition: {
|
6652
|
+
# version: "AutomatedReasoningPolicyFormatVersion",
|
6653
|
+
# types: [
|
6654
|
+
# {
|
6655
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6656
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription",
|
6657
|
+
# values: [ # required
|
6658
|
+
# {
|
6659
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
6660
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
6661
|
+
# },
|
6662
|
+
# ],
|
6663
|
+
# },
|
6664
|
+
# ],
|
6665
|
+
# rules: [
|
6666
|
+
# {
|
6667
|
+
# id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
6668
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
6669
|
+
# alternate_expression: "AutomatedReasoningPolicyDefinitionRuleAlternateExpression",
|
6670
|
+
# },
|
6671
|
+
# ],
|
6672
|
+
# variables: [
|
6673
|
+
# {
|
6674
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
6675
|
+
# type: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6676
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription", # required
|
6677
|
+
# },
|
6678
|
+
# ],
|
6679
|
+
# },
|
6680
|
+
# workflow_content: {
|
6681
|
+
# documents: [
|
6682
|
+
# {
|
6683
|
+
# document: "data", # required
|
6684
|
+
# document_content_type: "pdf", # required, accepts pdf, txt
|
6685
|
+
# document_name: "AutomatedReasoningPolicyBuildDocumentName", # required
|
6686
|
+
# document_description: "AutomatedReasoningPolicyBuildDocumentDescription",
|
6687
|
+
# },
|
6688
|
+
# ],
|
6689
|
+
# policy_repair_assets: {
|
6690
|
+
# annotations: [ # required
|
6691
|
+
# {
|
6692
|
+
# add_type: {
|
6693
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6694
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription", # required
|
6695
|
+
# values: [ # required
|
6696
|
+
# {
|
6697
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
6698
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
6699
|
+
# },
|
6700
|
+
# ],
|
6701
|
+
# },
|
6702
|
+
# update_type: {
|
6703
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6704
|
+
# new_name: "AutomatedReasoningPolicyDefinitionTypeName",
|
6705
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription",
|
6706
|
+
# values: [ # required
|
6707
|
+
# {
|
6708
|
+
# add_type_value: {
|
6709
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
6710
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
6711
|
+
# },
|
6712
|
+
# update_type_value: {
|
6713
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
6714
|
+
# new_value: "AutomatedReasoningPolicyDefinitionTypeValueName",
|
6715
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
6716
|
+
# },
|
6717
|
+
# delete_type_value: {
|
6718
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
6719
|
+
# },
|
6720
|
+
# },
|
6721
|
+
# ],
|
6722
|
+
# },
|
6723
|
+
# delete_type: {
|
6724
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6725
|
+
# },
|
6726
|
+
# add_variable: {
|
6727
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
6728
|
+
# type: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
6729
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription", # required
|
6730
|
+
# },
|
6731
|
+
# update_variable: {
|
6732
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
6733
|
+
# new_name: "AutomatedReasoningPolicyDefinitionVariableName",
|
6734
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription",
|
6735
|
+
# },
|
6736
|
+
# delete_variable: {
|
6737
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
6738
|
+
# },
|
6739
|
+
# add_rule: {
|
6740
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
6741
|
+
# },
|
6742
|
+
# update_rule: {
|
6743
|
+
# rule_id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
6744
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
6745
|
+
# },
|
6746
|
+
# delete_rule: {
|
6747
|
+
# rule_id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
6748
|
+
# },
|
6749
|
+
# add_rule_from_natural_language: {
|
6750
|
+
# natural_language: "AutomatedReasoningPolicyAnnotationRuleNaturalLanguage", # required
|
6751
|
+
# },
|
6752
|
+
# update_from_rules_feedback: {
|
6753
|
+
# rule_ids: ["AutomatedReasoningPolicyDefinitionRuleId"],
|
6754
|
+
# feedback: "AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage", # required
|
6755
|
+
# },
|
6756
|
+
# update_from_scenario_feedback: {
|
6757
|
+
# rule_ids: ["AutomatedReasoningPolicyDefinitionRuleId"],
|
6758
|
+
# scenario_expression: "AutomatedReasoningPolicyScenarioExpression", # required
|
6759
|
+
# feedback: "AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage",
|
6760
|
+
# },
|
6761
|
+
# ingest_content: {
|
6762
|
+
# content: "AutomatedReasoningPolicyAnnotationIngestContent", # required
|
6763
|
+
# },
|
6764
|
+
# },
|
6765
|
+
# ],
|
6766
|
+
# },
|
6767
|
+
# },
|
6768
|
+
# },
|
6769
|
+
# })
|
6770
|
+
#
|
6771
|
+
# @example Response structure
|
6772
|
+
#
|
6773
|
+
# resp.policy_arn #=> String
|
6774
|
+
# resp.build_workflow_id #=> String
|
6775
|
+
#
|
6776
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyBuildWorkflow AWS API Documentation
|
6777
|
+
#
|
6778
|
+
# @overload start_automated_reasoning_policy_build_workflow(params = {})
|
6779
|
+
# @param [Hash] params ({})
|
6780
|
+
def start_automated_reasoning_policy_build_workflow(params = {}, options = {})
|
6781
|
+
req = build_request(:start_automated_reasoning_policy_build_workflow, params)
|
6782
|
+
req.send_request(options)
|
6783
|
+
end
|
6784
|
+
|
6785
|
+
# Initiates a test workflow to validate Automated Reasoning policy
|
6786
|
+
# tests. The workflow executes the specified tests against the policy
|
6787
|
+
# and generates validation results.
|
6788
|
+
#
|
6789
|
+
# @option params [required, String] :policy_arn
|
6790
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy to
|
6791
|
+
# test.
|
6792
|
+
#
|
6793
|
+
# @option params [required, String] :build_workflow_id
|
6794
|
+
# The build workflow identifier. The build workflow must show a
|
6795
|
+
# `COMPLETED` status before running tests.
|
6796
|
+
#
|
6797
|
+
# @option params [Array<String>] :test_case_ids
|
6798
|
+
# The list of test identifiers to run. If not provided, all tests for
|
6799
|
+
# the policy are run.
|
6800
|
+
#
|
6801
|
+
# @option params [String] :client_request_token
|
6802
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
6803
|
+
# completes no more than one time. If this token matches a previous
|
6804
|
+
# request, Amazon Bedrock ignores the request but doesn't return an
|
6805
|
+
# error.
|
6806
|
+
#
|
6807
|
+
# **A suitable default value is auto-generated.** You should normally
|
6808
|
+
# not need to pass this option.**
|
6809
|
+
#
|
6810
|
+
# @return [Types::StartAutomatedReasoningPolicyTestWorkflowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6811
|
+
#
|
6812
|
+
# * {Types::StartAutomatedReasoningPolicyTestWorkflowResponse#policy_arn #policy_arn} => String
|
6813
|
+
#
|
6814
|
+
# @example Request syntax with placeholder values
|
6815
|
+
#
|
6816
|
+
# resp = client.start_automated_reasoning_policy_test_workflow({
|
6817
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
6818
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
6819
|
+
# test_case_ids: ["AutomatedReasoningPolicyTestCaseId"],
|
6820
|
+
# client_request_token: "IdempotencyToken",
|
6821
|
+
# })
|
6822
|
+
#
|
6823
|
+
# @example Response structure
|
6824
|
+
#
|
6825
|
+
# resp.policy_arn #=> String
|
6826
|
+
#
|
6827
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyTestWorkflow AWS API Documentation
|
6828
|
+
#
|
6829
|
+
# @overload start_automated_reasoning_policy_test_workflow(params = {})
|
6830
|
+
# @param [Hash] params ({})
|
6831
|
+
def start_automated_reasoning_policy_test_workflow(params = {}, options = {})
|
6832
|
+
req = build_request(:start_automated_reasoning_policy_test_workflow, params)
|
6833
|
+
req.send_request(options)
|
6834
|
+
end
|
6835
|
+
|
5259
6836
|
# Stops an evaluation job that is current being created or running.
|
5260
6837
|
#
|
5261
6838
|
# @option params [required, String] :job_identifier
|
@@ -5401,6 +6978,285 @@ module Aws::Bedrock
|
|
5401
6978
|
req.send_request(options)
|
5402
6979
|
end
|
5403
6980
|
|
6981
|
+
# Updates an existing Automated Reasoning policy with new rules,
|
6982
|
+
# variables, or configuration. This creates a new version of the policy
|
6983
|
+
# while preserving the previous version.
|
6984
|
+
#
|
6985
|
+
# @option params [required, String] :policy_arn
|
6986
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy to
|
6987
|
+
# update. This must be the ARN of a draft policy.
|
6988
|
+
#
|
6989
|
+
# @option params [required, Types::AutomatedReasoningPolicyDefinition] :policy_definition
|
6990
|
+
# The updated policy definition containing the formal logic rules,
|
6991
|
+
# variables, and types.
|
6992
|
+
#
|
6993
|
+
# @option params [String] :name
|
6994
|
+
# The updated name for the Automated Reasoning policy.
|
6995
|
+
#
|
6996
|
+
# @option params [String] :description
|
6997
|
+
# The updated description for the Automated Reasoning policy.
|
6998
|
+
#
|
6999
|
+
# @return [Types::UpdateAutomatedReasoningPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7000
|
+
#
|
7001
|
+
# * {Types::UpdateAutomatedReasoningPolicyResponse#policy_arn #policy_arn} => String
|
7002
|
+
# * {Types::UpdateAutomatedReasoningPolicyResponse#name #name} => String
|
7003
|
+
# * {Types::UpdateAutomatedReasoningPolicyResponse#definition_hash #definition_hash} => String
|
7004
|
+
# * {Types::UpdateAutomatedReasoningPolicyResponse#updated_at #updated_at} => Time
|
7005
|
+
#
|
7006
|
+
# @example Request syntax with placeholder values
|
7007
|
+
#
|
7008
|
+
# resp = client.update_automated_reasoning_policy({
|
7009
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
7010
|
+
# policy_definition: { # required
|
7011
|
+
# version: "AutomatedReasoningPolicyFormatVersion",
|
7012
|
+
# types: [
|
7013
|
+
# {
|
7014
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7015
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription",
|
7016
|
+
# values: [ # required
|
7017
|
+
# {
|
7018
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
7019
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
7020
|
+
# },
|
7021
|
+
# ],
|
7022
|
+
# },
|
7023
|
+
# ],
|
7024
|
+
# rules: [
|
7025
|
+
# {
|
7026
|
+
# id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
7027
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
7028
|
+
# alternate_expression: "AutomatedReasoningPolicyDefinitionRuleAlternateExpression",
|
7029
|
+
# },
|
7030
|
+
# ],
|
7031
|
+
# variables: [
|
7032
|
+
# {
|
7033
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
7034
|
+
# type: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7035
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription", # required
|
7036
|
+
# },
|
7037
|
+
# ],
|
7038
|
+
# },
|
7039
|
+
# name: "AutomatedReasoningPolicyName",
|
7040
|
+
# description: "AutomatedReasoningPolicyDescription",
|
7041
|
+
# })
|
7042
|
+
#
|
7043
|
+
# @example Response structure
|
7044
|
+
#
|
7045
|
+
# resp.policy_arn #=> String
|
7046
|
+
# resp.name #=> String
|
7047
|
+
# resp.definition_hash #=> String
|
7048
|
+
# resp.updated_at #=> Time
|
7049
|
+
#
|
7050
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicy AWS API Documentation
|
7051
|
+
#
|
7052
|
+
# @overload update_automated_reasoning_policy(params = {})
|
7053
|
+
# @param [Hash] params ({})
|
7054
|
+
def update_automated_reasoning_policy(params = {}, options = {})
|
7055
|
+
req = build_request(:update_automated_reasoning_policy, params)
|
7056
|
+
req.send_request(options)
|
7057
|
+
end
|
7058
|
+
|
7059
|
+
# Updates the annotations for an Automated Reasoning policy build
|
7060
|
+
# workflow. This allows you to modify extracted rules, variables, and
|
7061
|
+
# types before finalizing the policy.
|
7062
|
+
#
|
7063
|
+
# @option params [required, String] :policy_arn
|
7064
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy whose
|
7065
|
+
# annotations you want to update.
|
7066
|
+
#
|
7067
|
+
# @option params [required, String] :build_workflow_id
|
7068
|
+
# The unique identifier of the build workflow whose annotations you want
|
7069
|
+
# to update.
|
7070
|
+
#
|
7071
|
+
# @option params [required, Array<Types::AutomatedReasoningPolicyAnnotation>] :annotations
|
7072
|
+
# The updated annotations containing modified rules, variables, and
|
7073
|
+
# types for the policy.
|
7074
|
+
#
|
7075
|
+
# @option params [required, String] :last_updated_annotation_set_hash
|
7076
|
+
# The hash value of the annotation set that you're updating. This is
|
7077
|
+
# used for optimistic concurrency control to prevent conflicting
|
7078
|
+
# updates.
|
7079
|
+
#
|
7080
|
+
# @return [Types::UpdateAutomatedReasoningPolicyAnnotationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7081
|
+
#
|
7082
|
+
# * {Types::UpdateAutomatedReasoningPolicyAnnotationsResponse#policy_arn #policy_arn} => String
|
7083
|
+
# * {Types::UpdateAutomatedReasoningPolicyAnnotationsResponse#build_workflow_id #build_workflow_id} => String
|
7084
|
+
# * {Types::UpdateAutomatedReasoningPolicyAnnotationsResponse#annotation_set_hash #annotation_set_hash} => String
|
7085
|
+
# * {Types::UpdateAutomatedReasoningPolicyAnnotationsResponse#updated_at #updated_at} => Time
|
7086
|
+
#
|
7087
|
+
# @example Request syntax with placeholder values
|
7088
|
+
#
|
7089
|
+
# resp = client.update_automated_reasoning_policy_annotations({
|
7090
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
7091
|
+
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
7092
|
+
# annotations: [ # required
|
7093
|
+
# {
|
7094
|
+
# add_type: {
|
7095
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7096
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription", # required
|
7097
|
+
# values: [ # required
|
7098
|
+
# {
|
7099
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
7100
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
7101
|
+
# },
|
7102
|
+
# ],
|
7103
|
+
# },
|
7104
|
+
# update_type: {
|
7105
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7106
|
+
# new_name: "AutomatedReasoningPolicyDefinitionTypeName",
|
7107
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeDescription",
|
7108
|
+
# values: [ # required
|
7109
|
+
# {
|
7110
|
+
# add_type_value: {
|
7111
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
7112
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
7113
|
+
# },
|
7114
|
+
# update_type_value: {
|
7115
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
7116
|
+
# new_value: "AutomatedReasoningPolicyDefinitionTypeValueName",
|
7117
|
+
# description: "AutomatedReasoningPolicyDefinitionTypeValueDescription",
|
7118
|
+
# },
|
7119
|
+
# delete_type_value: {
|
7120
|
+
# value: "AutomatedReasoningPolicyDefinitionTypeValueName", # required
|
7121
|
+
# },
|
7122
|
+
# },
|
7123
|
+
# ],
|
7124
|
+
# },
|
7125
|
+
# delete_type: {
|
7126
|
+
# name: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7127
|
+
# },
|
7128
|
+
# add_variable: {
|
7129
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
7130
|
+
# type: "AutomatedReasoningPolicyDefinitionTypeName", # required
|
7131
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription", # required
|
7132
|
+
# },
|
7133
|
+
# update_variable: {
|
7134
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
7135
|
+
# new_name: "AutomatedReasoningPolicyDefinitionVariableName",
|
7136
|
+
# description: "AutomatedReasoningPolicyDefinitionVariableDescription",
|
7137
|
+
# },
|
7138
|
+
# delete_variable: {
|
7139
|
+
# name: "AutomatedReasoningPolicyDefinitionVariableName", # required
|
7140
|
+
# },
|
7141
|
+
# add_rule: {
|
7142
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
7143
|
+
# },
|
7144
|
+
# update_rule: {
|
7145
|
+
# rule_id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
7146
|
+
# expression: "AutomatedReasoningPolicyDefinitionRuleExpression", # required
|
7147
|
+
# },
|
7148
|
+
# delete_rule: {
|
7149
|
+
# rule_id: "AutomatedReasoningPolicyDefinitionRuleId", # required
|
7150
|
+
# },
|
7151
|
+
# add_rule_from_natural_language: {
|
7152
|
+
# natural_language: "AutomatedReasoningPolicyAnnotationRuleNaturalLanguage", # required
|
7153
|
+
# },
|
7154
|
+
# update_from_rules_feedback: {
|
7155
|
+
# rule_ids: ["AutomatedReasoningPolicyDefinitionRuleId"],
|
7156
|
+
# feedback: "AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage", # required
|
7157
|
+
# },
|
7158
|
+
# update_from_scenario_feedback: {
|
7159
|
+
# rule_ids: ["AutomatedReasoningPolicyDefinitionRuleId"],
|
7160
|
+
# scenario_expression: "AutomatedReasoningPolicyScenarioExpression", # required
|
7161
|
+
# feedback: "AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage",
|
7162
|
+
# },
|
7163
|
+
# ingest_content: {
|
7164
|
+
# content: "AutomatedReasoningPolicyAnnotationIngestContent", # required
|
7165
|
+
# },
|
7166
|
+
# },
|
7167
|
+
# ],
|
7168
|
+
# last_updated_annotation_set_hash: "AutomatedReasoningPolicyHash", # required
|
7169
|
+
# })
|
7170
|
+
#
|
7171
|
+
# @example Response structure
|
7172
|
+
#
|
7173
|
+
# resp.policy_arn #=> String
|
7174
|
+
# resp.build_workflow_id #=> String
|
7175
|
+
# resp.annotation_set_hash #=> String
|
7176
|
+
# resp.updated_at #=> Time
|
7177
|
+
#
|
7178
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyAnnotations AWS API Documentation
|
7179
|
+
#
|
7180
|
+
# @overload update_automated_reasoning_policy_annotations(params = {})
|
7181
|
+
# @param [Hash] params ({})
|
7182
|
+
def update_automated_reasoning_policy_annotations(params = {}, options = {})
|
7183
|
+
req = build_request(:update_automated_reasoning_policy_annotations, params)
|
7184
|
+
req.send_request(options)
|
7185
|
+
end
|
7186
|
+
|
7187
|
+
# Updates an existing Automated Reasoning policy test. You can modify
|
7188
|
+
# the content, query, expected result, and confidence threshold.
|
7189
|
+
#
|
7190
|
+
# @option params [required, String] :policy_arn
|
7191
|
+
# The Amazon Resource Name (ARN) of the Automated Reasoning policy that
|
7192
|
+
# contains the test.
|
7193
|
+
#
|
7194
|
+
# @option params [required, String] :test_case_id
|
7195
|
+
# The unique identifier of the test to update.
|
7196
|
+
#
|
7197
|
+
# @option params [required, String] :guard_content
|
7198
|
+
# The updated content to be validated by the Automated Reasoning policy.
|
7199
|
+
#
|
7200
|
+
# @option params [String] :query_content
|
7201
|
+
# The updated input query or prompt that generated the content.
|
7202
|
+
#
|
7203
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :last_updated_at
|
7204
|
+
# The timestamp when the test was last updated. This is used as a
|
7205
|
+
# concurrency token to prevent conflicting modifications.
|
7206
|
+
#
|
7207
|
+
# @option params [required, String] :expected_aggregated_findings_result
|
7208
|
+
# The updated expected result of the Automated Reasoning check.
|
7209
|
+
#
|
7210
|
+
# @option params [Float] :confidence_threshold
|
7211
|
+
# The updated minimum confidence level for logic validation. If null is
|
7212
|
+
# provided, the threshold will be removed.
|
7213
|
+
#
|
7214
|
+
# @option params [String] :kms_key_arn
|
7215
|
+
# The KMS key ARN for encrypting the test at rest. If not provided, the
|
7216
|
+
# key will not be updated. Use `DISCARD` to remove the key.
|
7217
|
+
#
|
7218
|
+
# @option params [String] :client_request_token
|
7219
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
7220
|
+
# completes no more than one time. If this token matches a previous
|
7221
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
7222
|
+
# error.
|
7223
|
+
#
|
7224
|
+
# **A suitable default value is auto-generated.** You should normally
|
7225
|
+
# not need to pass this option.**
|
7226
|
+
#
|
7227
|
+
# @return [Types::UpdateAutomatedReasoningPolicyTestCaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7228
|
+
#
|
7229
|
+
# * {Types::UpdateAutomatedReasoningPolicyTestCaseResponse#policy_arn #policy_arn} => String
|
7230
|
+
# * {Types::UpdateAutomatedReasoningPolicyTestCaseResponse#test_case_id #test_case_id} => String
|
7231
|
+
#
|
7232
|
+
# @example Request syntax with placeholder values
|
7233
|
+
#
|
7234
|
+
# resp = client.update_automated_reasoning_policy_test_case({
|
7235
|
+
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
7236
|
+
# test_case_id: "AutomatedReasoningPolicyTestCaseId", # required
|
7237
|
+
# guard_content: "AutomatedReasoningPolicyTestGuardContent", # required
|
7238
|
+
# query_content: "AutomatedReasoningPolicyTestQueryContent",
|
7239
|
+
# last_updated_at: Time.now, # required
|
7240
|
+
# expected_aggregated_findings_result: "VALID", # required, accepts VALID, INVALID, SATISFIABLE, IMPOSSIBLE, TRANSLATION_AMBIGUOUS, TOO_COMPLEX, NO_TRANSLATION
|
7241
|
+
# confidence_threshold: 1.0,
|
7242
|
+
# kms_key_arn: "KmsKeyArn",
|
7243
|
+
# client_request_token: "IdempotencyToken",
|
7244
|
+
# })
|
7245
|
+
#
|
7246
|
+
# @example Response structure
|
7247
|
+
#
|
7248
|
+
# resp.policy_arn #=> String
|
7249
|
+
# resp.test_case_id #=> String
|
7250
|
+
#
|
7251
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyTestCase AWS API Documentation
|
7252
|
+
#
|
7253
|
+
# @overload update_automated_reasoning_policy_test_case(params = {})
|
7254
|
+
# @param [Hash] params ({})
|
7255
|
+
def update_automated_reasoning_policy_test_case(params = {}, options = {})
|
7256
|
+
req = build_request(:update_automated_reasoning_policy_test_case, params)
|
7257
|
+
req.send_request(options)
|
7258
|
+
end
|
7259
|
+
|
5404
7260
|
# Updates a guardrail with the values you specify.
|
5405
7261
|
#
|
5406
7262
|
# * Specify a `name` and optional `description`.
|
@@ -5466,6 +7322,10 @@ module Aws::Bedrock
|
|
5466
7322
|
# The contextual grounding policy configuration used to update a
|
5467
7323
|
# guardrail.
|
5468
7324
|
#
|
7325
|
+
# @option params [Types::GuardrailAutomatedReasoningPolicyConfig] :automated_reasoning_policy_config
|
7326
|
+
# Updated configuration for Automated Reasoning policies associated with
|
7327
|
+
# the guardrail.
|
7328
|
+
#
|
5469
7329
|
# @option params [Types::GuardrailCrossRegionConfig] :cross_region_config
|
5470
7330
|
# The system-defined guardrail profile that you're using with your
|
5471
7331
|
# guardrail. Guardrail profiles define the destination Amazon Web
|
@@ -5589,6 +7449,10 @@ module Aws::Bedrock
|
|
5589
7449
|
# },
|
5590
7450
|
# ],
|
5591
7451
|
# },
|
7452
|
+
# automated_reasoning_policy_config: {
|
7453
|
+
# policies: ["AutomatedReasoningPolicyArn"], # required
|
7454
|
+
# confidence_threshold: 1.0,
|
7455
|
+
# },
|
5592
7456
|
# cross_region_config: {
|
5593
7457
|
# guardrail_profile_identifier: "GuardrailCrossRegionGuardrailProfileIdentifier", # required
|
5594
7458
|
# },
|
@@ -5750,7 +7614,7 @@ module Aws::Bedrock
|
|
5750
7614
|
tracer: tracer
|
5751
7615
|
)
|
5752
7616
|
context[:gem_name] = 'aws-sdk-bedrock'
|
5753
|
-
context[:gem_version] = '1.
|
7617
|
+
context[:gem_version] = '1.58.0'
|
5754
7618
|
Seahorse::Client::Request.new(handlers, context)
|
5755
7619
|
end
|
5756
7620
|
|