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 Java

»Constructs

»App

Represents a cdktf application.

»Initializers

import com.hashicorp.cdktf.App;

App.Builder.create()
//  .context(java.util.Map< java.lang.String, java.lang.Object >)
//  .outdir(java.lang.String)
//  .skipValidation(java.lang.Boolean)
//  .stackTraces(java.lang.Boolean)
    .build();
import com.hashicorp.cdktf.App;

App.Builder.create()
//  .context(java.util.Map< java.lang.String, java.lang.Object >)
//  .outdir(java.lang.String)
//  .skipValidation(java.lang.Boolean)
//  .stackTraces(java.lang.Boolean)
    .build();
NameTypeDescription
contextjava.util.Map< java.lang.String, java.lang.Object >Additional context values for the application.
outdirjava.lang.StringThe directory to output Terraform resources.
skipValidationjava.lang.BooleanWhether to skip the validation during synthesis of the app.
stackTracesjava.lang.BooleanNo description.

»contextOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >
  • 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: java.lang.String
  • Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"

The directory to output Terraform resources.


»skipValidationOptional
  • Type: java.lang.Boolean
  • Default: false

Whether to skip the validation during synthesis of the app.


»stackTracesOptional
  • Type: java.lang.Boolean

»Methods

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

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»crossStackReference
public java.lang.String crossStackReference(TerraformStack fromStack, TerraformStack toStack, java.lang.String identifier)
public java.lang.String crossStackReference(TerraformStack fromStack, TerraformStack toStack, java.lang.String identifier)

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

»fromStackRequired
  • Type: TerraformStack

»toStackRequired
  • Type: TerraformStack

»identifierRequired
  • Type: java.lang.String

»synth
public void synth()
public void synth()

Synthesizes all resources to the output directory.

»Static Functions

NameDescription
isConstructChecks if x is a construct.
isAppNo description.
ofNo description.

»isConstruct
import com.hashicorp.cdktf.App;

App.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.App;

App.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»isApp
import com.hashicorp.cdktf.App;

App.isApp(java.lang.Object x)
import com.hashicorp.cdktf.App;

App.isApp(java.lang.Object x)
»xRequired
  • Type: java.lang.Object

»of
import com.hashicorp.cdktf.App;

App.of(IConstruct construct)
import com.hashicorp.cdktf.App;

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

»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
manifestManifestNo description.
outdirjava.lang.StringThe output directory into which resources will be synthesized.
skipValidationjava.lang.BooleanWhether to skip the validation during synthesis of the app.
targetStackIdjava.lang.StringThe stack which will be synthesized.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»manifestRequired
public Manifest getManifest();
public Manifest getManifest();
  • Type: Manifest

»outdirRequired
public java.lang.String getOutdir();
public java.lang.String getOutdir();
  • Type: java.lang.String

The output directory into which resources will be synthesized.


»skipValidationOptional
public java.lang.Boolean getSkipValidation();
public java.lang.Boolean getSkipValidation();
  • Type: java.lang.Boolean

Whether to skip the validation during synthesis of the app.


»targetStackIdOptional
public java.lang.String getTargetStackId();
public java.lang.String getTargetStackId();
  • Type: java.lang.String

The stack which will be synthesized.

If not set, all stacks will be synthesized.


»ArtifactoryBackend

»Initializers

import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.Builder.create(Construct scope)
    .password(java.lang.String)
    .repo(java.lang.String)
    .subpath(java.lang.String)
    .url(java.lang.String)
    .username(java.lang.String)
    .build();
import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.Builder.create(Construct scope)
    .password(java.lang.String)
    .repo(java.lang.String)
    .subpath(java.lang.String)
    .url(java.lang.String)
    .username(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
passwordjava.lang.String(Required) - The password.
repojava.lang.String(Required) - The repository name.
subpathjava.lang.String(Required) - Path within the repository.
urljava.lang.String(Required) - The URL.
usernamejava.lang.String(Required) - The username.

»scopeRequired
  • Type: software.constructs.Construct

»passwordRequired
  • Type: java.lang.String

(Required) - The password.


»repoRequired
  • Type: java.lang.String

(Required) - The repository name.


»subpathRequired
  • Type: java.lang.String

(Required) - Path within the repository.


»urlRequired
  • Type: java.lang.String

(Required) - The URL.

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


»usernameRequired
  • Type: java.lang.String

(Required) - The username.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getRemoteStateDataSourceCreates a TerraformRemoteState resource that accesses this backend.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»getRemoteStateDataSource
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: software.constructs.Construct

»nameRequired
  • Type: java.lang.String

»_fromStackRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.
isBackendNo description.

»isConstruct
import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»isBackend
import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.isBackend(java.lang.Object x)
import com.hashicorp.cdktf.ArtifactoryBackend;

ArtifactoryBackend.isBackend(java.lang.Object x)
»xRequired
  • Type: java.lang.Object

»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»AzurermBackend

»Initializers

import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.Builder.create(Construct scope)
    .containerName(java.lang.String)
    .key(java.lang.String)
    .storageAccountName(java.lang.String)
//  .accessKey(java.lang.String)
//  .clientId(java.lang.String)
//  .clientSecret(java.lang.String)
//  .endpoint(java.lang.String)
//  .environment(java.lang.String)
//  .msiEndpoint(java.lang.String)
//  .resourceGroupName(java.lang.String)
//  .sasToken(java.lang.String)
//  .subscriptionId(java.lang.String)
//  .tenantId(java.lang.String)
//  .useMsi(java.lang.Boolean)
    .build();
import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.Builder.create(Construct scope)
    .containerName(java.lang.String)
    .key(java.lang.String)
    .storageAccountName(java.lang.String)
//  .accessKey(java.lang.String)
//  .clientId(java.lang.String)
//  .clientSecret(java.lang.String)
//  .endpoint(java.lang.String)
//  .environment(java.lang.String)
//  .msiEndpoint(java.lang.String)
//  .resourceGroupName(java.lang.String)
//  .sasToken(java.lang.String)
//  .subscriptionId(java.lang.String)
//  .tenantId(java.lang.String)
//  .useMsi(java.lang.Boolean)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
containerNamejava.lang.String(Required) The Name of the Storage Container within the Storage Account.
keyjava.lang.String(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
storageAccountNamejava.lang.String(Required) The Name of the Storage Account.
accessKeyjava.lang.Stringaccess_key - (Optional) The Access Key used to access the Blob Storage Account.
clientIdjava.lang.String(Optional) The Client ID of the Service Principal.
clientSecretjava.lang.String(Optional) The Client Secret of the Service Principal.
endpointjava.lang.String(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
environmentjava.lang.String(Optional) The Azure Environment which should be used.
msiEndpointjava.lang.String(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
resourceGroupNamejava.lang.String(Required) The Name of the Resource Group in which the Storage Account exists.
sasTokenjava.lang.String(Optional) The SAS Token used to access the Blob Storage Account.
subscriptionIdjava.lang.String(Optional) The Subscription ID in which the Storage Account exists.
tenantIdjava.lang.String(Optional) The Tenant ID in which the Subscription exists.
useMsijava.lang.Boolean(Optional) Should Managed Service Identity authentication be used?

»scopeRequired
  • Type: software.constructs.Construct

»containerNameRequired
  • Type: java.lang.String

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


»keyRequired
  • Type: java.lang.String

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


»storageAccountNameRequired
  • Type: java.lang.String

(Required) The Name of the Storage Account.


»accessKeyOptional
  • Type: java.lang.String

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.


»clientIdOptional
  • Type: java.lang.String

(Optional) The Client ID of the Service Principal.

This can also be sourced from the ARM_CLIENT_ID environment variable.


»clientSecretOptional
  • Type: java.lang.String

(Optional) The Client Secret of the Service Principal.

This can also be sourced from the ARM_CLIENT_SECRET environment variable.


»endpointOptional
  • Type: java.lang.String

(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: java.lang.String

(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.


»msiEndpointOptional
  • Type: java.lang.String

(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.


»resourceGroupNameOptional
  • Type: java.lang.String

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


»sasTokenOptional
  • Type: java.lang.String

(Optional) The SAS Token used to access the Blob Storage Account.

This can also be sourced from the ARM_SAS_TOKEN environment variable.


»subscriptionIdOptional
  • Type: java.lang.String

(Optional) The Subscription ID in which the Storage Account exists.

This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.


»tenantIdOptional
  • Type: java.lang.String

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

This can also be sourced from the ARM_TENANT_ID environment variable.


»useMsiOptional
  • Type: java.lang.Boolean

(Optional) Should Managed Service Identity authentication be used?

This can also be sourced from the ARM_USE_MSI environment variable.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getRemoteStateDataSourceCreates a TerraformRemoteState resource that accesses this backend.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»getRemoteStateDataSource
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: software.constructs.Construct

»nameRequired
  • Type: java.lang.String

»_fromStackRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.
isBackendNo description.

»isConstruct
import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»isBackend
import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.isBackend(java.lang.Object x)
import com.hashicorp.cdktf.AzurermBackend;

AzurermBackend.isBackend(java.lang.Object x)
»xRequired
  • Type: java.lang.Object

»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»ConsulBackend

»Initializers

import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.Builder.create(Construct scope)
    .accessToken(java.lang.String)
    .path(java.lang.String)
//  .address(java.lang.String)
//  .caFile(java.lang.String)
//  .certFile(java.lang.String)
//  .datacenter(java.lang.String)
//  .gzip(java.lang.Boolean)
//  .httpAuth(java.lang.String)
//  .keyFile(java.lang.String)
//  .lock(java.lang.Boolean)
//  .scheme(java.lang.String)
    .build();
import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.Builder.create(Construct scope)
    .accessToken(java.lang.String)
    .path(java.lang.String)
//  .address(java.lang.String)
//  .caFile(java.lang.String)
//  .certFile(java.lang.String)
//  .datacenter(java.lang.String)
//  .gzip(java.lang.Boolean)
//  .httpAuth(java.lang.String)
//  .keyFile(java.lang.String)
//  .lock(java.lang.Boolean)
//  .scheme(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
accessTokenjava.lang.String(Required) Access token.
pathjava.lang.String(Required) Path in the Consul KV store.
addressjava.lang.String(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
caFilejava.lang.String(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
certFilejava.lang.String(Optional) A path to a PEM-encoded certificate provided to the remote agent;
datacenterjava.lang.String(Optional) The datacenter to use.
gzipjava.lang.Boolean(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
httpAuthjava.lang.String(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
keyFilejava.lang.String(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
lockjava.lang.Boolean(Optional) false to disable locking.
schemejava.lang.String(Optional) Specifies what protocol to use when talking to the given address,either http or https.

»scopeRequired
  • Type: software.constructs.Construct

»accessTokenRequired
  • Type: java.lang.String

(Required) Access token.


»pathRequired
  • Type: java.lang.String

(Required) Path in the Consul KV store.


»addressOptional
  • Type: java.lang.String

(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.

Defaults to the local agent HTTP listener.


»caFileOptional
  • Type: java.lang.String

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


»certFileOptional
  • Type: java.lang.String

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

requires use of key_file.


»datacenterOptional
  • Type: java.lang.String

(Optional) The datacenter to use.

Defaults to that of the agent.


»gzipOptional
  • Type: java.lang.Boolean

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


»httpAuthOptional
  • Type: java.lang.String

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


»keyFileOptional
  • Type: java.lang.String

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


»lockOptional
  • Type: java.lang.Boolean

(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: java.lang.String

(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
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getRemoteStateDataSourceCreates a TerraformRemoteState resource that accesses this backend.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»getRemoteStateDataSource
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: software.constructs.Construct

»nameRequired
  • Type: java.lang.String

»_fromStackRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.
isBackendNo description.

»isConstruct
import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»isBackend
import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.isBackend(java.lang.Object x)
import com.hashicorp.cdktf.ConsulBackend;

ConsulBackend.isBackend(java.lang.Object x)
»xRequired
  • Type: java.lang.Object

»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»CosBackend

»Initializers

import com.hashicorp.cdktf.CosBackend;

CosBackend.Builder.create(Construct scope)
    .bucket(java.lang.String)
//  .acl(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .region(java.lang.String)
//  .secretId(java.lang.String)
//  .secretKey(java.lang.String)
    .build();
import com.hashicorp.cdktf.CosBackend;

CosBackend.Builder.create(Construct scope)
    .bucket(java.lang.String)
//  .acl(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .region(java.lang.String)
//  .secretId(java.lang.String)
//  .secretKey(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
bucketjava.lang.String(Required) The name of the COS bucket.
acljava.lang.String(Optional) Object ACL to be applied to the state file, allows private and public-read.
encryptjava.lang.Boolean(Optional) Whether to enable server side encryption of the state file.
keyjava.lang.String(Optional) The path for saving the state file in bucket.
prefixjava.lang.String(Optional) The directory for saving the state file in bucket.
regionjava.lang.String(Optional) The region of the COS bucket.
secretIdjava.lang.String(Optional) Secret id of Tencent Cloud.
secretKeyjava.lang.String(Optional) Secret key of Tencent Cloud.

»scopeRequired
  • Type: software.constructs.Construct

»bucketRequired
  • Type: java.lang.String

(Required) The name of the COS bucket.

You shall manually create it first.


»aclOptional
  • Type: java.lang.String

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

Defaults to private.


»encryptOptional
  • Type: java.lang.Boolean

(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: java.lang.String

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

Defaults to terraform.tfstate.


»prefixOptional
  • Type: java.lang.String

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

Default to "env:".


»regionOptional
  • Type: java.lang.String

(Optional) The region of the COS bucket.

It supports environment variables TENCENTCLOUD_REGION.


»secretIdOptional
  • Type: java.lang.String

(Optional) Secret id of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_ID.


»secretKeyOptional
  • Type: java.lang.String

(Optional) Secret key of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_KEY.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getRemoteStateDataSourceCreates a TerraformRemoteState resource that accesses this backend.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»getRemoteStateDataSource
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)
public TerraformRemoteState getRemoteStateDataSource(Construct scope, java.lang.String name, java.lang.String _fromStack)

Creates a TerraformRemoteState resource that accesses this backend.

»scopeRequired
  • Type: software.constructs.Construct

»nameRequired
  • Type: java.lang.String

»_fromStackRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.
isBackendNo description.

»isConstruct
import com.hashicorp.cdktf.CosBackend;

CosBackend.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.CosBackend;

CosBackend.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»isBackend
import com.hashicorp.cdktf.CosBackend;

CosBackend.isBackend(java.lang.Object x)
import com.hashicorp.cdktf.CosBackend;

CosBackend.isBackend(java.lang.Object x)
»xRequired
  • Type: java.lang.Object

»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»DataTerraformRemoteState

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteState;

DataTerraformRemoteState.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .organization(java.lang.String)
    .workspaces(IRemoteWorkspace)
//  .hostname(java.lang.String)
//  .token(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteState;

DataTerraformRemoteState.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .organization(java.lang.String)
    .workspaces(IRemoteWorkspace)
//  .hostname(java.lang.String)
//  .token(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
organizationjava.lang.StringNo description.
workspacesIRemoteWorkspaceNo description.
hostnamejava.lang.StringNo description.
tokenjava.lang.StringNo description.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»organizationRequired
  • Type: java.lang.String

»workspacesRequired
  • Type: IRemoteWorkspace

»hostnameOptional
  • Type: java.lang.String

»tokenOptional
  • Type: java.lang.String

»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteState;

DataTerraformRemoteState.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteState;

DataTerraformRemoteState.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateArtifactory

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateArtifactory;

DataTerraformRemoteStateArtifactory.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .password(java.lang.String)
    .repo(java.lang.String)
    .subpath(java.lang.String)
    .url(java.lang.String)
    .username(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateArtifactory;

DataTerraformRemoteStateArtifactory.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .password(java.lang.String)
    .repo(java.lang.String)
    .subpath(java.lang.String)
    .url(java.lang.String)
    .username(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
passwordjava.lang.String(Required) - The password.
repojava.lang.String(Required) - The repository name.
subpathjava.lang.String(Required) - Path within the repository.
urljava.lang.String(Required) - The URL.
usernamejava.lang.String(Required) - The username.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»passwordRequired
  • Type: java.lang.String

(Required) - The password.


»repoRequired
  • Type: java.lang.String

(Required) - The repository name.


»subpathRequired
  • Type: java.lang.String

(Required) - Path within the repository.


»urlRequired
  • Type: java.lang.String

(Required) - The URL.

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


»usernameRequired
  • Type: java.lang.String

(Required) - The username.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateArtifactory;

DataTerraformRemoteStateArtifactory.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateArtifactory;

DataTerraformRemoteStateArtifactory.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateAzurerm

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateAzurerm;

DataTerraformRemoteStateAzurerm.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .containerName(java.lang.String)
    .key(java.lang.String)
    .storageAccountName(java.lang.String)
//  .accessKey(java.lang.String)
//  .clientId(java.lang.String)
//  .clientSecret(java.lang.String)
//  .endpoint(java.lang.String)
//  .environment(java.lang.String)
//  .msiEndpoint(java.lang.String)
//  .resourceGroupName(java.lang.String)
//  .sasToken(java.lang.String)
//  .subscriptionId(java.lang.String)
//  .tenantId(java.lang.String)
//  .useMsi(java.lang.Boolean)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateAzurerm;

DataTerraformRemoteStateAzurerm.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .containerName(java.lang.String)
    .key(java.lang.String)
    .storageAccountName(java.lang.String)
//  .accessKey(java.lang.String)
//  .clientId(java.lang.String)
//  .clientSecret(java.lang.String)
//  .endpoint(java.lang.String)
//  .environment(java.lang.String)
//  .msiEndpoint(java.lang.String)
//  .resourceGroupName(java.lang.String)
//  .sasToken(java.lang.String)
//  .subscriptionId(java.lang.String)
//  .tenantId(java.lang.String)
//  .useMsi(java.lang.Boolean)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
containerNamejava.lang.String(Required) The Name of the Storage Container within the Storage Account.
keyjava.lang.String(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
storageAccountNamejava.lang.String(Required) The Name of the Storage Account.
accessKeyjava.lang.Stringaccess_key - (Optional) The Access Key used to access the Blob Storage Account.
clientIdjava.lang.String(Optional) The Client ID of the Service Principal.
clientSecretjava.lang.String(Optional) The Client Secret of the Service Principal.
endpointjava.lang.String(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
environmentjava.lang.String(Optional) The Azure Environment which should be used.
msiEndpointjava.lang.String(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
resourceGroupNamejava.lang.String(Required) The Name of the Resource Group in which the Storage Account exists.
sasTokenjava.lang.String(Optional) The SAS Token used to access the Blob Storage Account.
subscriptionIdjava.lang.String(Optional) The Subscription ID in which the Storage Account exists.
tenantIdjava.lang.String(Optional) The Tenant ID in which the Subscription exists.
useMsijava.lang.Boolean(Optional) Should Managed Service Identity authentication be used?

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»containerNameRequired
  • Type: java.lang.String

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


»keyRequired
  • Type: java.lang.String

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


»storageAccountNameRequired
  • Type: java.lang.String

(Required) The Name of the Storage Account.


»accessKeyOptional
  • Type: java.lang.String

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.


»clientIdOptional
  • Type: java.lang.String

(Optional) The Client ID of the Service Principal.

This can also be sourced from the ARM_CLIENT_ID environment variable.


»clientSecretOptional
  • Type: java.lang.String

(Optional) The Client Secret of the Service Principal.

This can also be sourced from the ARM_CLIENT_SECRET environment variable.


»endpointOptional
  • Type: java.lang.String

(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: java.lang.String

(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.


»msiEndpointOptional
  • Type: java.lang.String

(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.


»resourceGroupNameOptional
  • Type: java.lang.String

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


»sasTokenOptional
  • Type: java.lang.String

(Optional) The SAS Token used to access the Blob Storage Account.

This can also be sourced from the ARM_SAS_TOKEN environment variable.


»subscriptionIdOptional
  • Type: java.lang.String

(Optional) The Subscription ID in which the Storage Account exists.

This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.


»tenantIdOptional
  • Type: java.lang.String

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

This can also be sourced from the ARM_TENANT_ID environment variable.


»useMsiOptional
  • Type: java.lang.Boolean

(Optional) Should Managed Service Identity authentication be used?

This can also be sourced from the ARM_USE_MSI environment variable.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateAzurerm;

DataTerraformRemoteStateAzurerm.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateAzurerm;

DataTerraformRemoteStateAzurerm.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateConsul

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateConsul;

DataTerraformRemoteStateConsul.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .accessToken(java.lang.String)
    .path(java.lang.String)
//  .address(java.lang.String)
//  .caFile(java.lang.String)
//  .certFile(java.lang.String)
//  .datacenter(java.lang.String)
//  .gzip(java.lang.Boolean)
//  .httpAuth(java.lang.String)
//  .keyFile(java.lang.String)
//  .lock(java.lang.Boolean)
//  .scheme(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateConsul;

DataTerraformRemoteStateConsul.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .accessToken(java.lang.String)
    .path(java.lang.String)
//  .address(java.lang.String)
//  .caFile(java.lang.String)
//  .certFile(java.lang.String)
//  .datacenter(java.lang.String)
//  .gzip(java.lang.Boolean)
//  .httpAuth(java.lang.String)
//  .keyFile(java.lang.String)
//  .lock(java.lang.Boolean)
//  .scheme(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
accessTokenjava.lang.String(Required) Access token.
pathjava.lang.String(Required) Path in the Consul KV store.
addressjava.lang.String(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
caFilejava.lang.String(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
certFilejava.lang.String(Optional) A path to a PEM-encoded certificate provided to the remote agent;
datacenterjava.lang.String(Optional) The datacenter to use.
gzipjava.lang.Boolean(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
httpAuthjava.lang.String(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
keyFilejava.lang.String(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
lockjava.lang.Boolean(Optional) false to disable locking.
schemejava.lang.String(Optional) Specifies what protocol to use when talking to the given address,either http or https.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»accessTokenRequired
  • Type: java.lang.String

(Required) Access token.


»pathRequired
  • Type: java.lang.String

(Required) Path in the Consul KV store.


»addressOptional
  • Type: java.lang.String

(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.

Defaults to the local agent HTTP listener.


»caFileOptional
  • Type: java.lang.String

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


»certFileOptional
  • Type: java.lang.String

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

requires use of key_file.


»datacenterOptional
  • Type: java.lang.String

(Optional) The datacenter to use.

Defaults to that of the agent.


»gzipOptional
  • Type: java.lang.Boolean

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


»httpAuthOptional
  • Type: java.lang.String

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


»keyFileOptional
  • Type: java.lang.String

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


»lockOptional
  • Type: java.lang.Boolean

(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: java.lang.String

(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
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateConsul;

DataTerraformRemoteStateConsul.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateConsul;

DataTerraformRemoteStateConsul.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateCos

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateCos;

DataTerraformRemoteStateCos.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .acl(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .region(java.lang.String)
//  .secretId(java.lang.String)
//  .secretKey(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateCos;

DataTerraformRemoteStateCos.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .acl(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .region(java.lang.String)
//  .secretId(java.lang.String)
//  .secretKey(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
bucketjava.lang.String(Required) The name of the COS bucket.
acljava.lang.String(Optional) Object ACL to be applied to the state file, allows private and public-read.
encryptjava.lang.Boolean(Optional) Whether to enable server side encryption of the state file.
keyjava.lang.String(Optional) The path for saving the state file in bucket.
prefixjava.lang.String(Optional) The directory for saving the state file in bucket.
regionjava.lang.String(Optional) The region of the COS bucket.
secretIdjava.lang.String(Optional) Secret id of Tencent Cloud.
secretKeyjava.lang.String(Optional) Secret key of Tencent Cloud.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»bucketRequired
  • Type: java.lang.String

(Required) The name of the COS bucket.

You shall manually create it first.


»aclOptional
  • Type: java.lang.String

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

Defaults to private.


»encryptOptional
  • Type: java.lang.Boolean

(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: java.lang.String

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

Defaults to terraform.tfstate.


»prefixOptional
  • Type: java.lang.String

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

Default to "env:".


»regionOptional
  • Type: java.lang.String

(Optional) The region of the COS bucket.

It supports environment variables TENCENTCLOUD_REGION.


»secretIdOptional
  • Type: java.lang.String

(Optional) Secret id of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_ID.


»secretKeyOptional
  • Type: java.lang.String

(Optional) Secret key of Tencent Cloud.

It supports environment variables TENCENTCLOUD_SECRET_KEY.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateCos;

DataTerraformRemoteStateCos.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateCos;

DataTerraformRemoteStateCos.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateEtcd

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateEtcd;

DataTerraformRemoteStateEtcd.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .endpoints(java.lang.String)
    .path(java.lang.String)
//  .password(java.lang.String)
//  .username(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcd;

DataTerraformRemoteStateEtcd.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .endpoints(java.lang.String)
    .path(java.lang.String)
//  .password(java.lang.String)
//  .username(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
endpointsjava.lang.String(Required) A space-separated list of the etcd endpoints.
pathjava.lang.String(Required) The path where to store the state.
passwordjava.lang.String(Optional) The password.
usernamejava.lang.String(Optional) The username.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»endpointsRequired
  • Type: java.lang.String

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


»pathRequired
  • Type: java.lang.String

(Required) The path where to store the state.


»passwordOptional
  • Type: java.lang.String

(Optional) The password.


»usernameOptional
  • Type: java.lang.String

(Optional) The username.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcd;

DataTerraformRemoteStateEtcd.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcd;

DataTerraformRemoteStateEtcd.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateEtcdV3

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateEtcdV3;

DataTerraformRemoteStateEtcdV3.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .endpoints(java.util.List< java.lang.String >)
//  .cacertPath(java.lang.String)
//  .certPath(java.lang.String)
//  .keyPath(java.lang.String)
//  .lock(java.lang.Boolean)
//  .password(java.lang.String)
//  .prefix(java.lang.String)
//  .username(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcdV3;

DataTerraformRemoteStateEtcdV3.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .endpoints(java.util.List< java.lang.String >)
//  .cacertPath(java.lang.String)
//  .certPath(java.lang.String)
//  .keyPath(java.lang.String)
//  .lock(java.lang.Boolean)
//  .password(java.lang.String)
//  .prefix(java.lang.String)
//  .username(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
endpointsjava.util.List< java.lang.String >(Required) The list of 'etcd' endpoints which to connect to.
cacertPathjava.lang.String(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
certPathjava.lang.String(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
keyPathjava.lang.String(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
lockjava.lang.Boolean(Optional) Whether to lock state access.
passwordjava.lang.String(Optional) Password used to connect to the etcd cluster.
prefixjava.lang.String(Optional) An optional prefix to be added to keys when to storing state in etcd.
usernamejava.lang.String(Optional) Username used to connect to the etcd cluster.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»endpointsRequired
  • Type: java.util.List< java.lang.String >

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


»cacertPathOptional
  • Type: java.lang.String

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


»certPathOptional
  • Type: java.lang.String

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


»keyPathOptional
  • Type: java.lang.String

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


»lockOptional
  • Type: java.lang.Boolean

(Optional) Whether to lock state access.

Defaults to true.


»passwordOptional
  • Type: java.lang.String

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


»prefixOptional
  • Type: java.lang.String

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

Defaults to "".


»usernameOptional
  • Type: java.lang.String

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


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcdV3;

DataTerraformRemoteStateEtcdV3.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateEtcdV3;

DataTerraformRemoteStateEtcdV3.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateGcs

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateGcs;

DataTerraformRemoteStateGcs.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .accessToken(java.lang.String)
//  .credentials(java.lang.String)
//  .encryptionKey(java.lang.String)
//  .impersonateServiceAccount(java.lang.String)
//  .impersonateServiceAccountDelegates(java.util.List< java.lang.String >)
//  .prefix(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateGcs;

DataTerraformRemoteStateGcs.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .accessToken(java.lang.String)
//  .credentials(java.lang.String)
//  .encryptionKey(java.lang.String)
//  .impersonateServiceAccount(java.lang.String)
//  .impersonateServiceAccountDelegates(java.util.List< java.lang.String >)
//  .prefix(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
bucketjava.lang.String(Required) The name of the GCS bucket.
accessTokenjava.lang.String(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.
credentialsjava.lang.String(Optional) Local path to Google Cloud Platform account credentials in JSON format.
encryptionKeyjava.lang.String(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
impersonateServiceAccountjava.lang.String(Optional) The service account to impersonate for accessing the State Bucket.
impersonateServiceAccountDelegatesjava.util.List< java.lang.String >(Optional) The delegation chain for an impersonating a service account.
prefixjava.lang.String(Optional) GCS prefix inside the bucket.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»bucketRequired
  • Type: java.lang.String

(Required) The name of the GCS bucket.

This name must be globally unique.


»accessTokenOptional
  • Type: java.lang.String

(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: java.lang.String

(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.


»encryptionKeyOptional
  • Type: java.lang.String

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


»impersonateServiceAccountOptional
  • Type: java.lang.String

(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.


»impersonateServiceAccountDelegatesOptional
  • Type: java.util.List< java.lang.String >

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


»prefixOptional
  • Type: java.lang.String

(Optional) GCS prefix inside the bucket.

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


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateGcs;

DataTerraformRemoteStateGcs.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateGcs;

DataTerraformRemoteStateGcs.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateHttp

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateHttp;

DataTerraformRemoteStateHttp.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .address(java.lang.String)
//  .lockAddress(java.lang.String)
//  .lockMethod(java.lang.String)
//  .password(java.lang.String)
//  .retryMax(java.lang.Number)
//  .retryWaitMax(java.lang.Number)
//  .retryWaitMin(java.lang.Number)
//  .skipCertVerification(java.lang.Boolean)
//  .unlockAddress(java.lang.String)
//  .unlockMethod(java.lang.String)
//  .updateMethod(java.lang.String)
//  .username(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateHttp;

DataTerraformRemoteStateHttp.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .address(java.lang.String)
//  .lockAddress(java.lang.String)
//  .lockMethod(java.lang.String)
//  .password(java.lang.String)
//  .retryMax(java.lang.Number)
//  .retryWaitMax(java.lang.Number)
//  .retryWaitMin(java.lang.Number)
//  .skipCertVerification(java.lang.Boolean)
//  .unlockAddress(java.lang.String)
//  .unlockMethod(java.lang.String)
//  .updateMethod(java.lang.String)
//  .username(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
addressjava.lang.String(Required) The address of the REST endpoint.
lockAddressjava.lang.String(Optional) The address of the lock REST endpoint.
lockMethodjava.lang.String(Optional) The HTTP method to use when locking.
passwordjava.lang.String(Optional) The password for HTTP basic authentication.
retryMaxjava.lang.Number(Optional) The number of HTTP request retries.
retryWaitMaxjava.lang.Number(Optional) The maximum time in seconds to wait between HTTP request attempts.
retryWaitMinjava.lang.Number(Optional) The minimum time in seconds to wait between HTTP request attempts.
skipCertVerificationjava.lang.Boolean(Optional) Whether to skip TLS verification.
unlockAddressjava.lang.String(Optional) The address of the unlock REST endpoint.
unlockMethodjava.lang.String(Optional) The HTTP method to use when unlocking.
updateMethodjava.lang.String(Optional) HTTP method to use when updating state.
usernamejava.lang.String(Optional) The username for HTTP basic authentication.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»addressRequired
  • Type: java.lang.String

(Required) The address of the REST endpoint.


»lockAddressOptional
  • Type: java.lang.String

(Optional) The address of the lock REST endpoint.

Defaults to disabled.


»lockMethodOptional
  • Type: java.lang.String

(Optional) The HTTP method to use when locking.

Defaults to LOCK.


»passwordOptional
  • Type: java.lang.String

(Optional) The password for HTTP basic authentication.


»retryMaxOptional
  • Type: java.lang.Number

(Optional) The number of HTTP request retries.

Defaults to 2.


»retryWaitMaxOptional
  • Type: java.lang.Number

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

Defaults to 30.


»retryWaitMinOptional
  • Type: java.lang.Number

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

Defaults to 1.


»skipCertVerificationOptional
  • Type: java.lang.Boolean

(Optional) Whether to skip TLS verification.

Defaults to false.


»unlockAddressOptional
  • Type: java.lang.String

(Optional) The address of the unlock REST endpoint.

Defaults to disabled.


»unlockMethodOptional
  • Type: java.lang.String

(Optional) The HTTP method to use when unlocking.

Defaults to UNLOCK.


»updateMethodOptional
  • Type: java.lang.String

(Optional) HTTP method to use when updating state.

Defaults to POST.


»usernameOptional
  • Type: java.lang.String

(Optional) The username for HTTP basic authentication.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateHttp;

DataTerraformRemoteStateHttp.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateHttp;

DataTerraformRemoteStateHttp.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateLocal

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateLocal;

DataTerraformRemoteStateLocal.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
//  .path(java.lang.String)
//  .workspaceDir(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateLocal;

DataTerraformRemoteStateLocal.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
//  .path(java.lang.String)
//  .workspaceDir(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
pathjava.lang.StringPath where the state file is stored.
workspaceDirjava.lang.String(Optional) The path to non-default workspaces.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»pathOptional
  • Type: java.lang.String
  • Default: defaults to terraform.${stackId}.tfstate

Path where the state file is stored.


»workspaceDirOptional
  • Type: java.lang.String

(Optional) The path to non-default workspaces.


»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateLocal;

DataTerraformRemoteStateLocal.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateLocal;

DataTerraformRemoteStateLocal.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateManta

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateManta;

DataTerraformRemoteStateManta.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .account(java.lang.String)
    .keyId(java.lang.String)
    .path(java.lang.String)
//  .insecureSkipTlsVerify(java.lang.Boolean)
//  .keyMaterial(java.lang.String)
//  .objectName(java.lang.String)
//  .url(java.lang.String)
//  .user(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateManta;

DataTerraformRemoteStateManta.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .account(java.lang.String)
    .keyId(java.lang.String)
    .path(java.lang.String)
//  .insecureSkipTlsVerify(java.lang.Boolean)
//  .keyMaterial(java.lang.String)
//  .objectName(java.lang.String)
//  .url(java.lang.String)
//  .user(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
accountjava.lang.StringNo description.
keyIdjava.lang.StringNo description.
pathjava.lang.StringNo description.
insecureSkipTlsVerifyjava.lang.BooleanNo description.
keyMaterialjava.lang.StringNo description.
objectNamejava.lang.StringNo description.
urljava.lang.StringNo description.
userjava.lang.StringNo description.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»accountRequired
  • Type: java.lang.String

»keyIdRequired
  • Type: java.lang.String

»pathRequired
  • Type: java.lang.String

»insecureSkipTlsVerifyOptional
  • Type: java.lang.Boolean

»keyMaterialOptional
  • Type: java.lang.String

»objectNameOptional
  • Type: java.lang.String

»urlOptional
  • Type: java.lang.String

»userOptional
  • Type: java.lang.String

»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString
public java.lang.String toString()
public java.lang.String toString()

Returns a string representation of this construct.

»addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
public void addOverride(java.lang.String path, java.lang.Object value)
»pathRequired
  • Type: java.lang.String

»valueRequired
  • Type: java.lang.Object

»overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
public void overrideLogicalId(java.lang.String newLogicalId)

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

»newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


»resetOverrideLogicalId
public void resetOverrideLogicalId()
public void resetOverrideLogicalId()

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

»toMetadata
public java.lang.Object toMetadata()
public java.lang.Object toMetadata()
»toTerraform
public java.lang.Object toTerraform()
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

»get
public IResolvable get(java.lang.String output)
public IResolvable get(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getBoolean
public IResolvable getBoolean(java.lang.String output)
public IResolvable getBoolean(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getList
public java.util.List< java.lang.String > getList(java.lang.String output)
public java.util.List< java.lang.String > getList(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getNumber
public java.lang.Number getNumber(java.lang.String output)
public java.lang.Number getNumber(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»getString
public java.lang.String getString(java.lang.String output)
public java.lang.String getString(java.lang.String output)
»outputRequired
  • Type: java.lang.String

»Static Functions

NameDescription
isConstructChecks if x is a construct.

»isConstruct
import com.hashicorp.cdktf.DataTerraformRemoteStateManta;

DataTerraformRemoteStateManta.isConstruct(java.lang.Object x)
import com.hashicorp.cdktf.DataTerraformRemoteStateManta;

DataTerraformRemoteStateManta.isConstruct(java.lang.Object x)

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: java.lang.Object

Any object.


»Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
cdktfStackTerraformStackNo description.
fqnjava.lang.StringNo description.
friendlyUniqueIdjava.lang.StringNo description.

»nodeRequired
public Node getNode();
public Node getNode();
  • Type: software.constructs.Node

The tree node.


»cdktfStackRequired
public TerraformStack getCdktfStack();
public TerraformStack getCdktfStack();
  • Type: TerraformStack

»fqnRequired
public java.lang.String getFqn();
public java.lang.String getFqn();
  • Type: java.lang.String

»friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

»Constants

NameTypeDescription
tfResourceTypejava.lang.StringNo description.

»tfResourceTypeRequired
public java.lang.String getTfResourceType();
public java.lang.String getTfResourceType();
  • Type: java.lang.String

»DataTerraformRemoteStateOss

»Initializers

import com.hashicorp.cdktf.DataTerraformRemoteStateOss;

DataTerraformRemoteStateOss.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .accessKey(java.lang.String)
//  .acl(java.lang.String)
//  .assumeRole(OssAssumeRole)
//  .ecsRoleName(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .endpoint(java.lang.String)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .profile(java.lang.String)
//  .region(java.lang.String)
//  .secretKey(java.lang.String)
//  .securityToken(java.lang.String)
//  .sharedCredentialsFile(java.lang.String)
//  .tablestoreEndpoint(java.lang.String)
//  .tablestoreTable(java.lang.String)
    .build();
import com.hashicorp.cdktf.DataTerraformRemoteStateOss;

DataTerraformRemoteStateOss.Builder.create(Construct scope, java.lang.String id)
//  .defaults(java.util.Map< java.lang.String, java.lang.Object >)
//  .workspace(java.lang.String)
    .bucket(java.lang.String)
//  .accessKey(java.lang.String)
//  .acl(java.lang.String)
//  .assumeRole(OssAssumeRole)
//  .ecsRoleName(java.lang.String)
//  .encrypt(java.lang.Boolean)
//  .endpoint(java.lang.String)
//  .key(java.lang.String)
//  .prefix(java.lang.String)
//  .profile(java.lang.String)
//  .region(java.lang.String)
//  .secretKey(java.lang.String)
//  .securityToken(java.lang.String)
//  .sharedCredentialsFile(java.lang.String)
//  .tablestoreEndpoint(java.lang.String)
//  .tablestoreTable(java.lang.String)
    .build();
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.
defaultsjava.util.Map< java.lang.String, java.lang.Object >No description.
workspacejava.lang.StringNo description.
bucketjava.lang.StringNo description.
accessKeyjava.lang.StringNo description.
acljava.lang.StringNo description.
assumeRoleOssAssumeRoleNo description.
ecsRoleNamejava.lang.StringNo description.
encryptjava.lang.BooleanNo description.
endpointjava.lang.StringNo description.
keyjava.lang.StringNo description.
prefixjava.lang.StringNo description.
profilejava.lang.StringNo description.
regionjava.lang.StringNo description.
secretKeyjava.lang.StringNo description.
securityTokenjava.lang.StringNo description.
sharedCredentialsFilejava.lang.StringNo description.
tablestoreEndpointjava.lang.StringNo description.
tablestoreTablejava.lang.StringNo description.

»scopeRequired
  • Type: software.constructs.Construct

»idRequired
  • Type: java.lang.String

»defaultsOptional
  • Type: java.util.Map< java.lang.String, java.lang.Object >

»workspaceOptional
  • Type: java.lang.String

»bucketRequired
  • Type: java.lang.String

»accessKeyOptional
  • Type: java.lang.String

»aclOptional
  • Type: java.lang.String

»assumeRoleOptional
  • Type: OssAssumeRole

»ecsRoleNameOptional
  • Type: java.lang.String

»encryptOptional
  • Type: java.lang.Boolean

»endpointOptional
  • Type: java.lang.String

»keyOptional
  • Type: java.lang.String

»prefixOptional
  • Type: java.lang.String

»profileOptional
  • Type: java.lang.String

»regionOptional
  • Type: java.lang.String

»secretKeyOptional
  • Type: java.lang.String

»securityTokenOptional
  • Type: java.lang.String

»sharedCredentialsFileOptional
  • Type: java.lang.String

»tablestoreEndpointOptional
  • Type: java.lang.String

»tablestoreTableOptional
  • Type: java.lang.String

»Methods

NameDescription
toStringReturns a string representation of this construct.
addOverrideNo description.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalIdResets a previously passed logical Id to use the auto-generated logical id again.
toMetadataNo description.
toTerraformAdds this resource to the terraform JSON output.
getNo description.
getBooleanNo description.
getListNo description.
getNumberNo description.
getStringNo description.

»toString