- Implements: ITerraformResource, ITerraformDependable, IInterpolatingParent
Initializers
| Name | Type | Description |
|---|---|---|
scope | constructs.Construct | No description. |
id | string | No description. |
config | TerraformResourceConfig | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
- Type: string
configRequired
- Type: TerraformResourceConfig
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
addOverride | No description. |
overrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
toHclTerraform | No description. |
toMetadata | No description. |
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. |
getAnyMapAttribute | No description. |
getBooleanAttribute | No description. |
getBooleanMapAttribute | No description. |
getListAttribute | No description. |
getNumberAttribute | No description. |
getNumberListAttribute | No description. |
getNumberMapAttribute | No description. |
getStringAttribute | No description. |
getStringMapAttribute | No description. |
hasResourceMove | No description. |
importFrom | No description. |
interpolationForAttribute | No description. |
moveFromId | Move the resource corresponding to “id” to this resource. |
moveTo | Moves this resource to the target resource given by moveTarget. |
moveToId | Moves this resource to the resource corresponding to “id”. |
toString
addOverride
pathRequired
- Type: string
valueRequired
- Type: any
overrideLogicalId
newLogicalIdRequired
- Type: string
resetOverrideLogicalId
toHclTerraform
toMetadata
toTerraform
addMoveTarget
moveTargetRequired
- Type: string
getAnyMapAttribute
terraformAttributeRequired
- Type: string
getBooleanAttribute
terraformAttributeRequired
- Type: string
getBooleanMapAttribute
terraformAttributeRequired
- Type: string
getListAttribute
terraformAttributeRequired
- Type: string
getNumberAttribute
terraformAttributeRequired
- Type: string
getNumberListAttribute
terraformAttributeRequired
- Type: string
getNumberMapAttribute
terraformAttributeRequired
- Type: string
getStringAttribute
terraformAttributeRequired
- Type: string
getStringMapAttribute
terraformAttributeRequired
- Type: string
hasResourceMove
importFrom
idRequired
- Type: string
providerOptional
- Type: TerraformProvider
interpolationForAttribute
terraformAttributeRequired
- Type: string
moveFromId
idRequired
- Type: string
moveTo
moveTargetRequired
- Type: string
indexOptional
- Type: string | number
moveToId
idRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
isConstruct | Checks if x is a construct. |
isTerraformElement | No description. |
isTerraformResource | No description. |
isConstruct
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: any
isTerraformElement
xRequired
- Type: any
isTerraformResource
xRequired
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | constructs.Node | The tree node. |
cdktfStack | TerraformStack | No description. |
fqn | string | No description. |
friendlyUniqueId | string | No description. |
terraformMetaArguments | {[ key: string ]: any} | No description. |
terraformResourceType | string | No description. |
terraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
connection | SSHProvisionerConnection | WinrmProvisionerConnection | No description. |
count | number | TerraformCount | No description. |
dependsOn | string[] | No description. |
forEach | ITerraformIterator | No description. |
lifecycle | TerraformResourceLifecycle | No description. |
provider | TerraformProvider | No description. |
provisioners | FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[] | No description. |
nodeRequired
- Type: constructs.Node
cdktfStackRequired
- Type: TerraformStack
fqnRequired
- Type: string
friendlyUniqueIdRequired
- Type: string
terraformMetaArgumentsRequired
- Type: {[ key: string ]: any}
terraformResourceTypeRequired
- Type: string
terraformGeneratorMetadataOptional
connectionOptional
countOptional
- Type: number | TerraformCount
dependsOnOptional
- Type: string[]
forEachOptional
- Type: ITerraformIterator
lifecycleOptional
providerOptional
- Type: TerraformProvider
provisionersOptional
- Type: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[]