Skip to main content

Initializers


scopeRequired

  • Type: software.constructs.Construct

idRequired

  • Type: java.lang.String

connectionOptional


countOptional


dependsOnOptional


forEachOptional


lifecycleOptional


providerOptional


provisionersOptional


terraformResourceTypeRequired

  • Type: java.lang.String

terraformGeneratorMetadataOptional


Methods


toString

Returns a string representation of this construct.

with

Applies one or more mixins to this construct. Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.

mixinsRequired

  • Type: software.constructs.IMixin…
The mixins to apply.

addOverride

pathRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

overrideLogicalId

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired

  • Type: java.lang.String
The new logical ID to use for this stack element.

resetOverrideLogicalId

Resets a previously passed logical Id to use the auto-generated logical id again.

toHclTerraform

toMetadata

toTerraform

Adds this resource to the terraform JSON output.

addMoveTarget

Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.

moveTargetRequired

  • Type: java.lang.String
The string move target that will correspond to this resource.

getAnyMapAttribute

terraformAttributeRequired

  • Type: java.lang.String

getBooleanAttribute

terraformAttributeRequired

  • Type: java.lang.String

getBooleanMapAttribute

terraformAttributeRequired

  • Type: java.lang.String

getListAttribute

terraformAttributeRequired

  • Type: java.lang.String

getNumberAttribute

terraformAttributeRequired

  • Type: java.lang.String

getNumberListAttribute

terraformAttributeRequired

  • Type: java.lang.String

getNumberMapAttribute

terraformAttributeRequired

  • Type: java.lang.String

getStringAttribute

terraformAttributeRequired

  • Type: java.lang.String

getStringMapAttribute

terraformAttributeRequired

  • Type: java.lang.String

hasResourceMove

importFrom

idRequired

  • Type: java.lang.String

providerOptional


interpolationForAttribute

terraformAttributeRequired

  • Type: java.lang.String

moveFromId

Move the resource corresponding to “id” to this resource. Note that the resource being moved from must be marked as moved using it’s instance function.

idRequired

  • Type: java.lang.String
Full id of resource being moved from, e.g. “aws_s3_bucket.example”.

moveTo

Moves this resource to the target resource given by moveTarget.

moveTargetRequired

  • Type: java.lang.String
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.

indexOptional

  • Type: java.lang.String|java.lang.Number
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.

moveToId

Moves this resource to the resource corresponding to “id”.

idRequired

  • Type: java.lang.String
Full id of resource to move to, e.g. “aws_s3_bucket.example”.

Static Functions


isConstruct

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: java.lang.Object
Any object.

isTerraformElement

xRequired

  • Type: java.lang.Object

isTerraformResource

xRequired

  • Type: java.lang.Object

Properties


nodeRequired

  • Type: software.constructs.Node
The tree node.

cdktfStackRequired


fqnRequired

  • Type: java.lang.String

friendlyUniqueIdRequired

  • Type: java.lang.String

terraformMetaArgumentsRequired

  • Type: java.util.Map< java.lang.String, java.lang.Object >

terraformResourceTypeRequired

  • Type: java.lang.String

terraformGeneratorMetadataOptional


connectionOptional


countOptional


dependsOnOptional

  • Type: java.util.List< java.lang.String >

forEachOptional


lifecycleOptional


providerOptional


provisionersOptional