Skip to main content

Initializers

import cdktn

cdktn.ComplexObject(
  terraform_resource: IInterpolatingParent,
  terraform_attribute: str,
  complex_object_is_from_set: bool,
  complex_object_index: str | typing.Union[int, float] = None
)
NameTypeDescription
terraform_resourceIInterpolatingParentNo description.
terraform_attributestrNo description.
complex_object_is_from_setboolset to true if this item is from inside a set and needs tolist() for accessing it set to “0” for single list items.
complex_object_indexstr | typing.Union[int, float]the index of the complex object in a list.

terraform_resourceRequired


terraform_attributeRequired

  • Type: str

complex_object_is_from_setRequired

  • Type: bool
set to true if this item is from inside a set and needs tolist() for accessing it set to “0” for single list items.

complex_object_indexOptional

  • Type: str | typing.Union[int, float]
the index of the complex object in a list.

Methods

NameDescription
compute_fqnNo description.
get_any_map_attributeNo description.
get_boolean_attributeNo description.
get_boolean_map_attributeNo description.
get_list_attributeNo description.
get_number_attributeNo description.
get_number_list_attributeNo description.
get_number_map_attributeNo description.
get_string_attributeNo description.
get_string_map_attributeNo description.
interpolation_for_attributeNo description.
resolveProduce the Token’s value at resolution time.
to_stringReturn a string representation of this resolvable object.

compute_fqn

def compute_fqn() -> str

get_any_map_attribute

def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]

terraform_attributeRequired

  • Type: str

get_boolean_attribute

def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable

terraform_attributeRequired

  • Type: str

get_boolean_map_attribute

def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]

terraform_attributeRequired

  • Type: str

get_list_attribute

def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]

terraform_attributeRequired

  • Type: str

get_number_attribute

def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]

terraform_attributeRequired

  • Type: str

get_number_list_attribute

def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]

terraform_attributeRequired

  • Type: str

get_number_map_attribute

def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]

terraform_attributeRequired

  • Type: str

get_string_attribute

def get_string_attribute(
  terraform_attribute: str
) -> str

terraform_attributeRequired

  • Type: str

get_string_map_attribute

def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]

terraform_attributeRequired

  • Type: str

interpolation_for_attribute

def interpolation_for_attribute(
  property: str
) -> IResolvable

propertyRequired

  • Type: str

resolve

def resolve(
  _context: IResolveContext
) -> typing.Any
Produce the Token’s value at resolution time.

_contextRequired


to_string

def to_string() -> str
Return a string representation of this resolvable object. Returns a reversible string representation.

Properties

NameTypeDescription
creation_stacktyping.List[str]The creation stack of this resolvable which will be appended to errors thrown during resolution.
fqnstrNo description.

creation_stackRequired

creation_stack: typing.List[str]
  • Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution. If this returns an empty array the stack will not be attached.

fqnRequired

fqn: str
  • Type: str