| 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.UpdateEnvironment
Description
Updates an environment.
Synopsis
- data UpdateEnvironment = UpdateEnvironment' {
- description :: Maybe Text
 - monitors :: Maybe [Monitor]
 - name :: Maybe Text
 - applicationId :: Text
 - environmentId :: Text
 
 - newUpdateEnvironment :: Text -> Text -> UpdateEnvironment
 - updateEnvironment_description :: Lens' UpdateEnvironment (Maybe Text)
 - updateEnvironment_monitors :: Lens' UpdateEnvironment (Maybe [Monitor])
 - updateEnvironment_name :: Lens' UpdateEnvironment (Maybe Text)
 - updateEnvironment_applicationId :: Lens' UpdateEnvironment Text
 - updateEnvironment_environmentId :: Lens' UpdateEnvironment 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 UpdateEnvironment Source #
See: newUpdateEnvironment smart constructor.
Constructors
| UpdateEnvironment' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateEnvironment | 
Create a value of UpdateEnvironment 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:
UpdateEnvironment, updateEnvironment_description - A description of the environment.
UpdateEnvironment, updateEnvironment_monitors - Amazon CloudWatch alarms to monitor during the deployment process.
UpdateEnvironment, updateEnvironment_name - The name of the environment.
UpdateEnvironment, updateEnvironment_applicationId - The application ID.
UpdateEnvironment, updateEnvironment_environmentId - The environment ID.
Request Lenses
updateEnvironment_description :: Lens' UpdateEnvironment (Maybe Text) Source #
A description of the environment.
updateEnvironment_monitors :: Lens' UpdateEnvironment (Maybe [Monitor]) Source #
Amazon CloudWatch alarms to monitor during the deployment process.
updateEnvironment_name :: Lens' UpdateEnvironment (Maybe Text) Source #
The name of the environment.
updateEnvironment_applicationId :: Lens' UpdateEnvironment Text Source #
The application ID.
updateEnvironment_environmentId :: Lens' UpdateEnvironment Text Source #
The environment ID.
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