Parameters: Param: Type: String AllowedValues: - test1 - test2 Conditions: Cond: Fn::Equals: - !Ref Param - test1 Resources: MyFunction: Connectors: MyConnector: DeletionPolicy: Retain UpdateReplacePolicy: Retain Metadata: foo: bar Condition: Cond Properties: Destination: Id: MyOtherFunction Permissions: - Write Type: AWS::Serverless::Function Properties: Runtime: python3.9 InlineCode: foo Handler: foo MyOtherFunction: Type: AWS::Serverless::Function Properties: Runtime: python3.9 InlineCode: foo Handler: foo