# EnvironmentOptions

Options for the Environment construct.

- Source: [`aws-appconfig/lib/environment.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appconfig/lib/environment.ts#L167)
- Type last changed: v2.176.0 · 15 Jan 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';

declare const monitor: appconfig.Monitor;
const environmentOptions: appconfig.EnvironmentOptions = {
  deletionProtectionCheck: appconfig.DeletionProtectionCheck.ACCOUNT_DEFAULT,
  description: 'description',
  environmentName: 'environmentName',
  monitors: [monitor],
};
```

## Properties

- `deletionProtectionCheck`: [DeletionProtectionCheck](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.DeletionProtectionCheck.html) — A property to prevent accidental deletion of active environments.

  **Default:** undefined - AppConfig default is ACCOUNT_DEFAULT

- `description`: string — The description of the environment.

  **Default:** No description.

- `environmentName`: string — The name of the environment.

  **Default:** A name is generated.

- `monitors`: [Monitor](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.Monitor.html)[] — The monitors for the environment.

  **Default:** No monitors.
