createEnvironment

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 Beta or Production environment. You can also define environments for application subcomponents such as the Web, Mobile and Back-end 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.

Samples


fun main() { 
   //sampleStart 
   // The following create environment example creates an AWS AppConfig environment named Example
// Environment using the application you created using create application
val resp = appConfigClient.createEnvironment {
    applicationId = "339ohji"
    name = "Example-Environment"
} 
   //sampleEnd
}