# CfnEnvironmentProps

Properties for defining a `CfnEnvironment`.

Extends: CfnEnvironmentProps
Used as props by: CfnEnvironment

- Source: Generated code
- Type last changed: v2.174.0 · 4 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_m2 as m2 } from 'aws-cdk-lib';
const cfnEnvironmentProps: m2.CfnEnvironmentProps = {
  engineType: 'engineType',
  instanceType: 'instanceType',
  name: 'name',

  // the properties below are optional
  description: 'description',
  engineVersion: 'engineVersion',
  highAvailabilityConfig: {
    desiredCapacity: 123,
  },
  kmsKeyId: 'kmsKeyId',
  networkType: 'networkType',
  preferredMaintenanceWindow: 'preferredMaintenanceWindow',
  publiclyAccessible: false,
  securityGroupIds: ['securityGroupIds'],
  storageConfigurations: [{
    efs: {
      fileSystemId: 'fileSystemId',
      mountPoint: 'mountPoint',
    },
    fsx: {
      fileSystemId: 'fileSystemId',
      mountPoint: 'mountPoint',
    },
  }],
  subnetIds: ['subnetIds'],
  tags: {
    tagsKey: 'tags',
  },
};
```

## Properties

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

- `engineType`: string (required) — The target platform for the runtime environment.

- `engineVersion`: string — The version of the runtime engine.

- `highAvailabilityConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEnvironment.HighAvailabilityConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_m2.CfnEnvironment.HighAvailabilityConfigProperty.html) — > AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.

  If you would like to use the service, please sign up prior to November 7, 2025. For capabilities similar to AWS Mainframe Modernization Service (Managed Runtime Environment experience) explore AWS Mainframe Modernization Service (Self-Managed Experience). Existing customers can continue to use the service as normal. For more information, see [AWS Mainframe Modernization availability change](https://docs.aws.amazon.com/m2/latest/userguide/mainframe-modernization-availability-change.html) .

  Defines the details of a high availability configuration.

- `instanceType`: string (required) — The instance type of the runtime environment.

- `kmsKeyId`: string — The identifier of a customer managed key.

- `name`: string (required) — The name of the runtime environment.

- `networkType`: string — The network type supported by the runtime environment.

- `preferredMaintenanceWindow`: string — Configures the maintenance window that you want for the runtime environment.

  The maintenance window must have the format `ddd:hh24:mi-ddd:hh24:mi` and must be less than 24 hours. The following two examples are valid maintenance windows: `sun:23:45-mon:00:15` or `sat:01:00-sat:03:00` .

  If you do not provide a value, a random system-generated value will be assigned.

- `publiclyAccessible`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the runtime environment is publicly accessible.

- `securityGroupIds`: string[] — The list of security groups for the VPC associated with this runtime environment.

- `storageConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEnvironment.StorageConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_m2.CfnEnvironment.StorageConfigurationProperty.html)[] — > AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.

  If you would like to use the service, please sign up prior to November 7, 2025. For capabilities similar to AWS Mainframe Modernization Service (Managed Runtime Environment experience) explore AWS Mainframe Modernization Service (Self-Managed Experience). Existing customers can continue to use the service as normal. For more information, see [AWS Mainframe Modernization availability change](https://docs.aws.amazon.com/m2/latest/userguide/mainframe-modernization-availability-change.html) .

  Defines the storage configuration for a runtime environment.

- `subnetIds`: string[] — The list of subnets associated with the VPC for this runtime environment.

- `tags`: { [key: string]: string } — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
