Interface CosBackendConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DataTerraformRemoteStateCosConfig
- All Known Implementing Classes:
CosBackendConfig.Jsii$Proxy,DataTerraformRemoteStateCosConfig.Jsii$Proxy
This backend supports state locking.
Warning! It is highly recommended that you enable Object Versioning on the COS bucket to allow for state recovery in the case of accidental deletions and human error.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/cos
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCosBackendConfigstatic final classAn implementation forCosBackendConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic CosBackendConfig.Builderbuilder()default Boolean(experimental) (Optional) Whether to enable global Acceleration.default StringgetAcl()(experimental) (Optional) Object ACL to be applied to the state file, allows private and public-read.default CosBackendAssumeRole(experimental) (Optional) The assume_role block.(experimental) (Required) The name of the COS bucket.default String(experimental) (Optional) The root domain of the API request.default Boolean(experimental) (Optional) Whether to enable server side encryption of the state file.default String(experimental) (Optional) The Custom Endpoint for the COS backend.default StringgetKey()(experimental) (Optional) The path for saving the state file in bucket.default String(experimental) (Optional) The directory for saving the state file in bucket.default String(experimental) (Optional) The region of the COS bucket.default String(experimental) (Optional) Secret id of Tencent Cloud.default String(experimental) (Optional) Secret key of Tencent Cloud.default String(experimental) (Optional) TencentCloud Security Token of temporary access credentials.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
(experimental) (Required) The name of the COS bucket.You shall manually create it first.
-
getAccelerate
(experimental) (Optional) Whether to enable global Acceleration.Defaults to false.
-
getAcl
(experimental) (Optional) Object ACL to be applied to the state file, allows private and public-read.Defaults to private.
-
getAssumeRole
(experimental) (Optional) The assume_role block.If provided, terraform will attempt to assume this role using the supplied credentials.
-
getDomain
(experimental) (Optional) The root domain of the API request.Defaults to tencentcloudapi.com. It supports the environment variable TENCENTCLOUD_DOMAIN.
-
getEncrypt
(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.
-
getEndpoint
(experimental) (Optional) The Custom Endpoint for the COS backend.It supports the environment variable TENCENTCLOUD_ENDPOINT.
-
getKey
(experimental) (Optional) The path for saving the state file in bucket.Defaults to terraform.tfstate.
-
getPrefix
(experimental) (Optional) The directory for saving the state file in bucket.Default to "env:".
-
getRegion
(experimental) (Optional) The region of the COS bucket.It supports environment variables TENCENTCLOUD_REGION.
-
getSecretId
(experimental) (Optional) Secret id of Tencent Cloud.It supports environment variables TENCENTCLOUD_SECRET_ID.
-
getSecretKey
(experimental) (Optional) Secret key of Tencent Cloud.It supports environment variables TENCENTCLOUD_SECRET_KEY.
-
getSecurityToken
(experimental) (Optional) TencentCloud Security Token of temporary access credentials.It supports environment variables TENCENTCLOUD_SECURITY_TOKEN.
-
builder
- Returns:
- a
CosBackendConfig.BuilderofCosBackendConfig
-