Package com.hashicorp.cdktf
Class DataTerraformRemoteStateCos.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateCos.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateCos>
- Enclosing class:
DataTerraformRemoteStateCos
@Stability(Experimental)
public static final class DataTerraformRemoteStateCos.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateCos>
(experimental) A fluent builder for
DataTerraformRemoteStateCos
.-
Method Summary
Modifier and TypeMethodDescription(experimental) (Optional) Object ACL to be applied to the state file, allows private and public-read.(experimental) (Required) The name of the COS bucket.build()
(experimental) (Optional) Whether to enable server side encryption of the state file.(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.
-
Method Details
-
create
@Stability(Experimental) public static DataTerraformRemoteStateCos.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DataTerraformRemoteStateCos.Builder
.
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateCos.Builder defaults(Map<String, ? extends Object> defaults) - Parameters:
defaults
- This parameter is required.- Returns:
this
-
workspace
- Parameters:
workspace
- This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateCos>
- Returns:
- a newly built instance of
DataTerraformRemoteStateCos
.
-