Skip to content

Commit 278c7ce

Browse files
We added 5 new stack refactoring APIs: CreateStackRefactor, ExecuteStackRefactor, ListStackRefactors, DescribeStackRefactor, ListStackRefactorActions.
1 parent d015ee2 commit 278c7ce

File tree

79 files changed

+6640
-254
lines changed

Some content is hidden

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

79 files changed

+6640
-254
lines changed

generator/ServiceModels/cloudformation/cloudformation-2010-05-15.api.json

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

generator/ServiceModels/cloudformation/cloudformation-2010-05-15.docs.json

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

generator/ServiceModels/cloudformation/cloudformation-2010-05-15.normal.json

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

generator/ServiceModels/cloudformation/cloudformation-2010-05-15.paginators.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@
6868
"output_token": "NextToken",
6969
"result_key": "Summaries"
7070
},
71+
"ListStackRefactorActions": {
72+
"input_token": "NextToken",
73+
"limit_key": "MaxResults",
74+
"output_token": "NextToken",
75+
"result_key": "StackRefactorActions"
76+
},
77+
"ListStackRefactors": {
78+
"input_token": "NextToken",
79+
"limit_key": "MaxResults",
80+
"output_token": "NextToken",
81+
"result_key": "StackRefactorSummaries"
82+
},
7183
"ListStackResources": {
7284
"input_token": "NextToken",
7385
"output_token": "NextToken",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": 2,
3+
"testCases": [
4+
{
5+
"id": "ListStacksSuccess",
6+
"operationName": "ListStacks",
7+
"input": {},
8+
"expectation": {
9+
"success": {}
10+
},
11+
"config": {
12+
"region": "us-west-2"
13+
}
14+
},
15+
{
16+
"id": "CreateStackFailure",
17+
"operationName": "CreateStack",
18+
"input": {
19+
"StackName": "fakestack",
20+
"TemplateURL": "http:\/\/s3.amazonaws.com\/foo\/bar"
21+
},
22+
"expectation": {
23+
"failure": {}
24+
},
25+
"config": {
26+
"region": "us-west-2"
27+
}
28+
}
29+
]
30+
}

generator/ServiceModels/cloudformation/cloudformation-2010-05-15.waiters2.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,62 @@
324324
}
325325
]
326326
},
327+
"StackRefactorCreateComplete": {
328+
"delay": 5,
329+
"operation": "DescribeStackRefactor",
330+
"maxAttempts": 120,
331+
"description": "Wait until the stack refactor status is CREATE_COMPLETE.",
332+
"acceptors": [
333+
{
334+
"argument": "Status",
335+
"expected": "CREATE_COMPLETE",
336+
"matcher": "path",
337+
"state": "success"
338+
},
339+
{
340+
"argument": "Status",
341+
"expected": "CREATE_FAILED",
342+
"matcher": "path",
343+
"state": "failure"
344+
},
345+
{
346+
"expected": "ValidationError",
347+
"matcher": "error",
348+
"state": "failure"
349+
}
350+
]
351+
},
352+
"StackRefactorExecuteComplete": {
353+
"delay": 15,
354+
"operation": "DescribeStackRefactor",
355+
"maxAttempts": 120,
356+
"description": "Wait until the stack refactor status is EXECUTE_COMPLETE.",
357+
"acceptors": [
358+
{
359+
"argument": "ExecutionStatus",
360+
"expected": "EXECUTE_COMPLETE",
361+
"matcher": "path",
362+
"state": "success"
363+
},
364+
{
365+
"argument": "ExecutionStatus",
366+
"expected": "EXECUTE_FAILED",
367+
"matcher": "path",
368+
"state": "failure"
369+
},
370+
{
371+
"argument": "ExecutionStatus",
372+
"expected": "ROLLBACK_COMPLETE",
373+
"matcher": "path",
374+
"state": "failure"
375+
},
376+
{
377+
"expected": "ValidationError",
378+
"matcher": "error",
379+
"state": "failure"
380+
}
381+
]
382+
},
327383
"TypeRegistrationComplete": {
328384
"delay": 30,
329385
"operation": "DescribeTypeRegistration",

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@
157157
<max>128</max>
158158
<pattern>[a-zA-Z0-9][-a-zA-Z0-9]*</pattern>
159159
</property-value-rule>
160+
<property-value-rule>
161+
<property>Amazon.CloudFormation.Model.CreateStackRefactorRequest.Description</property>
162+
<min>1</min>
163+
<max>1024</max>
164+
</property-value-rule>
160165
<property-value-rule>
161166
<property>Amazon.CloudFormation.Model.CreateStackSetRequest.AdministrationRoleARN</property>
162167
<min>20</min>
@@ -413,6 +418,11 @@
413418
<property>Amazon.CloudFormation.Model.DescribeStackInstanceRequest.StackInstanceRegion</property>
414419
<pattern>^[a-zA-Z0-9-]{1,128}$</pattern>
415420
</property-value-rule>
421+
<property-value-rule>
422+
<property>Amazon.CloudFormation.Model.DescribeStackRefactorResponse.Description</property>
423+
<min>1</min>
424+
<max>1024</max>
425+
</property-value-rule>
416426
<property-value-rule>
417427
<property>Amazon.CloudFormation.Model.DescribeStackResourceDriftsRequest.MaxResults</property>
418428
<min>1</min>
@@ -877,6 +887,36 @@
877887
<min>1</min>
878888
<max>1024</max>
879889
</property-value-rule>
890+
<property-value-rule>
891+
<property>Amazon.CloudFormation.Model.ListStackRefactorActionsRequest.MaxResults</property>
892+
<min>1</min>
893+
<max>100</max>
894+
</property-value-rule>
895+
<property-value-rule>
896+
<property>Amazon.CloudFormation.Model.ListStackRefactorActionsRequest.NextToken</property>
897+
<min>1</min>
898+
<max>1024</max>
899+
</property-value-rule>
900+
<property-value-rule>
901+
<property>Amazon.CloudFormation.Model.ListStackRefactorActionsResponse.NextToken</property>
902+
<min>1</min>
903+
<max>1024</max>
904+
</property-value-rule>
905+
<property-value-rule>
906+
<property>Amazon.CloudFormation.Model.ListStackRefactorsRequest.MaxResults</property>
907+
<min>1</min>
908+
<max>100</max>
909+
</property-value-rule>
910+
<property-value-rule>
911+
<property>Amazon.CloudFormation.Model.ListStackRefactorsRequest.NextToken</property>
912+
<min>1</min>
913+
<max>1024</max>
914+
</property-value-rule>
915+
<property-value-rule>
916+
<property>Amazon.CloudFormation.Model.ListStackRefactorsResponse.NextToken</property>
917+
<min>1</min>
918+
<max>1024</max>
919+
</property-value-rule>
880920
<property-value-rule>
881921
<property>Amazon.CloudFormation.Model.ListStackResourcesRequest.NextToken</property>
882922
<min>1</min>
@@ -1572,6 +1612,15 @@
15721612
<property>Amazon.CloudFormation.Model.Stack.TimeoutInMinutes</property>
15731613
<min>1</min>
15741614
</property-value-rule>
1615+
<property-value-rule>
1616+
<property>Amazon.CloudFormation.Model.StackDefinition.TemplateBody</property>
1617+
<min>1</min>
1618+
</property-value-rule>
1619+
<property-value-rule>
1620+
<property>Amazon.CloudFormation.Model.StackDefinition.TemplateURL</property>
1621+
<min>1</min>
1622+
<max>1024</max>
1623+
</property-value-rule>
15751624
<property-value-rule>
15761625
<property>Amazon.CloudFormation.Model.StackEvent.ClientRequestToken</property>
15771626
<min>1</min>
@@ -1640,6 +1689,16 @@
16401689
<property>Amazon.CloudFormation.Model.StackInstanceSummary.Region</property>
16411690
<pattern>^[a-zA-Z0-9-]{1,128}$</pattern>
16421691
</property-value-rule>
1692+
<property-value-rule>
1693+
<property>Amazon.CloudFormation.Model.StackRefactorAction.Description</property>
1694+
<min>1</min>
1695+
<max>1024</max>
1696+
</property-value-rule>
1697+
<property-value-rule>
1698+
<property>Amazon.CloudFormation.Model.StackRefactorSummary.Description</property>
1699+
<min>1</min>
1700+
<max>1024</max>
1701+
</property-value-rule>
16431702
<property-value-rule>
16441703
<property>Amazon.CloudFormation.Model.StackResource.Description</property>
16451704
<min>1</min>

sdk/src/Services/CloudFormation/Generated/Model/AccountGateResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace Amazon.CloudFormation.Model
4646
///
4747
/// <para>
4848
/// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-account-gating.html">Configuring
49-
/// a target account gate</a>.
49+
/// a target account gate in StackSets</a> in the <i>CloudFormation User Guide</i>.
5050
/// </para>
5151
/// </summary>
5252
public partial class AccountGateResult

sdk/src/Services/CloudFormation/Generated/Model/Change.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public partial class Change
4242
/// <summary>
4343
/// Gets and sets the property HookInvocationCount.
4444
/// <para>
45-
/// Is either <c>null</c>, if no hooks invoke for the resource, or contains the number
46-
/// of hooks that will invoke for the resource.
45+
/// Is either <c>null</c>, if no Hooks invoke for the resource, or contains the number
46+
/// of Hooks that will invoke for the resource.
4747
/// </para>
4848
/// </summary>
4949
[AWSProperty(Min=1, Max=100)]

sdk/src/Services/CloudFormation/Generated/Model/ChangeSetHookResourceTargetDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace Amazon.CloudFormation.Model
3131
{
3232
/// <summary>
33-
/// Specifies <c>RESOURCE</c> type target details for activated hooks.
33+
/// Specifies <c>RESOURCE</c> type target details for activated Hooks.
3434
/// </summary>
3535
public partial class ChangeSetHookResourceTargetDetails
3636
{

0 commit comments

Comments
 (0)