How to use Sub and GetAtt functions at the same time in CloudFormation template? : <p>I create CloudFormation yaml template and I need to use <code>!GetAtt "TestLambda.Arn"</code> as part of <code>!Sub</code> function in "AWS::ApiGateway::Method" Integration Uri:</p>

<pre><code>...
Type: "AWS::ApiGateway::Method"
  Properties:
    RestApiId:
      Ref: "RestApi"
    ResourceId:
      Ref: "TestResource"
    HttpMethod: "GET"
    AuthorizationType: "NONE"
    Integration:
      Type: "AWS_PROXY"
      IntegrationHttpMethod: "POST"
      Uri: !Sub "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/[[place where I want to use !GetAtt "TestLambda.Arn"]]/invocations"
...
</code></pre>

<p>As result I want to get a value something like that:</p>

<pre><code>"arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/my-endpoint-lambda/invocations"
</code></pre>

<p>How can I use these functions together and get desired result?</p>
