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

# Python: TerraformResourceLifecycle

> CDKTN Core API Reference for TerraformResourceLifecycle in Python.

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

```python theme={null}
import cdktn

cdktn.TerraformResourceLifecycle(
  create_before_destroy: bool = None,
  ignore_changes: typing.List[str] | str = None,
  postcondition: typing.List[Postcondition] = None,
  precondition: typing.List[Precondition] = None,
  prevent_destroy: bool = None,
  replace_triggered_by: typing.List[str | ITerraformDependable] = None
)
```

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

| **Name**                                                                                                          | **Type**                                                                                         | **Description**   |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ----------------- |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.createBeforeDestroy">create\_before\_destroy</a></code> | <code>bool</code>                                                                                | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.ignoreChanges">ignore\_changes</a></code>               | <code>typing.List\[str] \| str</code>                                                            | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.postcondition">postcondition</a></code>                 | <code>typing.List\[<a href="#cdktn.Postcondition">Postcondition</a>]</code>                      | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.precondition">precondition</a></code>                   | <code>typing.List\[<a href="#cdktn.Precondition">Precondition</a>]</code>                        | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.preventDestroy">prevent\_destroy</a></code>             | <code>bool</code>                                                                                | *No description.* |
| <code><a href="#cdktn.TerraformResourceLifecycle.property.replaceTriggeredBy">replace\_triggered\_by</a></code>   | <code>typing.List\[str \| <a href="#cdktn.ITerraformDependable">ITerraformDependable</a>]</code> | *No description.* |

***

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

```python theme={null}
create_before_destroy: bool
```

* *Type:* bool

***

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

```python theme={null}
ignore_changes: typing.List[str] | str
```

* *Type:* typing.List\[str] | str

***

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

```python theme={null}
postcondition: typing.List[Postcondition]
```

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

***

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

```python theme={null}
precondition: typing.List[Precondition]
```

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

***

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

```python theme={null}
prevent_destroy: bool
```

* *Type:* bool

***

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

```python theme={null}
replace_triggered_by: typing.List[str | ITerraformDependable]
```

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

***
