Skip to content

Commit 475e79d

Browse files
Allow for more than 2 characters for location codes in EventBridge ARNs
Add support to change ephemeral storage. Add a new field "TestResult" under CanaryRunStatus. You can now use VPC endpoint associations to create multiple firewall endpoints for a single firewall. This release allows customers to modify their preferred commitment term and payment options. Enable the option to automatically delete underlying Amazon EBS snapshots when deregistering Amazon Machine Images (AMIs)
1 parent 60560b1 commit 475e79d

File tree

107 files changed

+5416
-1097
lines changed

Some content is hidden

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

107 files changed

+5416
-1097
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.576
1+
1.11.577

generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/GetPreferencesResult.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
88
#include <aws/cost-optimization-hub/model/SavingsEstimationMode.h>
99
#include <aws/cost-optimization-hub/model/MemberAccountDiscountVisibility.h>
10+
#include <aws/cost-optimization-hub/model/PreferredCommitment.h>
1011
#include <aws/core/utils/memory/stl/AWSString.h>
1112
#include <utility>
1213

@@ -53,6 +54,19 @@ namespace Model
5354
inline GetPreferencesResult& WithMemberAccountDiscountVisibility(MemberAccountDiscountVisibility value) { SetMemberAccountDiscountVisibility(value); return *this;}
5455
///@}
5556

57+
///@{
58+
/**
59+
* <p>Retrieves the current preferences for how Reserved Instances and Savings
60+
* Plans cost-saving opportunities are prioritized in terms of payment option and
61+
* term length.</p>
62+
*/
63+
inline const PreferredCommitment& GetPreferredCommitment() const { return m_preferredCommitment; }
64+
template<typename PreferredCommitmentT = PreferredCommitment>
65+
void SetPreferredCommitment(PreferredCommitmentT&& value) { m_preferredCommitmentHasBeenSet = true; m_preferredCommitment = std::forward<PreferredCommitmentT>(value); }
66+
template<typename PreferredCommitmentT = PreferredCommitment>
67+
GetPreferencesResult& WithPreferredCommitment(PreferredCommitmentT&& value) { SetPreferredCommitment(std::forward<PreferredCommitmentT>(value)); return *this;}
68+
///@}
69+
5670
///@{
5771

5872
inline const Aws::String& GetRequestId() const { return m_requestId; }
@@ -69,6 +83,9 @@ namespace Model
6983
MemberAccountDiscountVisibility m_memberAccountDiscountVisibility{MemberAccountDiscountVisibility::NOT_SET};
7084
bool m_memberAccountDiscountVisibilityHasBeenSet = false;
7185

86+
PreferredCommitment m_preferredCommitment;
87+
bool m_preferredCommitmentHasBeenSet = false;
88+
7289
Aws::String m_requestId;
7390
bool m_requestIdHasBeenSet = false;
7491
};

generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/MemoryDbReservedInstances.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ namespace Model
2525
{
2626

2727
/**
28-
* <p>The MemoryDB reserved instances recommendation details.</p>
29-
* <p>MemoryDB reserved instances are referred to as "MemoryDB reserved nodes" in
30-
* customer-facing documentation.</p> <p><h3>See Also:</h3> <a
28+
* <p>The MemoryDB reserved instances recommendation details.</p> <p>While
29+
* the API reference uses "MemoryDB reserved instances", the user guide and other
30+
* documentation refer to them as "MemoryDB reserved nodes", as the terms are used
31+
* interchangeably.</p> <p><h3>See Also:</h3> <a
3132
* href="http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/MemoryDbReservedInstances">AWS
3233
* API Reference</a></p>
3334
*/

generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/MemoryDbReservedInstancesConfiguration.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ namespace Model
2525

2626
/**
2727
* <p>The MemoryDB reserved instances configuration used for recommendations.</p>
28-
* <p>MemoryDB reserved instances are referred to as "MemoryDB reserved
29-
* nodes" in customer-facing documentation.</p> <p><h3>See Also:</h3> <a
28+
* <p>While the API reference uses "MemoryDB reserved instances", the user
29+
* guide and other documentation refer to them as "MemoryDB reserved nodes", as the
30+
* terms are used interchangeably.</p> <p><h3>See Also:</h3> <a
3031
* href="http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/MemoryDbReservedInstancesConfiguration">AWS
3132
* API Reference</a></p>
3233
*/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace CostOptimizationHub
13+
{
14+
namespace Model
15+
{
16+
enum class PaymentOption
17+
{
18+
NOT_SET,
19+
AllUpfront,
20+
PartialUpfront,
21+
NoUpfront
22+
};
23+
24+
namespace PaymentOptionMapper
25+
{
26+
AWS_COSTOPTIMIZATIONHUB_API PaymentOption GetPaymentOptionForName(const Aws::String& name);
27+
28+
AWS_COSTOPTIMIZATIONHUB_API Aws::String GetNameForPaymentOption(PaymentOption value);
29+
} // namespace PaymentOptionMapper
30+
} // namespace Model
31+
} // namespace CostOptimizationHub
32+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8+
#include <aws/cost-optimization-hub/model/Term.h>
9+
#include <aws/cost-optimization-hub/model/PaymentOption.h>
10+
#include <utility>
11+
12+
namespace Aws
13+
{
14+
namespace Utils
15+
{
16+
namespace Json
17+
{
18+
class JsonValue;
19+
class JsonView;
20+
} // namespace Json
21+
} // namespace Utils
22+
namespace CostOptimizationHub
23+
{
24+
namespace Model
25+
{
26+
27+
/**
28+
* <p>The preferred configuration for Reserved Instances and Savings Plans
29+
* commitment-based discounts, consisting of a payment option and a commitment
30+
* duration.</p><p><h3>See Also:</h3> <a
31+
* href="http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/PreferredCommitment">AWS
32+
* API Reference</a></p>
33+
*/
34+
class PreferredCommitment
35+
{
36+
public:
37+
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment() = default;
38+
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment(Aws::Utils::Json::JsonView jsonValue);
39+
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment& operator=(Aws::Utils::Json::JsonView jsonValue);
40+
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41+
42+
43+
///@{
44+
/**
45+
* <p>The preferred length of the commitment period. If the value is null, it will
46+
* default to <code>ThreeYears</code> (highest savings) where applicable.</p>
47+
*/
48+
inline Term GetTerm() const { return m_term; }
49+
inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
50+
inline void SetTerm(Term value) { m_termHasBeenSet = true; m_term = value; }
51+
inline PreferredCommitment& WithTerm(Term value) { SetTerm(value); return *this;}
52+
///@}
53+
54+
///@{
55+
/**
56+
* <p>The preferred upfront payment structure for commitments. If the value is
57+
* null, it will default to <code>AllUpfront</code> (highest savings) where
58+
* applicable.</p>
59+
*/
60+
inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
61+
inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
62+
inline void SetPaymentOption(PaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
63+
inline PreferredCommitment& WithPaymentOption(PaymentOption value) { SetPaymentOption(value); return *this;}
64+
///@}
65+
private:
66+
67+
Term m_term{Term::NOT_SET};
68+
bool m_termHasBeenSet = false;
69+
70+
PaymentOption m_paymentOption{PaymentOption::NOT_SET};
71+
bool m_paymentOptionHasBeenSet = false;
72+
};
73+
74+
} // namespace Model
75+
} // namespace CostOptimizationHub
76+
} // namespace Aws
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace CostOptimizationHub
13+
{
14+
namespace Model
15+
{
16+
enum class Term
17+
{
18+
NOT_SET,
19+
OneYear,
20+
ThreeYears
21+
};
22+
23+
namespace TermMapper
24+
{
25+
AWS_COSTOPTIMIZATIONHUB_API Term GetTermForName(const Aws::String& name);
26+
27+
AWS_COSTOPTIMIZATIONHUB_API Aws::String GetNameForTerm(Term value);
28+
} // namespace TermMapper
29+
} // namespace Model
30+
} // namespace CostOptimizationHub
31+
} // namespace Aws

generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/UpdatePreferencesRequest.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <aws/cost-optimization-hub/CostOptimizationHubRequest.h>
99
#include <aws/cost-optimization-hub/model/SavingsEstimationMode.h>
1010
#include <aws/cost-optimization-hub/model/MemberAccountDiscountVisibility.h>
11+
#include <aws/cost-optimization-hub/model/PreferredCommitment.h>
1112
#include <utility>
1213

1314
namespace Aws
@@ -54,13 +55,29 @@ namespace Model
5455
inline void SetMemberAccountDiscountVisibility(MemberAccountDiscountVisibility value) { m_memberAccountDiscountVisibilityHasBeenSet = true; m_memberAccountDiscountVisibility = value; }
5556
inline UpdatePreferencesRequest& WithMemberAccountDiscountVisibility(MemberAccountDiscountVisibility value) { SetMemberAccountDiscountVisibility(value); return *this;}
5657
///@}
58+
59+
///@{
60+
/**
61+
* <p>Sets the preferences for how Reserved Instances and Savings Plans cost-saving
62+
* opportunities are prioritized in terms of payment option and term length.</p>
63+
*/
64+
inline const PreferredCommitment& GetPreferredCommitment() const { return m_preferredCommitment; }
65+
inline bool PreferredCommitmentHasBeenSet() const { return m_preferredCommitmentHasBeenSet; }
66+
template<typename PreferredCommitmentT = PreferredCommitment>
67+
void SetPreferredCommitment(PreferredCommitmentT&& value) { m_preferredCommitmentHasBeenSet = true; m_preferredCommitment = std::forward<PreferredCommitmentT>(value); }
68+
template<typename PreferredCommitmentT = PreferredCommitment>
69+
UpdatePreferencesRequest& WithPreferredCommitment(PreferredCommitmentT&& value) { SetPreferredCommitment(std::forward<PreferredCommitmentT>(value)); return *this;}
70+
///@}
5771
private:
5872

5973
SavingsEstimationMode m_savingsEstimationMode{SavingsEstimationMode::NOT_SET};
6074
bool m_savingsEstimationModeHasBeenSet = false;
6175

6276
MemberAccountDiscountVisibility m_memberAccountDiscountVisibility{MemberAccountDiscountVisibility::NOT_SET};
6377
bool m_memberAccountDiscountVisibilityHasBeenSet = false;
78+
79+
PreferredCommitment m_preferredCommitment;
80+
bool m_preferredCommitmentHasBeenSet = false;
6481
};
6582

6683
} // namespace Model

generated/src/aws-cpp-sdk-cost-optimization-hub/include/aws/cost-optimization-hub/model/UpdatePreferencesResult.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
88
#include <aws/cost-optimization-hub/model/SavingsEstimationMode.h>
99
#include <aws/cost-optimization-hub/model/MemberAccountDiscountVisibility.h>
10+
#include <aws/cost-optimization-hub/model/PreferredCommitment.h>
1011
#include <aws/core/utils/memory/stl/AWSString.h>
1112
#include <utility>
1213

@@ -52,6 +53,19 @@ namespace Model
5253
inline UpdatePreferencesResult& WithMemberAccountDiscountVisibility(MemberAccountDiscountVisibility value) { SetMemberAccountDiscountVisibility(value); return *this;}
5354
///@}
5455

56+
///@{
57+
/**
58+
* <p>Shows the updated preferences for how Reserved Instances and Savings Plans
59+
* cost-saving opportunities are prioritized in terms of payment option and term
60+
* length.</p>
61+
*/
62+
inline const PreferredCommitment& GetPreferredCommitment() const { return m_preferredCommitment; }
63+
template<typename PreferredCommitmentT = PreferredCommitment>
64+
void SetPreferredCommitment(PreferredCommitmentT&& value) { m_preferredCommitmentHasBeenSet = true; m_preferredCommitment = std::forward<PreferredCommitmentT>(value); }
65+
template<typename PreferredCommitmentT = PreferredCommitment>
66+
UpdatePreferencesResult& WithPreferredCommitment(PreferredCommitmentT&& value) { SetPreferredCommitment(std::forward<PreferredCommitmentT>(value)); return *this;}
67+
///@}
68+
5569
///@{
5670

5771
inline const Aws::String& GetRequestId() const { return m_requestId; }
@@ -68,6 +82,9 @@ namespace Model
6882
MemberAccountDiscountVisibility m_memberAccountDiscountVisibility{MemberAccountDiscountVisibility::NOT_SET};
6983
bool m_memberAccountDiscountVisibilityHasBeenSet = false;
7084

85+
PreferredCommitment m_preferredCommitment;
86+
bool m_preferredCommitmentHasBeenSet = false;
87+
7188
Aws::String m_requestId;
7289
bool m_requestIdHasBeenSet = false;
7390
};

generated/src/aws-cpp-sdk-cost-optimization-hub/source/model/GetPreferencesResult.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ GetPreferencesResult& GetPreferencesResult::operator =(const Aws::AmazonWebServi
3535
m_memberAccountDiscountVisibility = MemberAccountDiscountVisibilityMapper::GetMemberAccountDiscountVisibilityForName(jsonValue.GetString("memberAccountDiscountVisibility"));
3636
m_memberAccountDiscountVisibilityHasBeenSet = true;
3737
}
38+
if(jsonValue.ValueExists("preferredCommitment"))
39+
{
40+
m_preferredCommitment = jsonValue.GetObject("preferredCommitment");
41+
m_preferredCommitmentHasBeenSet = true;
42+
}
3843

3944
const auto& headers = result.GetHeaderValueCollection();
4045
const auto& requestIdIter = headers.find("x-amzn-requestid");
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/cost-optimization-hub/model/PaymentOption.h>
7+
#include <aws/core/utils/HashingUtils.h>
8+
#include <aws/core/Globals.h>
9+
#include <aws/core/utils/EnumParseOverflowContainer.h>
10+
11+
using namespace Aws::Utils;
12+
13+
14+
namespace Aws
15+
{
16+
namespace CostOptimizationHub
17+
{
18+
namespace Model
19+
{
20+
namespace PaymentOptionMapper
21+
{
22+
23+
static const int AllUpfront_HASH = HashingUtils::HashString("AllUpfront");
24+
static const int PartialUpfront_HASH = HashingUtils::HashString("PartialUpfront");
25+
static const int NoUpfront_HASH = HashingUtils::HashString("NoUpfront");
26+
27+
28+
PaymentOption GetPaymentOptionForName(const Aws::String& name)
29+
{
30+
int hashCode = HashingUtils::HashString(name.c_str());
31+
if (hashCode == AllUpfront_HASH)
32+
{
33+
return PaymentOption::AllUpfront;
34+
}
35+
else if (hashCode == PartialUpfront_HASH)
36+
{
37+
return PaymentOption::PartialUpfront;
38+
}
39+
else if (hashCode == NoUpfront_HASH)
40+
{
41+
return PaymentOption::NoUpfront;
42+
}
43+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
44+
if(overflowContainer)
45+
{
46+
overflowContainer->StoreOverflow(hashCode, name);
47+
return static_cast<PaymentOption>(hashCode);
48+
}
49+
50+
return PaymentOption::NOT_SET;
51+
}
52+
53+
Aws::String GetNameForPaymentOption(PaymentOption enumValue)
54+
{
55+
switch(enumValue)
56+
{
57+
case PaymentOption::NOT_SET:
58+
return {};
59+
case PaymentOption::AllUpfront:
60+
return "AllUpfront";
61+
case PaymentOption::PartialUpfront:
62+
return "PartialUpfront";
63+
case PaymentOption::NoUpfront:
64+
return "NoUpfront";
65+
default:
66+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
67+
if(overflowContainer)
68+
{
69+
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
70+
}
71+
72+
return {};
73+
}
74+
}
75+
76+
} // namespace PaymentOptionMapper
77+
} // namespace Model
78+
} // namespace CostOptimizationHub
79+
} // namespace Aws

0 commit comments

Comments
 (0)