@Stability(value=Experimental) public static final class DataTerraformRemoteStateCosConfig.Builder extends Object implements software.amazon.jsii.Builder<DataTerraformRemoteStateCosConfig>
DataTerraformRemoteStateCosConfig
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder defaults(Map<String,? extends Object> defaults)
DataTerraformRemoteStateConfig.getDefaults()
defaults
- the value to be set.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder workspace(String workspace)
DataTerraformRemoteStateConfig.getWorkspace()
workspace
- the value to be set.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder bucket(String bucket)
CosBackendProps.getBucket()
bucket
- (Required) The name of the COS bucket. This parameter is required.
You shall manually create it first.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder acl(String acl)
CosBackendProps.getAcl()
acl
- (Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder encrypt(Boolean encrypt)
CosBackendProps.getEncrypt()
encrypt
- (Optional) Whether to enable server side encryption of the state file.
If it is true, COS will use 'AES256' encryption algorithm to encrypt state file.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder key(String key)
CosBackendProps.getKey()
key
- (Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder prefix(String prefix)
CosBackendProps.getPrefix()
prefix
- (Optional) The directory for saving the state file in bucket.
Default to "env:".this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder region(String region)
CosBackendProps.getRegion()
region
- (Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder secretId(String secretId)
CosBackendProps.getSecretId()
secretId
- (Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig.Builder secretKey(String secretKey)
CosBackendProps.getSecretKey()
secretKey
- (Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.this
@Stability(value=Experimental) public DataTerraformRemoteStateCosConfig build()
build
in interface software.amazon.jsii.Builder<DataTerraformRemoteStateCosConfig>
DataTerraformRemoteStateCosConfig
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.