I create CloudFormation yaml template and I need to use !GetAtt \"TestLambda.Arn\" as part of !Sub function in \"AWS::ApiGateway::Method\" Integrat
AWS CloudFormation provides several built-in functions that help you manage your stacks. Use intrinsic functions in your templates to assign values to properties that are not available until runtime.
Source from AWS
The Fn::GetAtt intrinsic function returns the value of an attribute from a resource in the template.
Declaration
{ "Fn::GetAtt" : [ "logicalNameOfResource", "attributeName" ] }Fn::GetAtt: [ logicalNameOfResource, attributeName ]!GetAtt logicalNameOfResource.attributeNameNote: Should not confuse with double colon: Fn::GetAtt is like Fn_GetAtt