Skip to content

Commit 11bf37a

Browse files
Updated existing APIs and added new ones to support using AWS Elastic Disaster Recovery post-launch actions. Added support for new regions.
1 parent d6f3e2d commit 11bf37a

File tree

55 files changed

+6227
-203
lines changed

Some content is hidden

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

55 files changed

+6227
-203
lines changed

generator/ServiceModels/drs/drs-2020-02-26.api.json

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

generator/ServiceModels/drs/drs-2020-02-26.docs.json

Lines changed: 216 additions & 1 deletion
Large diffs are not rendered by default.

generator/ServiceModels/drs/drs-2020-02-26.endpoint-rule-set.json

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

generator/ServiceModels/drs/drs-2020-02-26.normal.json

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

generator/ServiceModels/drs/drs-2020-02-26.paginators.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
"limit_key": "maxResults",
5555
"result_key": "items"
5656
},
57+
"ListLaunchActions": {
58+
"input_token": "nextToken",
59+
"output_token": "nextToken",
60+
"limit_key": "maxResults",
61+
"result_key": "items"
62+
},
5763
"ListStagingAccounts": {
5864
"input_token": "nextToken",
5965
"output_token": "nextToken",

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

Lines changed: 174 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<property>Amazon.Drs.Model.CreateSourceNetworkRequest.OriginRegion</property>
8989
<min>0</min>
9090
<max>255</max>
91-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
91+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
9292
</property-value-rule>
9393
<property-value-rule>
9494
<property>Amazon.Drs.Model.CreateSourceNetworkRequest.VpcID</property>
@@ -108,6 +108,16 @@
108108
<max>24</max>
109109
<pattern>^drsjob-[0-9a-zA-Z]{17}$</pattern>
110110
</property-value-rule>
111+
<property-value-rule>
112+
<property>Amazon.Drs.Model.DeleteLaunchActionRequest.ActionId</property>
113+
<min>1</min>
114+
<max>64</max>
115+
<pattern>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</pattern>
116+
</property-value-rule>
117+
<property-value-rule>
118+
<property>Amazon.Drs.Model.DeleteLaunchActionRequest.ResourceId</property>
119+
<pattern>^(s-[0-9a-zA-Z]{17}$|lct-[0-9a-zA-Z]{17})$</pattern>
120+
</property-value-rule>
111121
<property-value-rule>
112122
<property>Amazon.Drs.Model.DeleteLaunchConfigurationTemplateRequest.LaunchConfigurationTemplateID</property>
113123
<min>21</min>
@@ -418,6 +428,25 @@
418428
<min>0</min>
419429
<max>2048</max>
420430
</property-value-rule>
431+
<property-value-rule>
432+
<property>Amazon.Drs.Model.ListLaunchActionsRequest.MaxResults</property>
433+
<min>1</min>
434+
<max>1000</max>
435+
</property-value-rule>
436+
<property-value-rule>
437+
<property>Amazon.Drs.Model.ListLaunchActionsRequest.NextToken</property>
438+
<min>0</min>
439+
<max>2048</max>
440+
</property-value-rule>
441+
<property-value-rule>
442+
<property>Amazon.Drs.Model.ListLaunchActionsRequest.ResourceId</property>
443+
<pattern>^(s-[0-9a-zA-Z]{17}$|lct-[0-9a-zA-Z]{17})$</pattern>
444+
</property-value-rule>
445+
<property-value-rule>
446+
<property>Amazon.Drs.Model.ListLaunchActionsResponse.NextToken</property>
447+
<min>0</min>
448+
<max>2048</max>
449+
</property-value-rule>
421450
<property-value-rule>
422451
<property>Amazon.Drs.Model.ListStagingAccountsRequest.MaxResults</property>
423452
<min>1</min>
@@ -439,6 +468,84 @@
439468
<max>2048</max>
440469
<pattern>^arn:.{16,2044}$</pattern>
441470
</property-value-rule>
471+
<property-value-rule>
472+
<property>Amazon.Drs.Model.PutLaunchActionRequest.ActionCode</property>
473+
<min>1</min>
474+
<max>1011</max>
475+
<pattern>^([A-Za-z0-9-])+$</pattern>
476+
</property-value-rule>
477+
<property-value-rule>
478+
<property>Amazon.Drs.Model.PutLaunchActionRequest.ActionId</property>
479+
<min>1</min>
480+
<max>64</max>
481+
<pattern>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</pattern>
482+
</property-value-rule>
483+
<property-value-rule>
484+
<property>Amazon.Drs.Model.PutLaunchActionRequest.ActionVersion</property>
485+
<min>1</min>
486+
<max>10</max>
487+
<pattern>^(\$DEFAULT|\$LATEST|[0-9]+)$</pattern>
488+
</property-value-rule>
489+
<property-value-rule>
490+
<property>Amazon.Drs.Model.PutLaunchActionRequest.Description</property>
491+
<min>0</min>
492+
<max>1024</max>
493+
<pattern>^[0-9a-zA-Z ():/.,'-_#*; ]*$</pattern>
494+
</property-value-rule>
495+
<property-value-rule>
496+
<property>Amazon.Drs.Model.PutLaunchActionRequest.Name</property>
497+
<min>1</min>
498+
<max>256</max>
499+
<pattern>^[A-Za-z0-9][A-Za-z0-9 /_-]*$</pattern>
500+
</property-value-rule>
501+
<property-value-rule>
502+
<property>Amazon.Drs.Model.PutLaunchActionRequest.Order</property>
503+
<min>2</min>
504+
<max>10000</max>
505+
</property-value-rule>
506+
<property-value-rule>
507+
<property>Amazon.Drs.Model.PutLaunchActionRequest.ResourceId</property>
508+
<pattern>^(s-[0-9a-zA-Z]{17}$|lct-[0-9a-zA-Z]{17})$</pattern>
509+
</property-value-rule>
510+
<property-value-rule>
511+
<property>Amazon.Drs.Model.PutLaunchActionResponse.ActionCode</property>
512+
<min>1</min>
513+
<max>1011</max>
514+
<pattern>^([A-Za-z0-9-])+$</pattern>
515+
</property-value-rule>
516+
<property-value-rule>
517+
<property>Amazon.Drs.Model.PutLaunchActionResponse.ActionId</property>
518+
<min>1</min>
519+
<max>64</max>
520+
<pattern>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</pattern>
521+
</property-value-rule>
522+
<property-value-rule>
523+
<property>Amazon.Drs.Model.PutLaunchActionResponse.ActionVersion</property>
524+
<min>1</min>
525+
<max>10</max>
526+
<pattern>^(\$DEFAULT|\$LATEST|[0-9]+)$</pattern>
527+
</property-value-rule>
528+
<property-value-rule>
529+
<property>Amazon.Drs.Model.PutLaunchActionResponse.Description</property>
530+
<min>0</min>
531+
<max>1024</max>
532+
<pattern>^[0-9a-zA-Z ():/.,'-_#*; ]*$</pattern>
533+
</property-value-rule>
534+
<property-value-rule>
535+
<property>Amazon.Drs.Model.PutLaunchActionResponse.Name</property>
536+
<min>1</min>
537+
<max>256</max>
538+
<pattern>^[A-Za-z0-9][A-Za-z0-9 /_-]*$</pattern>
539+
</property-value-rule>
540+
<property-value-rule>
541+
<property>Amazon.Drs.Model.PutLaunchActionResponse.Order</property>
542+
<min>2</min>
543+
<max>10000</max>
544+
</property-value-rule>
545+
<property-value-rule>
546+
<property>Amazon.Drs.Model.PutLaunchActionResponse.ResourceId</property>
547+
<pattern>^(s-[0-9a-zA-Z]{17}$|lct-[0-9a-zA-Z]{17})$</pattern>
548+
</property-value-rule>
442549
<property-value-rule>
443550
<property>Amazon.Drs.Model.RetryDataReplicationRequest.SourceServerID</property>
444551
<min>19</min>
@@ -778,7 +885,7 @@
778885
<property>Amazon.Drs.Model.DataReplicationInfo.StagingAvailabilityZone</property>
779886
<min>0</min>
780887
<max>255</max>
781-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
888+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
782889
</property-value-rule>
783890
<property-value-rule>
784891
<property>Amazon.Drs.Model.DataReplicationInfoReplicatedDisk.BackloggedStorageBytes</property>
@@ -847,7 +954,7 @@
847954
<property>Amazon.Drs.Model.DescribeSourceNetworksRequestFilters.OriginRegion</property>
848955
<min>0</min>
849956
<max>255</max>
850-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
957+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
851958
</property-value-rule>
852959
<property-value-rule>
853960
<property>Amazon.Drs.Model.DescribeSourceServersRequestFilters.HardwareId</property>
@@ -941,6 +1048,65 @@
9411048
<max>255</max>
9421049
<pattern>^i-[0-9a-fA-F]{8,}$</pattern>
9431050
</property-value-rule>
1051+
<property-value-rule>
1052+
<property>Amazon.Drs.Model.LaunchAction.ActionCode</property>
1053+
<min>1</min>
1054+
<max>1011</max>
1055+
<pattern>^([A-Za-z0-9-])+$</pattern>
1056+
</property-value-rule>
1057+
<property-value-rule>
1058+
<property>Amazon.Drs.Model.LaunchAction.ActionId</property>
1059+
<min>1</min>
1060+
<max>64</max>
1061+
<pattern>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</pattern>
1062+
</property-value-rule>
1063+
<property-value-rule>
1064+
<property>Amazon.Drs.Model.LaunchAction.ActionVersion</property>
1065+
<min>1</min>
1066+
<max>10</max>
1067+
<pattern>^(\$DEFAULT|\$LATEST|[0-9]+)$</pattern>
1068+
</property-value-rule>
1069+
<property-value-rule>
1070+
<property>Amazon.Drs.Model.LaunchAction.Description</property>
1071+
<min>0</min>
1072+
<max>1024</max>
1073+
<pattern>^[0-9a-zA-Z ():/.,'-_#*; ]*$</pattern>
1074+
</property-value-rule>
1075+
<property-value-rule>
1076+
<property>Amazon.Drs.Model.LaunchAction.Name</property>
1077+
<min>1</min>
1078+
<max>256</max>
1079+
<pattern>^[A-Za-z0-9][A-Za-z0-9 /_-]*$</pattern>
1080+
</property-value-rule>
1081+
<property-value-rule>
1082+
<property>Amazon.Drs.Model.LaunchAction.Order</property>
1083+
<min>2</min>
1084+
<max>10000</max>
1085+
</property-value-rule>
1086+
<property-value-rule>
1087+
<property>Amazon.Drs.Model.LaunchActionParameter.Value</property>
1088+
<min>1</min>
1089+
<max>1011</max>
1090+
<pattern>^[A-Za-z0-9.-]+$</pattern>
1091+
</property-value-rule>
1092+
<property-value-rule>
1093+
<property>Amazon.Drs.Model.LaunchActionRun.FailureReason</property>
1094+
<min>0</min>
1095+
<max>256</max>
1096+
<pattern>^[0-9a-zA-Z ():/.,'-_#*;]*$</pattern>
1097+
</property-value-rule>
1098+
<property-value-rule>
1099+
<property>Amazon.Drs.Model.LaunchActionRun.RunId</property>
1100+
<min>1</min>
1101+
<max>64</max>
1102+
<pattern>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</pattern>
1103+
</property-value-rule>
1104+
<property-value-rule>
1105+
<property>Amazon.Drs.Model.LaunchActionsStatus.SsmAgentDiscoveryDatetime</property>
1106+
<min>19</min>
1107+
<max>32</max>
1108+
<pattern>^[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?Z$</pattern>
1109+
</property-value-rule>
9441110
<property-value-rule>
9451111
<property>Amazon.Drs.Model.LaunchConfigurationTemplate.Arn</property>
9461112
<min>20</min>
@@ -1056,7 +1222,7 @@
10561222
<property>Amazon.Drs.Model.RecoveryInstance.OriginAvailabilityZone</property>
10571223
<min>0</min>
10581224
<max>255</max>
1059-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
1225+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
10601226
</property-value-rule>
10611227
<property-value-rule>
10621228
<property>Amazon.Drs.Model.RecoveryInstance.PointInTimeSnapshotDateTime</property>
@@ -1097,7 +1263,7 @@
10971263
<property>Amazon.Drs.Model.RecoveryInstanceDataReplicationInfo.StagingAvailabilityZone</property>
10981264
<min>0</min>
10991265
<max>255</max>
1100-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
1266+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
11011267
</property-value-rule>
11021268
<property-value-rule>
11031269
<property>Amazon.Drs.Model.RecoveryInstanceDataReplicationInfoReplicatedDisk.BackloggedStorageBytes</property>
@@ -1285,13 +1451,13 @@
12851451
<property>Amazon.Drs.Model.SourceCloudProperties.OriginAvailabilityZone</property>
12861452
<min>0</min>
12871453
<max>255</max>
1288-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
1454+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9][a-z]$</pattern>
12891455
</property-value-rule>
12901456
<property-value-rule>
12911457
<property>Amazon.Drs.Model.SourceCloudProperties.OriginRegion</property>
12921458
<min>0</min>
12931459
<max>255</max>
1294-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
1460+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
12951461
</property-value-rule>
12961462
<property-value-rule>
12971463
<property>Amazon.Drs.Model.SourceNetwork.Arn</property>
@@ -1332,7 +1498,7 @@
13321498
<property>Amazon.Drs.Model.SourceNetwork.SourceRegion</property>
13331499
<min>0</min>
13341500
<max>255</max>
1335-
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
1501+
<pattern>^(us(-gov)?|ap|ca|cn|eu|sa|af|me|il)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]$</pattern>
13361502
</property-value-rule>
13371503
<property-value-rule>
13381504
<property>Amazon.Drs.Model.SourceNetwork.SourceVpcID</property>

sdk/src/Services/Drs/Generated/Model/CreateLaunchConfigurationTemplateRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class CreateLaunchConfigurationTemplateRequest : AmazonDrsRequest
3939
private string _exportBucketArn;
4040
private LaunchDisposition _launchDisposition;
4141
private Licensing _licensing;
42+
private bool? _postLaunchEnabled;
4243
private Dictionary<string, string> _tags = new Dictionary<string, string>();
4344
private TargetInstanceTypeRightSizingMethod _targetInstanceTypeRightSizingMethod;
4445

@@ -133,6 +134,24 @@ internal bool IsSetLicensing()
133134
return this._licensing != null;
134135
}
135136

137+
/// <summary>
138+
/// Gets and sets the property PostLaunchEnabled.
139+
/// <para>
140+
/// Whether we want to activate post-launch actions.
141+
/// </para>
142+
/// </summary>
143+
public bool PostLaunchEnabled
144+
{
145+
get { return this._postLaunchEnabled.GetValueOrDefault(); }
146+
set { this._postLaunchEnabled = value; }
147+
}
148+
149+
// Check to see if PostLaunchEnabled property is set
150+
internal bool IsSetPostLaunchEnabled()
151+
{
152+
return this._postLaunchEnabled.HasValue;
153+
}
154+
136155
/// <summary>
137156
/// Gets and sets the property Tags.
138157
/// <para>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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 drs-2020-02-26.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+
namespace Amazon.Drs.Model
30+
{
31+
/// <summary>
32+
/// Container for the parameters to the DeleteLaunchAction operation.
33+
/// Deletes a resource launch action.
34+
/// </summary>
35+
public partial class DeleteLaunchActionRequest : AmazonDrsRequest
36+
{
37+
private string _actionId;
38+
private string _resourceId;
39+
40+
/// <summary>
41+
/// Gets and sets the property ActionId.
42+
/// </summary>
43+
[AWSProperty(Required=true, Min=1, Max=64)]
44+
public string ActionId
45+
{
46+
get { return this._actionId; }
47+
set { this._actionId = value; }
48+
}
49+
50+
// Check to see if ActionId property is set
51+
internal bool IsSetActionId()
52+
{
53+
return this._actionId != null;
54+
}
55+
56+
/// <summary>
57+
/// Gets and sets the property ResourceId.
58+
/// </summary>
59+
[AWSProperty(Required=true)]
60+
public string ResourceId
61+
{
62+
get { return this._resourceId; }
63+
set { this._resourceId = value; }
64+
}
65+
66+
// Check to see if ResourceId property is set
67+
internal bool IsSetResourceId()
68+
{
69+
return this._resourceId != null;
70+
}
71+
72+
}
73+
}

0 commit comments

Comments
 (0)