Package com.hashicorp.cdktf
Class CosBackend.Builder
java.lang.Object
com.hashicorp.cdktf.CosBackend.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CosBackend>
- Enclosing class:
CosBackend
@Stability(Experimental)
public static final class CosBackend.Builder
extends Object
implements software.amazon.jsii.Builder<CosBackend>
(experimental) A fluent builder for
CosBackend
.-
Method Summary
Modifier and TypeMethodDescriptionaccelerate
(Boolean accelerate) (experimental) (Optional) Whether to enable global Acceleration.(experimental) (Optional) Object ACL to be applied to the state file, allows private and public-read.assumeRole
(CosBackendAssumeRole assumeRole) (experimental) (Optional) The assume_role block.(experimental) (Required) The name of the COS bucket.build()
static CosBackend.Builder
create
(software.constructs.Construct scope) (experimental) (Optional) The root domain of the API request.(experimental) (Optional) Whether to enable server side encryption of the state file.(experimental) (Optional) The Custom Endpoint for the COS backend.(experimental) (Optional) The path for saving the state file in bucket.(experimental) (Optional) The directory for saving the state file in bucket.(experimental) (Optional) The region of the COS bucket.(experimental) (Optional) Secret id of Tencent Cloud.(experimental) (Optional) Secret key of Tencent Cloud.securityToken
(String securityToken) (experimental) (Optional) TencentCloud Security Token of temporary access credentials.
-
Method Details
-
create
@Stability(Experimental) public static CosBackend.Builder create(software.constructs.Construct scope) - Parameters:
scope
- This parameter is required.- Returns:
- a new instance of
CosBackend.Builder
.
-
bucket
(experimental) (Required) The name of the COS bucket.You shall manually create it first.
- Parameters:
bucket
- (Required) The name of the COS bucket. This parameter is required.- Returns:
this
-
accelerate
(experimental) (Optional) Whether to enable global Acceleration.Defaults to false.
- Parameters:
accelerate
- (Optional) Whether to enable global Acceleration. This parameter is required.- Returns:
this
-
acl
(experimental) (Optional) Object ACL to be applied to the state file, allows private and public-read.Defaults to private.
- Parameters:
acl
- (Optional) Object ACL to be applied to the state file, allows private and public-read. This parameter is required.- Returns:
this
-
assumeRole
(experimental) (Optional) The assume_role block.If provided, terraform will attempt to assume this role using the supplied credentials.
- Parameters:
assumeRole
- (Optional) The assume_role block. This parameter is required.- Returns:
this
-
domain
(experimental) (Optional) The root domain of the API request.Defaults to tencentcloudapi.com. It supports the environment variable TENCENTCLOUD_DOMAIN.
- Parameters:
domain
- (Optional) The root domain of the API request. This parameter is required.- Returns:
this
-
encrypt
(experimental) (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.
- Parameters:
encrypt
- (Optional) Whether to enable server side encryption of the state file. This parameter is required.- Returns:
this
-
endpoint
(experimental) (Optional) The Custom Endpoint for the COS backend.It supports the environment variable TENCENTCLOUD_ENDPOINT.
- Parameters:
endpoint
- (Optional) The Custom Endpoint for the COS backend. This parameter is required.- Returns:
this
-
key
(experimental) (Optional) The path for saving the state file in bucket.Defaults to terraform.tfstate.
- Parameters:
key
- (Optional) The path for saving the state file in bucket. This parameter is required.- Returns:
this
-
prefix
(experimental) (Optional) The directory for saving the state file in bucket.Default to "env:".
- Parameters:
prefix
- (Optional) The directory for saving the state file in bucket. This parameter is required.- Returns:
this
-
region
(experimental) (Optional) The region of the COS bucket.It supports environment variables TENCENTCLOUD_REGION.
- Parameters:
region
- (Optional) The region of the COS bucket. This parameter is required.- Returns:
this
-
secretId
(experimental) (Optional) Secret id of Tencent Cloud.It supports environment variables TENCENTCLOUD_SECRET_ID.
- Parameters:
secretId
- (Optional) Secret id of Tencent Cloud. This parameter is required.- Returns:
this
-
secretKey
(experimental) (Optional) Secret key of Tencent Cloud.It supports environment variables TENCENTCLOUD_SECRET_KEY.
- Parameters:
secretKey
- (Optional) Secret key of Tencent Cloud. This parameter is required.- Returns:
this
-
securityToken
(experimental) (Optional) TencentCloud Security Token of temporary access credentials.It supports environment variables TENCENTCLOUD_SECURITY_TOKEN.
- Parameters:
securityToken
- (Optional) TencentCloud Security Token of temporary access credentials. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CosBackend>
- Returns:
- a newly built instance of
CosBackend
.
-