> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Go: DataTerraformRemoteStateCosConfig

> CDKTN Core API Reference for DataTerraformRemoteStateCosConfig in Go.

## Initializer <a name="Initializer" id="cdktn.DataTerraformRemoteStateCosConfig.Initializer" />

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.DataTerraformRemoteStateCosConfig {
	Defaults: *map[string]interface{},
	Workspace: *string,
	Bucket: *string,
	Accelerate: *bool,
	Acl: *string,
	AssumeRole: github.com/open-constructs/cdk-terrain-go/cdktn.CosBackendAssumeRole,
	Domain: *string,
	Encrypt: *bool,
	Endpoint: *string,
	Key: *string,
	Prefix: *string,
	Region: *string,
	SecretId: *string,
	SecretKey: *string,
	SecurityToken: *string,
}
```

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                                 | **Type**                                                                    | **Description**                                                                        |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.defaults">Defaults</a></code>           | <code>\*map\[string]interface\{}</code>                                     | *No description.*                                                                      |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.workspace">Workspace</a></code>         | <code>\*string</code>                                                       | *No description.*                                                                      |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.bucket">Bucket</a></code>               | <code>\*string</code>                                                       | (Required) The name of the COS bucket.                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.accelerate">Accelerate</a></code>       | <code>\*bool</code>                                                         | (Optional) Whether to enable global Acceleration.                                      |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.acl">Acl</a></code>                     | <code>\*string</code>                                                       | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.assumeRole">AssumeRole</a></code>       | <code><a href="#cdktn.CosBackendAssumeRole">CosBackendAssumeRole</a></code> | (Optional) The assume\_role block.                                                     |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.domain">Domain</a></code>               | <code>\*string</code>                                                       | (Optional) The root domain of the API request.                                         |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.encrypt">Encrypt</a></code>             | <code>\*bool</code>                                                         | (Optional) Whether to enable server side encryption of the state file.                 |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.endpoint">Endpoint</a></code>           | <code>\*string</code>                                                       | (Optional) The Custom Endpoint for the COS backend.                                    |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.key">Key</a></code>                     | <code>\*string</code>                                                       | (Optional) The path for saving the state file in bucket.                               |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.prefix">Prefix</a></code>               | <code>\*string</code>                                                       | (Optional) The directory for saving the state file in bucket.                          |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.region">Region</a></code>               | <code>\*string</code>                                                       | (Optional) The region of the COS bucket.                                               |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.secretId">SecretId</a></code>           | <code>\*string</code>                                                       | (Optional) Secret id of Tencent Cloud.                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.secretKey">SecretKey</a></code>         | <code>\*string</code>                                                       | (Optional) Secret key of Tencent Cloud.                                                |
| <code><a href="#cdktn.DataTerraformRemoteStateCosConfig.property.securityToken">SecurityToken</a></code> | <code>\*string</code>                                                       | (Optional) TencentCloud Security Token of temporary access credentials.                |

***

### `Defaults`<sup>Optional</sup> <a name="Defaults" id="cdktn.DataTerraformRemoteStateCosConfig.property.defaults" />

```go theme={null}
Defaults *map[string]interface{}
```

* *Type:* \*map\[string]interface\{}

***

### `Workspace`<sup>Optional</sup> <a name="Workspace" id="cdktn.DataTerraformRemoteStateCosConfig.property.workspace" />

```go theme={null}
Workspace *string
```

* *Type:* \*string

***

### `Bucket`<sup>Required</sup> <a name="Bucket" id="cdktn.DataTerraformRemoteStateCosConfig.property.bucket" />

```go theme={null}
Bucket *string
```

* *Type:* \*string

(Required) The name of the COS bucket.

You shall manually create it first.

***

### `Accelerate`<sup>Optional</sup> <a name="Accelerate" id="cdktn.DataTerraformRemoteStateCosConfig.property.accelerate" />

```go theme={null}
Accelerate *bool
```

* *Type:* \*bool

(Optional) Whether to enable global Acceleration.

Defaults to false.

***

### `Acl`<sup>Optional</sup> <a name="Acl" id="cdktn.DataTerraformRemoteStateCosConfig.property.acl" />

```go theme={null}
Acl *string
```

* *Type:* \*string

(Optional) Object ACL to be applied to the state file, allows private and public-read.

Defaults to private.

***

### `AssumeRole`<sup>Optional</sup> <a name="AssumeRole" id="cdktn.DataTerraformRemoteStateCosConfig.property.assumeRole" />

```go theme={null}
AssumeRole CosBackendAssumeRole
```

* *Type:* <a href="#cdktn.CosBackendAssumeRole">CosBackendAssumeRole</a>

(Optional) The assume\_role block.

If provided, terraform will attempt to assume this role using the supplied credentials.

***

### `Domain`<sup>Optional</sup> <a name="Domain" id="cdktn.DataTerraformRemoteStateCosConfig.property.domain" />

```go theme={null}
Domain *string
```

* *Type:* \*string

(Optional) The root domain of the API request.

Defaults to tencentcloudapi.com.
It supports the environment variable TENCENTCLOUD\_DOMAIN.

***

### `Encrypt`<sup>Optional</sup> <a name="Encrypt" id="cdktn.DataTerraformRemoteStateCosConfig.property.encrypt" />

```go theme={null}
Encrypt *bool
```

* *Type:* \*bool

(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.

***

### `Endpoint`<sup>Optional</sup> <a name="Endpoint" id="cdktn.DataTerraformRemoteStateCosConfig.property.endpoint" />

```go theme={null}
Endpoint *string
```

* *Type:* \*string

(Optional) The Custom Endpoint for the COS backend.

It supports the environment variable TENCENTCLOUD\_ENDPOINT.

***

### `Key`<sup>Optional</sup> <a name="Key" id="cdktn.DataTerraformRemoteStateCosConfig.property.key" />

```go theme={null}
Key *string
```

* *Type:* \*string

(Optional) The path for saving the state file in bucket.

Defaults to terraform.tfstate.

***

### `Prefix`<sup>Optional</sup> <a name="Prefix" id="cdktn.DataTerraformRemoteStateCosConfig.property.prefix" />

```go theme={null}
Prefix *string
```

* *Type:* \*string

(Optional) The directory for saving the state file in bucket.

Default to "env:".

***

### `Region`<sup>Optional</sup> <a name="Region" id="cdktn.DataTerraformRemoteStateCosConfig.property.region" />

```go theme={null}
Region *string
```

* *Type:* \*string

(Optional) The region of the COS bucket.

It supports environment variables TENCENTCLOUD\_REGION.

***

### `SecretId`<sup>Optional</sup> <a name="SecretId" id="cdktn.DataTerraformRemoteStateCosConfig.property.secretId" />

```go theme={null}
SecretId *string
```

* *Type:* \*string

(Optional) Secret id of Tencent Cloud.

It supports environment variables TENCENTCLOUD\_SECRET\_ID.

***

### `SecretKey`<sup>Optional</sup> <a name="SecretKey" id="cdktn.DataTerraformRemoteStateCosConfig.property.secretKey" />

```go theme={null}
SecretKey *string
```

* *Type:* \*string

(Optional) Secret key of Tencent Cloud.

It supports environment variables TENCENTCLOUD\_SECRET\_KEY.

***

### `SecurityToken`<sup>Optional</sup> <a name="SecurityToken" id="cdktn.DataTerraformRemoteStateCosConfig.property.securityToken" />

```go theme={null}
SecurityToken *string
```

* *Type:* \*string

(Optional) TencentCloud Security Token of temporary access credentials.

It supports environment variables TENCENTCLOUD\_SECURITY\_TOKEN.

***
