Skip to content

Commit 7d25b7f

Browse files
Add support for SageMaker Hyperpod continuous scaling and custom AMI; Introduce new APIs: ListClusterEvents, DescribeClusterEvent, BatchAddClusterNodes
Adds a new Aurora Serverless v2 attribute to the DBCluster resource to expose the platform version. Also updates the attribute to be part of both the engine version and platform version descriptions. This release adds support for Automated Reasoning checks output models for the Amazon Bedrock Guardrails ApplyGuardrail API. Add support for deletion protection on EKS clusters This release introduces Automated Reasoning checks for Amazon Bedrock Guardrails. The feature adds new APIs for policy building, refinement, version management, and testing. Guardrail APIs now support Automated Reasoning policy configuration and validation output.
1 parent f442342 commit 7d25b7f

File tree

413 files changed

+34423
-1174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+34423
-1174
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.619
1+
1.11.620

generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/GuardrailAssessment.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <aws/bedrock-runtime/model/GuardrailWordPolicyAssessment.h>
1111
#include <aws/bedrock-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h>
1212
#include <aws/bedrock-runtime/model/GuardrailContextualGroundingPolicyAssessment.h>
13+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningPolicyAssessment.h>
1314
#include <aws/bedrock-runtime/model/GuardrailInvocationMetrics.h>
1415
#include <utility>
1516

@@ -103,6 +104,19 @@ namespace Model
103104
GuardrailAssessment& WithContextualGroundingPolicy(ContextualGroundingPolicyT&& value) { SetContextualGroundingPolicy(std::forward<ContextualGroundingPolicyT>(value)); return *this;}
104105
///@}
105106

107+
///@{
108+
/**
109+
* <p>The automated reasoning policy assessment results, including logical
110+
* validation findings for the input content.</p>
111+
*/
112+
inline const GuardrailAutomatedReasoningPolicyAssessment& GetAutomatedReasoningPolicy() const { return m_automatedReasoningPolicy; }
113+
inline bool AutomatedReasoningPolicyHasBeenSet() const { return m_automatedReasoningPolicyHasBeenSet; }
114+
template<typename AutomatedReasoningPolicyT = GuardrailAutomatedReasoningPolicyAssessment>
115+
void SetAutomatedReasoningPolicy(AutomatedReasoningPolicyT&& value) { m_automatedReasoningPolicyHasBeenSet = true; m_automatedReasoningPolicy = std::forward<AutomatedReasoningPolicyT>(value); }
116+
template<typename AutomatedReasoningPolicyT = GuardrailAutomatedReasoningPolicyAssessment>
117+
GuardrailAssessment& WithAutomatedReasoningPolicy(AutomatedReasoningPolicyT&& value) { SetAutomatedReasoningPolicy(std::forward<AutomatedReasoningPolicyT>(value)); return *this;}
118+
///@}
119+
106120
///@{
107121
/**
108122
* <p>The invocation metrics for the guardrail assessment.</p>
@@ -131,6 +145,9 @@ namespace Model
131145
GuardrailContextualGroundingPolicyAssessment m_contextualGroundingPolicy;
132146
bool m_contextualGroundingPolicyHasBeenSet = false;
133147

148+
GuardrailAutomatedReasoningPolicyAssessment m_automatedReasoningPolicy;
149+
bool m_automatedReasoningPolicyHasBeenSet = false;
150+
134151
GuardrailInvocationMetrics m_invocationMetrics;
135152
bool m_invocationMetricsHasBeenSet = false;
136153
};
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningValidFinding.h>
9+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningInvalidFinding.h>
10+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningSatisfiableFinding.h>
11+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningImpossibleFinding.h>
12+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningTranslationAmbiguousFinding.h>
13+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningTooComplexFinding.h>
14+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningNoTranslationsFinding.h>
15+
#include <utility>
16+
17+
namespace Aws
18+
{
19+
namespace Utils
20+
{
21+
namespace Json
22+
{
23+
class JsonValue;
24+
class JsonView;
25+
} // namespace Json
26+
} // namespace Utils
27+
namespace BedrockRuntime
28+
{
29+
namespace Model
30+
{
31+
32+
/**
33+
* <p>Represents a logical validation result from automated reasoning policy
34+
* evaluation. The finding indicates whether claims in the input are logically
35+
* valid, invalid, satisfiable, impossible, or have other logical
36+
* issues.</p><p><h3>See Also:</h3> <a
37+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningFinding">AWS
38+
* API Reference</a></p>
39+
*/
40+
class GuardrailAutomatedReasoningFinding
41+
{
42+
public:
43+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningFinding() = default;
44+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningFinding(Aws::Utils::Json::JsonView jsonValue);
45+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
46+
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47+
48+
49+
///@{
50+
51+
inline const GuardrailAutomatedReasoningValidFinding& GetValid() const { return m_valid; }
52+
inline bool ValidHasBeenSet() const { return m_validHasBeenSet; }
53+
template<typename ValidT = GuardrailAutomatedReasoningValidFinding>
54+
void SetValid(ValidT&& value) { m_validHasBeenSet = true; m_valid = std::forward<ValidT>(value); }
55+
template<typename ValidT = GuardrailAutomatedReasoningValidFinding>
56+
GuardrailAutomatedReasoningFinding& WithValid(ValidT&& value) { SetValid(std::forward<ValidT>(value)); return *this;}
57+
///@}
58+
59+
///@{
60+
61+
inline const GuardrailAutomatedReasoningInvalidFinding& GetInvalid() const { return m_invalid; }
62+
inline bool InvalidHasBeenSet() const { return m_invalidHasBeenSet; }
63+
template<typename InvalidT = GuardrailAutomatedReasoningInvalidFinding>
64+
void SetInvalid(InvalidT&& value) { m_invalidHasBeenSet = true; m_invalid = std::forward<InvalidT>(value); }
65+
template<typename InvalidT = GuardrailAutomatedReasoningInvalidFinding>
66+
GuardrailAutomatedReasoningFinding& WithInvalid(InvalidT&& value) { SetInvalid(std::forward<InvalidT>(value)); return *this;}
67+
///@}
68+
69+
///@{
70+
71+
inline const GuardrailAutomatedReasoningSatisfiableFinding& GetSatisfiable() const { return m_satisfiable; }
72+
inline bool SatisfiableHasBeenSet() const { return m_satisfiableHasBeenSet; }
73+
template<typename SatisfiableT = GuardrailAutomatedReasoningSatisfiableFinding>
74+
void SetSatisfiable(SatisfiableT&& value) { m_satisfiableHasBeenSet = true; m_satisfiable = std::forward<SatisfiableT>(value); }
75+
template<typename SatisfiableT = GuardrailAutomatedReasoningSatisfiableFinding>
76+
GuardrailAutomatedReasoningFinding& WithSatisfiable(SatisfiableT&& value) { SetSatisfiable(std::forward<SatisfiableT>(value)); return *this;}
77+
///@}
78+
79+
///@{
80+
81+
inline const GuardrailAutomatedReasoningImpossibleFinding& GetImpossible() const { return m_impossible; }
82+
inline bool ImpossibleHasBeenSet() const { return m_impossibleHasBeenSet; }
83+
template<typename ImpossibleT = GuardrailAutomatedReasoningImpossibleFinding>
84+
void SetImpossible(ImpossibleT&& value) { m_impossibleHasBeenSet = true; m_impossible = std::forward<ImpossibleT>(value); }
85+
template<typename ImpossibleT = GuardrailAutomatedReasoningImpossibleFinding>
86+
GuardrailAutomatedReasoningFinding& WithImpossible(ImpossibleT&& value) { SetImpossible(std::forward<ImpossibleT>(value)); return *this;}
87+
///@}
88+
89+
///@{
90+
91+
inline const GuardrailAutomatedReasoningTranslationAmbiguousFinding& GetTranslationAmbiguous() const { return m_translationAmbiguous; }
92+
inline bool TranslationAmbiguousHasBeenSet() const { return m_translationAmbiguousHasBeenSet; }
93+
template<typename TranslationAmbiguousT = GuardrailAutomatedReasoningTranslationAmbiguousFinding>
94+
void SetTranslationAmbiguous(TranslationAmbiguousT&& value) { m_translationAmbiguousHasBeenSet = true; m_translationAmbiguous = std::forward<TranslationAmbiguousT>(value); }
95+
template<typename TranslationAmbiguousT = GuardrailAutomatedReasoningTranslationAmbiguousFinding>
96+
GuardrailAutomatedReasoningFinding& WithTranslationAmbiguous(TranslationAmbiguousT&& value) { SetTranslationAmbiguous(std::forward<TranslationAmbiguousT>(value)); return *this;}
97+
///@}
98+
99+
///@{
100+
101+
inline const GuardrailAutomatedReasoningTooComplexFinding& GetTooComplex() const { return m_tooComplex; }
102+
inline bool TooComplexHasBeenSet() const { return m_tooComplexHasBeenSet; }
103+
template<typename TooComplexT = GuardrailAutomatedReasoningTooComplexFinding>
104+
void SetTooComplex(TooComplexT&& value) { m_tooComplexHasBeenSet = true; m_tooComplex = std::forward<TooComplexT>(value); }
105+
template<typename TooComplexT = GuardrailAutomatedReasoningTooComplexFinding>
106+
GuardrailAutomatedReasoningFinding& WithTooComplex(TooComplexT&& value) { SetTooComplex(std::forward<TooComplexT>(value)); return *this;}
107+
///@}
108+
109+
///@{
110+
111+
inline const GuardrailAutomatedReasoningNoTranslationsFinding& GetNoTranslations() const { return m_noTranslations; }
112+
inline bool NoTranslationsHasBeenSet() const { return m_noTranslationsHasBeenSet; }
113+
template<typename NoTranslationsT = GuardrailAutomatedReasoningNoTranslationsFinding>
114+
void SetNoTranslations(NoTranslationsT&& value) { m_noTranslationsHasBeenSet = true; m_noTranslations = std::forward<NoTranslationsT>(value); }
115+
template<typename NoTranslationsT = GuardrailAutomatedReasoningNoTranslationsFinding>
116+
GuardrailAutomatedReasoningFinding& WithNoTranslations(NoTranslationsT&& value) { SetNoTranslations(std::forward<NoTranslationsT>(value)); return *this;}
117+
///@}
118+
private:
119+
120+
GuardrailAutomatedReasoningValidFinding m_valid;
121+
bool m_validHasBeenSet = false;
122+
123+
GuardrailAutomatedReasoningInvalidFinding m_invalid;
124+
bool m_invalidHasBeenSet = false;
125+
126+
GuardrailAutomatedReasoningSatisfiableFinding m_satisfiable;
127+
bool m_satisfiableHasBeenSet = false;
128+
129+
GuardrailAutomatedReasoningImpossibleFinding m_impossible;
130+
bool m_impossibleHasBeenSet = false;
131+
132+
GuardrailAutomatedReasoningTranslationAmbiguousFinding m_translationAmbiguous;
133+
bool m_translationAmbiguousHasBeenSet = false;
134+
135+
GuardrailAutomatedReasoningTooComplexFinding m_tooComplex;
136+
bool m_tooComplexHasBeenSet = false;
137+
138+
GuardrailAutomatedReasoningNoTranslationsFinding m_noTranslations;
139+
bool m_noTranslationsHasBeenSet = false;
140+
};
141+
142+
} // namespace Model
143+
} // namespace BedrockRuntime
144+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningTranslation.h>
9+
#include <aws/core/utils/memory/stl/AWSVector.h>
10+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningLogicWarning.h>
11+
#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningRule.h>
12+
#include <utility>
13+
14+
namespace Aws
15+
{
16+
namespace Utils
17+
{
18+
namespace Json
19+
{
20+
class JsonValue;
21+
class JsonView;
22+
} // namespace Json
23+
} // namespace Utils
24+
namespace BedrockRuntime
25+
{
26+
namespace Model
27+
{
28+
29+
/**
30+
* <p>Indicates that no valid claims can be made due to logical contradictions in
31+
* the premises or rules.</p><p><h3>See Also:</h3> <a
32+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningImpossibleFinding">AWS
33+
* API Reference</a></p>
34+
*/
35+
class GuardrailAutomatedReasoningImpossibleFinding
36+
{
37+
public:
38+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningImpossibleFinding() = default;
39+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningImpossibleFinding(Aws::Utils::Json::JsonView jsonValue);
40+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningImpossibleFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
41+
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42+
43+
44+
///@{
45+
/**
46+
* <p>The logical translation of the input that this finding evaluates.</p>
47+
*/
48+
inline const GuardrailAutomatedReasoningTranslation& GetTranslation() const { return m_translation; }
49+
inline bool TranslationHasBeenSet() const { return m_translationHasBeenSet; }
50+
template<typename TranslationT = GuardrailAutomatedReasoningTranslation>
51+
void SetTranslation(TranslationT&& value) { m_translationHasBeenSet = true; m_translation = std::forward<TranslationT>(value); }
52+
template<typename TranslationT = GuardrailAutomatedReasoningTranslation>
53+
GuardrailAutomatedReasoningImpossibleFinding& WithTranslation(TranslationT&& value) { SetTranslation(std::forward<TranslationT>(value)); return *this;}
54+
///@}
55+
56+
///@{
57+
/**
58+
* <p>The automated reasoning policy rules that contradict the claims and/or
59+
* premises in the input.</p>
60+
*/
61+
inline const Aws::Vector<GuardrailAutomatedReasoningRule>& GetContradictingRules() const { return m_contradictingRules; }
62+
inline bool ContradictingRulesHasBeenSet() const { return m_contradictingRulesHasBeenSet; }
63+
template<typename ContradictingRulesT = Aws::Vector<GuardrailAutomatedReasoningRule>>
64+
void SetContradictingRules(ContradictingRulesT&& value) { m_contradictingRulesHasBeenSet = true; m_contradictingRules = std::forward<ContradictingRulesT>(value); }
65+
template<typename ContradictingRulesT = Aws::Vector<GuardrailAutomatedReasoningRule>>
66+
GuardrailAutomatedReasoningImpossibleFinding& WithContradictingRules(ContradictingRulesT&& value) { SetContradictingRules(std::forward<ContradictingRulesT>(value)); return *this;}
67+
template<typename ContradictingRulesT = GuardrailAutomatedReasoningRule>
68+
GuardrailAutomatedReasoningImpossibleFinding& AddContradictingRules(ContradictingRulesT&& value) { m_contradictingRulesHasBeenSet = true; m_contradictingRules.emplace_back(std::forward<ContradictingRulesT>(value)); return *this; }
69+
///@}
70+
71+
///@{
72+
/**
73+
* <p>Indication of a logic issue with the translation without needing to consider
74+
* the automated reasoning policy rules.</p>
75+
*/
76+
inline const GuardrailAutomatedReasoningLogicWarning& GetLogicWarning() const { return m_logicWarning; }
77+
inline bool LogicWarningHasBeenSet() const { return m_logicWarningHasBeenSet; }
78+
template<typename LogicWarningT = GuardrailAutomatedReasoningLogicWarning>
79+
void SetLogicWarning(LogicWarningT&& value) { m_logicWarningHasBeenSet = true; m_logicWarning = std::forward<LogicWarningT>(value); }
80+
template<typename LogicWarningT = GuardrailAutomatedReasoningLogicWarning>
81+
GuardrailAutomatedReasoningImpossibleFinding& WithLogicWarning(LogicWarningT&& value) { SetLogicWarning(std::forward<LogicWarningT>(value)); return *this;}
82+
///@}
83+
private:
84+
85+
GuardrailAutomatedReasoningTranslation m_translation;
86+
bool m_translationHasBeenSet = false;
87+
88+
Aws::Vector<GuardrailAutomatedReasoningRule> m_contradictingRules;
89+
bool m_contradictingRulesHasBeenSet = false;
90+
91+
GuardrailAutomatedReasoningLogicWarning m_logicWarning;
92+
bool m_logicWarningHasBeenSet = false;
93+
};
94+
95+
} // namespace Model
96+
} // namespace BedrockRuntime
97+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
#include <utility>
10+
11+
namespace Aws
12+
{
13+
namespace Utils
14+
{
15+
namespace Json
16+
{
17+
class JsonValue;
18+
class JsonView;
19+
} // namespace Json
20+
} // namespace Utils
21+
namespace BedrockRuntime
22+
{
23+
namespace Model
24+
{
25+
26+
/**
27+
* <p>References a portion of the original input text that corresponds to logical
28+
* elements.</p><p><h3>See Also:</h3> <a
29+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningInputTextReference">AWS
30+
* API Reference</a></p>
31+
*/
32+
class GuardrailAutomatedReasoningInputTextReference
33+
{
34+
public:
35+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningInputTextReference() = default;
36+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningInputTextReference(Aws::Utils::Json::JsonView jsonValue);
37+
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningInputTextReference& operator=(Aws::Utils::Json::JsonView jsonValue);
38+
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39+
40+
41+
///@{
42+
/**
43+
* <p>The specific text from the original input that this reference points to.</p>
44+
*/
45+
inline const Aws::String& GetText() const { return m_text; }
46+
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
47+
template<typename TextT = Aws::String>
48+
void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
49+
template<typename TextT = Aws::String>
50+
GuardrailAutomatedReasoningInputTextReference& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
51+
///@}
52+
private:
53+
54+
Aws::String m_text;
55+
bool m_textHasBeenSet = false;
56+
};
57+
58+
} // namespace Model
59+
} // namespace BedrockRuntime
60+
} // namespace Aws

0 commit comments

Comments
 (0)