Skip to content

FnGetAtt

The Fn::GetAtt intrinsic function returns the value of an attribute from a resource in the template.

Initializers

import ros_cdk_core
ros_cdk_core.FnGetAtt(
  logical_name_of_resource: str,
  attribute_name: str
)
Name Type Description
logical_name_of_resource str The logical name (also called logical ID) of the resource that contains the attribute that you want.
attribute_name str The name of the resource-specific attribute whose value you want.

logical_name_of_resourceRequired

  • Type: str

The logical name (also called logical ID) of the resource that contains the attribute that you want.


attribute_nameRequired

  • Type: str

The name of the resource-specific attribute whose value you want.

See the resource's reference page for details about the attributes available for that resource type.


Methods

Name Description
resolve Produce the Token's value at resolution time.
to_jso_n Turn this Token into JSON.
to_string Convert an instance of this Token to a string.

resolve

def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired


to_jso_n

def to_jso_n() -> typing.Any

Turn this Token into JSON.

Called automatically when JSON.stringify() is called on a Token.

to_string

def to_string() -> str

Convert an instance of this Token to a string.

This method will be called implicitly by language runtimes if the object is embedded into a string. We treat it the same as an explicit stringification.

Properties

Name Type Description
creation_stack typing.List[str] The captured stack trace which represents the location in which this token was created.

creation_stackRequired

creation_stack: typing.List[str]
  • Type: typing.List[str]

The captured stack trace which represents the location in which this token was created.