@@ -138,103 +138,6 @@ exports[`NetworkVpcStack > Construct(NetworkVpcStack): Snapshot Test 1`] = `
138138 " Type" : " Custom::SsmPutParameterValue" ,
139139 " UpdateReplacePolicy" : " Delete" ,
140140 },
141- " CustomDeleteDefaultVpcCustomResourceProviderHandler87E89F35" : {
142- " DependsOn" : [
143- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" ,
144- ],
145- " Properties" : {
146- " Code" : {
147- " S3Bucket" : " cdk-hnb659fds-assets-555555555555-us-east-1" ,
148- " S3Key" : " REPLACED-GENERATED-NAME.zip" ,
149- },
150- " Environment" : {
151- " Variables" : {
152- " SOLUTION_ID" : " AwsSolution/SO0199/1.14.0" ,
153- },
154- },
155- " Handler" : " __entrypoint__.handler" ,
156- " MemorySize" : 512 ,
157- " Role" : {
158- " Fn::GetAtt" : [
159- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" ,
160- " Arn" ,
161- ],
162- },
163- " Runtime" : " nodejs20.x" ,
164- " Timeout" : 900 ,
165- },
166- " Type" : " AWS::Lambda::Function" ,
167- },
168- " CustomDeleteDefaultVpcCustomResourceProviderLogGroup4113DA48" : {
169- " DeletionPolicy" : " Delete" ,
170- " Properties" : {
171- " LogGroupName" : {
172- " Fn::Join" : [
173- " " ,
174- [
175- " /aws/lambda/" ,
176- {
177- " Ref" : " CustomDeleteDefaultVpcCustomResourceProviderHandler87E89F35" ,
178- },
179- ],
180- ],
181- },
182- " RetentionInDays" : 3653 ,
183- },
184- " Type" : " AWS::Logs::LogGroup" ,
185- " UpdateReplacePolicy" : " Delete" ,
186- },
187- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" : {
188- " Properties" : {
189- " AssumeRolePolicyDocument" : {
190- " Statement" : [
191- {
192- " Action" : " sts:AssumeRole" ,
193- " Effect" : " Allow" ,
194- " Principal" : {
195- " Service" : " lambda.amazonaws.com" ,
196- },
197- },
198- ],
199- " Version" : " 2012-10-17" ,
200- },
201- " ManagedPolicyArns" : [
202- {
203- " Fn::Sub" : " arn:\$ {AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" ,
204- },
205- ],
206- " Policies" : [
207- {
208- " PolicyDocument" : {
209- " Statement" : [
210- {
211- " Action" : [
212- " ec2:DeleteInternetGateway" ,
213- " ec2:DetachInternetGateway" ,
214- " ec2:DeleteNetworkAcl" ,
215- " ec2:DeleteRoute" ,
216- " ec2:DeleteSecurityGroup" ,
217- " ec2:DeleteSubnet" ,
218- " ec2:DeleteVpc" ,
219- " ec2:DescribeInternetGateways" ,
220- " ec2:DescribeNetworkAcls" ,
221- " ec2:DescribeRouteTables" ,
222- " ec2:DescribeSecurityGroups" ,
223- " ec2:DescribeSubnets" ,
224- " ec2:DescribeVpcs" ,
225- ],
226- " Effect" : " Allow" ,
227- " Resource" : " *" ,
228- },
229- ],
230- " Version" : " 2012-10-17" ,
231- },
232- " PolicyName" : " Inline" ,
233- },
234- ],
235- },
236- " Type" : " AWS::IAM::Role" ,
237- },
238141 " CustomSsmGetParameterValueCustomResourceProviderHandlerAAD0E7EE" : {
239142 " DependsOn" : [
240143 " CustomSsmGetParameterValueCustomResourceProviderRoleB3AFDDB2" ,
@@ -1373,122 +1276,6 @@ exports[`NoVpcFlowLogStack > Construct(NetworkVpcStack): Snapshot Test 1`] = `
13731276 },
13741277 },
13751278 " Resources" : {
1376- " CustomDeleteDefaultVpcCustomResourceProviderHandler87E89F35" : {
1377- " DependsOn" : [
1378- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" ,
1379- ],
1380- " Properties" : {
1381- " Code" : {
1382- " S3Bucket" : " cdk-hnb659fds-assets-111111111111-us-east-1" ,
1383- " S3Key" : " REPLACED-GENERATED-NAME.zip" ,
1384- },
1385- " Environment" : {
1386- " Variables" : {
1387- " SOLUTION_ID" : " AwsSolution/SO0199/1.14.0" ,
1388- },
1389- },
1390- " Handler" : " __entrypoint__.handler" ,
1391- " MemorySize" : 512 ,
1392- " Role" : {
1393- " Fn::GetAtt" : [
1394- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" ,
1395- " Arn" ,
1396- ],
1397- },
1398- " Runtime" : " nodejs20.x" ,
1399- " Timeout" : 900 ,
1400- },
1401- " Type" : " AWS::Lambda::Function" ,
1402- },
1403- " CustomDeleteDefaultVpcCustomResourceProviderLogGroup4113DA48" : {
1404- " DeletionPolicy" : " Delete" ,
1405- " Properties" : {
1406- " KmsKeyId" : {
1407- " Ref" : " SsmParameterValueacceleratorkmscloudwatchkeyarnC96584B6F00A464EAD1953AFF4B05118Parameter" ,
1408- },
1409- " LogGroupName" : {
1410- " Fn::Join" : [
1411- " " ,
1412- [
1413- " /aws/lambda/" ,
1414- {
1415- " Ref" : " CustomDeleteDefaultVpcCustomResourceProviderHandler87E89F35" ,
1416- },
1417- ],
1418- ],
1419- },
1420- " RetentionInDays" : 3653 ,
1421- },
1422- " Type" : " AWS::Logs::LogGroup" ,
1423- " UpdateReplacePolicy" : " Delete" ,
1424- },
1425- " CustomDeleteDefaultVpcCustomResourceProviderRole80963EEF" : {
1426- " Properties" : {
1427- " AssumeRolePolicyDocument" : {
1428- " Statement" : [
1429- {
1430- " Action" : " sts:AssumeRole" ,
1431- " Effect" : " Allow" ,
1432- " Principal" : {
1433- " Service" : " lambda.amazonaws.com" ,
1434- },
1435- },
1436- ],
1437- " Version" : " 2012-10-17" ,
1438- },
1439- " ManagedPolicyArns" : [
1440- {
1441- " Fn::Sub" : " arn:\$ {AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" ,
1442- },
1443- ],
1444- " Policies" : [
1445- {
1446- " PolicyDocument" : {
1447- " Statement" : [
1448- {
1449- " Action" : [
1450- " ec2:DeleteInternetGateway" ,
1451- " ec2:DetachInternetGateway" ,
1452- " ec2:DeleteNetworkAcl" ,
1453- " ec2:DeleteRoute" ,
1454- " ec2:DeleteSecurityGroup" ,
1455- " ec2:DeleteSubnet" ,
1456- " ec2:DeleteVpc" ,
1457- " ec2:DescribeInternetGateways" ,
1458- " ec2:DescribeNetworkAcls" ,
1459- " ec2:DescribeRouteTables" ,
1460- " ec2:DescribeSecurityGroups" ,
1461- " ec2:DescribeSubnets" ,
1462- " ec2:DescribeVpcs" ,
1463- ],
1464- " Effect" : " Allow" ,
1465- " Resource" : " *" ,
1466- },
1467- ],
1468- " Version" : " 2012-10-17" ,
1469- },
1470- " PolicyName" : " Inline" ,
1471- },
1472- ],
1473- },
1474- " Type" : " AWS::IAM::Role" ,
1475- },
1476- " DeleteDefaultVpc4DBAE36C" : {
1477- " DeletionPolicy" : " Delete" ,
1478- " DependsOn" : [
1479- " CustomDeleteDefaultVpcCustomResourceProviderLogGroup4113DA48" ,
1480- ],
1481- " Properties" : {
1482- " ServiceToken" : {
1483- " Fn::GetAtt" : [
1484- " CustomDeleteDefaultVpcCustomResourceProviderHandler87E89F35" ,
1485- " Arn" ,
1486- ],
1487- },
1488- },
1489- " Type" : " Custom::DeleteDefaultVpc" ,
1490- " UpdateReplacePolicy" : " Delete" ,
1491- },
14921279 " EnableCentralEndpointsRoleB69A8E04" : {
14931280 " Metadata" : {
14941281 " cdk_nag" : {
0 commit comments