»API Reference for Python
»Constructs
»App
Represents a cdktf application.
»Initializers
Name | Type | Description |
---|---|---|
context | typing.Mapping[typing.Any] | Additional context values for the application. |
outdir | str | The directory to output Terraform resources. |
skip_validation | bool | Whether to skip the validation during synthesis of the app. |
stack_traces | bool | No description. |
»context
Optional
- Type: typing.Mapping[typing.Any]
- Default: no additional context
Additional context values for the application.
Context set by the CLI or the context
key in cdktf.json
has precedence.
Context can be read from any construct using node.getContext(key)
.
»outdir
Optional
- Type: str
- Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"
The directory to output Terraform resources.
»skip_validation
Optional
- Type: bool
- Default: false
Whether to skip the validation during synthesis of the app.
»stack_traces
Optional
- Type: bool
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
cross_stack_reference | Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources. |
synth | Synthesizes all resources to the output directory. |
»to_string
Returns a string representation of this construct.
»cross_stack_reference
Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
»from_stack
Required
- Type: TerraformStack
»to_stack
Required
- Type: TerraformStack
»identifier
Required
- Type: str
»synth
Synthesizes all resources to the output directory.
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
is_app | No description. |
of | No description. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»is_app
»x
Required
- Type: typing.Any
»of
»construct
Required
- Type: constructs.IConstruct
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
manifest | Manifest | No description. |
outdir | str | The output directory into which resources will be synthesized. |
skip_validation | bool | Whether to skip the validation during synthesis of the app. |
target_stack_id | str | The stack which will be synthesized. |
»node
Required
- Type: constructs.Node
The tree node.
»manifest
Required
- Type: Manifest
»outdir
Required
- Type: str
The output directory into which resources will be synthesized.
»skip_validation
Optional
- Type: bool
Whether to skip the validation during synthesis of the app.
»target_stack_id
Optional
- Type: str
The stack which will be synthesized.
If not set, all stacks will be synthesized.
»ArtifactoryBackend
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
password | str | (Required) - The password. |
repo | str | (Required) - The repository name. |
subpath | str | (Required) - Path within the repository. |
url | str | (Required) - The URL. |
username | str | (Required) - The username. |
»scope
Required
- Type: constructs.Construct
»password
Required
- Type: str
(Required) - The password.
»repo
Required
- Type: str
(Required) - The repository name.
»subpath
Required
- Type: str
(Required) - Path within the repository.
»url
Required
- Type: str
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
»username
Required
- Type: str
(Required) - The username.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get_remote_state_data_source | Creates a TerraformRemoteState resource that accesses this backend. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get_remote_state_data_source
Creates a TerraformRemoteState resource that accesses this backend.
»scope
Required
- Type: constructs.Construct
»name
Required
- Type: str
»_fromstack
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
is_backend | No description. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»is_backend
»x
Required
- Type: typing.Any
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»AzurermBackend
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
container_name | str | (Required) The Name of the Storage Container within the Storage Account. |
key | str | (Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container. |
storage_account_name | str | (Required) The Name of the Storage Account. |
access_key | str | access_key - (Optional) The Access Key used to access the Blob Storage Account. |
client_id | str | (Optional) The Client ID of the Service Principal. |
client_secret | str | (Optional) The Client Secret of the Service Principal. |
endpoint | str | (Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable. |
environment | str | (Optional) The Azure Environment which should be used. |
msi_endpoint | str | (Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified. |
resource_group_name | str | (Required) The Name of the Resource Group in which the Storage Account exists. |
sas_token | str | (Optional) The SAS Token used to access the Blob Storage Account. |
subscription_id | str | (Optional) The Subscription ID in which the Storage Account exists. |
tenant_id | str | (Optional) The Tenant ID in which the Subscription exists. |
use_msi | bool | (Optional) Should Managed Service Identity authentication be used? |
»scope
Required
- Type: constructs.Construct
»container_name
Required
- Type: str
(Required) The Name of the Storage Container within the Storage Account.
»key
Required
- Type: str
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
»storage_account_name
Required
- Type: str
(Required) The Name of the Storage Account.
»access_key
Optional
- Type: str
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
»client_id
Optional
- Type: str
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
»client_secret
Optional
- Type: str
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
»endpoint
Optional
- Type: str
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
»environment
Optional
- Type: str
(Optional) The Azure Environment which should be used.
This can also be sourced from the ARM_ENVIRONMENT environment variable. Possible values are public, china, german, stack and usgovernment. Defaults to public.
»msi_endpoint
Optional
- Type: str
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
»resource_group_name
Optional
- Type: str
(Required) The Name of the Resource Group in which the Storage Account exists.
»sas_token
Optional
- Type: str
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
»subscription_id
Optional
- Type: str
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
»tenant_id
Optional
- Type: str
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
»use_msi
Optional
- Type: bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get_remote_state_data_source | Creates a TerraformRemoteState resource that accesses this backend. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get_remote_state_data_source
Creates a TerraformRemoteState resource that accesses this backend.
»scope
Required
- Type: constructs.Construct
»name
Required
- Type: str
»_fromstack
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
is_backend | No description. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»is_backend
»x
Required
- Type: typing.Any
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»ConsulBackend
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
access_token | str | (Required) Access token. |
path | str | (Required) Path in the Consul KV store. |
address | str | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
ca_file | str | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
cert_file | str | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
datacenter | str | (Optional) The datacenter to use. |
gzip | bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
http_auth | str | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
key_file | str | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
lock | bool | (Optional) false to disable locking. |
scheme | str | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
»scope
Required
- Type: constructs.Construct
»access_token
Required
- Type: str
(Required) Access token.
»path
Required
- Type: str
(Required) Path in the Consul KV store.
»address
Optional
- Type: str
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
»ca_file
Optional
- Type: str
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
»cert_file
Optional
- Type: str
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
»datacenter
Optional
- Type: str
(Optional) The datacenter to use.
Defaults to that of the agent.
»gzip
Optional
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
»http_auth
Optional
- Type: str
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
»key_file
Optional
- Type: str
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
»lock
Optional
- Type: bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
»scheme
Optional
- Type: str
(Optional) Specifies what protocol to use when talking to the given address,either http or https.
SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get_remote_state_data_source | Creates a TerraformRemoteState resource that accesses this backend. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get_remote_state_data_source
Creates a TerraformRemoteState resource that accesses this backend.
»scope
Required
- Type: constructs.Construct
»name
Required
- Type: str
»_fromstack
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
is_backend | No description. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»is_backend
»x
Required
- Type: typing.Any
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»CosBackend
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
bucket | str | (Required) The name of the COS bucket. |
acl | str | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
key | str | (Optional) The path for saving the state file in bucket. |
prefix | str | (Optional) The directory for saving the state file in bucket. |
region | str | (Optional) The region of the COS bucket. |
secret_id | str | (Optional) Secret id of Tencent Cloud. |
secret_key | str | (Optional) Secret key of Tencent Cloud. |
»scope
Required
- Type: constructs.Construct
»bucket
Required
- Type: str
(Required) The name of the COS bucket.
You shall manually create it first.
»acl
Optional
- Type: str
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
»encrypt
Optional
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, COS will use 'AES256' encryption algorithm to encrypt state file.
»key
Optional
- Type: str
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
»prefix
Optional
- Type: str
(Optional) The directory for saving the state file in bucket.
Default to "env:".
»region
Optional
- Type: str
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
»secret_id
Optional
- Type: str
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
»secret_key
Optional
- Type: str
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get_remote_state_data_source | Creates a TerraformRemoteState resource that accesses this backend. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get_remote_state_data_source
Creates a TerraformRemoteState resource that accesses this backend.
»scope
Required
- Type: constructs.Construct
»name
Required
- Type: str
»_fromstack
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
is_backend | No description. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»is_backend
»x
Required
- Type: typing.Any
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»DataTerraformRemoteState
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
organization | str | No description. |
workspaces | IRemoteWorkspace | No description. |
hostname | str | No description. |
token | str | No description. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»organization
Required
- Type: str
»workspaces
Required
- Type: IRemoteWorkspace
»hostname
Optional
- Type: str
»token
Optional
- Type: str
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateArtifactory
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
password | str | (Required) - The password. |
repo | str | (Required) - The repository name. |
subpath | str | (Required) - Path within the repository. |
url | str | (Required) - The URL. |
username | str | (Required) - The username. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»password
Required
- Type: str
(Required) - The password.
»repo
Required
- Type: str
(Required) - The repository name.
»subpath
Required
- Type: str
(Required) - Path within the repository.
»url
Required
- Type: str
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
»username
Required
- Type: str
(Required) - The username.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateAzurerm
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
container_name | str | (Required) The Name of the Storage Container within the Storage Account. |
key | str | (Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container. |
storage_account_name | str | (Required) The Name of the Storage Account. |
access_key | str | access_key - (Optional) The Access Key used to access the Blob Storage Account. |
client_id | str | (Optional) The Client ID of the Service Principal. |
client_secret | str | (Optional) The Client Secret of the Service Principal. |
endpoint | str | (Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable. |
environment | str | (Optional) The Azure Environment which should be used. |
msi_endpoint | str | (Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified. |
resource_group_name | str | (Required) The Name of the Resource Group in which the Storage Account exists. |
sas_token | str | (Optional) The SAS Token used to access the Blob Storage Account. |
subscription_id | str | (Optional) The Subscription ID in which the Storage Account exists. |
tenant_id | str | (Optional) The Tenant ID in which the Subscription exists. |
use_msi | bool | (Optional) Should Managed Service Identity authentication be used? |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»container_name
Required
- Type: str
(Required) The Name of the Storage Container within the Storage Account.
»key
Required
- Type: str
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
»storage_account_name
Required
- Type: str
(Required) The Name of the Storage Account.
»access_key
Optional
- Type: str
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
»client_id
Optional
- Type: str
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
»client_secret
Optional
- Type: str
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
»endpoint
Optional
- Type: str
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
»environment
Optional
- Type: str
(Optional) The Azure Environment which should be used.
This can also be sourced from the ARM_ENVIRONMENT environment variable. Possible values are public, china, german, stack and usgovernment. Defaults to public.
»msi_endpoint
Optional
- Type: str
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
»resource_group_name
Optional
- Type: str
(Required) The Name of the Resource Group in which the Storage Account exists.
»sas_token
Optional
- Type: str
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
»subscription_id
Optional
- Type: str
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
»tenant_id
Optional
- Type: str
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
»use_msi
Optional
- Type: bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateConsul
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
access_token | str | (Required) Access token. |
path | str | (Required) Path in the Consul KV store. |
address | str | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
ca_file | str | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
cert_file | str | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
datacenter | str | (Optional) The datacenter to use. |
gzip | bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
http_auth | str | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
key_file | str | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
lock | bool | (Optional) false to disable locking. |
scheme | str | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»access_token
Required
- Type: str
(Required) Access token.
»path
Required
- Type: str
(Required) Path in the Consul KV store.
»address
Optional
- Type: str
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
»ca_file
Optional
- Type: str
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
»cert_file
Optional
- Type: str
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
»datacenter
Optional
- Type: str
(Optional) The datacenter to use.
Defaults to that of the agent.
»gzip
Optional
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
»http_auth
Optional
- Type: str
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
»key_file
Optional
- Type: str
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
»lock
Optional
- Type: bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
»scheme
Optional
- Type: str
(Optional) Specifies what protocol to use when talking to the given address,either http or https.
SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateCos
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
bucket | str | (Required) The name of the COS bucket. |
acl | str | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
key | str | (Optional) The path for saving the state file in bucket. |
prefix | str | (Optional) The directory for saving the state file in bucket. |
region | str | (Optional) The region of the COS bucket. |
secret_id | str | (Optional) Secret id of Tencent Cloud. |
secret_key | str | (Optional) Secret key of Tencent Cloud. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»bucket
Required
- Type: str
(Required) The name of the COS bucket.
You shall manually create it first.
»acl
Optional
- Type: str
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
»encrypt
Optional
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, COS will use 'AES256' encryption algorithm to encrypt state file.
»key
Optional
- Type: str
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
»prefix
Optional
- Type: str
(Optional) The directory for saving the state file in bucket.
Default to "env:".
»region
Optional
- Type: str
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
»secret_id
Optional
- Type: str
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
»secret_key
Optional
- Type: str
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateEtcd
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
endpoints | str | (Required) A space-separated list of the etcd endpoints. |
path | str | (Required) The path where to store the state. |
password | str | (Optional) The password. |
username | str | (Optional) The username. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»endpoints
Required
- Type: str
(Required) A space-separated list of the etcd endpoints.
»path
Required
- Type: str
(Required) The path where to store the state.
»password
Optional
- Type: str
(Optional) The password.
»username
Optional
- Type: str
(Optional) The username.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateEtcdV3
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
endpoints | typing.List[str] | (Required) The list of 'etcd' endpoints which to connect to. |
cacert_path | str | (Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers. |
cert_path | str | (Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification. |
key_path | str | (Optional) The path to a PEM-encoded key to provide to etcd for secure client identification. |
lock | bool | (Optional) Whether to lock state access. |
password | str | (Optional) Password used to connect to the etcd cluster. |
prefix | str | (Optional) An optional prefix to be added to keys when to storing state in etcd. |
username | str | (Optional) Username used to connect to the etcd cluster. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»endpoints
Required
- Type: typing.List[str]
(Required) The list of 'etcd' endpoints which to connect to.
»cacert_path
Optional
- Type: str
(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
»cert_path
Optional
- Type: str
(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
»key_path
Optional
- Type: str
(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
»lock
Optional
- Type: bool
(Optional) Whether to lock state access.
Defaults to true.
»password
Optional
- Type: str
(Optional) Password used to connect to the etcd cluster.
»prefix
Optional
- Type: str
(Optional) An optional prefix to be added to keys when to storing state in etcd.
Defaults to "".
»username
Optional
- Type: str
(Optional) Username used to connect to the etcd cluster.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateGcs
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
bucket | str | (Required) The name of the GCS bucket. |
access_token | str | (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field. |
credentials | str | (Optional) Local path to Google Cloud Platform account credentials in JSON format. |
encryption_key | str | (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state. |
impersonate_service_account | str | (Optional) The service account to impersonate for accessing the State Bucket. |
impersonate_service_account_delegates | typing.List[str] | (Optional) The delegation chain for an impersonating a service account. |
prefix | str | (Optional) GCS prefix inside the bucket. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»bucket
Required
- Type: str
(Required) The name of the GCS bucket.
This name must be globally unique.
»access_token
Optional
- Type: str
(Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field.
»credentials
Optional
- Type: str
(Optional) Local path to Google Cloud Platform account credentials in JSON format.
If unset, Google Application Default Credentials are used. The provided credentials must have Storage Object Admin role on the bucket.
Warning: if using the Google Cloud Platform provider as well, it will also pick up the GOOGLE_CREDENTIALS environment variable.
»encryption_key
Optional
- Type: str
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
»impersonate_service_account
Optional
- Type: str
(Optional) The service account to impersonate for accessing the State Bucket.
You must have roles/iam.serviceAccountTokenCreator role on that account for the impersonation to succeed. If you are using a delegation chain, you can specify that using the impersonate_service_account_delegates field. Alternatively, this can be specified using the GOOGLE_IMPERSONATE_SERVICE_ACCOUNT environment variable.
»impersonate_service_account_delegates
Optional
- Type: typing.List[str]
(Optional) The delegation chain for an impersonating a service account.
»prefix
Optional
- Type: str
(Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateHttp
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
address | str | (Required) The address of the REST endpoint. |
lock_address | str | (Optional) The address of the lock REST endpoint. |
lock_method | str | (Optional) The HTTP method to use when locking. |
password | str | (Optional) The password for HTTP basic authentication. |
retry_max | typing.Union[int, float] | (Optional) The number of HTTP request retries. |
retry_wait_max | typing.Union[int, float] | (Optional) The maximum time in seconds to wait between HTTP request attempts. |
retry_wait_min | typing.Union[int, float] | (Optional) The minimum time in seconds to wait between HTTP request attempts. |
skip_cert_verification | bool | (Optional) Whether to skip TLS verification. |
unlock_address | str | (Optional) The address of the unlock REST endpoint. |
unlock_method | str | (Optional) The HTTP method to use when unlocking. |
update_method | str | (Optional) HTTP method to use when updating state. |
username | str | (Optional) The username for HTTP basic authentication. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»address
Required
- Type: str
(Required) The address of the REST endpoint.
»lock_address
Optional
- Type: str
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
»lock_method
Optional
- Type: str
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
»password
Optional
- Type: str
(Optional) The password for HTTP basic authentication.
»retry_max
Optional
- Type: typing.Union[int, float]
(Optional) The number of HTTP request retries.
Defaults to 2.
»retry_wait_max
Optional
- Type: typing.Union[int, float]
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
»retry_wait_min
Optional
- Type: typing.Union[int, float]
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
»skip_cert_verification
Optional
- Type: bool
(Optional) Whether to skip TLS verification.
Defaults to false.
»unlock_address
Optional
- Type: str
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
»unlock_method
Optional
- Type: str
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
»update_method
Optional
- Type: str
(Optional) HTTP method to use when updating state.
Defaults to POST.
»username
Optional
- Type: str
(Optional) The username for HTTP basic authentication.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateLocal
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
path | str | Path where the state file is stored. |
workspace_dir | str | (Optional) The path to non-default workspaces. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»path
Optional
- Type: str
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
»workspace_dir
Optional
- Type: str
(Optional) The path to non-default workspaces.
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateManta
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
account | str | No description. |
key_id | str | No description. |
path | str | No description. |
insecure_skip_tls_verify | bool | No description. |
key_material | str | No description. |
object_name | str | No description. |
url | str | No description. |
user | str | No description. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»account
Required
- Type: str
»key_id
Required
- Type: str
»path
Required
- Type: str
»insecure_skip_tls_verify
Optional
- Type: bool
»key_material
Optional
- Type: str
»object_name
Optional
- Type: str
»url
Optional
- Type: str
»user
Optional
- Type: str
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required
- Type: TerraformStack
»fqn
Required
- Type: str
»friendly_unique_id
Required
- Type: str
»Constants
Name | Type | Description |
---|---|---|
tfResourceType | str | No description. |
»tfResourceType
Required
- Type: str
»DataTerraformRemoteStateOss
»Initializers
Name | Type | Description |
---|---|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
bucket | str | No description. |
access_key | str | No description. |
acl | str | No description. |
assume_role | OssAssumeRole | No description. |
ecs_role_name | str | No description. |
encrypt | bool | No description. |
endpoint | str | No description. |
key | str | No description. |
prefix | str | No description. |
profile | str | No description. |
region | str | No description. |
secret_key | str | No description. |
security_token | str | No description. |
shared_credentials_file | str | No description. |
tablestore_endpoint | str | No description. |
tablestore_table | str | No description. |
»scope
Required
- Type: constructs.Construct
»id
Required
- Type: str
»defaults
Optional
- Type: typing.Mapping[typing.Any]
»workspace
Optional
- Type: str
»bucket
Required
- Type: str
»access_key
Optional
- Type: str
»acl
Optional
- Type: str
»assume_role
Optional
- Type: OssAssumeRole
»ecs_role_name
Optional
- Type: str
»encrypt
Optional
- Type: bool
»endpoint
Optional
- Type: str
»key
Optional
- Type: str
»prefix
Optional
- Type: str
»profile
Optional
- Type: str
»region
Optional
- Type: str
»secret_key
Optional
- Type: str
»security_token
Optional
- Type: str
»shared_credentials_file
Optional
- Type: str
»tablestore_endpoint
Optional
- Type: str
»tablestore_table
Optional
- Type: str
»Methods
Name | Description |
---|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
»to_string
Returns a string representation of this construct.
»add_override
»path
Required
- Type: str
»value
Required
- Type: typing.Any
»override_logical_id
Overrides the auto-generated logical ID with a specific ID.
»new_logical_id
Required
- Type: str
The new logical ID to use for this stack element.
»reset_override_logical_id
Resets a previously passed logical Id to use the auto-generated logical id again.
»to_metadata
»to_terraform
Adds this resource to the terraform JSON output.
»get
»output
Required
- Type: str
»get_boolean
»output
Required
- Type: str
»get_list
»output
Required
- Type: str
»get_number
»output
Required
- Type: str
»get_string
»output
Required
- Type: str
»Static Functions
Name | Description |
---|---|
is_construct | Checks if x is a construct. |
»is_construct
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.
»x
Required
- Type: typing.Any
Any object.
»Properties
Name | Type | Description |
---|---|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
»node
Required
- Type: constructs.Node
The tree node.
»cdktf_stack
Required