Skip to main content

Initializers

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

cdktn.NewTerraformAsset(scope Construct, id *string, config TerraformAssetConfig) TerraformAsset
NameTypeDescription
scopegithub.com/aws/constructs-go/constructs/v10.ConstructNo description.
id*stringNo description.
configTerraformAssetConfigNo description.

scopeRequired

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

idRequired

  • Type: *string

configRequired


Methods

NameDescription
ToStringReturns a string representation of this construct.

ToString

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

Static Functions

NameDescription
IsConstructChecks if x is a construct.

IsConstruct

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

cdktn.TerraformAsset_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.

Properties

NameTypeDescription
Nodegithub.com/aws/constructs-go/constructs/v10.NodeThe tree node.
FileName*stringName of the asset.
Path*stringThe path relative to the root of the terraform directory in posix format Use this property to reference the asset.
AssetHash*stringNo description.
TypeAssetTypeNo description.

NodeRequired

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

FileNameRequired

func FileName() *string
  • Type: *string
Name of the asset.

PathRequired

func Path() *string
  • Type: *string
The path relative to the root of the terraform directory in posix format Use this property to reference the asset.

AssetHashRequired

func AssetHash() *string
  • Type: *string

TypeRequired

func Type() AssetType