Skip to content

Commit 508ccca

Browse files
authored
Merge branch 'main' into smoke-tests
2 parents 1680569 + 8d31e04 commit 508ccca

File tree

1,086 files changed

+25714
-97124
lines changed

Some content is hidden

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

1,086 files changed

+25714
-97124
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.634
1+
1.11.636

generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendEndpointRules.cpp

Lines changed: 91 additions & 91 deletions
Large diffs are not rendered by default.

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/ARCZonalShiftClient.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,13 @@ namespace ARCZonalShift
504504
/**
505505
* <p>The zonal autoshift configuration for a resource includes the practice run
506506
* configuration and the status for running autoshifts, zonal autoshift status.
507-
* When a resource has a practice run configuation, ARC starts weekly zonal shifts
507+
* When a resource has a practice run configuration, ARC starts weekly zonal shifts
508508
* for the resource, to shift traffic away from an Availability Zone. Weekly
509509
* practice runs help you to make sure that your application can continue to
510510
* operate normally with the loss of one Availability Zone.</p> <p>You can update
511-
* the zonal autoshift autoshift status to enable or disable zonal autoshift. When
512-
* zonal autoshift is <code>ENABLED</code>, you authorize Amazon Web Services to
513-
* shift away resource traffic for an application from an Availability Zone during
511+
* the zonal autoshift status to enable or disable zonal autoshift. When zonal
512+
* autoshift is <code>ENABLED</code>, you authorize Amazon Web Services to shift
513+
* away resource traffic for an application from an Availability Zone during
514514
* events, on your behalf, to help reduce time to recovery. Traffic is also shifted
515515
* away for the required weekly practice runs.</p><p><h3>See Also:</h3> <a
516516
* href="http://docs.aws.amazon.com/goto/WebAPI/arc-zonal-shift-2022-10-30/UpdateZonalAutoshiftConfiguration">AWS

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ConflictExceptionReason.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace Model
2626
PracticeOutcomeAlarmsRed,
2727
PracticeBlockingAlarmsRed,
2828
PracticeInBlockedDates,
29-
PracticeInBlockedWindows
29+
PracticeInBlockedWindows,
30+
PracticeOutsideAllowedWindows
3031
};
3132

3233
namespace ConflictExceptionReasonMapper

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/CreatePracticeRunConfigurationRequest.h

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ namespace Model
6666
* for practice runs are in UTC. Also, be aware of potential time adjustments that
6767
* might be required for daylight saving time differences. Separate multiple
6868
* blocked windows with spaces.</p> <p>For example, say you run business report
69-
* summaries three days a week. For this scenario, you might set the following
70-
* recurring days and times as blocked windows, for example: <code>MON-20:30-21:30
71-
* WED-20:30-21:30 FRI-20:30-21:30</code>.</p>
69+
* summaries three days a week. For this scenario, you could set the following
70+
* recurring days and times as blocked windows, for example:
71+
* <code>Mon:00:00-Mon:10:00 Wed-20:30-Wed:21:30 Fri-20:30-Fri:21:30</code>.</p>
72+
* <p>The <code>blockedWindows</code> have to start and end on the same
73+
* day. Windows that span multiple days aren't supported.</p>
7274
*/
7375
inline const Aws::Vector<Aws::String>& GetBlockedWindows() const { return m_blockedWindows; }
7476
inline bool BlockedWindowsHasBeenSet() const { return m_blockedWindowsHasBeenSet; }
@@ -102,10 +104,9 @@ namespace Model
102104

103105
///@{
104106
/**
105-
* <p>An Amazon CloudWatch alarm that you can specify for zonal autoshift practice
106-
* runs. This alarm blocks ARC from starting practice run zonal shifts, and ends a
107-
* practice run that's in progress, when the alarm is in an <code>ALARM</code>
108-
* state. </p>
107+
* <p> <i>Blocking alarms</i> for practice runs are optional alarms that you can
108+
* specify that block practice runs when one or more of the alarms is in an
109+
* <code>ALARM</code> state.</p>
109110
*/
110111
inline const Aws::Vector<ControlCondition>& GetBlockingAlarms() const { return m_blockingAlarms; }
111112
inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; }
@@ -119,14 +120,37 @@ namespace Model
119120

120121
///@{
121122
/**
122-
* <p>The <i>outcome alarm</i> for practice runs is a required Amazon CloudWatch
123-
* alarm that you specify that ends a practice run when the alarm is in an
124-
* <code>ALARM</code> state.</p> <p>Configure the alarm to monitor the health of
123+
* <p>Optionally, you can allow ARC to start practice runs for specific windows of
124+
* days and times. </p> <p>The format for allowed windows is: DAY:HH:SS-DAY:HH:SS.
125+
* Keep in mind, when you specify dates, that dates and times for practice runs are
126+
* in UTC. Also, be aware of potential time adjustments that might be required for
127+
* daylight saving time differences. Separate multiple allowed windows with
128+
* spaces.</p> <p>For example, say you want to allow practice runs only on
129+
* Wednesdays and Fridays from noon to 5 p.m. For this scenario, you could set the
130+
* following recurring days and times as allowed windows, for example:
131+
* <code>Wed-12:00-Wed:17:00 Fri-12:00-Fri:17:00</code>.</p> <p>The
132+
* <code>allowedWindows</code> have to start and end on the same day. Windows that
133+
* span multiple days aren't supported.</p>
134+
*/
135+
inline const Aws::Vector<Aws::String>& GetAllowedWindows() const { return m_allowedWindows; }
136+
inline bool AllowedWindowsHasBeenSet() const { return m_allowedWindowsHasBeenSet; }
137+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
138+
void SetAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows = std::forward<AllowedWindowsT>(value); }
139+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
140+
CreatePracticeRunConfigurationRequest& WithAllowedWindows(AllowedWindowsT&& value) { SetAllowedWindows(std::forward<AllowedWindowsT>(value)); return *this;}
141+
template<typename AllowedWindowsT = Aws::String>
142+
CreatePracticeRunConfigurationRequest& AddAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows.emplace_back(std::forward<AllowedWindowsT>(value)); return *this; }
143+
///@}
144+
145+
///@{
146+
/**
147+
* <p> <i>Outcome alarms</i> for practice runs are alarms that you specify that end
148+
* a practice run when one or more of the alarms is in an <code>ALARM</code>
149+
* state.</p> <p>Configure one or more of these alarms to monitor the health of
125150
* your application when traffic is shifted away from an Availability Zone during
126-
* each practice run. You should configure the alarm to go into an
127-
* <code>ALARM</code> state if your application is impacted by the zonal shift, and
128-
* you want to stop the zonal shift, to let traffic for the resource return to the
129-
* Availability Zone.</p>
151+
* each practice run. You should configure these alarms to go into an
152+
* <code>ALARM</code> state if you want to stop a zonal shift, to let traffic for
153+
* the resource return to the original Availability Zone.</p>
130154
*/
131155
inline const Aws::Vector<ControlCondition>& GetOutcomeAlarms() const { return m_outcomeAlarms; }
132156
inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; }
@@ -151,6 +175,9 @@ namespace Model
151175
Aws::Vector<ControlCondition> m_blockingAlarms;
152176
bool m_blockingAlarmsHasBeenSet = false;
153177

178+
Aws::Vector<Aws::String> m_allowedWindows;
179+
bool m_allowedWindowsHasBeenSet = false;
180+
154181
Aws::Vector<ControlCondition> m_outcomeAlarms;
155182
bool m_outcomeAlarmsHasBeenSet = false;
156183
};

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/PracticeRunConfiguration.h

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ namespace Model
5151

5252
///@{
5353
/**
54-
* <p>The <i>blocking alarm</i> for practice runs is an optional alarm that you can
55-
* specify that blocks practice runs when the alarm is in an <code>ALARM</code>
56-
* state.</p>
54+
* <p> <i>Blocking alarms</i> for practice runs are optional alarms that you can
55+
* specify that block practice runs when one or more of the alarms is in an
56+
* <code>ALARM</code> state.</p>
5757
*/
5858
inline const Aws::Vector<ControlCondition>& GetBlockingAlarms() const { return m_blockingAlarms; }
5959
inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; }
@@ -67,8 +67,9 @@ namespace Model
6767

6868
///@{
6969
/**
70-
* <p>The <i>outcome alarm</i> for practice runs is an alarm that you specify that
71-
* ends a practice run when the alarm is in an <code>ALARM</code> state.</p>
70+
* <p> <i>Outcome alarms</i> for practice runs are alarms that you specify that end
71+
* a practice run when one or more of the alarms is in an <code>ALARM</code>
72+
* state.</p>
7273
*/
7374
inline const Aws::Vector<ControlCondition>& GetOutcomeAlarms() const { return m_outcomeAlarms; }
7475
inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; }
@@ -85,7 +86,9 @@ namespace Model
8586
* <p>An array of one or more windows of days and times that you can block ARC from
8687
* starting practice runs for a resource.</p> <p>Specify the blocked windows in
8788
* UTC, using the format <code>DAY:HH:MM-DAY:HH:MM</code>, separated by spaces. For
88-
* example, <code>MON:18:30-MON:19:30 TUE:18:30-TUE:19:30</code>.</p>
89+
* example, <code>MON:18:30-MON:19:30 TUE:18:30-TUE:19:30</code>.</p> <p>The
90+
* <code>blockedWindows</code> have to start and end on the same day. Windows that
91+
* span multiple days aren't supported.</p>
8992
*/
9093
inline const Aws::Vector<Aws::String>& GetBlockedWindows() const { return m_blockedWindows; }
9194
inline bool BlockedWindowsHasBeenSet() const { return m_blockedWindowsHasBeenSet; }
@@ -97,6 +100,26 @@ namespace Model
97100
PracticeRunConfiguration& AddBlockedWindows(BlockedWindowsT&& value) { m_blockedWindowsHasBeenSet = true; m_blockedWindows.emplace_back(std::forward<BlockedWindowsT>(value)); return *this; }
98101
///@}
99102

103+
///@{
104+
/**
105+
* <p>An array of one or more windows of days and times that you can allow ARC to
106+
* start practice runs for a resource.</p> <p>For example, say you want to allow
107+
* practice runs only on Wednesdays and Fridays from noon to 5 p.m. For this
108+
* scenario, you could set the following recurring days and times as allowed
109+
* windows, for example: <code>Wed-12:00-Wed:17:00 Fri-12:00-Fri:17:00</code>.</p>
110+
* <p>The <code>allowedWindows</code> have to start and end on the same day.
111+
* Windows that span multiple days aren't supported.</p>
112+
*/
113+
inline const Aws::Vector<Aws::String>& GetAllowedWindows() const { return m_allowedWindows; }
114+
inline bool AllowedWindowsHasBeenSet() const { return m_allowedWindowsHasBeenSet; }
115+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
116+
void SetAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows = std::forward<AllowedWindowsT>(value); }
117+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
118+
PracticeRunConfiguration& WithAllowedWindows(AllowedWindowsT&& value) { SetAllowedWindows(std::forward<AllowedWindowsT>(value)); return *this;}
119+
template<typename AllowedWindowsT = Aws::String>
120+
PracticeRunConfiguration& AddAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows.emplace_back(std::forward<AllowedWindowsT>(value)); return *this; }
121+
///@}
122+
100123
///@{
101124
/**
102125
* <p>An array of one or more dates that you can specify when Amazon Web Services
@@ -123,6 +146,9 @@ namespace Model
123146
Aws::Vector<Aws::String> m_blockedWindows;
124147
bool m_blockedWindowsHasBeenSet = false;
125148

149+
Aws::Vector<Aws::String> m_allowedWindows;
150+
bool m_allowedWindowsHasBeenSet = false;
151+
126152
Aws::Vector<Aws::String> m_blockedDates;
127153
bool m_blockedDatesHasBeenSet = false;
128154
};

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/UpdatePracticeRunConfigurationRequest.h

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ namespace Model
9393

9494
///@{
9595
/**
96-
* <p>Add, change, or remove the Amazon CloudWatch alarm that you optionally
97-
* specify as the blocking alarm for practice runs.</p>
96+
* <p>Add, change, or remove the Amazon CloudWatch alarms that you optionally
97+
* specify as the blocking alarms for practice runs.</p>
9898
*/
9999
inline const Aws::Vector<ControlCondition>& GetBlockingAlarms() const { return m_blockingAlarms; }
100100
inline bool BlockingAlarmsHasBeenSet() const { return m_blockingAlarmsHasBeenSet; }
@@ -108,8 +108,33 @@ namespace Model
108108

109109
///@{
110110
/**
111-
* <p>Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice
112-
* runs.</p>
111+
* <p>Add, change, or remove windows of days and times for when you can,
112+
* optionally, allow ARC to start a practice run for a resource.</p> <p>The format
113+
* for allowed windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify
114+
* dates, that dates and times for practice runs are in UTC. Also, be aware of
115+
* potential time adjustments that might be required for daylight saving time
116+
* differences. Separate multiple allowed windows with spaces.</p> <p>For example,
117+
* say you want to allow practice runs only on Wednesdays and Fridays from noon to
118+
* 5 p.m. For this scenario, you could set the following recurring days and times
119+
* as allowed windows, for example: <code>Wed-12:00-Wed:17:00
120+
* Fri-12:00-Fri:17:00</code>.</p> <p>The <code>allowedWindows</code>
121+
* have to start and end on the same day. Windows that span multiple days aren't
122+
* supported.</p>
123+
*/
124+
inline const Aws::Vector<Aws::String>& GetAllowedWindows() const { return m_allowedWindows; }
125+
inline bool AllowedWindowsHasBeenSet() const { return m_allowedWindowsHasBeenSet; }
126+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
127+
void SetAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows = std::forward<AllowedWindowsT>(value); }
128+
template<typename AllowedWindowsT = Aws::Vector<Aws::String>>
129+
UpdatePracticeRunConfigurationRequest& WithAllowedWindows(AllowedWindowsT&& value) { SetAllowedWindows(std::forward<AllowedWindowsT>(value)); return *this;}
130+
template<typename AllowedWindowsT = Aws::String>
131+
UpdatePracticeRunConfigurationRequest& AddAllowedWindows(AllowedWindowsT&& value) { m_allowedWindowsHasBeenSet = true; m_allowedWindows.emplace_back(std::forward<AllowedWindowsT>(value)); return *this; }
132+
///@}
133+
134+
///@{
135+
/**
136+
* <p>Specify one or more Amazon CloudWatch alarms as the outcome alarms for
137+
* practice runs.</p>
113138
*/
114139
inline const Aws::Vector<ControlCondition>& GetOutcomeAlarms() const { return m_outcomeAlarms; }
115140
inline bool OutcomeAlarmsHasBeenSet() const { return m_outcomeAlarmsHasBeenSet; }
@@ -134,6 +159,9 @@ namespace Model
134159
Aws::Vector<ControlCondition> m_blockingAlarms;
135160
bool m_blockingAlarmsHasBeenSet = false;
136161

162+
Aws::Vector<Aws::String> m_allowedWindows;
163+
bool m_allowedWindowsHasBeenSet = false;
164+
137165
Aws::Vector<ControlCondition> m_outcomeAlarms;
138166
bool m_outcomeAlarmsHasBeenSet = false;
139167
};

generated/src/aws-cpp-sdk-arc-zonal-shift/include/aws/arc-zonal-shift/model/ValidationExceptionReason.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ namespace Model
2828
InvalidPracticeBlocker,
2929
FISExperimentUpdateNotAllowed,
3030
AutoshiftUpdateNotAllowed,
31-
UnsupportedPracticeCancelShiftType
31+
UnsupportedPracticeCancelShiftType,
32+
InvalidPracticeAllowedWindow,
33+
InvalidPracticeWindows
3234
};
3335

3436
namespace ValidationExceptionReasonMapper

generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace Aws
3131
static const int PracticeBlockingAlarmsRed_HASH = HashingUtils::HashString("PracticeBlockingAlarmsRed");
3232
static const int PracticeInBlockedDates_HASH = HashingUtils::HashString("PracticeInBlockedDates");
3333
static const int PracticeInBlockedWindows_HASH = HashingUtils::HashString("PracticeInBlockedWindows");
34+
static const int PracticeOutsideAllowedWindows_HASH = HashingUtils::HashString("PracticeOutsideAllowedWindows");
3435

3536

3637
ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name)
@@ -80,6 +81,10 @@ namespace Aws
8081
{
8182
return ConflictExceptionReason::PracticeInBlockedWindows;
8283
}
84+
else if (hashCode == PracticeOutsideAllowedWindows_HASH)
85+
{
86+
return ConflictExceptionReason::PracticeOutsideAllowedWindows;
87+
}
8388
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
8489
if(overflowContainer)
8590
{
@@ -118,6 +123,8 @@ namespace Aws
118123
return "PracticeInBlockedDates";
119124
case ConflictExceptionReason::PracticeInBlockedWindows:
120125
return "PracticeInBlockedWindows";
126+
case ConflictExceptionReason::PracticeOutsideAllowedWindows:
127+
return "PracticeOutsideAllowedWindows";
121128
default:
122129
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
123130
if(overflowContainer)

generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/CreatePracticeRunConfigurationRequest.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ Aws::String CreatePracticeRunConfigurationRequest::SerializePayload() const
5555

5656
}
5757

58+
if(m_allowedWindowsHasBeenSet)
59+
{
60+
Aws::Utils::Array<JsonValue> allowedWindowsJsonList(m_allowedWindows.size());
61+
for(unsigned allowedWindowsIndex = 0; allowedWindowsIndex < allowedWindowsJsonList.GetLength(); ++allowedWindowsIndex)
62+
{
63+
allowedWindowsJsonList[allowedWindowsIndex].AsString(m_allowedWindows[allowedWindowsIndex]);
64+
}
65+
payload.WithArray("allowedWindows", std::move(allowedWindowsJsonList));
66+
67+
}
68+
5869
if(m_outcomeAlarmsHasBeenSet)
5970
{
6071
Aws::Utils::Array<JsonValue> outcomeAlarmsJsonList(m_outcomeAlarms.size());

0 commit comments

Comments
 (0)