Expressions in connection blocks cannot refer to their parent resource by name. References create dependencies, and referring to a resource by name within its own block would create a dependency cycle. Instead, expressions can use the self object, which represents the connection’s parent resource and has all of that resource’s attributes. For example, use self.public_ip to reference an aws_instance’s public_ip attribute.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
| Name | Type | Description |
|---|
Static Functions
| Name | Description |
|---|---|
get_any | Only usable within a connection block to reference the connections parent resource. |
get_number | Only usable within a connection block to reference the connections parent resource. |
get_string | Only usable within a connection block to reference the connections parent resource. |
get_any
getAny("hostPort")
keyRequired
- Type: str
get_number
getNumber("hostPort")
keyRequired
- Type: str
get_string
getString("publicIp")
keyRequired
- Type: str