> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateTerminationProtection

> Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails,

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails, and the stack remains unchanged. It is suggested to enable the termination protection after creating a stack and disabling it before deletion.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>AWS Access Key</td><td>`FDAWS_ACCESS_KEY`</td><td>Yes</td><td>The access key found on the "Security Credentials" page of the AWS management console.</td></tr><tr><td>AWS Secret Key</td><td>`FDAWS_SECRET_KEY`</td><td>Yes</td><td>The secret key found on the "Security Credentials" page of the AWS management console.</td></tr><tr><td>AWS Region</td><td>`FDAWS_ENDPOINT`</td><td>Yes</td><td>The AWS region to operate on. To find the endpoint code for your region, see [Amazon's Documentation](http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Stack Name</td><td>`FDAWS_CF_STACK_NAME`</td><td>Yes</td><td>The name or Id for the stack to update</td></tr><tr><td>Enable Termination Protection.</td><td>`FDAWS_CF_ENABLE_TERMINATION_PROTECTION`</td><td>No</td><td>Boolean. Whether to enable termination protection on the specified stack. Default is true.</td></tr></tbody></table>

# Artifacts

This operation doesn't consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
