Interface HttpBackendConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DataTerraformRemoteStateHttpConfig
- All Known Implementing Classes:
DataTerraformRemoteStateHttpConfig.Jsii$Proxy,HttpBackendConfig.Jsii$Proxy
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpBackendConfigstatic final classAn implementation forHttpBackendConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpBackendConfig.Builderbuilder()(experimental) (Required) The address of the REST endpoint.default String(experimental) (Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication.default String(experimental) (Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication.default String(experimental) (Optional) A PEM-encoded private key, required if client_certificate_pem is specified.default String(experimental) (Optional) The address of the lock REST endpoint.default String(experimental) (Optional) The HTTP method to use when locking.default String(experimental) (Optional) The password for HTTP basic authentication.default Number(experimental) (Optional) The number of HTTP request retries.default Number(experimental) (Optional) The maximum time in seconds to wait between HTTP request attempts.default Number(experimental) (Optional) The minimum time in seconds to wait between HTTP request attempts.default Boolean(experimental) (Optional) Whether to skip TLS verification.default String(experimental) (Optional) The address of the unlock REST endpoint.default String(experimental) (Optional) The HTTP method to use when unlocking.default String(experimental) (Optional) HTTP method to use when updating state.default String(experimental) (Optional) The username for HTTP basic authentication.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAddress
(experimental) (Required) The address of the REST endpoint. -
getClientCaCertificatePem
(experimental) (Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication. -
getClientCertificatePem
(experimental) (Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication. -
getClientPrivateKeyPem
(experimental) (Optional) A PEM-encoded private key, required if client_certificate_pem is specified. -
getLockAddress
(experimental) (Optional) The address of the lock REST endpoint.Defaults to disabled.
-
getLockMethod
(experimental) (Optional) The HTTP method to use when locking.Defaults to LOCK.
-
getPassword
(experimental) (Optional) The password for HTTP basic authentication. -
getRetryMax
(experimental) (Optional) The number of HTTP request retries.Defaults to 2.
-
getRetryWaitMax
(experimental) (Optional) The maximum time in seconds to wait between HTTP request attempts.Defaults to 30.
-
getRetryWaitMin
(experimental) (Optional) The minimum time in seconds to wait between HTTP request attempts.Defaults to 1.
-
getSkipCertVerification
(experimental) (Optional) Whether to skip TLS verification.Defaults to false.
-
getUnlockAddress
(experimental) (Optional) The address of the unlock REST endpoint.Defaults to disabled.
-
getUnlockMethod
(experimental) (Optional) The HTTP method to use when unlocking.Defaults to UNLOCK.
-
getUpdateMethod
(experimental) (Optional) HTTP method to use when updating state.Defaults to POST.
-
getUsername
(experimental) (Optional) The username for HTTP basic authentication. -
builder
- Returns:
- a
HttpBackendConfig.BuilderofHttpBackendConfig
-