@Stability(value=Experimental) public static final class CosBackendConfig.Builder extends Object implements software.amazon.jsii.Builder<CosBackendConfig>
CosBackendConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CosBackendConfig.Builder |
acl(String acl)
Sets the value of
CosBackendConfig.getAcl() |
CosBackendConfig.Builder |
bucket(String bucket)
Sets the value of
CosBackendConfig.getBucket() |
CosBackendConfig |
build()
Builds the configured instance.
|
CosBackendConfig.Builder |
encrypt(Boolean encrypt)
Sets the value of
CosBackendConfig.getEncrypt() |
CosBackendConfig.Builder |
key(String key)
Sets the value of
CosBackendConfig.getKey() |
CosBackendConfig.Builder |
prefix(String prefix)
Sets the value of
CosBackendConfig.getPrefix() |
CosBackendConfig.Builder |
region(String region)
Sets the value of
CosBackendConfig.getRegion() |
CosBackendConfig.Builder |
secretId(String secretId)
Sets the value of
CosBackendConfig.getSecretId() |
CosBackendConfig.Builder |
secretKey(String secretKey)
Sets the value of
CosBackendConfig.getSecretKey() |
@Stability(value=Experimental) public CosBackendConfig.Builder bucket(String bucket)
CosBackendConfig.getBucket()
bucket
- (Required) The name of the COS bucket. This parameter is required.
You shall manually create it first.this
@Stability(value=Experimental) public CosBackendConfig.Builder acl(String acl)
CosBackendConfig.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 CosBackendConfig.Builder encrypt(Boolean encrypt)
CosBackendConfig.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 CosBackendConfig.Builder key(String key)
CosBackendConfig.getKey()
key
- (Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.this
@Stability(value=Experimental) public CosBackendConfig.Builder prefix(String prefix)
CosBackendConfig.getPrefix()
prefix
- (Optional) The directory for saving the state file in bucket.
Default to "env:".this
@Stability(value=Experimental) public CosBackendConfig.Builder region(String region)
CosBackendConfig.getRegion()
region
- (Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.this
@Stability(value=Experimental) public CosBackendConfig.Builder secretId(String secretId)
CosBackendConfig.getSecretId()
secretId
- (Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.this
@Stability(value=Experimental) public CosBackendConfig.Builder secretKey(String secretKey)
CosBackendConfig.getSecretKey()
secretKey
- (Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.this
@Stability(value=Experimental) public CosBackendConfig build()
build
in interface software.amazon.jsii.Builder<CosBackendConfig>
CosBackendConfig
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.