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

# Java: IResource

> CDKTN Core API Reference for IResource in Java.

* *Extends:* software.constructs.IConstruct

* *Implemented By:* <a href="#cdktn.Resource">Resource</a>, <a href="#cdktn.IResource">IResource</a>

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

| **Name**                                                         | **Type**                                                        | **Description**                              |
| ---------------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------- |
| <code><a href="#cdktn.IResource.property.node">node</a></code>   | <code>software.constructs.Node</code>                           | The tree node.                               |
| <code><a href="#cdktn.IResource.property.stack">stack</a></code> | <code><a href="#cdktn.TerraformStack">TerraformStack</a></code> | The stack in which this resource is defined. |

***

### `node`<sup>Required</sup> <a name="node" id="cdktn.IResource.property.node" />

```java theme={null}
public Node getNode();
```

* *Type:* software.constructs.Node

The tree node.

***

### `stack`<sup>Required</sup> <a name="stack" id="cdktn.IResource.property.stack" />

```java theme={null}
public TerraformStack getStack();
```

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

The stack in which this resource is defined.

***
