Skip to content

Commit e03a5aa

Browse files
Adds support for Signer GetRevocationStatus with updated endpoints
The following APIs now return CloudExadataInfrastructureArn and OdbNetworkArn fields for improved resource identification and AWS service integration - GetCloudVmCluster, ListCloudVmClusters, GetCloudAutonomousVmCluster, and ListCloudAutonomousVmClusters. Launch itemized custom line item and service line item filter This release introduces two additional protocols AWS JSON 1.1 and Smithy RPC v2 CBOR, replacing the currently utilized one, AWSQuery. AWS SDKs will prioritize the protocol that is the most performant for each language. Adds support for the new Project.AwsPartition field on Opportunity and AWS Opportunity Summary. Use this field to specify the AWS partition where the opportunity will be deployed. The CreateApplication API now supports an optional kms key arn parameter to allow customers to specify a CMK for application encryption. Automated Reasoning checks in Amazon Bedrock Guardrails is capable of generating policy scenarios to validate policies. The GetAutomatedReasoningPolicyBuildWorkflowResultAssets API now adds POLICY SCENARIO asset type, allowing customers to retrieve scenarios generated by the build workflow.
1 parent 951b7fb commit e03a5aa

File tree

291 files changed

+24654
-5271
lines changed

Some content is hidden

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

291 files changed

+24654
-5271
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.707
1+
1.11.708

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
namespace Aws {
1111
namespace Bedrock {
1212
namespace Model {
13-
enum class AutomatedReasoningPolicyBuildResultAssetType { NOT_SET, BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES };
13+
enum class AutomatedReasoningPolicyBuildResultAssetType {
14+
NOT_SET,
15+
BUILD_LOG,
16+
QUALITY_REPORT,
17+
POLICY_DEFINITION,
18+
GENERATED_TEST_CASES,
19+
POLICY_SCENARIOS
20+
};
1421

1522
namespace AutomatedReasoningPolicyBuildResultAssetTypeMapper {
1623
AWS_BEDROCK_API AutomatedReasoningPolicyBuildResultAssetType

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <aws/bedrock/model/AutomatedReasoningPolicyDefinition.h>
1010
#include <aws/bedrock/model/AutomatedReasoningPolicyDefinitionQualityReport.h>
1111
#include <aws/bedrock/model/AutomatedReasoningPolicyGeneratedTestCases.h>
12+
#include <aws/bedrock/model/AutomatedReasoningPolicyScenarios.h>
1213

1314
#include <utility>
1415

@@ -112,6 +113,25 @@ class AutomatedReasoningPolicyBuildResultAssets {
112113
return *this;
113114
}
114115
///@}
116+
117+
///@{
118+
/**
119+
* <p>An entity encompassing all the policy scenarios generated by the build
120+
* workflow, which can be used to validate an Automated Reasoning policy. </p>
121+
*/
122+
inline const AutomatedReasoningPolicyScenarios& GetPolicyScenarios() const { return m_policyScenarios; }
123+
inline bool PolicyScenariosHasBeenSet() const { return m_policyScenariosHasBeenSet; }
124+
template <typename PolicyScenariosT = AutomatedReasoningPolicyScenarios>
125+
void SetPolicyScenarios(PolicyScenariosT&& value) {
126+
m_policyScenariosHasBeenSet = true;
127+
m_policyScenarios = std::forward<PolicyScenariosT>(value);
128+
}
129+
template <typename PolicyScenariosT = AutomatedReasoningPolicyScenarios>
130+
AutomatedReasoningPolicyBuildResultAssets& WithPolicyScenarios(PolicyScenariosT&& value) {
131+
SetPolicyScenarios(std::forward<PolicyScenariosT>(value));
132+
return *this;
133+
}
134+
///@}
115135
private:
116136
AutomatedReasoningPolicyDefinition m_policyDefinition;
117137

@@ -120,10 +140,13 @@ class AutomatedReasoningPolicyBuildResultAssets {
120140
AutomatedReasoningPolicyBuildLog m_buildLog;
121141

122142
AutomatedReasoningPolicyGeneratedTestCases m_generatedTestCases;
143+
144+
AutomatedReasoningPolicyScenarios m_policyScenarios;
123145
bool m_policyDefinitionHasBeenSet = false;
124146
bool m_qualityReportHasBeenSet = false;
125147
bool m_buildLogHasBeenSet = false;
126148
bool m_generatedTestCasesHasBeenSet = false;
149+
bool m_policyScenariosHasBeenSet = false;
127150
};
128151

129152
} // namespace Model

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,23 @@ class AutomatedReasoningPolicyScenario {
7272
}
7373
///@}
7474

75+
///@{
76+
/**
77+
* <p>The expected outcome when this scenario is evaluated against the policy
78+
* (e.g., PASS, FAIL, VIOLATION).</p>
79+
*/
80+
inline AutomatedReasoningCheckResult GetExpectedResult() const { return m_expectedResult; }
81+
inline bool ExpectedResultHasBeenSet() const { return m_expectedResultHasBeenSet; }
82+
inline void SetExpectedResult(AutomatedReasoningCheckResult value) {
83+
m_expectedResultHasBeenSet = true;
84+
m_expectedResult = value;
85+
}
86+
inline AutomatedReasoningPolicyScenario& WithExpectedResult(AutomatedReasoningCheckResult value) {
87+
SetExpectedResult(value);
88+
return *this;
89+
}
90+
///@}
91+
7592
///@{
7693
/**
7794
* <p>The list of rule identifiers that are expected to be triggered or evaluated
@@ -96,35 +113,18 @@ class AutomatedReasoningPolicyScenario {
96113
return *this;
97114
}
98115
///@}
99-
100-
///@{
101-
/**
102-
* <p>The expected outcome when this scenario is evaluated against the policy
103-
* (e.g., PASS, FAIL, VIOLATION).</p>
104-
*/
105-
inline AutomatedReasoningCheckResult GetExpectedResult() const { return m_expectedResult; }
106-
inline bool ExpectedResultHasBeenSet() const { return m_expectedResultHasBeenSet; }
107-
inline void SetExpectedResult(AutomatedReasoningCheckResult value) {
108-
m_expectedResultHasBeenSet = true;
109-
m_expectedResult = value;
110-
}
111-
inline AutomatedReasoningPolicyScenario& WithExpectedResult(AutomatedReasoningCheckResult value) {
112-
SetExpectedResult(value);
113-
return *this;
114-
}
115-
///@}
116116
private:
117117
Aws::String m_expression;
118118

119119
Aws::String m_alternateExpression;
120120

121-
Aws::Vector<Aws::String> m_ruleIds;
122-
123121
AutomatedReasoningCheckResult m_expectedResult{AutomatedReasoningCheckResult::NOT_SET};
122+
123+
Aws::Vector<Aws::String> m_ruleIds;
124124
bool m_expressionHasBeenSet = false;
125125
bool m_alternateExpressionHasBeenSet = false;
126-
bool m_ruleIdsHasBeenSet = false;
127126
bool m_expectedResultHasBeenSet = false;
127+
bool m_ruleIdsHasBeenSet = false;
128128
};
129129

130130
} // namespace Model
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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/Bedrock_EXPORTS.h>
8+
#include <aws/bedrock/model/AutomatedReasoningPolicyScenario.h>
9+
#include <aws/core/utils/memory/stl/AWSVector.h>
10+
11+
#include <utility>
12+
13+
namespace Aws {
14+
namespace Utils {
15+
namespace Json {
16+
class JsonValue;
17+
class JsonView;
18+
} // namespace Json
19+
} // namespace Utils
20+
namespace Bedrock {
21+
namespace Model {
22+
23+
/**
24+
* <p>Contains a comprehensive entity encompassing all the scenarios generated by
25+
* the build workflow, which can be used to validate an Automated Reasoning
26+
* policy.</p><p><h3>See Also:</h3> <a
27+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyScenarios">AWS
28+
* API Reference</a></p>
29+
*/
30+
class AutomatedReasoningPolicyScenarios {
31+
public:
32+
AWS_BEDROCK_API AutomatedReasoningPolicyScenarios() = default;
33+
AWS_BEDROCK_API AutomatedReasoningPolicyScenarios(Aws::Utils::Json::JsonView jsonValue);
34+
AWS_BEDROCK_API AutomatedReasoningPolicyScenarios& operator=(Aws::Utils::Json::JsonView jsonValue);
35+
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36+
37+
///@{
38+
/**
39+
* <p>Represents a collection of generated policy scenarios.</p>
40+
*/
41+
inline const Aws::Vector<AutomatedReasoningPolicyScenario>& GetPolicyScenarios() const { return m_policyScenarios; }
42+
inline bool PolicyScenariosHasBeenSet() const { return m_policyScenariosHasBeenSet; }
43+
template <typename PolicyScenariosT = Aws::Vector<AutomatedReasoningPolicyScenario>>
44+
void SetPolicyScenarios(PolicyScenariosT&& value) {
45+
m_policyScenariosHasBeenSet = true;
46+
m_policyScenarios = std::forward<PolicyScenariosT>(value);
47+
}
48+
template <typename PolicyScenariosT = Aws::Vector<AutomatedReasoningPolicyScenario>>
49+
AutomatedReasoningPolicyScenarios& WithPolicyScenarios(PolicyScenariosT&& value) {
50+
SetPolicyScenarios(std::forward<PolicyScenariosT>(value));
51+
return *this;
52+
}
53+
template <typename PolicyScenariosT = AutomatedReasoningPolicyScenario>
54+
AutomatedReasoningPolicyScenarios& AddPolicyScenarios(PolicyScenariosT&& value) {
55+
m_policyScenariosHasBeenSet = true;
56+
m_policyScenarios.emplace_back(std::forward<PolicyScenariosT>(value));
57+
return *this;
58+
}
59+
///@}
60+
private:
61+
Aws::Vector<AutomatedReasoningPolicyScenario> m_policyScenarios;
62+
bool m_policyScenariosHasBeenSet = false;
63+
};
64+
65+
} // namespace Model
66+
} // namespace Bedrock
67+
} // namespace Aws

generated/src/aws-cpp-sdk-bedrock/source/model/AutomatedReasoningPolicyBuildResultAssetType.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static const int BUILD_LOG_HASH = HashingUtils::HashString("BUILD_LOG");
1919
static const int QUALITY_REPORT_HASH = HashingUtils::HashString("QUALITY_REPORT");
2020
static const int POLICY_DEFINITION_HASH = HashingUtils::HashString("POLICY_DEFINITION");
2121
static const int GENERATED_TEST_CASES_HASH = HashingUtils::HashString("GENERATED_TEST_CASES");
22+
static const int POLICY_SCENARIOS_HASH = HashingUtils::HashString("POLICY_SCENARIOS");
2223

2324
AutomatedReasoningPolicyBuildResultAssetType GetAutomatedReasoningPolicyBuildResultAssetTypeForName(const Aws::String& name) {
2425
int hashCode = HashingUtils::HashString(name.c_str());
@@ -30,6 +31,8 @@ AutomatedReasoningPolicyBuildResultAssetType GetAutomatedReasoningPolicyBuildRes
3031
return AutomatedReasoningPolicyBuildResultAssetType::POLICY_DEFINITION;
3132
} else if (hashCode == GENERATED_TEST_CASES_HASH) {
3233
return AutomatedReasoningPolicyBuildResultAssetType::GENERATED_TEST_CASES;
34+
} else if (hashCode == POLICY_SCENARIOS_HASH) {
35+
return AutomatedReasoningPolicyBuildResultAssetType::POLICY_SCENARIOS;
3336
}
3437
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
3538
if (overflowContainer) {
@@ -52,6 +55,8 @@ Aws::String GetNameForAutomatedReasoningPolicyBuildResultAssetType(AutomatedReas
5255
return "POLICY_DEFINITION";
5356
case AutomatedReasoningPolicyBuildResultAssetType::GENERATED_TEST_CASES:
5457
return "GENERATED_TEST_CASES";
58+
case AutomatedReasoningPolicyBuildResultAssetType::POLICY_SCENARIOS:
59+
return "POLICY_SCENARIOS";
5560
default:
5661
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
5762
if (overflowContainer) {

generated/src/aws-cpp-sdk-bedrock/source/model/AutomatedReasoningPolicyBuildResultAssets.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ AutomatedReasoningPolicyBuildResultAssets& AutomatedReasoningPolicyBuildResultAs
3434
m_generatedTestCases = jsonValue.GetObject("generatedTestCases");
3535
m_generatedTestCasesHasBeenSet = true;
3636
}
37+
if (jsonValue.ValueExists("policyScenarios")) {
38+
m_policyScenarios = jsonValue.GetObject("policyScenarios");
39+
m_policyScenariosHasBeenSet = true;
40+
}
3741
return *this;
3842
}
3943

@@ -56,6 +60,10 @@ JsonValue AutomatedReasoningPolicyBuildResultAssets::Jsonize() const {
5660
payload.WithObject("generatedTestCases", m_generatedTestCases.Jsonize());
5761
}
5862

63+
if (m_policyScenariosHasBeenSet) {
64+
payload.WithObject("policyScenarios", m_policyScenarios.Jsonize());
65+
}
66+
5967
return payload;
6068
}
6169

generated/src/aws-cpp-sdk-bedrock/source/model/AutomatedReasoningPolicyScenario.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ AutomatedReasoningPolicyScenario& AutomatedReasoningPolicyScenario::operator=(Js
2626
m_alternateExpression = jsonValue.GetString("alternateExpression");
2727
m_alternateExpressionHasBeenSet = true;
2828
}
29+
if (jsonValue.ValueExists("expectedResult")) {
30+
m_expectedResult = AutomatedReasoningCheckResultMapper::GetAutomatedReasoningCheckResultForName(jsonValue.GetString("expectedResult"));
31+
m_expectedResultHasBeenSet = true;
32+
}
2933
if (jsonValue.ValueExists("ruleIds")) {
3034
Aws::Utils::Array<JsonView> ruleIdsJsonList = jsonValue.GetArray("ruleIds");
3135
for (unsigned ruleIdsIndex = 0; ruleIdsIndex < ruleIdsJsonList.GetLength(); ++ruleIdsIndex) {
3236
m_ruleIds.push_back(ruleIdsJsonList[ruleIdsIndex].AsString());
3337
}
3438
m_ruleIdsHasBeenSet = true;
3539
}
36-
if (jsonValue.ValueExists("expectedResult")) {
37-
m_expectedResult = AutomatedReasoningCheckResultMapper::GetAutomatedReasoningCheckResultForName(jsonValue.GetString("expectedResult"));
38-
m_expectedResultHasBeenSet = true;
39-
}
4040
return *this;
4141
}
4242

@@ -51,6 +51,10 @@ JsonValue AutomatedReasoningPolicyScenario::Jsonize() const {
5151
payload.WithString("alternateExpression", m_alternateExpression);
5252
}
5353

54+
if (m_expectedResultHasBeenSet) {
55+
payload.WithString("expectedResult", AutomatedReasoningCheckResultMapper::GetNameForAutomatedReasoningCheckResult(m_expectedResult));
56+
}
57+
5458
if (m_ruleIdsHasBeenSet) {
5559
Aws::Utils::Array<JsonValue> ruleIdsJsonList(m_ruleIds.size());
5660
for (unsigned ruleIdsIndex = 0; ruleIdsIndex < ruleIdsJsonList.GetLength(); ++ruleIdsIndex) {
@@ -59,10 +63,6 @@ JsonValue AutomatedReasoningPolicyScenario::Jsonize() const {
5963
payload.WithArray("ruleIds", std::move(ruleIdsJsonList));
6064
}
6165

62-
if (m_expectedResultHasBeenSet) {
63-
payload.WithString("expectedResult", AutomatedReasoningCheckResultMapper::GetNameForAutomatedReasoningCheckResult(m_expectedResult));
64-
}
65-
6666
return payload;
6767
}
6868

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/bedrock/model/AutomatedReasoningPolicyScenarios.h>
7+
#include <aws/core/utils/json/JsonSerializer.h>
8+
9+
#include <utility>
10+
11+
using namespace Aws::Utils::Json;
12+
using namespace Aws::Utils;
13+
14+
namespace Aws {
15+
namespace Bedrock {
16+
namespace Model {
17+
18+
AutomatedReasoningPolicyScenarios::AutomatedReasoningPolicyScenarios(JsonView jsonValue) { *this = jsonValue; }
19+
20+
AutomatedReasoningPolicyScenarios& AutomatedReasoningPolicyScenarios::operator=(JsonView jsonValue) {
21+
if (jsonValue.ValueExists("policyScenarios")) {
22+
Aws::Utils::Array<JsonView> policyScenariosJsonList = jsonValue.GetArray("policyScenarios");
23+
for (unsigned policyScenariosIndex = 0; policyScenariosIndex < policyScenariosJsonList.GetLength(); ++policyScenariosIndex) {
24+
m_policyScenarios.push_back(policyScenariosJsonList[policyScenariosIndex].AsObject());
25+
}
26+
m_policyScenariosHasBeenSet = true;
27+
}
28+
return *this;
29+
}
30+
31+
JsonValue AutomatedReasoningPolicyScenarios::Jsonize() const {
32+
JsonValue payload;
33+
34+
if (m_policyScenariosHasBeenSet) {
35+
Aws::Utils::Array<JsonValue> policyScenariosJsonList(m_policyScenarios.size());
36+
for (unsigned policyScenariosIndex = 0; policyScenariosIndex < policyScenariosJsonList.GetLength(); ++policyScenariosIndex) {
37+
policyScenariosJsonList[policyScenariosIndex].AsObject(m_policyScenarios[policyScenariosIndex].Jsonize());
38+
}
39+
payload.WithArray("policyScenarios", std::move(policyScenariosJsonList));
40+
}
41+
42+
return payload;
43+
}
44+
45+
} // namespace Model
46+
} // namespace Bedrock
47+
} // namespace Aws

generated/src/aws-cpp-sdk-billingconductor/include/aws/billingconductor/model/ComputationRuleEnum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Aws {
1111
namespace BillingConductor {
1212
namespace Model {
13-
enum class ComputationRuleEnum { NOT_SET, CONSOLIDATED };
13+
enum class ComputationRuleEnum { NOT_SET, ITEMIZED, CONSOLIDATED };
1414

1515
namespace ComputationRuleEnumMapper {
1616
AWS_BILLINGCONDUCTOR_API ComputationRuleEnum GetComputationRuleEnumForName(const Aws::String& name);

0 commit comments

Comments
 (0)