@Generated(value="jsii-pacmak/1.68.0 (build b45f2f6)", date="2022-10-26T06:18:58.879Z") @Stability(value=Experimental) public interface GcsBackendProps extends software.amazon.jsii.JsiiSerializable
The bucket must exist prior to configuring the backend.
This backend supports state locking.
Warning! It is highly recommended that you enable Object Versioning on the GCS bucket to allow for state recovery in the case of accidental deletions and human error.
Read more about this backend in the Terraform docs: https://www.terraform.io/language/settings/backends/gcs
Modifier and Type | Interface and Description |
---|---|
static class |
GcsBackendProps.Builder
A builder for
GcsBackendProps |
static class |
GcsBackendProps.Jsii$Proxy
An implementation for
GcsBackendProps |
Modifier and Type | Method and Description |
---|---|
static GcsBackendProps.Builder |
builder() |
default String |
getAccessToken()
(experimental) (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e.
|
String |
getBucket()
(experimental) (Required) The name of the GCS bucket.
|
default String |
getCredentials()
(experimental) (Optional) Local path to Google Cloud Platform account credentials in JSON format.
|
default String |
getEncryptionKey()
(experimental) (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
|
default String |
getImpersonateServiceAccount()
(experimental) (Optional) The service account to impersonate for accessing the State Bucket.
|
default List<String> |
getImpersonateServiceAccountDelegates()
(experimental) (Optional) The delegation chain for an impersonating a service account.
|
default String |
getPrefix()
(experimental) (Optional) GCS prefix inside the bucket.
|
@Stability(value=Experimental) @NotNull String getBucket()
This name must be globally unique.
@Stability(value=Experimental) @Nullable default String getAccessToken()
@Stability(value=Experimental) @Nullable default String getCredentials()
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.
@Stability(value=Experimental) @Nullable default String getEncryptionKey()
@Stability(value=Experimental) @Nullable default String getImpersonateServiceAccount()
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.
@Stability(value=Experimental) @Nullable default List<String> getImpersonateServiceAccountDelegates()
@Stability(value=Experimental) @Nullable default String getPrefix()
Named states for workspaces are stored in an object called
@Stability(value=Experimental) static GcsBackendProps.Builder builder()
GcsBackendProps.Builder
of GcsBackendProps
Copyright © 2022. All rights reserved.