Skip to main content

Initializers

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

cdktn.NewTerraformDataSource(scope Construct, id *string, config TerraformResourceConfig) TerraformDataSource
NameTypeDescription
scopegithub.com/aws/constructs-go/constructs/v10.ConstructNo description.
id*stringNo description.
configTerraformResourceConfigNo description.

scopeRequired

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

idRequired

  • Type: *string

configRequired


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.
ToHclTerraformAdds this resource to the terraform JSON output.
ToMetadataNo description.
ToTerraformAdds this resource to the terraform JSON output.
GetAnyMapAttributeNo description.
GetBooleanAttributeNo description.
GetBooleanMapAttributeNo description.
GetListAttributeNo description.
GetNumberAttributeNo description.
GetNumberListAttributeNo description.
GetNumberMapAttributeNo description.
GetStringAttributeNo description.
GetStringMapAttributeNo description.
InterpolationForAttributeNo 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{}
Adds this resource to the terraform JSON output.

ToMetadata

func ToMetadata() interface{}

ToTerraform

func ToTerraform() interface{}
Adds this resource to the terraform JSON output.

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(terraformAttribute *string) IResolvable

terraformAttributeRequired

  • Type: *string

Static Functions

NameDescription
IsConstructChecks if x is a construct.
IsTerraformElementNo description.
IsTerraformDataSourceNo description.

IsConstruct

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

cdktn.TerraformDataSource_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.TerraformDataSource_IsTerraformElement(x interface{}) *bool

xRequired

  • Type: interface{}

IsTerraformDataSource

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

cdktn.TerraformDataSource_IsTerraformDataSource(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.
TerraformMetaArguments*map[string]interface{}No description.
TerraformResourceType*stringNo description.
TerraformGeneratorMetadataTerraformProviderGeneratorMetadataNo description.
Countinterface{}No description.
DependsOn*[]*stringNo description.
ForEachITerraformIteratorNo description.
LifecycleTerraformResourceLifecycleNo description.
ProviderTerraformProviderNo 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

TerraformMetaArgumentsRequired

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

TerraformResourceTypeRequired

func TerraformResourceType() *string
  • Type: *string

TerraformGeneratorMetadataOptional

func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata

CountOptional

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

DependsOnOptional

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

ForEachOptional

func ForEach() ITerraformIterator

LifecycleOptional

func Lifecycle() TerraformResourceLifecycle

ProviderOptional

func Provider() TerraformProvider