- Implements: ITerraformAddressable
Initializers
| Name | Type | Description |
|---|---|---|
scope | software.constructs.Construct | No description. |
id | java.lang.String | No description. |
default | java.lang.Object | No description. |
description | java.lang.String | No description. |
nullable | java.lang.Boolean | No description. |
sensitive | java.lang.Boolean | No description. |
type | java.lang.String | The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable. |
validation | java.util.List<TerraformVariableValidationConfig> | Specify arbitrary custom validation rules for a particular variable using a validation block nested within the corresponding variable block. |
scopeRequired
- Type: software.constructs.Construct
idRequired
- Type: java.lang.String
defaultOptional
- Type: java.lang.Object
descriptionOptional
- Type: java.lang.String
nullableOptional
- Type: java.lang.Boolean
sensitiveOptional
- Type: java.lang.Boolean
typeOptional
- Type: java.lang.String
- string
- number
- bool
- list(< TYPE >)
- set(< TYPE >)
- map(< TYPE >)
- object({< ATTR NAME > = < TYPE >, … })
- tuple([< TYPE >, …])
validationOptional
- Type: java.util.List<TerraformVariableValidationConfig>
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 | No description. |
addValidation | No description. |
synthesizeAttributes | No description. |
synthesizeHclAttributes | No description. |
toString
addOverride
pathRequired
- Type: java.lang.String
valueRequired
- Type: java.lang.Object
overrideLogicalId
newLogicalIdRequired
- Type: java.lang.String
resetOverrideLogicalId
toHclTerraform
toMetadata
toTerraform
addValidation
validationRequired
synthesizeAttributes
synthesizeHclAttributes
Static Functions
| Name | Description |
|---|---|
isConstruct | Checks if x is a construct. |
isTerraformElement | 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: java.lang.Object
isTerraformElement
xRequired
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | software.constructs.Node | The tree node. |
cdktfStack | TerraformStack | No description. |
fqn | java.lang.String | No description. |
friendlyUniqueId | java.lang.String | No description. |
booleanValue | IResolvable | No description. |
listValue | java.util.List< java.lang.String > | No description. |
numberValue | java.lang.Number | No description. |
stringValue | java.lang.String | No description. |
value | java.lang.Object | No description. |
default | java.lang.Object | No description. |
description | java.lang.String | No description. |
nullable | java.lang.Boolean | No description. |
sensitive | java.lang.Boolean | No description. |
type | java.lang.String | No description. |
validation | java.util.List<TerraformVariableValidationConfig> | No description. |
nodeRequired
- Type: software.constructs.Node
cdktfStackRequired
- Type: TerraformStack
fqnRequired
- Type: java.lang.String
friendlyUniqueIdRequired
- Type: java.lang.String
booleanValueRequired
- Type: IResolvable
listValueRequired
- Type: java.util.List< java.lang.String >
numberValueRequired
- Type: java.lang.Number
stringValueRequired
- Type: java.lang.String
valueRequired
- Type: java.lang.Object
defaultOptional
- Type: java.lang.Object
descriptionOptional
- Type: java.lang.String
nullableOptional
- Type: java.lang.Boolean
sensitiveOptional
- Type: java.lang.Boolean
typeOptional
- Type: java.lang.String
validationOptional
- Type: java.util.List<TerraformVariableValidationConfig>