@Generated(value="jsii-pacmak/1.79.0 (build b22f628)", date="2023-04-14T16:14:45.835Z") @Stability(value=Experimental) public interface HttpBackendConfig extends software.amazon.jsii.JsiiSerializable
State will be fetched via GET, updated via POST, and purged with DELETE. The method used for updating is configurable.
This backend optionally supports state locking. When locking support is enabled it will use LOCK and UNLOCK requests providing the lock info in the body. The endpoint should return a 423: Locked or 409: Conflict with the holding lock info when it's already taken, 200: OK for success. Any other status will be considered an error. The ID of the holding lock info will be added as a query parameter to state updates requests.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/http
Modifier and Type | Interface and Description |
---|---|
static class |
HttpBackendConfig.Builder
A builder for
HttpBackendConfig |
static class |
HttpBackendConfig.Jsii$Proxy
An implementation for
HttpBackendConfig |
Modifier and Type | Method and Description |
---|---|
static HttpBackendConfig.Builder |
builder() |
String |
getAddress()
(experimental) (Required) The address of the REST endpoint.
|
default String |
getLockAddress()
(experimental) (Optional) The address of the lock REST endpoint.
|
default String |
getLockMethod()
(experimental) (Optional) The HTTP method to use when locking.
|
default String |
getPassword()
(experimental) (Optional) The password for HTTP basic authentication.
|
default Number |
getRetryMax()
(experimental) (Optional) The number of HTTP request retries.
|
default Number |
getRetryWaitMax()
(experimental) (Optional) The maximum time in seconds to wait between HTTP request attempts.
|
default Number |
getRetryWaitMin()
(experimental) (Optional) The minimum time in seconds to wait between HTTP request attempts.
|
default Boolean |
getSkipCertVerification()
(experimental) (Optional) Whether to skip TLS verification.
|
default String |
getUnlockAddress()
(experimental) (Optional) The address of the unlock REST endpoint.
|
default String |
getUnlockMethod()
(experimental) (Optional) The HTTP method to use when unlocking.
|
default String |
getUpdateMethod()
(experimental) (Optional) HTTP method to use when updating state.
|
default String |
getUsername()
(experimental) (Optional) The username for HTTP basic authentication.
|
@Stability(value=Experimental) @NotNull String getAddress()
@Stability(value=Experimental) @Nullable default String getLockAddress()
Defaults to disabled.
@Stability(value=Experimental) @Nullable default String getLockMethod()
Defaults to LOCK.
@Stability(value=Experimental) @Nullable default String getPassword()
@Stability(value=Experimental) @Nullable default Number getRetryMax()
Defaults to 2.
@Stability(value=Experimental) @Nullable default Number getRetryWaitMax()
Defaults to 30.
@Stability(value=Experimental) @Nullable default Number getRetryWaitMin()
Defaults to 1.
@Stability(value=Experimental) @Nullable default Boolean getSkipCertVerification()
Defaults to false.
@Stability(value=Experimental) @Nullable default String getUnlockAddress()
Defaults to disabled.
@Stability(value=Experimental) @Nullable default String getUnlockMethod()
Defaults to UNLOCK.
@Stability(value=Experimental) @Nullable default String getUpdateMethod()
Defaults to POST.
@Stability(value=Experimental) @Nullable default String getUsername()
@Stability(value=Experimental) static HttpBackendConfig.Builder builder()
HttpBackendConfig.Builder
of HttpBackendConfig
Copyright © 2023. All rights reserved.