Package com.hashicorp.cdktf
Class DataTerraformRemoteStateConsul.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateConsul.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateConsul>
- Enclosing class:
DataTerraformRemoteStateConsul
@Stability(Experimental)
public static final class DataTerraformRemoteStateConsul.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateConsul>
(experimental) A fluent builder for
DataTerraformRemoteStateConsul
.-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) (experimental) (Required) Access token.(experimental) (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.build()
(experimental) (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.(experimental) (Optional) A path to a PEM-encoded certificate provided to the remote agent;datacenter
(String datacenter) (experimental) (Optional) The datacenter to use.(experimental) (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.(experimental) (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.(experimental) (Optional) A path to a PEM-encoded private key, required if cert_file is specified.(experimental) (Optional) false to disable locking.(experimental) (Required) Path in the Consul KV store.(experimental) (Optional) Specifies what protocol to use when talking to the given address,either http or https.
-
Method Details
-
create
@Stability(Experimental) public static DataTerraformRemoteStateConsul.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DataTerraformRemoteStateConsul.Builder
.
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateConsul.Builder defaults(Map<String, ? extends Object> defaults) - Parameters:
defaults
- This parameter is required.- Returns:
this
-
workspace
- Parameters:
workspace
- This parameter is required.- Returns:
this
-
accessToken
@Stability(Experimental) public DataTerraformRemoteStateConsul.Builder accessToken(String accessToken) (experimental) (Required) Access token.- Parameters:
accessToken
- (Required) Access token. This parameter is required.- Returns:
this
-
path
(experimental) (Required) Path in the Consul KV store.- Parameters:
path
- (Required) Path in the Consul KV store. This parameter is required.- Returns:
this
-
address
(experimental) (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.Defaults to the local agent HTTP listener.
- Parameters:
address
- (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. This parameter is required.- Returns:
this
-
caFile
(experimental) (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.- Parameters:
caFile
- (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. This parameter is required.- Returns:
this
-
certFile
(experimental) (Optional) A path to a PEM-encoded certificate provided to the remote agent;requires use of key_file.
- Parameters:
certFile
- (Optional) A path to a PEM-encoded certificate provided to the remote agent;. This parameter is required.- Returns:
this
-
datacenter
@Stability(Experimental) public DataTerraformRemoteStateConsul.Builder datacenter(String datacenter) (experimental) (Optional) The datacenter to use.Defaults to that of the agent.
- Parameters:
datacenter
- (Optional) The datacenter to use. This parameter is required.- Returns:
this
-
gzip
(experimental) (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.- Parameters:
gzip
- (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. This parameter is required.- Returns:
this
-
httpAuth
(experimental) (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.- Parameters:
httpAuth
- (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. This parameter is required.- Returns:
this
-
keyFile
(experimental) (Optional) A path to a PEM-encoded private key, required if cert_file is specified.- Parameters:
keyFile
- (Optional) A path to a PEM-encoded private key, required if cert_file is specified. This parameter is required.- Returns:
this
-
lock
(experimental) (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.
- Parameters:
lock
- (Optional) false to disable locking. This parameter is required.- Returns:
this
-
scheme
(experimental) (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.
- Parameters:
scheme
- (Optional) Specifies what protocol to use when talking to the given address,either http or https. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateConsul>
-