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.
Initializers
import cdktn
cdktn.DataTerraformRemoteStateCos(
scope: Construct,
id: str,
defaults: typing.Mapping[typing.Any] = None,
workspace: str = None,
bucket: str,
accelerate: bool = None,
acl: str = None,
assume_role: CosBackendAssumeRole = None,
domain: str = None,
encrypt: bool = None,
endpoint: str = None,
key: str = None,
prefix: str = None,
region: str = None,
secret_id: str = None,
secret_key: str = None,
security_token: str = None
)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | str | No description. |
defaults | typing.Mapping[typing.Any] | No description. |
workspace | str | No description. |
bucket | str | (Required) The name of the COS bucket. |
accelerate | bool | (Optional) Whether to enable global Acceleration. |
acl | str | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
assume_role | CosBackendAssumeRole | (Optional) The assume_role block. |
domain | str | (Optional) The root domain of the API request. |
encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
endpoint | str | (Optional) The Custom Endpoint for the COS backend. |
key | str | (Optional) The path for saving the state file in bucket. |
prefix | str | (Optional) The directory for saving the state file in bucket. |
region | str | (Optional) The region of the COS bucket. |
secret_id | str | (Optional) Secret id of Tencent Cloud. |
secret_key | str | (Optional) Secret key of Tencent Cloud. |
security_token | str | (Optional) TencentCloud Security Token of temporary access credentials. |
scopeRequired
- Type: constructs.Construct
idRequired
defaultsOptional
- Type: typing.Mapping[typing.Any]
workspaceOptional
bucketRequired
(Required) The name of the COS bucket.
You shall manually create it first.
accelerateOptional
(Optional) Whether to enable global Acceleration.
Defaults to false.
aclOptional
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
assume_roleOptional
(Optional) The assume_role block.
If provided, terraform will attempt to assume this role using the supplied credentials.
domainOptional
(Optional) The root domain of the API request.
Defaults to tencentcloudapi.com.
It supports the environment variable TENCENTCLOUD_DOMAIN.
encryptOptional
(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.
endpointOptional
(Optional) The Custom Endpoint for the COS backend.
It supports the environment variable TENCENTCLOUD_ENDPOINT.
keyOptional
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
prefixOptional
(Optional) The directory for saving the state file in bucket.
Default to “env:”.
regionOptional
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
secret_idOptional
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
secret_keyOptional
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
security_tokenOptional
(Optional) TencentCloud Security Token of temporary access credentials.
It supports environment variables TENCENTCLOUD_SECURITY_TOKEN.
Methods
| Name | Description |
|---|
to_string | Returns a string representation of this construct. |
add_override | No description. |
override_logical_id | Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. |
to_hcl_terraform | Adds this resource to the terraform JSON output. |
to_metadata | No description. |
to_terraform | Adds this resource to the terraform JSON output. |
get | No description. |
get_boolean | No description. |
get_list | No description. |
get_number | No description. |
get_string | No description. |
to_string
Returns a string representation of this construct.
add_override
def add_override(
path: str,
value: typing.Any
) -> None
pathRequired
valueRequired
override_logical_id
def override_logical_id(
new_logical_id: str
) -> None
Overrides the auto-generated logical ID with a specific ID.
new_logical_idRequired
The new logical ID to use for this stack element.
reset_override_logical_id
def reset_override_logical_id() -> None
Resets a previously passed logical Id to use the auto-generated logical id again.
def to_hcl_terraform() -> typing.Any
Adds this resource to the terraform JSON output.
def to_metadata() -> typing.Any
def to_terraform() -> typing.Any
Adds this resource to the terraform JSON output.
get
def get(
output: str
) -> IResolvable
outputRequired
get_boolean
def get_boolean(
output: str
) -> IResolvable
outputRequired
get_list
def get_list(
output: str
) -> typing.List[str]
outputRequired
get_number
def get_number(
output: str
) -> typing.Union[int, float]
outputRequired
get_string
def get_string(
output: str
) -> str
outputRequired
Static Functions
| Name | Description |
|---|
is_construct | Checks if x is a construct. |
is_terraform_element | No description. |
is_construct
import cdktn
cdktn.DataTerraformRemoteStateCos.is_construct(
x: typing.Any
)
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
Any object.
import cdktn
cdktn.DataTerraformRemoteStateCos.is_terraform_element(
x: typing.Any
)
xRequired
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
cdktf_stack | TerraformStack | No description. |
fqn | str | No description. |
friendly_unique_id | str | No description. |
nodeRequired
The tree node.
cdktf_stackRequired
cdktf_stack: TerraformStack
fqnRequired
friendly_unique_idRequired
Constants
| Name | Type | Description |
|---|
tfResourceType | str | No description. |
tfResourceTypeRequired