Documentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Initializers
import io.cdktn.cdktn.TerraformAsset;
TerraformAsset.Builder.create(Construct scope, java.lang.String id)
.path(java.lang.String)
// .assetHash(java.lang.String)
// .type(AssetType)
.build();
| Name | Type | Description |
|---|
scope | software.constructs.Construct | No description. |
id | java.lang.String | No description. |
path | java.lang.String | No description. |
assetHash | java.lang.String | No description. |
type | AssetType | No description. |
scopeRequired
- Type: software.constructs.Construct
idRequired
pathRequired
assetHashOptional
typeOptional
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|
isConstruct | Checks if x is a construct. |
isConstruct
import io.cdktn.cdktn.TerraformAsset;
TerraformAsset.isConstruct(java.lang.Object x)
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
Any object.
Properties
| Name | Type | Description |
|---|
node | software.constructs.Node | The tree node. |
fileName | java.lang.String | Name of the asset. |
path | java.lang.String | The path relative to the root of the terraform directory in posix format Use this property to reference the asset. |
assetHash | java.lang.String | No description. |
type | AssetType | No description. |
nodeRequired
- Type: software.constructs.Node
The tree node.
fileNameRequired
public java.lang.String getFileName();
Name of the asset.
pathRequired
public java.lang.String getPath();
The path relative to the root of the terraform directory in posix format Use this property to reference the asset.
assetHashRequired
public java.lang.String getAssetHash();
typeRequired
public AssetType getType();