Skip to main content

Initializers

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.NewComplexObject(terraformResource IInterpolatingParent, terraformAttribute *string, complexObjectIsFromSet *bool, complexObjectIndex interface{}) ComplexObject
NameTypeDescription
terraformResourceIInterpolatingParentNo description.
terraformAttribute*stringNo description.
complexObjectIsFromSet*boolset to true if this item is from inside a set and needs tolist() for accessing it set to “0” for single list items.
complexObjectIndexinterface{}the index of the complex object in a list.

terraformResourceRequired


terraformAttributeRequired

  • Type: *string

complexObjectIsFromSetRequired

  • 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.

complexObjectIndexOptional

  • Type: interface{}
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

func ComputeFqn() *string

GetAnyMapAttribute

func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}

terraformAttributeRequired

  • Type: *string

GetBooleanAttribute

func GetBooleanAttribute(terraformAttribute *string) IResolvable

terraformAttributeRequired

  • Type: *string

GetBooleanMapAttribute

func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool

terraformAttributeRequired

  • Type: *string

GetListAttribute

func GetListAttribute(terraformAttribute *string) *[]*string

terraformAttributeRequired

  • Type: *string

GetNumberAttribute

func GetNumberAttribute(terraformAttribute *string) *f64

terraformAttributeRequired

  • Type: *string

GetNumberListAttribute

func GetNumberListAttribute(terraformAttribute *string) *[]*f64

terraformAttributeRequired

  • Type: *string

GetNumberMapAttribute

func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64

terraformAttributeRequired

  • Type: *string

GetStringAttribute

func GetStringAttribute(terraformAttribute *string) *string

terraformAttributeRequired

  • Type: *string

GetStringMapAttribute

func GetStringMapAttribute(terraformAttribute *string) *map[string]*string

terraformAttributeRequired

  • Type: *string

InterpolationForAttribute

func InterpolationForAttribute(property *string) IResolvable

propertyRequired

  • Type: *string

Resolve

func Resolve(_context IResolveContext) interface{}
Produce the Token’s value at resolution time.

_contextRequired


ToString

func ToString() *string
Return a string representation of this resolvable object. Returns a reversible string representation.

Properties

NameTypeDescription
CreationStack*[]*stringThe creation stack of this resolvable which will be appended to errors thrown during resolution.
Fqn*stringNo description.

CreationStackRequired

func 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

func Fqn() *string
  • Type: *string