Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit a9cd13c

Browse files
committed
minor cosmetic fixes of the generated code
1 parent 75dccdc commit a9cd13c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ci/Convert-SpecToFunction.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function $FunctionName {
135135
if ($Name -notin $resourcesToExcludeUpdatePolicy) {
136136
$scriptContents += @"
137137
.PARAMETER UpdatePolicy
138-
Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource. AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group.
138+
Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to certain resources. AWS CloudFormation invokes one of three update policies depending on the type of change you make.
139139
140140
You must use the "Add-UpdatePolicy" function here.`n
141141
"@
@@ -165,7 +165,8 @@ function $FunctionName {
165165
}
166166
}
167167
$scriptContents += @"
168-
`nParam
168+
169+
Param
169170
(
170171
"@
171172
if ($ResourceType -ne "Property") {
@@ -359,8 +360,8 @@ function $FunctionName {
359360
"@
360361
}
361362

362-
#XXX # ensure definitions are separated by blank lines
363-
# $scriptContents += "`n"
363+
# ensure definitions are separated by blank lines
364+
$scriptContents += ""
364365
}
365366
if ($ResourceType -ne "Property") {
366367
if ($Name -notin "AWS::AutoScaling::AutoScalingGroup", "AWS::EC2::Instance", "AWS::CloudFormation::WaitCondition") {

0 commit comments

Comments
 (0)