Creates an environment. For each application, you define one or more environments. An environment is a deployment group of AppConfig targets, such as applications in a <code>Beta</code> or <code>Production</code> environment. You can also define environments for application subcomponents such as the <code>Web</code>, <code>Mobile</code> and <code>Back-end</code> components for your application. You can configure Amazon CloudWatch alarms for each environment. The system monitors alarms during a configuration deployment. If an alarm is triggered, the system rolls back the configuration.
post/applications/{ApplicationId}/environments
Path parameters
ApplicationIdstring required
The application ID.
Request body
Response
Success
Example response
{
"ApplicationId": "339ohji",
"Description": "An environment for examples.",
"Id": "54j1r29",
"Name": "Example-Environment",
"State": "ROLLED_BACK"
}