how to use !Sub for array of arn in cloudformation

I have function defined like this: Type: AWS::Serverless::Function Properties: FunctionName: !Join – "-" – – !Ref NamePrefix – !FindInMap [ NameMap, SEND-SES-EMAIL-FUNCTION, NAME ] – !Ref NamePostfix Description: "Lambda function to send email with CSV file through SES" CodeUri: source/resources/sendSESEmailFunction Handler: sendSESEmail.lambda_handler Policies: – AWSLambdaBasicExecutionRole – Version: 2012-10-17 Statement: – Sid: SESPermissions Effect: Allow Action:… Read More how to use !Sub for array of arn in cloudformation