Examples of using Ref function in English and their translations into German
{-}
-
Colloquial
-
Official
-
Ecclesiastic
-
Medicine
-
Financial
-
Ecclesiastic
-
Political
-
Computer
-
Programming
-
Official/political
-
Political
Join Using the Ref Function with Parameters.
Here is an example using the Ref function.
The Ref function will return the security group name.
You cannot use any functions in the Ref function.
The Ref function gets the URL for the myqueue resource.
For the Fn::GetAtt attribute name, you can use the Ref function.
The Ref function gets the bucket name of the mybucket resource.
The braces contain a call to the Ref function with KeyName as its input.
The Ref function returns the value of the object it refers to.
For more information about using the Ref function, see Ref. .
You can use the Ref function in the Fn::GetAZs function. .
Use them the same way as you would a parameter, as the argument for the Ref function.
Referencing other resources with the Ref function and resource attributes using the Fn.
The Ref function can also set a resource's property to the value of another resource.
For a list of values returned by the Ref function, see Ref function.
It uses the Ref function with the Partition parameter and the AWS::AccountId pseudo parameter.
Specifying this resource ID to the intrinsic Ref function will return the AccessKeyId.
The Ref function can refer to input parameters that are specified at stack creation time.
When you specify AWS:: SDB::Domain as an argument in a Ref function, AWS CloudFormation returns the value of the DomainName.
In this case, the Ref function sets the KeyName property to the value that was specified for KeyName when the stack was created.
When you specify an AWS:: CloudWatch::Alarm type as an argument to the Ref function, AWS CloudFormation returns the value of the AlarmName.
If you use the Ref function to pass a parameter value to a nested stack, comma-delimited list parameters must be of type String.
When you specify an AWS:: RDS::DBSecurityGroup as an argument to the Ref function, AWS CloudFormation returns the value of the DBSecurityGroupName.
The Ref function has an input of WebServerSecurityGroup, which is the logical name of a security group in the template, and adds the name of WebServerSecurityGroup to the SecurityGroups property.
In the snippet, the Fn::GetAtt function gets the ARN for the myuser resource and the Ref function gets the ARN for the mytopic resource.
In the following sample, the Ref function returns the ID of the myDirectory directory, such as d-1a2b3c4d5e.
When you pass the logical ID of an AWS:: AmazonMQ::Broker resource to the intrinsic Ref function, the function returns the Amazon MQ broker ID.
In the following example, the Ref function returns the name of the myReplicationGroup replication group, such as abc12xmy3d1w3hv6.
The following resource declaration for an Elastic IPaddress needs the instance ID of an EC2 instance and uses the Ref function to specify the instance ID of the MyEC2Instance resource.
Note that you cannot use the Ref function to specify the outbound and inbound rules for each security group.