| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppConfig.CreateEnvironment
Description
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.
Synopsis
- data CreateEnvironment = CreateEnvironment' {}
- newCreateEnvironment :: Text -> Text -> CreateEnvironment
- createEnvironment_description :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_monitors :: Lens' CreateEnvironment (Maybe [Monitor])
- createEnvironment_tags :: Lens' CreateEnvironment (Maybe (HashMap Text Text))
- createEnvironment_applicationId :: Lens' CreateEnvironment Text
- createEnvironment_name :: Lens' CreateEnvironment Text
- data Environment = Environment' {}
- newEnvironment :: Environment
- environment_applicationId :: Lens' Environment (Maybe Text)
- environment_description :: Lens' Environment (Maybe Text)
- environment_id :: Lens' Environment (Maybe Text)
- environment_monitors :: Lens' Environment (Maybe [Monitor])
- environment_name :: Lens' Environment (Maybe Text)
- environment_state :: Lens' Environment (Maybe EnvironmentState)
Creating a Request
data CreateEnvironment Source #
See: newCreateEnvironment smart constructor.
Constructors
| CreateEnvironment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateEnvironment |
Create a value of CreateEnvironment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEnvironment, createEnvironment_description - A description of the environment.
CreateEnvironment, createEnvironment_monitors - Amazon CloudWatch alarms to monitor during the deployment process.
$sel:tags:CreateEnvironment', createEnvironment_tags - Metadata to assign to the environment. Tags help organize and categorize
your AppConfig resources. Each tag consists of a key and an optional
value, both of which you define.
CreateEnvironment, createEnvironment_applicationId - The application ID.
CreateEnvironment, createEnvironment_name - A name for the environment.
Request Lenses
createEnvironment_description :: Lens' CreateEnvironment (Maybe Text) Source #
A description of the environment.
createEnvironment_monitors :: Lens' CreateEnvironment (Maybe [Monitor]) Source #
Amazon CloudWatch alarms to monitor during the deployment process.
createEnvironment_tags :: Lens' CreateEnvironment (Maybe (HashMap Text Text)) Source #
Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
createEnvironment_applicationId :: Lens' CreateEnvironment Text Source #
The application ID.
createEnvironment_name :: Lens' CreateEnvironment Text Source #
A name for the environment.
Destructuring the Response
data Environment Source #
See: newEnvironment smart constructor.
Constructors
| Environment' | |
Fields
| |
Instances
newEnvironment :: Environment Source #
Create a value of Environment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:applicationId:Environment', environment_applicationId - The application ID.
$sel:description:Environment', environment_description - The description of the environment.
$sel:id:Environment', environment_id - The environment ID.
$sel:monitors:Environment', environment_monitors - Amazon CloudWatch alarms monitored during the deployment.
$sel:name:Environment', environment_name - The name of the environment.
$sel:state:Environment', environment_state - The state of the environment. An environment can be in one of the
following states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK,
or ROLLED_BACK
Response Lenses
environment_applicationId :: Lens' Environment (Maybe Text) Source #
The application ID.
environment_description :: Lens' Environment (Maybe Text) Source #
The description of the environment.
environment_id :: Lens' Environment (Maybe Text) Source #
The environment ID.
environment_monitors :: Lens' Environment (Maybe [Monitor]) Source #
Amazon CloudWatch alarms monitored during the deployment.
environment_name :: Lens' Environment (Maybe Text) Source #
The name of the environment.
environment_state :: Lens' Environment (Maybe EnvironmentState) Source #
The state of the environment. An environment can be in one of the
following states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK,
or ROLLED_BACK