Initializers
| Name | Type | Description |
|---|---|---|
scope | software.constructs.Construct | No description. |
bucket | java.lang.String | (Required) The name of the OSS bucket. |
accessKey | java.lang.String | (Optional) Alibaba Cloud access key. |
acl | java.lang.String | (Optional) Object ACL to be applied to the state file. |
assumeRole | OssAssumeRole | No description. |
assumeRolePolicy | java.lang.String | (Optional, Available in 1.1.0+) A more restrictive policy to apply to the temporary credentials. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use this policy to grant permissions that exceed those of the role that is being assumed. |
assumeRoleRoleArn | java.lang.String | (Optional, Available in 1.1.0+) The ARN of the role to assume. If ARN is set to an empty string, it does not perform role switching. It supports the environment variable ALICLOUD_ASSUME_ROLE_ARN. Terraform executes configuration on account with provided credentials. |
assumeRoleSessionExpiration | java.lang.Number | (Optional, Available in 1.1.0+) The time after which the established session for assuming role expires. Valid value range: [900-3600] seconds. Default to 3600 (in this case Alibaba Cloud uses its own default value). It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_EXPIRATION. |
assumeRoleSessionName | java.lang.String | (Optional, Available in 1.1.0+) The session name to use when assuming the role. If omitted, ‘terraform’ is passed to the AssumeRole call as session name. It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_NAME. |
ecsRoleName | java.lang.String | (Optional, Available in 0.12.14+) The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the ‘Access Control’ section of the Alibaba Cloud console. |
encrypt | java.lang.Boolean | (Optional) Whether to enable server side encryption of the state file. |
endpoint | java.lang.String | (Optional) A custom endpoint for the OSS API. |
key | java.lang.String | (Optional) The name of the state file. |
prefix | java.lang.String | (Optional) The path directory of the state file will be stored. |
profile | java.lang.String | (Optional, Available in 0.12.8+) This is the Alibaba Cloud profile name as set in the shared credentials file. It can also be sourced from the ALICLOUD_PROFILE environment variable. |
region | java.lang.String | (Optional) The region of the OSS bucket. |
secretKey | java.lang.String | (Optional) Alibaba Cloud secret access key. |
securityToken | java.lang.String | (Optional) STS access token. |
sharedCredentialsFile | java.lang.String | (Optional, Available in 0.12.8+) This is the path to the shared credentials file. It can also be sourced from the ALICLOUD_SHARED_CREDENTIALS_FILE environment variable. If this is not set and a profile is specified, ~/.aliyun/config.json will be used. |
stsEndpoint | java.lang.String | (Optional, Available in 1.0.11+) Custom endpoint for the AliCloud Security Token Service (STS) API. It supports environment variable ALICLOUD_STS_ENDPOINT. |
tablestoreEndpoint | java.lang.String | (Optional) A custom endpoint for the TableStore API. |
tablestoreTable | java.lang.String | (Optional) A TableStore table for state locking and consistency. |
scopeRequired
- Type: software.constructs.Construct
bucketRequired
- Type: java.lang.String
accessKeyOptional
- Type: java.lang.String
aclOptional
- Type: java.lang.String
assumeRoleOptional
assumeRole- Deprecated: Use flattened assume role options
- Type: OssAssumeRole
assumeRolePolicyOptional
- Type: java.lang.String
assumeRoleRoleArnOptional
- Type: java.lang.String
assumeRoleSessionExpirationOptional
- Type: java.lang.Number
assumeRoleSessionNameOptional
- Type: java.lang.String
ecsRoleNameOptional
- Type: java.lang.String
encryptOptional
- Type: java.lang.Boolean
endpointOptional
- Type: java.lang.String
keyOptional
- Type: java.lang.String
prefixOptional
- Type: java.lang.String
profileOptional
- Type: java.lang.String
regionOptional
- Type: java.lang.String
secretKeyOptional
- Type: java.lang.String
securityTokenOptional
- Type: java.lang.String
sharedCredentialsFileOptional
- Type: java.lang.String
stsEndpointOptional
- Type: java.lang.String
tablestoreEndpointOptional
- Type: java.lang.String
tablestoreTableOptional
- Type: java.lang.String
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
addOverride | No description. |
overrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
toHclTerraform | No description. |
toMetadata | No description. |
toTerraform | Adds this resource to the terraform JSON output. |
getRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
toString
addOverride
pathRequired
- Type: java.lang.String
valueRequired
- Type: java.lang.Object
overrideLogicalId
newLogicalIdRequired
- Type: java.lang.String
resetOverrideLogicalId
toHclTerraform
toMetadata
toTerraform
getRemoteStateDataSource
scopeRequired
- Type: software.constructs.Construct
nameRequired
- Type: java.lang.String
_fromStackRequired
- Type: java.lang.String
Static Functions
| Name | Description |
|---|---|
isConstruct | Checks if x is a construct. |
isTerraformElement | No description. |
isBackend | No description. |
isConstruct
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
- Type: java.lang.Object
isTerraformElement
xRequired
- Type: java.lang.Object
isBackend
xRequired
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | software.constructs.Node | The tree node. |
cdktfStack | TerraformStack | No description. |
fqn | java.lang.String | No description. |
friendlyUniqueId | java.lang.String | No description. |
nodeRequired
- Type: software.constructs.Node
cdktfStackRequired
- Type: TerraformStack
fqnRequired
- Type: java.lang.String
friendlyUniqueIdRequired
- Type: java.lang.String