@Stability(value=Experimental) public static final class DataTerraformRemoteStateGcsConfig.Builder extends Object implements software.amazon.jsii.Builder<DataTerraformRemoteStateGcsConfig>
DataTerraformRemoteStateGcsConfig
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder defaults(Map<String,? extends Object> defaults)
DataTerraformRemoteStateConfig.getDefaults()
defaults
- the value to be set.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder workspace(String workspace)
DataTerraformRemoteStateConfig.getWorkspace()
workspace
- the value to be set.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder bucket(String bucket)
GcsBackendProps.getBucket()
bucket
- (Required) The name of the GCS bucket. This parameter is required.
This name must be globally unique.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder accessToken(String accessToken)
GcsBackendProps.getAccessToken()
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
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder credentials(String credentials)
GcsBackendProps.getCredentials()
credentials
- (Optional) Local path to Google Cloud Platform account credentials in JSON format.
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.
this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder encryptionKey(String encryptionKey)
GcsBackendProps.getEncryptionKey()
encryptionKey
- (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder impersonateServiceAccount(String impersonateServiceAccount)
GcsBackendProps.getImpersonateServiceAccount()
impersonateServiceAccount
- (Optional) The service account to impersonate for accessing the State Bucket.
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.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder impersonateServiceAccountDelegates(List<String> impersonateServiceAccountDelegates)
GcsBackendProps.getImpersonateServiceAccountDelegates()
impersonateServiceAccountDelegates
- (Optional) The delegation chain for an impersonating a service account.this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig.Builder prefix(String prefix)
GcsBackendProps.getPrefix()
prefix
- (Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called this
@Stability(value=Experimental) public DataTerraformRemoteStateGcsConfig build()
build
in interface software.amazon.jsii.Builder<DataTerraformRemoteStateGcsConfig>
DataTerraformRemoteStateGcsConfig
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.