@@ -552,16 +552,31 @@ class Properties(BaseModel):
552
552
"FunctionName" ,
553
553
)
554
554
FunctionUrlConfig : Optional [FunctionUrlConfig ] = prop ("FunctionUrlConfig" )
555
- Handler : Optional [Handler ] = prop ("Handler" )
555
+ Handler : Optional [Handler ] = passthrough_prop (
556
+ PROPERTIES_STEM ,
557
+ "Handler" ,
558
+ "AWS::Lambda::Function" ,
559
+ "Handler" ,
560
+ )
556
561
ImageConfig : Optional [PassThroughProp ] = prop ("ImageConfig" )
557
562
ImageUri : Optional [PassThroughProp ] = prop ("ImageUri" )
558
563
InlineCode : Optional [PassThroughProp ] = prop ("InlineCode" )
559
564
KmsKeyArn : Optional [KmsKeyArn ] = prop ("KmsKeyArn" )
560
565
Layers : Optional [Layers ] = prop ("Layers" )
561
566
MemorySize : Optional [MemorySize ] = prop ("MemorySize" )
562
567
PackageType : Optional [PassThroughProp ] = prop ("PackageType" )
563
- RolePath : Optional [RolePath ] = prop ("RolePath" )
564
- PermissionsBoundary : Optional [PermissionsBoundary ] = prop ("PermissionsBoundary" )
568
+ RolePath : Optional [RolePath ] = passthrough_prop (
569
+ PROPERTIES_STEM ,
570
+ "RolePath" ,
571
+ "AWS::IAM::Role" ,
572
+ "Path" ,
573
+ )
574
+ PermissionsBoundary : Optional [PermissionsBoundary ] = passthrough_prop (
575
+ PROPERTIES_STEM ,
576
+ "PermissionsBoundary" ,
577
+ "AWS::IAM::Role" ,
578
+ "PermissionsBoundary" ,
579
+ )
565
580
Policies : Optional [Union [str , DictStrAny , List [Union [str , DictStrAny ]]]] = prop ("Policies" )
566
581
ProvisionedConcurrencyConfig : Optional [ProvisionedConcurrencyConfig ] = passthrough_prop (
567
582
PROPERTIES_STEM ,
@@ -571,7 +586,12 @@ class Properties(BaseModel):
571
586
)
572
587
ReservedConcurrentExecutions : Optional [ReservedConcurrentExecutions ] = prop ("ReservedConcurrentExecutions" )
573
588
Role : Optional [SamIntrinsicable [str ]] = prop ("Role" )
574
- Runtime : Optional [Runtime ] = prop ("Runtime" )
589
+ Runtime : Optional [Runtime ] = passthrough_prop (
590
+ PROPERTIES_STEM ,
591
+ "Runtime" ,
592
+ "AWS::Lambda::Function" ,
593
+ "Runtime" ,
594
+ )
575
595
SnapStart : Optional [SnapStart ] = prop ("SnapStart" )
576
596
RuntimeManagementConfig : Optional [RuntimeManagementConfig ] = prop ("RuntimeManagementConfig" )
577
597
Tags : Optional [Tags ] = prop ("Tags" )
@@ -582,8 +602,18 @@ class Properties(BaseModel):
582
602
583
603
584
604
class Globals (BaseModel ):
585
- Handler : Optional [Handler ] = prop ("Handler" )
586
- Runtime : Optional [Runtime ] = prop ("Runtime" )
605
+ Handler : Optional [Handler ] = passthrough_prop (
606
+ PROPERTIES_STEM ,
607
+ "Handler" ,
608
+ "AWS::Lambda::Function" ,
609
+ "Handler" ,
610
+ )
611
+ Runtime : Optional [Runtime ] = passthrough_prop (
612
+ PROPERTIES_STEM ,
613
+ "Runtime" ,
614
+ "AWS::Lambda::Function" ,
615
+ "Runtime" ,
616
+ )
587
617
CodeUri : Optional [CodeUriType ] = prop ("CodeUri" )
588
618
DeadLetterQueue : Optional [DeadLetterQueueType ] = prop ("DeadLetterQueue" )
589
619
Description : Optional [Description ] = prop ("Description" )
@@ -602,8 +632,18 @@ class Globals(BaseModel):
602
632
Layers : Optional [Layers ] = prop ("Layers" )
603
633
AutoPublishAlias : Optional [AutoPublishAlias ] = prop ("AutoPublishAlias" )
604
634
DeploymentPreference : Optional [DeploymentPreference ] = prop ("DeploymentPreference" )
605
- RolePath : Optional [RolePath ] = prop ("RolePath" )
606
- PermissionsBoundary : Optional [PermissionsBoundary ] = prop ("PermissionsBoundary" )
635
+ RolePath : Optional [RolePath ] = passthrough_prop (
636
+ PROPERTIES_STEM ,
637
+ "RolePath" ,
638
+ "AWS::IAM::Role" ,
639
+ "Path" ,
640
+ )
641
+ PermissionsBoundary : Optional [PermissionsBoundary ] = passthrough_prop (
642
+ PROPERTIES_STEM ,
643
+ "PermissionsBoundary" ,
644
+ "AWS::IAM::Role" ,
645
+ "PermissionsBoundary" ,
646
+ )
607
647
ReservedConcurrentExecutions : Optional [ReservedConcurrentExecutions ] = prop ("ReservedConcurrentExecutions" )
608
648
ProvisionedConcurrencyConfig : Optional [ProvisionedConcurrencyConfig ] = prop ("ProvisionedConcurrencyConfig" )
609
649
AssumeRolePolicyDocument : Optional [AssumeRolePolicyDocument ] = prop ("AssumeRolePolicyDocument" )
0 commit comments