@@ -566,7 +566,7 @@ def to_cloudformation(self, **kwargs):
566
566
def _construct_nested_stack (self ):
567
567
"""Constructs a AWS::CloudFormation::Stack resource
568
568
"""
569
- nested_stack = NestedStack (self .logical_id , depends_on = self .depends_on )
569
+ nested_stack = NestedStack (self .logical_id , depends_on = self .depends_on , attributes = self . get_passthrough_resource_attributes () )
570
570
nested_stack .Parameters = self .Parameters
571
571
nested_stack .NotificationArns = self .NotificationArns
572
572
application_tags = self ._get_application_tags ()
@@ -631,15 +631,16 @@ def _construct_lambda_layer(self, intrinsics_resolver):
631
631
"""
632
632
retention_policy_value = self ._get_retention_policy_value (intrinsics_resolver )
633
633
634
- retention_policy = {
635
- 'DeletionPolicy' : retention_policy_value
636
- }
634
+ attributes = self .get_passthrough_resource_attributes ()
635
+ if attributes is None :
636
+ attributes = {}
637
+ attributes ['DeletionPolicy' ] = retention_policy_value
637
638
638
639
old_logical_id = self .logical_id
639
640
new_logical_id = logical_id_generator .LogicalIdGenerator (old_logical_id , self .to_dict ()).gen ()
640
641
self .logical_id = new_logical_id
641
642
642
- lambda_layer = LambdaLayerVersion (self .logical_id , depends_on = self .depends_on , attributes = retention_policy )
643
+ lambda_layer = LambdaLayerVersion (self .logical_id , depends_on = self .depends_on , attributes = attributes )
643
644
644
645
# Changing the LayerName property: when a layer is published, it is given an Arn
645
646
# example: arn:aws:lambda:us-west-2:123456789012:layer:MyLayer:1
0 commit comments