HashiConf Global Join us for HashiConf Global October 4-6 in Los Angeles & online. Register Now
  • Overview
    • Enforce Policy as Code
    • Infrastructure as Code
    • Inject Secrets into Terraform
    • Integrate with Existing Workflows
    • Manage Kubernetes
    • Manage Virtual Machine Images
    • Multi-Cloud Deployment
    • Network Infrastructure Automation
    • Terraform CLI
    • Terraform Cloud
    • Terraform Enterprise
  • Registry
  • Tutorials
    • About the Docs
    • Intro to Terraform
    • Configuration Language
    • Terraform CLI
    • Terraform Cloud
    • Terraform Enterprise
    • Provider Use
    • Plugin Development
    • Registry Publishing
    • Integration Program
    • Terraform Tools
    • CDK for Terraform
    • Glossary
  • Community
GitHub
Download
Try Terraform Cloud
    • v0.12.x (latest)
    • v0.11.x
    • v0.10.x
    • v0.9.x
    • v0.8.x

    CDK for Terraform

  • Overview
  • Get Started
    • Architecture
    • HCL Interoperability
    • Constructs
    • Providers
    • Resources
    • Modules
    • Data Sources
    • Variables and Outputs
    • Functions
    • Iterators
    • Remote Backends
    • Aspects
    • Assets
    • Tokens
    • Stacks
  • Examples and Guides
    • Project Setup
    • Configuration File
    • Best Practices
    • Environment Variables
    • Terraform Cloud
    • Deployment Patterns
    • Remote Templates
    • AWS Adapter [preview]
    • Unit Tests
    • Debugging
    • CLI Configuration
    • Commands
    • Overview
    • Typescript
    • Python
    • Java
    • C#
    • Go
    • Providers
    • Overview
    • Upgrading to Version 0.12
    • Upgrading to Version 0.11
    • Upgrading to Version 0.10
    • Upgrading to Version 0.9
    • Upgrading to Version 0.7
    • Upgrading to Version 0.6
  • Community
  • Telemetry
  • Other Docs

  • Intro to Terraform
  • Configuration Language
  • Terraform CLI
  • Terraform Cloud
  • Terraform Enterprise
  • Provider Use
  • Plugin Development
  • Registry Publishing
  • Integration Program
  • Terraform Tools
  • CDK for Terraform
  • Glossary
Type '/' to Search

»API Reference for Python

»Constructs

»App

Represents a cdktf application.

»Initializers

import cdktf

cdktf.App(
  context: typing.Mapping[typing.Any] = None,
  outdir: str = None,
  skip_validation: bool = None,
  stack_traces: bool = None
)
import cdktf

cdktf.App(
  context: typing.Mapping[typing.Any] = None,
  outdir: str = None,
  skip_validation: bool = None,
  stack_traces: bool = None
)
NameTypeDescription
contexttyping.Mapping[typing.Any]Additional context values for the application.
outdirstrThe directory to output Terraform resources.
skip_validationboolWhether to skip the validation during synthesis of the app.
stack_tracesboolNo description.

»contextOptional
  • 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).


»outdirOptional
  • Type: str
  • Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"

The directory to output Terraform resources.


»skip_validationOptional
  • Type: bool
  • Default: false

Whether to skip the validation during synthesis of the app.


»stack_tracesOptional
  • Type: bool

»Methods

NameDescription
to_stringReturns a string representation of this construct.
cross_stack_referenceCreates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
synthSynthesizes all resources to the output directory.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»cross_stack_reference
def cross_stack_reference(
  from_stack: TerraformStack,
  to_stack: TerraformStack,
  identifier: str
) - > str
def cross_stack_reference(
  from_stack: TerraformStack,
  to_stack: TerraformStack,
  identifier: str
) - > str

Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.

»from_stackRequired
  • Type: TerraformStack

»to_stackRequired
  • Type: TerraformStack

»identifierRequired
  • Type: str

»synth
def synth() - > None
def synth() - > None

Synthesizes all resources to the output directory.

»Static Functions

NameDescription
is_constructChecks if x is a construct.
is_appNo description.
ofNo description.

»is_construct
import cdktf

cdktf.App.is_construct(
  x: typing.Any
)
import cdktf

cdktf.App.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»is_app
import cdktf

cdktf.App.is_app(
  x: typing.Any
)
import cdktf

cdktf.App.is_app(
  x: typing.Any
)
»xRequired
  • Type: typing.Any

»of
import cdktf

cdktf.App.of(
  construct: IConstruct
)
import cdktf

cdktf.App.of(
  construct: IConstruct
)
»constructRequired
  • Type: constructs.IConstruct

»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
manifestManifestNo description.
outdirstrThe output directory into which resources will be synthesized.
skip_validationboolWhether to skip the validation during synthesis of the app.
target_stack_idstrThe stack which will be synthesized.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»manifestRequired
manifest: Manifest
manifest: Manifest
  • Type: Manifest

»outdirRequired
outdir: str
outdir: str
  • Type: str

The output directory into which resources will be synthesized.


»skip_validationOptional
skip_validation: bool
skip_validation: bool
  • Type: bool

Whether to skip the validation during synthesis of the app.


»target_stack_idOptional
target_stack_id: str
target_stack_id: str
  • Type: str

The stack which will be synthesized.

If not set, all stacks will be synthesized.


»ArtifactoryBackend

»Initializers

import cdktf

cdktf.ArtifactoryBackend(
  scope: Construct,
  password: str,
  repo: str,
  subpath: str,
  url: str,
  username: str
)
import cdktf

cdktf.ArtifactoryBackend(
  scope: Construct,
  password: str,
  repo: str,
  subpath: str,
  url: str,
  username: str
)
NameTypeDescription
scopeconstructs.ConstructNo description.
passwordstr(Required) - The password.
repostr(Required) - The repository name.
subpathstr(Required) - Path within the repository.
urlstr(Required) - The URL.
usernamestr(Required) - The username.

»scopeRequired
  • Type: constructs.Construct

»passwordRequired
  • Type: str

(Required) - The password.


»repoRequired
  • Type: str

(Required) - The repository name.


»subpathRequired
  • Type: str

(Required) - Path within the repository.


»urlRequired
  • Type: str

(Required) - The URL.

Note that this is the base url to artifactory not the full repo and subpath.


»usernameRequired
  • Type: str

(Required) - The username.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
get_remote_state_data_sourceCreates a TerraformRemoteState resource that accesses this backend.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get_remote_state_data_source
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: constructs.Construct

»nameRequired
  • Type: str

»_fromstackRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.
is_backendNo description.

»is_construct
import cdktf

cdktf.ArtifactoryBackend.is_construct(
  x: typing.Any
)
import cdktf

cdktf.ArtifactoryBackend.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»is_backend
import cdktf

cdktf.ArtifactoryBackend.is_backend(
  x: typing.Any
)
import cdktf

cdktf.ArtifactoryBackend.is_backend(
  x: typing.Any
)
»xRequired
  • Type: typing.Any

»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»AzurermBackend

»Initializers

import cdktf

cdktf.AzurermBackend(
  scope: Construct,
  container_name: str,
  key: str,
  storage_account_name: str,
  access_key: str = None,
  client_id: str = None,
  client_secret: str = None,
  endpoint: str = None,
  environment: str = None,
  msi_endpoint: str = None,
  resource_group_name: str = None,
  sas_token: str = None,
  subscription_id: str = None,
  tenant_id: str = None,
  use_msi: bool = None
)
import cdktf

cdktf.AzurermBackend(
  scope: Construct,
  container_name: str,
  key: str,
  storage_account_name: str,
  access_key: str = None,
  client_id: str = None,
  client_secret: str = None,
  endpoint: str = None,
  environment: str = None,
  msi_endpoint: str = None,
  resource_group_name: str = None,
  sas_token: str = None,
  subscription_id: str = None,
  tenant_id: str = None,
  use_msi: bool = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
container_namestr(Required) The Name of the Storage Container within the Storage Account.
keystr(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
storage_account_namestr(Required) The Name of the Storage Account.
access_keystraccess_key - (Optional) The Access Key used to access the Blob Storage Account.
client_idstr(Optional) The Client ID of the Service Principal.
client_secretstr(Optional) The Client Secret of the Service Principal.
endpointstr(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
environmentstr(Optional) The Azure Environment which should be used.
msi_endpointstr(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
resource_group_namestr(Required) The Name of the Resource Group in which the Storage Account exists.
sas_tokenstr(Optional) The SAS Token used to access the Blob Storage Account.
subscription_idstr(Optional) The Subscription ID in which the Storage Account exists.
tenant_idstr(Optional) The Tenant ID in which the Subscription exists.
use_msibool(Optional) Should Managed Service Identity authentication be used?

»scopeRequired
  • Type: constructs.Construct

»container_nameRequired
  • Type: str

(Required) The Name of the Storage Container within the Storage Account.


»keyRequired
  • Type: str

(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.


»storage_account_nameRequired
  • Type: str

(Required) The Name of the Storage Account.


»access_keyOptional
  • 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_idOptional
  • Type: str

(Optional) The Client ID of the Service Principal.

This can also be sourced from the ARM_CLIENT_ID environment variable.


»client_secretOptional
  • Type: str

(Optional) The Client Secret of the Service Principal.

This can also be sourced from the ARM_CLIENT_SECRET environment variable.


»endpointOptional
  • 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.


»environmentOptional
  • 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_endpointOptional
  • 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_nameOptional
  • Type: str

(Required) The Name of the Resource Group in which the Storage Account exists.


»sas_tokenOptional
  • 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_idOptional
  • 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_idOptional
  • Type: str

(Optional) The Tenant ID in which the Subscription exists.

This can also be sourced from the ARM_TENANT_ID environment variable.


»use_msiOptional
  • Type: bool

(Optional) Should Managed Service Identity authentication be used?

This can also be sourced from the ARM_USE_MSI environment variable.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
get_remote_state_data_sourceCreates a TerraformRemoteState resource that accesses this backend.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get_remote_state_data_source
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: constructs.Construct

»nameRequired
  • Type: str

»_fromstackRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.
is_backendNo description.

»is_construct
import cdktf

cdktf.AzurermBackend.is_construct(
  x: typing.Any
)
import cdktf

cdktf.AzurermBackend.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»is_backend
import cdktf

cdktf.AzurermBackend.is_backend(
  x: typing.Any
)
import cdktf

cdktf.AzurermBackend.is_backend(
  x: typing.Any
)
»xRequired
  • Type: typing.Any

»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»ConsulBackend

»Initializers

import cdktf

cdktf.ConsulBackend(
  scope: Construct,
  access_token: str,
  path: str,
  address: str = None,
  ca_file: str = None,
  cert_file: str = None,
  datacenter: str = None,
  gzip: bool = None,
  http_auth: str = None,
  key_file: str = None,
  lock: bool = None,
  scheme: str = None
)
import cdktf

cdktf.ConsulBackend(
  scope: Construct,
  access_token: str,
  path: str,
  address: str = None,
  ca_file: str = None,
  cert_file: str = None,
  datacenter: str = None,
  gzip: bool = None,
  http_auth: str = None,
  key_file: str = None,
  lock: bool = None,
  scheme: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
access_tokenstr(Required) Access token.
pathstr(Required) Path in the Consul KV store.
addressstr(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
ca_filestr(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
cert_filestr(Optional) A path to a PEM-encoded certificate provided to the remote agent;
datacenterstr(Optional) The datacenter to use.
gzipbool(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
http_authstr(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
key_filestr(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
lockbool(Optional) false to disable locking.
schemestr(Optional) Specifies what protocol to use when talking to the given address,either http or https.

»scopeRequired
  • Type: constructs.Construct

»access_tokenRequired
  • Type: str

(Required) Access token.


»pathRequired
  • Type: str

(Required) Path in the Consul KV store.


»addressOptional
  • 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_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.


»cert_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded certificate provided to the remote agent;

requires use of key_file.


»datacenterOptional
  • Type: str

(Optional) The datacenter to use.

Defaults to that of the agent.


»gzipOptional
  • Type: bool

(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.


»http_authOptional
  • Type: str

(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.


»key_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded private key, required if cert_file is specified.


»lockOptional
  • 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.


»schemeOptional
  • 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

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
get_remote_state_data_sourceCreates a TerraformRemoteState resource that accesses this backend.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get_remote_state_data_source
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: constructs.Construct

»nameRequired
  • Type: str

»_fromstackRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.
is_backendNo description.

»is_construct
import cdktf

cdktf.ConsulBackend.is_construct(
  x: typing.Any
)
import cdktf

cdktf.ConsulBackend.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»is_backend
import cdktf

cdktf.ConsulBackend.is_backend(
  x: typing.Any
)
import cdktf

cdktf.ConsulBackend.is_backend(
  x: typing.Any
)
»xRequired
  • Type: typing.Any

»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»CosBackend

»Initializers

import cdktf

cdktf.CosBackend(
  scope: Construct,
  bucket: str,
  acl: str = None,
  encrypt: bool = None,
  key: str = None,
  prefix: str = None,
  region: str = None,
  secret_id: str = None,
  secret_key: str = None
)
import cdktf

cdktf.CosBackend(
  scope: Construct,
  bucket: str,
  acl: str = None,
  encrypt: bool = None,
  key: str = None,
  prefix: str = None,
  region: str = None,
  secret_id: str = None,
  secret_key: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
bucketstr(Required) The name of the COS bucket.
aclstr(Optional) Object ACL to be applied to the state file, allows private and public-read.
encryptbool(Optional) Whether to enable server side encryption of the state file.
keystr(Optional) The path for saving the state file in bucket.
prefixstr(Optional) The directory for saving the state file in bucket.
regionstr(Optional) The region of the COS bucket.
secret_idstr(Optional) Secret id of Tencent Cloud.
secret_keystr(Optional) Secret key of Tencent Cloud.

»scopeRequired
  • Type: constructs.Construct

»bucketRequired
  • Type: str

(Required) The name of the COS bucket.

You shall manually create it first.


»aclOptional
  • Type: str

(Optional) Object ACL to be applied to the state file, allows private and public-read.

Defaults to private.


»encryptOptional
  • 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.


»keyOptional
  • Type: str

(Optional) The path for saving the state file in bucket.

Defaults to terraform.tfstate.


»prefixOptional
  • Type: str

(Optional) The directory for saving the state file in bucket.

Default to "env:".


»regionOptional
  • Type: str

(Optional) The region of the COS bucket.

It supports environment variables TENCENTCLOUD_REGION.


»secret_idOptional
  • Type: str

(Optional) Secret id of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_ID.


»secret_keyOptional
  • Type: str

(Optional) Secret key of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_KEY.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
get_remote_state_data_sourceCreates a TerraformRemoteState resource that accesses this backend.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get_remote_state_data_source
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState
def get_remote_state_data_source(
  scope: Construct,
  name: str,
  _fromstack: str
) - > TerraformRemoteState

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: constructs.Construct

»nameRequired
  • Type: str

»_fromstackRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.
is_backendNo description.

»is_construct
import cdktf

cdktf.CosBackend.is_construct(
  x: typing.Any
)
import cdktf

cdktf.CosBackend.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»is_backend
import cdktf

cdktf.CosBackend.is_backend(
  x: typing.Any
)
import cdktf

cdktf.CosBackend.is_backend(
  x: typing.Any
)
»xRequired
  • Type: typing.Any

»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»DataTerraformRemoteState

»Initializers

import cdktf

cdktf.DataTerraformRemoteState(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  organization: str,
  workspaces: IRemoteWorkspace,
  hostname: str = None,
  token: str = None
)
import cdktf

cdktf.DataTerraformRemoteState(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  organization: str,
  workspaces: IRemoteWorkspace,
  hostname: str = None,
  token: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
organizationstrNo description.
workspacesIRemoteWorkspaceNo description.
hostnamestrNo description.
tokenstrNo description.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»organizationRequired
  • Type: str

»workspacesRequired
  • Type: IRemoteWorkspace

»hostnameOptional
  • Type: str

»tokenOptional
  • Type: str

»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteState.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteState.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateArtifactory

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateArtifactory(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  password: str,
  repo: str,
  subpath: str,
  url: str,
  username: str
)
import cdktf

cdktf.DataTerraformRemoteStateArtifactory(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  password: str,
  repo: str,
  subpath: str,
  url: str,
  username: str
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
passwordstr(Required) - The password.
repostr(Required) - The repository name.
subpathstr(Required) - Path within the repository.
urlstr(Required) - The URL.
usernamestr(Required) - The username.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»passwordRequired
  • Type: str

(Required) - The password.


»repoRequired
  • Type: str

(Required) - The repository name.


»subpathRequired
  • Type: str

(Required) - Path within the repository.


»urlRequired
  • Type: str

(Required) - The URL.

Note that this is the base url to artifactory not the full repo and subpath.


»usernameRequired
  • Type: str

(Required) - The username.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateArtifactory.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateArtifactory.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateAzurerm

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateAzurerm(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  container_name: str,
  key: str,
  storage_account_name: str,
  access_key: str = None,
  client_id: str = None,
  client_secret: str = None,
  endpoint: str = None,
  environment: str = None,
  msi_endpoint: str = None,
  resource_group_name: str = None,
  sas_token: str = None,
  subscription_id: str = None,
  tenant_id: str = None,
  use_msi: bool = None
)
import cdktf

cdktf.DataTerraformRemoteStateAzurerm(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  container_name: str,
  key: str,
  storage_account_name: str,
  access_key: str = None,
  client_id: str = None,
  client_secret: str = None,
  endpoint: str = None,
  environment: str = None,
  msi_endpoint: str = None,
  resource_group_name: str = None,
  sas_token: str = None,
  subscription_id: str = None,
  tenant_id: str = None,
  use_msi: bool = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
container_namestr(Required) The Name of the Storage Container within the Storage Account.
keystr(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
storage_account_namestr(Required) The Name of the Storage Account.
access_keystraccess_key - (Optional) The Access Key used to access the Blob Storage Account.
client_idstr(Optional) The Client ID of the Service Principal.
client_secretstr(Optional) The Client Secret of the Service Principal.
endpointstr(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
environmentstr(Optional) The Azure Environment which should be used.
msi_endpointstr(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
resource_group_namestr(Required) The Name of the Resource Group in which the Storage Account exists.
sas_tokenstr(Optional) The SAS Token used to access the Blob Storage Account.
subscription_idstr(Optional) The Subscription ID in which the Storage Account exists.
tenant_idstr(Optional) The Tenant ID in which the Subscription exists.
use_msibool(Optional) Should Managed Service Identity authentication be used?

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»container_nameRequired
  • Type: str

(Required) The Name of the Storage Container within the Storage Account.


»keyRequired
  • Type: str

(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.


»storage_account_nameRequired
  • Type: str

(Required) The Name of the Storage Account.


»access_keyOptional
  • 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_idOptional
  • Type: str

(Optional) The Client ID of the Service Principal.

This can also be sourced from the ARM_CLIENT_ID environment variable.


»client_secretOptional
  • Type: str

(Optional) The Client Secret of the Service Principal.

This can also be sourced from the ARM_CLIENT_SECRET environment variable.


»endpointOptional
  • 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.


»environmentOptional
  • 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_endpointOptional
  • 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_nameOptional
  • Type: str

(Required) The Name of the Resource Group in which the Storage Account exists.


»sas_tokenOptional
  • 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_idOptional
  • 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_idOptional
  • Type: str

(Optional) The Tenant ID in which the Subscription exists.

This can also be sourced from the ARM_TENANT_ID environment variable.


»use_msiOptional
  • Type: bool

(Optional) Should Managed Service Identity authentication be used?

This can also be sourced from the ARM_USE_MSI environment variable.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateAzurerm.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateAzurerm.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateConsul

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateConsul(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  access_token: str,
  path: str,
  address: str = None,
  ca_file: str = None,
  cert_file: str = None,
  datacenter: str = None,
  gzip: bool = None,
  http_auth: str = None,
  key_file: str = None,
  lock: bool = None,
  scheme: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateConsul(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  access_token: str,
  path: str,
  address: str = None,
  ca_file: str = None,
  cert_file: str = None,
  datacenter: str = None,
  gzip: bool = None,
  http_auth: str = None,
  key_file: str = None,
  lock: bool = None,
  scheme: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
access_tokenstr(Required) Access token.
pathstr(Required) Path in the Consul KV store.
addressstr(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
ca_filestr(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
cert_filestr(Optional) A path to a PEM-encoded certificate provided to the remote agent;
datacenterstr(Optional) The datacenter to use.
gzipbool(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
http_authstr(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
key_filestr(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
lockbool(Optional) false to disable locking.
schemestr(Optional) Specifies what protocol to use when talking to the given address,either http or https.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»access_tokenRequired
  • Type: str

(Required) Access token.


»pathRequired
  • Type: str

(Required) Path in the Consul KV store.


»addressOptional
  • 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_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.


»cert_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded certificate provided to the remote agent;

requires use of key_file.


»datacenterOptional
  • Type: str

(Optional) The datacenter to use.

Defaults to that of the agent.


»gzipOptional
  • Type: bool

(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.


»http_authOptional
  • Type: str

(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.


»key_fileOptional
  • Type: str

(Optional) A path to a PEM-encoded private key, required if cert_file is specified.


»lockOptional
  • 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.


»schemeOptional
  • 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

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateConsul.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateConsul.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateCos

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateCos(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  acl: str = None,
  encrypt: bool = None,
  key: str = None,
  prefix: str = None,
  region: str = None,
  secret_id: str = None,
  secret_key: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateCos(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  acl: str = None,
  encrypt: bool = None,
  key: str = None,
  prefix: str = None,
  region: str = None,
  secret_id: str = None,
  secret_key: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
bucketstr(Required) The name of the COS bucket.
aclstr(Optional) Object ACL to be applied to the state file, allows private and public-read.
encryptbool(Optional) Whether to enable server side encryption of the state file.
keystr(Optional) The path for saving the state file in bucket.
prefixstr(Optional) The directory for saving the state file in bucket.
regionstr(Optional) The region of the COS bucket.
secret_idstr(Optional) Secret id of Tencent Cloud.
secret_keystr(Optional) Secret key of Tencent Cloud.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»bucketRequired
  • Type: str

(Required) The name of the COS bucket.

You shall manually create it first.


»aclOptional
  • Type: str

(Optional) Object ACL to be applied to the state file, allows private and public-read.

Defaults to private.


»encryptOptional
  • 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.


»keyOptional
  • Type: str

(Optional) The path for saving the state file in bucket.

Defaults to terraform.tfstate.


»prefixOptional
  • Type: str

(Optional) The directory for saving the state file in bucket.

Default to "env:".


»regionOptional
  • Type: str

(Optional) The region of the COS bucket.

It supports environment variables TENCENTCLOUD_REGION.


»secret_idOptional
  • Type: str

(Optional) Secret id of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_ID.


»secret_keyOptional
  • Type: str

(Optional) Secret key of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_KEY.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateCos.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateCos.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateEtcd

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateEtcd(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  endpoints: str,
  path: str,
  password: str = None,
  username: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateEtcd(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  endpoints: str,
  path: str,
  password: str = None,
  username: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
endpointsstr(Required) A space-separated list of the etcd endpoints.
pathstr(Required) The path where to store the state.
passwordstr(Optional) The password.
usernamestr(Optional) The username.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»endpointsRequired
  • Type: str

(Required) A space-separated list of the etcd endpoints.


»pathRequired
  • Type: str

(Required) The path where to store the state.


»passwordOptional
  • Type: str

(Optional) The password.


»usernameOptional
  • Type: str

(Optional) The username.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateEtcd.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateEtcd.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateEtcdV3

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateEtcdV3(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  endpoints: typing.List[str],
  cacert_path: str = None,
  cert_path: str = None,
  key_path: str = None,
  lock: bool = None,
  password: str = None,
  prefix: str = None,
  username: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateEtcdV3(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  endpoints: typing.List[str],
  cacert_path: str = None,
  cert_path: str = None,
  key_path: str = None,
  lock: bool = None,
  password: str = None,
  prefix: str = None,
  username: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
endpointstyping.List[str](Required) The list of 'etcd' endpoints which to connect to.
cacert_pathstr(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
cert_pathstr(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
key_pathstr(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
lockbool(Optional) Whether to lock state access.
passwordstr(Optional) Password used to connect to the etcd cluster.
prefixstr(Optional) An optional prefix to be added to keys when to storing state in etcd.
usernamestr(Optional) Username used to connect to the etcd cluster.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»endpointsRequired
  • Type: typing.List[str]

(Required) The list of 'etcd' endpoints which to connect to.


»cacert_pathOptional
  • Type: str

(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.


»cert_pathOptional
  • Type: str

(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.


»key_pathOptional
  • Type: str

(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.


»lockOptional
  • Type: bool

(Optional) Whether to lock state access.

Defaults to true.


»passwordOptional
  • Type: str

(Optional) Password used to connect to the etcd cluster.


»prefixOptional
  • Type: str

(Optional) An optional prefix to be added to keys when to storing state in etcd.

Defaults to "".


»usernameOptional
  • Type: str

(Optional) Username used to connect to the etcd cluster.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateEtcdV3.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateEtcdV3.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateGcs

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateGcs(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  access_token: str = None,
  credentials: str = None,
  encryption_key: str = None,
  impersonate_service_account: str = None,
  impersonate_service_account_delegates: typing.List[str] = None,
  prefix: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateGcs(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  access_token: str = None,
  credentials: str = None,
  encryption_key: str = None,
  impersonate_service_account: str = None,
  impersonate_service_account_delegates: typing.List[str] = None,
  prefix: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
bucketstr(Required) The name of the GCS bucket.
access_tokenstr(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.
credentialsstr(Optional) Local path to Google Cloud Platform account credentials in JSON format.
encryption_keystr(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
impersonate_service_accountstr(Optional) The service account to impersonate for accessing the State Bucket.
impersonate_service_account_delegatestyping.List[str](Optional) The delegation chain for an impersonating a service account.
prefixstr(Optional) GCS prefix inside the bucket.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»bucketRequired
  • Type: str

(Required) The name of the GCS bucket.

This name must be globally unique.


»access_tokenOptional
  • 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.


»credentialsOptional
  • 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_keyOptional
  • Type: str

(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.


»impersonate_service_accountOptional
  • 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_delegatesOptional
  • Type: typing.List[str]

(Optional) The delegation chain for an impersonating a service account.


»prefixOptional
  • Type: str

(Optional) GCS prefix inside the bucket.

Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateGcs.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateGcs.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateHttp

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateHttp(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  address: str,
  lock_address: str = None,
  lock_method: str = None,
  password: str = None,
  retry_max: typing.Union[int, float] = None,
  retry_wait_max: typing.Union[int, float] = None,
  retry_wait_min: typing.Union[int, float] = None,
  skip_cert_verification: bool = None,
  unlock_address: str = None,
  unlock_method: str = None,
  update_method: str = None,
  username: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateHttp(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  address: str,
  lock_address: str = None,
  lock_method: str = None,
  password: str = None,
  retry_max: typing.Union[int, float] = None,
  retry_wait_max: typing.Union[int, float] = None,
  retry_wait_min: typing.Union[int, float] = None,
  skip_cert_verification: bool = None,
  unlock_address: str = None,
  unlock_method: str = None,
  update_method: str = None,
  username: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
addressstr(Required) The address of the REST endpoint.
lock_addressstr(Optional) The address of the lock REST endpoint.
lock_methodstr(Optional) The HTTP method to use when locking.
passwordstr(Optional) The password for HTTP basic authentication.
retry_maxtyping.Union[int, float](Optional) The number of HTTP request retries.
retry_wait_maxtyping.Union[int, float](Optional) The maximum time in seconds to wait between HTTP request attempts.
retry_wait_mintyping.Union[int, float](Optional) The minimum time in seconds to wait between HTTP request attempts.
skip_cert_verificationbool(Optional) Whether to skip TLS verification.
unlock_addressstr(Optional) The address of the unlock REST endpoint.
unlock_methodstr(Optional) The HTTP method to use when unlocking.
update_methodstr(Optional) HTTP method to use when updating state.
usernamestr(Optional) The username for HTTP basic authentication.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»addressRequired
  • Type: str

(Required) The address of the REST endpoint.


»lock_addressOptional
  • Type: str

(Optional) The address of the lock REST endpoint.

Defaults to disabled.


»lock_methodOptional
  • Type: str

(Optional) The HTTP method to use when locking.

Defaults to LOCK.


»passwordOptional
  • Type: str

(Optional) The password for HTTP basic authentication.


»retry_maxOptional
  • Type: typing.Union[int, float]

(Optional) The number of HTTP request retries.

Defaults to 2.


»retry_wait_maxOptional
  • Type: typing.Union[int, float]

(Optional) The maximum time in seconds to wait between HTTP request attempts.

Defaults to 30.


»retry_wait_minOptional
  • Type: typing.Union[int, float]

(Optional) The minimum time in seconds to wait between HTTP request attempts.

Defaults to 1.


»skip_cert_verificationOptional
  • Type: bool

(Optional) Whether to skip TLS verification.

Defaults to false.


»unlock_addressOptional
  • Type: str

(Optional) The address of the unlock REST endpoint.

Defaults to disabled.


»unlock_methodOptional
  • Type: str

(Optional) The HTTP method to use when unlocking.

Defaults to UNLOCK.


»update_methodOptional
  • Type: str

(Optional) HTTP method to use when updating state.

Defaults to POST.


»usernameOptional
  • Type: str

(Optional) The username for HTTP basic authentication.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateHttp.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateHttp.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateLocal

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateLocal(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  path: str = None,
  workspace_dir: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateLocal(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  path: str = None,
  workspace_dir: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
pathstrPath where the state file is stored.
workspace_dirstr(Optional) The path to non-default workspaces.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»pathOptional
  • Type: str
  • Default: defaults to terraform.${stackId}.tfstate

Path where the state file is stored.


»workspace_dirOptional
  • Type: str

(Optional) The path to non-default workspaces.


»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateLocal.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateLocal.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateManta

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateManta(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  account: str,
  key_id: str,
  path: str,
  insecure_skip_tls_verify: bool = None,
  key_material: str = None,
  object_name: str = None,
  url: str = None,
  user: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateManta(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  account: str,
  key_id: str,
  path: str,
  insecure_skip_tls_verify: bool = None,
  key_material: str = None,
  object_name: str = None,
  url: str = None,
  user: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
accountstrNo description.
key_idstrNo description.
pathstrNo description.
insecure_skip_tls_verifyboolNo description.
key_materialstrNo description.
object_namestrNo description.
urlstrNo description.
userstrNo description.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»accountRequired
  • Type: str

»key_idRequired
  • Type: str

»pathRequired
  • Type: str

»insecure_skip_tls_verifyOptional
  • Type: bool

»key_materialOptional
  • Type: str

»object_nameOptional
  • Type: str

»urlOptional
  • Type: str

»userOptional
  • Type: str

»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateManta.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateManta.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack
  • Type: TerraformStack

»fqnRequired
fqn: str
fqn: str
  • Type: str

»friendly_unique_idRequired
friendly_unique_id: str
friendly_unique_id: str
  • Type: str

»Constants

NameTypeDescription
tfResourceTypestrNo description.

»tfResourceTypeRequired
tfResourceType: str
tfResourceType: str
  • Type: str

»DataTerraformRemoteStateOss

»Initializers

import cdktf

cdktf.DataTerraformRemoteStateOss(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  access_key: str = None,
  acl: str = None,
  assume_role: OssAssumeRole = None,
  ecs_role_name: str = None,
  encrypt: bool = None,
  endpoint: str = None,
  key: str = None,
  prefix: str = None,
  profile: str = None,
  region: str = None,
  secret_key: str = None,
  security_token: str = None,
  shared_credentials_file: str = None,
  tablestore_endpoint: str = None,
  tablestore_table: str = None
)
import cdktf

cdktf.DataTerraformRemoteStateOss(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  bucket: str,
  access_key: str = None,
  acl: str = None,
  assume_role: OssAssumeRole = None,
  ecs_role_name: str = None,
  encrypt: bool = None,
  endpoint: str = None,
  key: str = None,
  prefix: str = None,
  profile: str = None,
  region: str = None,
  secret_key: str = None,
  security_token: str = None,
  shared_credentials_file: str = None,
  tablestore_endpoint: str = None,
  tablestore_table: str = None
)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstrNo description.
defaultstyping.Mapping[typing.Any]No description.
workspacestrNo description.
bucketstrNo description.
access_keystrNo description.
aclstrNo description.
assume_roleOssAssumeRoleNo description.
ecs_role_namestrNo description.
encryptboolNo description.
endpointstrNo description.
keystrNo description.
prefixstrNo description.
profilestrNo description.
regionstrNo description.
secret_keystrNo description.
security_tokenstrNo description.
shared_credentials_filestrNo description.
tablestore_endpointstrNo description.
tablestore_tablestrNo description.

»scopeRequired
  • Type: constructs.Construct

»idRequired
  • Type: str

»defaultsOptional
  • Type: typing.Mapping[typing.Any]

»workspaceOptional
  • Type: str

»bucketRequired
  • Type: str

»access_keyOptional
  • Type: str

»aclOptional
  • Type: str

»assume_roleOptional
  • Type: OssAssumeRole

»ecs_role_nameOptional
  • Type: str

»encryptOptional
  • Type: bool

»endpointOptional
  • Type: str

»keyOptional
  • Type: str

»prefixOptional
  • Type: str

»profileOptional
  • Type: str

»regionOptional
  • Type: str

»secret_keyOptional
  • Type: str

»security_tokenOptional
  • Type: str

»shared_credentials_fileOptional
  • Type: str

»tablestore_endpointOptional
  • Type: str

»tablestore_tableOptional
  • Type: str

»Methods

NameDescription
to_stringReturns a string representation of this construct.
add_overrideNo description.
override_logical_idOverrides the auto-generated logical ID with a specific ID.
reset_override_logical_idResets a previously passed logical Id to use the auto-generated logical id again.
to_metadataNo description.
to_terraformAdds this resource to the terraform JSON output.
getNo description.
get_booleanNo description.
get_listNo description.
get_numberNo description.
get_stringNo description.

»to_string
def to_string() - > str
def to_string() - > str

Returns a string representation of this construct.

»add_override
def add_override(
  path: str,
  value: typing.Any
) - > None
def add_override(
  path: str,
  value: typing.Any
) - > None
»pathRequired
  • Type: str

»valueRequired
  • Type: typing.Any

»override_logical_id
def override_logical_id(
  new_logical_id: str
) - > None
def override_logical_id(
  new_logical_id: str
) - > None

Overrides the auto-generated logical ID with a specific ID.

»new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


»reset_override_logical_id
def reset_override_logical_id() - > None
def reset_override_logical_id() - > None

Resets a previously passed logical Id to use the auto-generated logical id again.

»to_metadata
def to_metadata() - > typing.Any
def to_metadata() - > typing.Any
»to_terraform
def to_terraform() - > typing.Any
def to_terraform() - > typing.Any

Adds this resource to the terraform JSON output.

»get
def get(
  output: str
) - > IResolvable
def get(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_boolean
def get_boolean(
  output: str
) - > IResolvable
def get_boolean(
  output: str
) - > IResolvable
»outputRequired
  • Type: str

»get_list
def get_list(
  output: str
) - > typing.List[str]
def get_list(
  output: str
) - > typing.List[str]
»outputRequired
  • Type: str

»get_number
def get_number(
  output: str
) - > typing.Union[int, float]
def get_number(
  output: str
) - > typing.Union[int, float]
»outputRequired
  • Type: str

»get_string
def get_string(
  output: str
) - > str
def get_string(
  output: str
) - > str
»outputRequired
  • Type: str

»Static Functions

NameDescription
is_constructChecks if x is a construct.

»is_construct
import cdktf

cdktf.DataTerraformRemoteStateOss.is_construct(
  x: typing.Any
)
import cdktf

cdktf.DataTerraformRemoteStateOss.is_construct(
  x: typing.Any
)

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.

»xRequired
  • Type: typing.Any

Any object.


»Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
cdktf_stackTerraformStackNo description.
fqnstrNo description.
friendly_unique_idstrNo description.

»nodeRequired
node: Node
node: Node
  • Type: constructs.Node

The tree node.


»cdktf_stackRequired
cdktf_stack: TerraformStack
cdktf_stack: TerraformStack