Skip to content

Commit 7690ac6

Browse files
Added support for on-demand practice runs and balanced capacity checks in ARC autoshift practice.
1 parent c9b2052 commit 7690ac6

38 files changed

+3030
-787
lines changed

generator/ServiceModels/arc-zonal-shift/arc-zonal-shift-2022-10-30.api.json

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

generator/ServiceModels/arc-zonal-shift/arc-zonal-shift-2022-10-30.docs.json

Lines changed: 95 additions & 89 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/arc-zonal-shift/arc-zonal-shift-2022-10-30.normal.json

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

sdk/code-analysis/ServiceAnalysis/ARCZonalShift/Generated/PropertyValueRules.xml

Lines changed: 78 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
11
<?xml version="1.0" encoding="utf-16"?>
22
<property-value-rules>
3+
<property-value-rule>
4+
<property>Amazon.ARCZonalShift.Model.CancelPracticeRunRequest.ZonalShiftId</property>
5+
<min>6</min>
6+
<max>36</max>
7+
<pattern>[A-Za-z0-9-]+</pattern>
8+
</property-value-rule>
9+
<property-value-rule>
10+
<property>Amazon.ARCZonalShift.Model.CancelPracticeRunResponse.AwayFrom</property>
11+
<min>0</min>
12+
<max>20</max>
13+
</property-value-rule>
14+
<property-value-rule>
15+
<property>Amazon.ARCZonalShift.Model.CancelPracticeRunResponse.Comment</property>
16+
<min>0</min>
17+
<max>128</max>
18+
</property-value-rule>
19+
<property-value-rule>
20+
<property>Amazon.ARCZonalShift.Model.CancelPracticeRunResponse.ResourceIdentifier</property>
21+
<min>8</min>
22+
<max>1024</max>
23+
</property-value-rule>
24+
<property-value-rule>
25+
<property>Amazon.ARCZonalShift.Model.CancelPracticeRunResponse.ZonalShiftId</property>
26+
<min>6</min>
27+
<max>36</max>
28+
<pattern>[A-Za-z0-9-]+</pattern>
29+
</property-value-rule>
330
<property-value-rule>
431
<property>Amazon.ARCZonalShift.Model.CancelZonalShiftRequest.ZonalShiftId</property>
532
<min>6</min>
633
<max>36</max>
7-
<pattern>^[A-Za-z0-9-]+$</pattern>
34+
<pattern>[A-Za-z0-9-]+</pattern>
835
</property-value-rule>
936
<property-value-rule>
1037
<property>Amazon.ARCZonalShift.Model.CancelZonalShiftResponse.AwayFrom</property>
@@ -25,7 +52,7 @@
2552
<property>Amazon.ARCZonalShift.Model.CancelZonalShiftResponse.ZonalShiftId</property>
2653
<min>6</min>
2754
<max>36</max>
28-
<pattern>^[A-Za-z0-9-]+$</pattern>
55+
<pattern>[A-Za-z0-9-]+</pattern>
2956
</property-value-rule>
3057
<property-value-rule>
3158
<property>Amazon.ARCZonalShift.Model.CreatePracticeRunConfigurationRequest.ResourceIdentifier</property>
@@ -36,7 +63,7 @@
3663
<property>Amazon.ARCZonalShift.Model.CreatePracticeRunConfigurationResponse.Arn</property>
3764
<min>8</min>
3865
<max>1024</max>
39-
<pattern>^arn:.*$</pattern>
66+
<pattern>arn:.*</pattern>
4067
</property-value-rule>
4168
<property-value-rule>
4269
<property>Amazon.ARCZonalShift.Model.CreatePracticeRunConfigurationResponse.Name</property>
@@ -52,7 +79,7 @@
5279
<property>Amazon.ARCZonalShift.Model.DeletePracticeRunConfigurationResponse.Arn</property>
5380
<min>8</min>
5481
<max>1024</max>
55-
<pattern>^arn:.*$</pattern>
82+
<pattern>arn:.*</pattern>
5683
</property-value-rule>
5784
<property-value-rule>
5885
<property>Amazon.ARCZonalShift.Model.DeletePracticeRunConfigurationResponse.Name</property>
@@ -68,7 +95,7 @@
6895
<property>Amazon.ARCZonalShift.Model.GetManagedResourceResponse.Arn</property>
6996
<min>8</min>
7097
<max>1024</max>
71-
<pattern>^arn:.*$</pattern>
98+
<pattern>arn:.*</pattern>
7299
</property-value-rule>
73100
<property-value-rule>
74101
<property>Amazon.ARCZonalShift.Model.GetManagedResourceResponse.Name</property>
@@ -95,6 +122,42 @@
95122
<min>8</min>
96123
<max>1024</max>
97124
</property-value-rule>
125+
<property-value-rule>
126+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunRequest.AwayFrom</property>
127+
<min>0</min>
128+
<max>20</max>
129+
</property-value-rule>
130+
<property-value-rule>
131+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunRequest.Comment</property>
132+
<min>0</min>
133+
<max>128</max>
134+
</property-value-rule>
135+
<property-value-rule>
136+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunRequest.ResourceIdentifier</property>
137+
<min>8</min>
138+
<max>1024</max>
139+
</property-value-rule>
140+
<property-value-rule>
141+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunResponse.AwayFrom</property>
142+
<min>0</min>
143+
<max>20</max>
144+
</property-value-rule>
145+
<property-value-rule>
146+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunResponse.Comment</property>
147+
<min>0</min>
148+
<max>128</max>
149+
</property-value-rule>
150+
<property-value-rule>
151+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunResponse.ResourceIdentifier</property>
152+
<min>8</min>
153+
<max>1024</max>
154+
</property-value-rule>
155+
<property-value-rule>
156+
<property>Amazon.ARCZonalShift.Model.StartPracticeRunResponse.ZonalShiftId</property>
157+
<min>6</min>
158+
<max>36</max>
159+
<pattern>[A-Za-z0-9-]+</pattern>
160+
</property-value-rule>
98161
<property-value-rule>
99162
<property>Amazon.ARCZonalShift.Model.StartZonalShiftRequest.AwayFrom</property>
100163
<min>0</min>
@@ -109,7 +172,7 @@
109172
<property>Amazon.ARCZonalShift.Model.StartZonalShiftRequest.ExpiresIn</property>
110173
<min>2</min>
111174
<max>5</max>
112-
<pattern>^([1-9][0-9]*)(m|h)$</pattern>
175+
<pattern>([1-9][0-9]*)(m|h)</pattern>
113176
</property-value-rule>
114177
<property-value-rule>
115178
<property>Amazon.ARCZonalShift.Model.StartZonalShiftRequest.ResourceIdentifier</property>
@@ -135,7 +198,7 @@
135198
<property>Amazon.ARCZonalShift.Model.StartZonalShiftResponse.ZonalShiftId</property>
136199
<min>6</min>
137200
<max>36</max>
138-
<pattern>^[A-Za-z0-9-]+$</pattern>
201+
<pattern>[A-Za-z0-9-]+</pattern>
139202
</property-value-rule>
140203
<property-value-rule>
141204
<property>Amazon.ARCZonalShift.Model.UpdatePracticeRunConfigurationRequest.ResourceIdentifier</property>
@@ -146,7 +209,7 @@
146209
<property>Amazon.ARCZonalShift.Model.UpdatePracticeRunConfigurationResponse.Arn</property>
147210
<min>8</min>
148211
<max>1024</max>
149-
<pattern>^arn:.*$</pattern>
212+
<pattern>arn:.*</pattern>
150213
</property-value-rule>
151214
<property-value-rule>
152215
<property>Amazon.ARCZonalShift.Model.UpdatePracticeRunConfigurationResponse.Name</property>
@@ -172,13 +235,13 @@
172235
<property>Amazon.ARCZonalShift.Model.UpdateZonalShiftRequest.ExpiresIn</property>
173236
<min>2</min>
174237
<max>5</max>
175-
<pattern>^([1-9][0-9]*)(m|h)$</pattern>
238+
<pattern>([1-9][0-9]*)(m|h)</pattern>
176239
</property-value-rule>
177240
<property-value-rule>
178241
<property>Amazon.ARCZonalShift.Model.UpdateZonalShiftRequest.ZonalShiftId</property>
179242
<min>6</min>
180243
<max>36</max>
181-
<pattern>^[A-Za-z0-9-]+$</pattern>
244+
<pattern>[A-Za-z0-9-]+</pattern>
182245
</property-value-rule>
183246
<property-value-rule>
184247
<property>Amazon.ARCZonalShift.Model.UpdateZonalShiftResponse.AwayFrom</property>
@@ -199,7 +262,7 @@
199262
<property>Amazon.ARCZonalShift.Model.UpdateZonalShiftResponse.ZonalShiftId</property>
200263
<min>6</min>
201264
<max>36</max>
202-
<pattern>^[A-Za-z0-9-]+$</pattern>
265+
<pattern>[A-Za-z0-9-]+</pattern>
203266
</property-value-rule>
204267
<property-value-rule>
205268
<property>Amazon.ARCZonalShift.Model.AutoshiftInResource.AwayFrom</property>
@@ -215,13 +278,13 @@
215278
<property>Amazon.ARCZonalShift.Model.ControlCondition.AlarmIdentifier</property>
216279
<min>8</min>
217280
<max>1024</max>
218-
<pattern>^.*$</pattern>
281+
<pattern>.*</pattern>
219282
</property-value-rule>
220283
<property-value-rule>
221284
<property>Amazon.ARCZonalShift.Model.ManagedResourceSummary.Arn</property>
222285
<min>8</min>
223286
<max>1024</max>
224-
<pattern>^arn:.*$</pattern>
287+
<pattern>arn:.*</pattern>
225288
</property-value-rule>
226289
<property-value-rule>
227290
<property>Amazon.ARCZonalShift.Model.ManagedResourceSummary.Name</property>
@@ -247,7 +310,7 @@
247310
<property>Amazon.ARCZonalShift.Model.ZonalShiftInResource.ZonalShiftId</property>
248311
<min>6</min>
249312
<max>36</max>
250-
<pattern>^[A-Za-z0-9-]+$</pattern>
313+
<pattern>[A-Za-z0-9-]+</pattern>
251314
</property-value-rule>
252315
<property-value-rule>
253316
<property>Amazon.ARCZonalShift.Model.ZonalShiftSummary.AwayFrom</property>
@@ -268,6 +331,6 @@
268331
<property>Amazon.ARCZonalShift.Model.ZonalShiftSummary.ZonalShiftId</property>
269332
<min>6</min>
270333
<max>36</max>
271-
<pattern>^[A-Za-z0-9-]+$</pattern>
334+
<pattern>[A-Za-z0-9-]+</pattern>
272335
</property-value-rule>
273336
</property-value-rules>

sdk/src/Services/ARCZonalShift/Generated/Model/AutoshiftInResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ namespace Amazon.ARCZonalShift.Model
3636
///
3737
/// <para>
3838
/// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.html">How
39-
/// zonal autoshift and practice runs work</a> in the Amazon Route 53 Application Recovery
40-
/// Controller Developer Guide.
39+
/// zonal autoshift and practice runs work</a> in the Amazon Application Recovery Controller
40+
/// Developer Guide.
4141
/// </para>
4242
/// </summary>
4343
public partial class AutoshiftInResource
@@ -66,8 +66,8 @@ public partial class AutoshiftInResource
6666
///
6767
/// <para>
6868
/// For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.html">How
69-
/// zonal autoshift and practice runs work</a> in the Amazon Route 53 Application Recovery
70-
/// Controller Developer Guide.
69+
/// zonal autoshift and practice runs work</a> in the Amazon Application Recovery Controller
70+
/// Developer Guide.
7171
/// </para>
7272
/// </summary>
7373
[AWSProperty(Required=true)]

sdk/src/Services/ARCZonalShift/Generated/Model/AutoshiftSummary.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ namespace Amazon.ARCZonalShift.Model
4343
/// ends the autoshift, and traffic for the resource is no longer directed to the other
4444
/// Availability Zones in the Region.
4545
/// </para>
46+
///
47+
/// <para>
48+
/// You can stop an autoshift for a resource by disabling zonal autoshift.
49+
/// </para>
4650
/// </summary>
4751
public partial class AutoshiftSummary
4852
{
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.ARCZonalShift.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the CancelPracticeRun operation.
34+
/// Cancel an in-progress practice run zonal shift in Amazon Application Recovery Controller.
35+
/// </summary>
36+
public partial class CancelPracticeRunRequest : AmazonARCZonalShiftRequest
37+
{
38+
private string _zonalShiftId;
39+
40+
/// <summary>
41+
/// Gets and sets the property ZonalShiftId.
42+
/// <para>
43+
/// The identifier of a practice run zonal shift in Amazon Application Recovery Controller
44+
/// that you want to cancel.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Required=true, Min=6, Max=36)]
48+
public string ZonalShiftId
49+
{
50+
get { return this._zonalShiftId; }
51+
set { this._zonalShiftId = value; }
52+
}
53+
54+
// Check to see if ZonalShiftId property is set
55+
internal bool IsSetZonalShiftId()
56+
{
57+
return this._zonalShiftId != null;
58+
}
59+
60+
}
61+
}

0 commit comments

Comments
 (0)