Initializers
scopeRequired
- Type: constructs.Construct
idRequired
- Type: str
connectionOptional
countOptional
- Type: typing.Union[int, float] | TerraformCount
depends_onOptional
- Type: typing.List[ITerraformDependable]
for_eachOptional
- Type: ITerraformIterator
lifecycleOptional
providerOptional
- Type: TerraformProvider
provisionersOptional
- Type: typing.List[FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner]
inputOptional
- Type: typing.Mapping[typing.Any]
triggers_replaceOptional
- Type: typing.Mapping[typing.Any]
Methods
to_string
with
with() calls if subsequent mixins should apply to added
constructs.
mixinsRequired
- Type: *constructs.IMixin
add_override
pathRequired
- Type: str
valueRequired
- Type: typing.Any
override_logical_id
new_logical_idRequired
- Type: str
reset_override_logical_id
to_hcl_terraform
to_metadata
to_terraform
add_move_target
move_targetRequired
- Type: str
get_any_map_attribute
terraform_attributeRequired
- Type: str
get_boolean_attribute
terraform_attributeRequired
- Type: str
get_boolean_map_attribute
terraform_attributeRequired
- Type: str
get_list_attribute
terraform_attributeRequired
- Type: str
get_number_attribute
terraform_attributeRequired
- Type: str
get_number_list_attribute
terraform_attributeRequired
- Type: str
get_number_map_attribute
terraform_attributeRequired
- Type: str
get_string_attribute
terraform_attributeRequired
- Type: str
get_string_map_attribute
terraform_attributeRequired
- Type: str
has_resource_move
import_from
idRequired
- Type: str
providerOptional
- Type: TerraformProvider
interpolation_for_attribute
terraform_attributeRequired
- Type: str
move_from_id
idRequired
- Type: str
move_to
move_targetRequired
- Type: str
indexOptional
- Type: str | typing.Union[int, float]
move_to_id
idRequired
- Type: str
reset_input
reset_triggers_replace
Static Functions
is_construct
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: typing.Any
is_terraform_element
xRequired
- Type: typing.Any
is_terraform_resource
xRequired
- Type: typing.Any
generate_config_for_import
scopeRequired
- Type: constructs.Construct
import_to_idRequired
- Type: str
import_from_idRequired
- Type: str
providerOptional
- Type: TerraformProvider
Properties
nodeRequired
- Type: constructs.Node
cdktf_stackRequired
- Type: TerraformStack
fqnRequired
- Type: str
friendly_unique_idRequired
- Type: str
terraform_meta_argumentsRequired
- Type: typing.Mapping[typing.Any]
terraform_resource_typeRequired
- Type: str
terraform_generator_metadataOptional
connectionOptional
countOptional
- Type: typing.Union[int, float] | TerraformCount
depends_onOptional
- Type: typing.List[str]
for_eachOptional
- Type: ITerraformIterator
lifecycleOptional
providerOptional
- Type: TerraformProvider
provisionersOptional
- Type: typing.List[FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner]
idRequired
- Type: str
outputRequired
- Type: AnyMap
input_inputOptional
- Type: typing.Mapping[typing.Any]
triggers_replace_inputOptional
- Type: typing.Mapping[typing.Any]
inputRequired
- Type: typing.Mapping[typing.Any]
triggers_replaceRequired
- Type: typing.Mapping[typing.Any]
Constants
tfResourceTypeRequired
- Type: str