@Stability(value=Experimental) public static final class GcsBackend.Builder extends Object implements software.amazon.jsii.Builder<GcsBackend>
GcsBackend
.Modifier and Type | Method and Description |
---|---|
GcsBackend.Builder |
accessToken(String accessToken)
(experimental) (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e.
|
GcsBackend.Builder |
bucket(String bucket)
(experimental) (Required) The name of the GCS bucket.
|
GcsBackend |
build() |
static GcsBackend.Builder |
create(software.constructs.Construct scope) |
GcsBackend.Builder |
credentials(String credentials)
(experimental) (Optional) Local path to Google Cloud Platform account credentials in JSON format.
|
GcsBackend.Builder |
encryptionKey(String encryptionKey)
(experimental) (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
|
GcsBackend.Builder |
impersonateServiceAccount(String impersonateServiceAccount)
(experimental) (Optional) The service account to impersonate for accessing the State Bucket.
|
GcsBackend.Builder |
impersonateServiceAccountDelegates(List<String> impersonateServiceAccountDelegates)
(experimental) (Optional) The delegation chain for an impersonating a service account.
|
GcsBackend.Builder |
prefix(String prefix)
(experimental) (Optional) GCS prefix inside the bucket.
|
@Stability(value=Experimental) public static GcsBackend.Builder create(software.constructs.Construct scope)
scope
- This parameter is required.GcsBackend.Builder
.@Stability(value=Experimental) public GcsBackend.Builder bucket(String bucket)
This name must be globally unique.
bucket
- (Required) The name of the GCS bucket. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder accessToken(String accessToken)
accessToken
- (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder credentials(String credentials)
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.
credentials
- (Optional) Local path to Google Cloud Platform account credentials in JSON format. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder encryptionKey(String encryptionKey)
encryptionKey
- (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder impersonateServiceAccount(String impersonateServiceAccount)
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.
impersonateServiceAccount
- (Optional) The service account to impersonate for accessing the State Bucket. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder impersonateServiceAccountDelegates(List<String> impersonateServiceAccountDelegates)
impersonateServiceAccountDelegates
- (Optional) The delegation chain for an impersonating a service account. This parameter is required.this
@Stability(value=Experimental) public GcsBackend.Builder prefix(String prefix)
Named states for workspaces are stored in an object called
prefix
- (Optional) GCS prefix inside the bucket. This parameter is required.this
@Stability(value=Experimental) public GcsBackend build()
build
in interface software.amazon.jsii.Builder<GcsBackend>
Copyright © 2022. All rights reserved.