@Stability(value=Experimental) public static final class CosBackendProps.Builder extends Object implements software.amazon.jsii.Builder<CosBackendProps>
CosBackendProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CosBackendProps.Builder |
acl(String acl)
Sets the value of
CosBackendProps.getAcl() |
CosBackendProps.Builder |
bucket(String bucket)
Sets the value of
CosBackendProps.getBucket() |
CosBackendProps |
build()
Builds the configured instance.
|
CosBackendProps.Builder |
encrypt(Boolean encrypt)
Sets the value of
CosBackendProps.getEncrypt() |
CosBackendProps.Builder |
key(String key)
Sets the value of
CosBackendProps.getKey() |
CosBackendProps.Builder |
prefix(String prefix)
Sets the value of
CosBackendProps.getPrefix() |
CosBackendProps.Builder |
region(String region)
Sets the value of
CosBackendProps.getRegion() |
CosBackendProps.Builder |
secretId(String secretId)
Sets the value of
CosBackendProps.getSecretId() |
CosBackendProps.Builder |
secretKey(String secretKey)
Sets the value of
CosBackendProps.getSecretKey() |
@Stability(value=Experimental) public CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps.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 CosBackendProps build()
build
in interface software.amazon.jsii.Builder<CosBackendProps>
CosBackendProps
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.