---
type: resource-type
title: M2Environment
description: aws resource type AWS::M2::Environment
name: M2Environment
lexicon: aws
resource_type: AWS::M2::Environment
---
`AWS::M2::Environment`, a resource type of the aws lexicon.

## Properties

- `EngineType` (`M2Environment_EngineType`, required)
- `InstanceType` (`string`, required): The type of instance underlying the environment.
- `Name` (`string`, required): The name of the environment.
- `Description` (`string`, optional): The description of the environment.
- `EngineVersion` (`string`, optional): The version of the runtime engine for the environment.
- `EnvironmentArn` (`string`, optional): The Amazon Resource Name (ARN) of the runtime environment.
- `EnvironmentId` (`string`, optional): The unique identifier of the environment.
- `HighAvailabilityConfig` (`M2Environment_HighAvailabilityConfig`, optional)
- `KmsKeyId` (`string`, optional): The ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting environment-related resources.
- `NetworkType` (`M2Environment_NetworkType`, optional)
- `PreferredMaintenanceWindow` (`string`, optional): Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.
- `PubliclyAccessible` (`boolean`, optional): Specifies whether the environment is publicly accessible.
- `SecurityGroupIds` (`string[]`, optional): The list of security groups for the VPC associated with this environment.
- `StorageConfigurations` (`Record<string, unknown>[]`, optional): The storage configurations defined for the runtime environment.
- `SubnetIds` (`string[]`, optional): The unique identifiers of the subnets assigned to this runtime environment.
- `Tags` (`Record<string, unknown>`, optional): Tags associated to this environment.

## Attributes

- `EnvironmentArn`
- `EnvironmentId`
