Package com.hashicorp.cdktf
Class DataTerraformRemoteStateHttp.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateHttp.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateHttp>
- Enclosing class:
DataTerraformRemoteStateHttp
@Stability(Experimental)
public static final class DataTerraformRemoteStateHttp.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateHttp>
(experimental) A fluent builder for
DataTerraformRemoteStateHttp
.-
Method Summary
Modifier and TypeMethodDescription(experimental) (Required) The address of the REST endpoint.build()
lockAddress
(String lockAddress) (experimental) (Optional) The address of the lock REST endpoint.lockMethod
(String lockMethod) (experimental) (Optional) The HTTP method to use when locking.(experimental) (Optional) The password for HTTP basic authentication.(experimental) (Optional) The number of HTTP request retries.retryWaitMax
(Number retryWaitMax) (experimental) (Optional) The maximum time in seconds to wait between HTTP request attempts.retryWaitMin
(Number retryWaitMin) (experimental) (Optional) The minimum time in seconds to wait between HTTP request attempts.skipCertVerification
(Boolean skipCertVerification) (experimental) (Optional) Whether to skip TLS verification.unlockAddress
(String unlockAddress) (experimental) (Optional) The address of the unlock REST endpoint.unlockMethod
(String unlockMethod) (experimental) (Optional) The HTTP method to use when unlocking.updateMethod
(String updateMethod) (experimental) (Optional) HTTP method to use when updating state.(experimental) (Optional) The username for HTTP basic authentication.
-
Method Details
-
create
@Stability(Experimental) public static DataTerraformRemoteStateHttp.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DataTerraformRemoteStateHttp.Builder
.
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder defaults(Map<String, ? extends Object> defaults) - Parameters:
defaults
- This parameter is required.- Returns:
this
-
workspace
- Parameters:
workspace
- This parameter is required.- Returns:
this
-
address
(experimental) (Required) The address of the REST endpoint.- Parameters:
address
- (Required) The address of the REST endpoint. This parameter is required.- Returns:
this
-
lockAddress
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder lockAddress(String lockAddress) (experimental) (Optional) The address of the lock REST endpoint.Defaults to disabled.
- Parameters:
lockAddress
- (Optional) The address of the lock REST endpoint. This parameter is required.- Returns:
this
-
lockMethod
(experimental) (Optional) The HTTP method to use when locking.Defaults to LOCK.
- Parameters:
lockMethod
- (Optional) The HTTP method to use when locking. This parameter is required.- Returns:
this
-
password
(experimental) (Optional) The password for HTTP basic authentication.- Parameters:
password
- (Optional) The password for HTTP basic authentication. This parameter is required.- Returns:
this
-
retryMax
(experimental) (Optional) The number of HTTP request retries.Defaults to 2.
- Parameters:
retryMax
- (Optional) The number of HTTP request retries. This parameter is required.- Returns:
this
-
retryWaitMax
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder retryWaitMax(Number retryWaitMax) (experimental) (Optional) The maximum time in seconds to wait between HTTP request attempts.Defaults to 30.
- Parameters:
retryWaitMax
- (Optional) The maximum time in seconds to wait between HTTP request attempts. This parameter is required.- Returns:
this
-
retryWaitMin
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder retryWaitMin(Number retryWaitMin) (experimental) (Optional) The minimum time in seconds to wait between HTTP request attempts.Defaults to 1.
- Parameters:
retryWaitMin
- (Optional) The minimum time in seconds to wait between HTTP request attempts. This parameter is required.- Returns:
this
-
skipCertVerification
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder skipCertVerification(Boolean skipCertVerification) (experimental) (Optional) Whether to skip TLS verification.Defaults to false.
- Parameters:
skipCertVerification
- (Optional) Whether to skip TLS verification. This parameter is required.- Returns:
this
-
unlockAddress
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder unlockAddress(String unlockAddress) (experimental) (Optional) The address of the unlock REST endpoint.Defaults to disabled.
- Parameters:
unlockAddress
- (Optional) The address of the unlock REST endpoint. This parameter is required.- Returns:
this
-
unlockMethod
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder unlockMethod(String unlockMethod) (experimental) (Optional) The HTTP method to use when unlocking.Defaults to UNLOCK.
- Parameters:
unlockMethod
- (Optional) The HTTP method to use when unlocking. This parameter is required.- Returns:
this
-
updateMethod
@Stability(Experimental) public DataTerraformRemoteStateHttp.Builder updateMethod(String updateMethod) (experimental) (Optional) HTTP method to use when updating state.Defaults to POST.
- Parameters:
updateMethod
- (Optional) HTTP method to use when updating state. This parameter is required.- Returns:
this
-
username
(experimental) (Optional) The username for HTTP basic authentication.- Parameters:
username
- (Optional) The username for HTTP basic authentication. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateHttp>
-