AWS::M2::EnvironmentSpecifies a runtime environment for a given runtime engine.
import { CfnEnvironment } from 'aws-cdk-lib/aws-m2';Or use the module namespace:
import * as m2 from 'aws-cdk-lib/aws-m2';
// m2.CfnEnvironmentConfiguration passed to the constructor as CfnEnvironmentProps.
engineTypeRequiredstringThe target platform for the runtime environment.
instanceTypeRequiredstringThe instance type of the runtime environment.
nameRequiredstringThe name of the runtime environment.
descriptionOptionalstringThe description of the runtime environment.
engineVersionOptionalstringThe version of the runtime engine.
highAvailabilityConfigOptionalIResolvable | HighAvailabilityConfigProperty> 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.
kmsKeyIdOptionalstringThe identifier of a customer managed key.
networkTypeOptionalstringThe network type supported by the runtime environment.
preferredMaintenanceWindowOptionalstringConfigures 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.
publiclyAccessibleOptionalboolean | IResolvableSpecifies whether the runtime environment is publicly accessible.
securityGroupIdsOptionalstring[]The list of security groups for the VPC associated with this runtime environment.
storageConfigurationsOptionalIResolvable | IResolvable | StorageConfigurationProperty[]> 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.
subnetIdsOptionalstring[]The list of subnets associated with the VPC for this runtime environment.
tagsOptional{ [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) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-m2AWS::M2::Environment