Skip to main content

Initializers

import { ComplexObject } from 'cdktn'

new ComplexObject(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIsFromSet: boolean, complexObjectIndex?: string | number)
NameTypeDescription
terraformResourceIInterpolatingParentNo description.
terraformAttributestringNo description.
complexObjectIsFromSetbooleanset to true if this item is from inside a set and needs tolist() for accessing it set to “0” for single list items.
complexObjectIndexstring | numberthe index of the complex object in a list.

terraformResourceRequired


terraformAttributeRequired

  • Type: string

complexObjectIsFromSetRequired

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

complexObjectIndexOptional

  • Type: string | number
the index of the complex object in a list.

Methods

NameDescription
computeFqnNo description.
getAnyMapAttributeNo description.
getBooleanAttributeNo description.
getBooleanMapAttributeNo description.
getListAttributeNo description.
getNumberAttributeNo description.
getNumberListAttributeNo description.
getNumberMapAttributeNo description.
getStringAttributeNo description.
getStringMapAttributeNo description.
interpolationForAttributeNo description.
resolveProduce the Token’s value at resolution time.
toStringReturn a string representation of this resolvable object.

computeFqn

public computeFqn(): string

getAnyMapAttribute

public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}

terraformAttributeRequired

  • Type: string

getBooleanAttribute

public getBooleanAttribute(terraformAttribute: string): IResolvable

terraformAttributeRequired

  • Type: string

getBooleanMapAttribute

public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}

terraformAttributeRequired

  • Type: string

getListAttribute

public getListAttribute(terraformAttribute: string): string[]

terraformAttributeRequired

  • Type: string

getNumberAttribute

public getNumberAttribute(terraformAttribute: string): number

terraformAttributeRequired

  • Type: string

getNumberListAttribute

public getNumberListAttribute(terraformAttribute: string): number[]

terraformAttributeRequired

  • Type: string

getNumberMapAttribute

public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}

terraformAttributeRequired

  • Type: string

getStringAttribute

public getStringAttribute(terraformAttribute: string): string

terraformAttributeRequired

  • Type: string

getStringMapAttribute

public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}

terraformAttributeRequired

  • Type: string

interpolationForAttribute

public interpolationForAttribute(property: string): IResolvable

propertyRequired

  • Type: string

resolve

public resolve(_context: IResolveContext): any
Produce the Token’s value at resolution time.

_contextRequired


toString

public toString(): string
Return a string representation of this resolvable object. Returns a reversible string representation.

Properties

NameTypeDescription
creationStackstring[]The creation stack of this resolvable which will be appended to errors thrown during resolution.
fqnstringNo description.

creationStackRequired

public readonly creationStack: string[];
  • Type: string[]
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

public readonly fqn: string;
  • Type: string