Skip to content

Commit f162089

Browse files
authored
Rename Transfer.WebApp.EndpointDetails to WebAppEndpointDetails (#2351)
1 parent a80379c commit f162089

2 files changed

Lines changed: 37 additions & 13 deletions

File tree

scripts/patches/transfer.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,14 @@
99
"path": "/ResourceTypes/AWS::Transfer::WebApp/Properties/IdentityProviderDetails/Type",
1010
"value": "WebAppIdentityProviderDetails",
1111
},
12+
{
13+
"op": "move",
14+
"from": "/PropertyTypes/AWS::Transfer::WebApp.EndpointDetails",
15+
"path": "/PropertyTypes/AWS::Transfer::WebApp.WebAppEndpointDetails",
16+
},
17+
{
18+
"op": "replace",
19+
"path": "/ResourceTypes/AWS::Transfer::WebApp/Properties/EndpointDetails/Type",
20+
"value": "WebAppEndpointDetails",
21+
},
1222
]

troposphere/transfer.py

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,28 +165,20 @@ class Profile(AWSObject):
165165
}
166166

167167

168-
class Vpc(AWSProperty):
168+
class EndpointDetails(AWSProperty):
169169
"""
170-
`Vpc <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-webapp-vpc.html>`__
170+
`EndpointDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-endpointdetails.html>`__
171171
"""
172172

173173
props: PropsDictType = {
174+
"AddressAllocationIds": ([str], False),
174175
"SecurityGroupIds": ([str], False),
175176
"SubnetIds": ([str], False),
177+
"VpcEndpointId": (str, False),
176178
"VpcId": (str, False),
177179
}
178180

179181

180-
class EndpointDetails(AWSProperty):
181-
"""
182-
`EndpointDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-webapp-endpointdetails.html>`__
183-
"""
184-
185-
props: PropsDictType = {
186-
"Vpc": (Vpc, False),
187-
}
188-
189-
190182
class IdentityProviderDetails(AWSProperty):
191183
"""
192184
`IdentityProviderDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html>`__
@@ -331,6 +323,28 @@ class WebAppCustomization(AWSProperty):
331323
}
332324

333325

326+
class Vpc(AWSProperty):
327+
"""
328+
`Vpc <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-webapp-vpc.html>`__
329+
"""
330+
331+
props: PropsDictType = {
332+
"SecurityGroupIds": ([str], False),
333+
"SubnetIds": ([str], False),
334+
"VpcId": (str, False),
335+
}
336+
337+
338+
class WebAppEndpointDetails(AWSProperty):
339+
"""
340+
`WebAppEndpointDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-webapp-endpointdetails.html>`__
341+
"""
342+
343+
props: PropsDictType = {
344+
"Vpc": (Vpc, False),
345+
}
346+
347+
334348
class WebAppIdentityProviderDetails(AWSProperty):
335349
"""
336350
`WebAppIdentityProviderDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-webapp-identityproviderdetails.html>`__
@@ -362,7 +376,7 @@ class WebApp(AWSObject):
362376

363377
props: PropsDictType = {
364378
"AccessEndpoint": (str, False),
365-
"EndpointDetails": (EndpointDetails, False),
379+
"EndpointDetails": (WebAppEndpointDetails, False),
366380
"IdentityProviderDetails": (WebAppIdentityProviderDetails, True),
367381
"Tags": (Tags, False),
368382
"WebAppCustomization": (WebAppCustomization, False),

0 commit comments

Comments
 (0)