Skip to main content

Initializers

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

cdktn.NewTerraformLocal(scope Construct, id *string, expression interface{}) TerraformLocal
NameTypeDescription
scopegithub.com/aws/constructs-go/constructs/v10.ConstructNo description.
id*stringNo description.
expressioninterface{}No description.

scopeRequired

  • Type: github.com/aws/constructs-go/constructs/v10.Construct

idRequired

  • Type: *string

expressionRequired

  • Type: interface{}

Methods

NameDescription
ToStringReturns a string representation of this construct.
AddOverrideNo description.
OverrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
ResetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraformNo description.
ToMetadataNo description.
ToTerraformNo description.

ToString

func ToString() *string
Returns a string representation of this construct.

AddOverride

func AddOverride(path *string, value interface{})

pathRequired

  • Type: *string

valueRequired

  • Type: interface{}

OverrideLogicalId

func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired

  • Type: *string
The new logical ID to use for this stack element.

ResetOverrideLogicalId

func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.

ToHclTerraform

func ToHclTerraform() interface{}

ToMetadata

func ToMetadata() interface{}

ToTerraform

func ToTerraform() interface{}

Static Functions

NameDescription
IsConstructChecks if x is a construct.
IsTerraformElementNo description.

IsConstruct

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

cdktn.TerraformLocal_IsConstruct(x interface{}) *bool
Checks if x is a construct. Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked. Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

xRequired

  • Type: interface{}
Any object.

IsTerraformElement

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

cdktn.TerraformLocal_IsTerraformElement(x interface{}) *bool

xRequired

  • Type: interface{}

Properties

NameTypeDescription
Nodegithub.com/aws/constructs-go/constructs/v10.NodeThe tree node.
CdktfStackTerraformStackNo description.
Fqn*stringNo description.
FriendlyUniqueId*stringNo description.
AsAnyMap*map[string]interface{}No description.
AsBooleanIResolvableNo description.
AsBooleanMap*map[string]*boolNo description.
AsList*[]*stringNo description.
AsNumber*f64No description.
AsNumberMap*map[string]*f64No description.
AsString*stringNo description.
AsStringMap*map[string]*stringNo description.
Expressioninterface{}No description.

NodeRequired

func Node() Node
  • Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.

CdktfStackRequired

func CdktfStack() TerraformStack

FqnRequired

func Fqn() *string
  • Type: *string

FriendlyUniqueIdRequired

func FriendlyUniqueId() *string
  • Type: *string

AsAnyMapRequired

func AsAnyMap() *map[string]interface{}
  • Type: *map[string]interface{}

AsBooleanRequired

func AsBoolean() IResolvable

AsBooleanMapRequired

func AsBooleanMap() *map[string]*bool
  • Type: *map[string]*bool

AsListRequired

func AsList() *[]*string
  • Type: *[]*string

AsNumberRequired

func AsNumber() *f64
  • Type: *f64

AsNumberMapRequired

func AsNumberMap() *map[string]*f64
  • Type: *map[string]*f64

AsStringRequired

func AsString() *string
  • Type: *string

AsStringMapRequired

func AsStringMap() *map[string]*string
  • Type: *map[string]*string

ExpressionRequired

func Expression() interface{}
  • Type: interface{}