Resources: samplefunctionServiceRoleAED40161: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Statement: - Action: sts:AssumeRole Effect: Allow Principal: Service: lambda.amazonaws.com Version: "2012-10-17" ManagedPolicyArns: - Fn::Join: - "" - - "arn:" - Ref: AWS::Partition - :iam::aws:policy/service-role/AWSLambdaBasicExecutionRole Metadata: aws:cdk:path: RootStack/sample-function/ServiceRole/Resource samplefunctionAA39FD5B: Type: AWS::Lambda::Function Properties: Code: S3Bucket: Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3Bucket3ED8DEF1 S3Key: Fn::Join: - "" - - Fn::Select: - 0 - Fn::Split: - "||" - Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3VersionKeyF612D7EC - Fn::Select: - 1 - Fn::Split: - "||" - Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3VersionKeyF612D7EC Role: Fn::GetAtt: - samplefunctionServiceRoleAED40161 - Arn Description: Lambda function deployed using AWS CDK Python Handler: layer-main.custom_layer_handler Layers: - Ref: MyCustomLambdaLayerD5FCF532 Runtime: python3.9 DependsOn: - samplefunctionServiceRoleAED40161 Metadata: aws:cdk:path: RootStack/sample-function/Resource aws:asset:path: ../layers/ aws:asset:is-bundled: false aws:asset:property: Code MyCustomLambdaLayerD5FCF532: Type: AWS::Lambda::LayerVersion Properties: Content: S3Bucket: Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3Bucket3ED8DEF1 S3Key: Fn::Join: - "" - - Fn::Select: - 0 - Fn::Split: - "||" - Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3VersionKeyF612D7EC - Fn::Select: - 1 - Fn::Split: - "||" - Ref: AssetParameters402c2f9d7c89a1a85808d439e2957d988e3a793a65e312c8842fa010bb6b952aS3VersionKeyF612D7EC LayerName: MyCustomLambdaLayer Metadata: aws:cdk:path: RootStack/MyCustomLambdaLayer/Resource aws:asset:path: ../layers/custom_layer/ aws:asset:is-bundled: false aws:asset:property: Content CDKMetadata: Type: AWS::CDK::Metadata Properties: Analytics: v2:deflate64:H4sIAAAAAAAA/02OwQrCMBBEv8V7uioVxJu24MlDqeB9TVeNbRPIbhAJ+XcbFfE083aHYZawLFewmG3xwYXu+nnUzhPEo6Du1Y6ZZLJXY6+qdpbFBy2qvtgGPY4k5DO0xC54TdlPqc6IcTapXBkHHM8dQtwHq/M5Z37+gE/yJ/L8ffxzUgZHiK0b3r1Zk+KywLyJ4T1tYqiC7kkqZEpJNU+5OTsvYQPr2Z2NKXywYkaC9qMvIf4BofAAAAA= Metadata: aws:cdk:path: RootStack/CDKMetadata/Default Condition: CDKMetadataAvailable