# EnvironmentProps

Properties for the Environment construct.

Extends: EnvironmentProps
Extends: EnvironmentOptions
Used as props by: Environment

- Source: [`aws-appconfig/lib/environment.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appconfig/lib/environment.ts#L200)
- Type last changed: v2.130.0 · 23 Feb 2024

## Example

```ts
const app = new appconfig.Application(this, 'MyApp');
const env = new appconfig.Environment(this, 'MyEnv', {
  application: app,
});

new appconfig.HostedConfiguration(this, 'MyFirstHostedConfig', {
  application: app,
  deployTo: [env],
  content: appconfig.ConfigurationContent.fromInlineText('This is my first configuration content.'),
});

new appconfig.HostedConfiguration(this, 'MySecondHostedConfig', {
  application: app,
  deployTo: [env],
  content: appconfig.ConfigurationContent.fromInlineText('This is my second configuration content.'),
});
```

## Properties

- `application`: [IApplication](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.IApplication.html) (required) — The application to be associated with the environment.

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