// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ConditionAspect Add condition to all resources 1`] = ` Object { "Resources": Object { "TestLambdaFunctionC089708A": Object { "Condition": "TestCondition", "DependsOn": Array [ "TestLambdaFunctionServiceRole0C9E0634", ], "Properties": Object { "Code": Object { "ZipFile": "console.log('Hello world!');", }, "Handler": "index.handler", "Role": Object { "Fn::GetAtt": Array [ "TestLambdaFunctionServiceRole0C9E0634", "Arn", ], }, "Runtime": "nodejs16.x", }, "Type": "AWS::Lambda::Function", }, "TestLambdaFunctionServiceRole0C9E0634": Object { "Condition": "TestCondition", "Properties": Object { "AssumeRolePolicyDocument": Object { "Statement": Array [ Object { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": Object { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": Array [ Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, }, } `;