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

# Typescript: TerraformResourceLifecycle

> CDKTN Core API Reference for TerraformResourceLifecycle in Typescript.

## Initializer <a name="Initializer" id="cdktn.TerraformResourceLifecycle.Initializer" />

```typescript theme={null}
import { TerraformResourceLifecycle } from 'cdktn'

const terraformResourceLifecycle: TerraformResourceLifecycle = { ... }
```

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

| **Name**                                                                                                      | **Type**                                                                                 | **Description**   |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.createBeforeDestroy">createBeforeDestroy</a></code> | <code>boolean</code>                                                                     | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.ignoreChanges">ignoreChanges</a></code>             | <code>string\[] \| string</code>                                                         | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.postcondition">postcondition</a></code>             | <code><a href="#cdktn.Postcondition">Postcondition</a>\[]</code>                         | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.precondition">precondition</a></code>               | <code><a href="#cdktn.Precondition">Precondition</a>\[]</code>                           | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.preventDestroy">preventDestroy</a></code>           | <code>boolean</code>                                                                     | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.replaceTriggeredBy">replaceTriggeredBy</a></code>   | <code>string \| <a href="#cdktn.ITerraformDependable">ITerraformDependable</a>\[]</code> | *No description.* |

***

### `createBeforeDestroy`<sup>Optional</sup> <a name="createBeforeDestroy" id="cdktn.TerraformResourceLifecycle.property.createBeforeDestroy" />

```typescript theme={null}
public readonly createBeforeDestroy: boolean;
```

* *Type:* boolean

***

### `ignoreChanges`<sup>Optional</sup> <a name="ignoreChanges" id="cdktn.TerraformResourceLifecycle.property.ignoreChanges" />

```typescript theme={null}
public readonly ignoreChanges: string[] | string;
```

* *Type:* string\[] | string

***

### `postcondition`<sup>Optional</sup> <a name="postcondition" id="cdktn.TerraformResourceLifecycle.property.postcondition" />

```typescript theme={null}
public readonly postcondition: Postcondition[];
```

* *Type:* <a href="#cdktn.Postcondition">Postcondition</a>\[]

***

### `precondition`<sup>Optional</sup> <a name="precondition" id="cdktn.TerraformResourceLifecycle.property.precondition" />

```typescript theme={null}
public readonly precondition: Precondition[];
```

* *Type:* <a href="#cdktn.Precondition">Precondition</a>\[]

***

### `preventDestroy`<sup>Optional</sup> <a name="preventDestroy" id="cdktn.TerraformResourceLifecycle.property.preventDestroy" />

```typescript theme={null}
public readonly preventDestroy: boolean;
```

* *Type:* boolean

***

### `replaceTriggeredBy`<sup>Optional</sup> <a name="replaceTriggeredBy" id="cdktn.TerraformResourceLifecycle.property.replaceTriggeredBy" />

```typescript theme={null}
public readonly replaceTriggeredBy: (string | ITerraformDependable)[];
```

* *Type:* string | <a href="#cdktn.ITerraformDependable">ITerraformDependable</a>\[]

***
