Initializers
| Name | Type | Description |
|---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | The scope in which to define this construct. |
id | *string | The scoped construct ID. |
config | DataConfig | No description. |
scopeRequired
- Type: github.com/aws/constructs-go/constructs/v10.Construct
idRequired
- Type: *string
configOptional
- Type: DataConfig
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”. |
ResetInput | No description. |
ResetTriggersReplace | No description. |
ToString
AddOverride
pathRequired
- Type: *string
valueRequired
- Type: interface{}
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: interface{}
MoveToId
idRequired
- Type: *string
ResetInput
ResetTriggersReplace
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformResource | No description. |
GenerateConfigForImport | Generates CDKTN code for importing a Data resource upon running “cdktn plan < stack-name >”. |
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: interface{}
IsTerraformElement
xRequired
- Type: interface{}
IsTerraformResource
xRequired
- Type: interface{}
GenerateConfigForImport
scopeRequired
- Type: github.com/aws/constructs-go/constructs/v10.Construct
importToIdRequired
- Type: *string
importFromIdRequired
- Type: *string
providerOptional
- Type: TerraformProvider
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
TerraformMetaArguments | *map[string]interface{} | No description. |
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection | interface{} | No description. |
Count | interface{} | No description. |
DependsOn | *[]*string | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | *[]interface{} | No description. |
Id | *string | No description. |
Output | AnyMap | No description. |
InputInput | *map[string]interface{} | No description. |
TriggersReplaceInput | *map[string]interface{} | No description. |
Input | *map[string]interface{} | (Optional) A value which will be stored in the instance state, and reflected in the output attribute after apply. |
TriggersReplace | *map[string]interface{} | (Optional) A value which is stored in the instance state, and will force replacement when the value changes. |
NodeRequired
- Type: github.com/aws/constructs-go/constructs/v10.Node
CdktfStackRequired
- Type: TerraformStack
FqnRequired
- Type: *string
FriendlyUniqueIdRequired
- Type: *string
TerraformMetaArgumentsRequired
- Type: *map[string]interface{}
TerraformResourceTypeRequired
- Type: *string
TerraformGeneratorMetadataOptional
ConnectionOptional
- Type: interface{}
CountOptional
- Type: interface{}
DependsOnOptional
- Type: *[]*string
ForEachOptional
- Type: ITerraformIterator
LifecycleOptional
ProviderOptional
- Type: TerraformProvider
ProvisionersOptional
- Type: *[]interface{}
IdRequired
- Type: *string
OutputRequired
- Type: AnyMap
InputInputOptional
- Type: *map[string]interface{}
TriggersReplaceInputOptional
- Type: *map[string]interface{}
InputRequired
- Type: *map[string]interface{}
TriggersReplaceRequired
- Type: *map[string]interface{}
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | *string | No description. |
TfResourceTypeRequired
- Type: *string