@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-02-03T16:18:08.794Z") @Stability(value=Experimental) public class TerraformSelf extends software.amazon.jsii.JsiiObject
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.
Modifier | Constructor and Description |
---|---|
|
TerraformSelf() |
protected |
TerraformSelf(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TerraformSelf(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static Object |
getAny(String key)
(experimental) Only usable within a connection block to reference the connections parent resource.
|
static Number |
getNumber(String key)
(experimental) Only usable within a connection block to reference the connections parent resource.
|
static String |
getString(String key)
(experimental) Only usable within a connection block to reference the connections parent resource.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected TerraformSelf(software.amazon.jsii.JsiiObjectRef objRef)
protected TerraformSelf(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public TerraformSelf()
@Stability(value=Experimental) @NotNull public static Object getAny(@NotNull String key)
Access a property on the resource like this: getAny("hostPort")
key
- This parameter is required.@Stability(value=Experimental) @NotNull public static Number getNumber(@NotNull String key)
Access a property on the resource like this: getNumber("hostPort")
key
- This parameter is required.@Stability(value=Experimental) @NotNull public static String getString(@NotNull String key)
Access a property on the resource like this: getString("publicIp")
key
- This parameter is required.Copyright © 2023. All rights reserved.