Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.
Attempting to update both the release and configuration is not allowed
and AWS Elastic Beanstalk returns an InvalidParameterCombination
error.
When updating the configuration settings to a new template or individual
settings, a draft configuration is created and
DescribeConfigurationSettings for this environment returns two
setting descriptions with different DeploymentStatus
values.
- updateEnvironment :: UpdateEnvironment
- data UpdateEnvironment
- ueTemplateName :: Lens' UpdateEnvironment (Maybe Text)
- ueOptionsToRemove :: Lens' UpdateEnvironment [OptionSpecification]
- ueOptionSettings :: Lens' UpdateEnvironment [ConfigurationOptionSetting]
- ueVersionLabel :: Lens' UpdateEnvironment (Maybe Text)
- ueTier :: Lens' UpdateEnvironment (Maybe EnvironmentTier)
- ueEnvironmentName :: Lens' UpdateEnvironment (Maybe Text)
- ueApplicationName :: Lens' UpdateEnvironment (Maybe Text)
- ueSolutionStackName :: Lens' UpdateEnvironment (Maybe Text)
- ueEnvironmentId :: Lens' UpdateEnvironment (Maybe Text)
- ueGroupName :: Lens' UpdateEnvironment (Maybe Text)
- ueDescription :: Lens' UpdateEnvironment (Maybe Text)
- environmentDescription :: EnvironmentDescription
- data EnvironmentDescription
- eStatus :: Lens' EnvironmentDescription (Maybe EnvironmentStatus)
- eCNAME :: Lens' EnvironmentDescription (Maybe Text)
- eTemplateName :: Lens' EnvironmentDescription (Maybe Text)
- eAbortableOperationInProgress :: Lens' EnvironmentDescription (Maybe Bool)
- eEndpointURL :: Lens' EnvironmentDescription (Maybe Text)
- eResources :: Lens' EnvironmentDescription (Maybe EnvironmentResourcesDescription)
- eDateUpdated :: Lens' EnvironmentDescription (Maybe UTCTime)
- eDateCreated :: Lens' EnvironmentDescription (Maybe UTCTime)
- eHealth :: Lens' EnvironmentDescription (Maybe EnvironmentHealth)
- eVersionLabel :: Lens' EnvironmentDescription (Maybe Text)
- eTier :: Lens' EnvironmentDescription (Maybe EnvironmentTier)
- eEnvironmentName :: Lens' EnvironmentDescription (Maybe Text)
- eApplicationName :: Lens' EnvironmentDescription (Maybe Text)
- eSolutionStackName :: Lens' EnvironmentDescription (Maybe Text)
- eEnvironmentId :: Lens' EnvironmentDescription (Maybe Text)
- eHealthStatus :: Lens' EnvironmentDescription (Maybe EnvironmentHealthStatus)
- eEnvironmentLinks :: Lens' EnvironmentDescription [EnvironmentLink]
- eDescription :: Lens' EnvironmentDescription (Maybe Text)
Creating a Request
updateEnvironment :: UpdateEnvironment Source #
Creates a value of UpdateEnvironment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateEnvironment Source #
Request to update an environment.
See: updateEnvironment
smart constructor.
Request Lenses
ueTemplateName :: Lens' UpdateEnvironment (Maybe Text) Source #
If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment. If no such configuration
template is found, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
ueOptionsToRemove :: Lens' UpdateEnvironment [OptionSpecification] Source #
A list of custom user-defined configuration options to remove from the configuration set for this environment.
ueOptionSettings :: Lens' UpdateEnvironment [ConfigurationOptionSetting] Source #
If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.
ueVersionLabel :: Lens' UpdateEnvironment (Maybe Text) Source #
If this parameter is specified, AWS Elastic Beanstalk deploys the named
application version to the environment. If no such application version
is found, returns an InvalidParameterValue
error.
ueTier :: Lens' UpdateEnvironment (Maybe EnvironmentTier) Source #
This specifies the tier to use to update the environment.
Condition: At this time, if you change the tier version, name, or type,
AWS Elastic Beanstalk returns InvalidParameterValue
error.
ueEnvironmentName :: Lens' UpdateEnvironment (Maybe Text) Source #
The name of the environment to update. If no environment with this name
exists, AWS Elastic Beanstalk returns an InvalidParameterValue
error.
Condition: You must specify either this or an EnvironmentId, or both. If
you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
ueApplicationName :: Lens' UpdateEnvironment (Maybe Text) Source #
The name of the application with which the environment is associated.
ueSolutionStackName :: Lens' UpdateEnvironment (Maybe Text) Source #
This specifies the platform version that the environment will run after the environment is updated.
ueEnvironmentId :: Lens' UpdateEnvironment (Maybe Text) Source #
The ID of the environment to update.
If no environment with this ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must specify either this or an EnvironmentName, or both.
If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
ueGroupName :: Lens' UpdateEnvironment (Maybe Text) Source #
The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See Environment Manifest (env.yaml) for details.
ueDescription :: Lens' UpdateEnvironment (Maybe Text) Source #
If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.
Destructuring the Response
environmentDescription :: EnvironmentDescription Source #
Creates a value of EnvironmentDescription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnvironmentDescription Source #
Describes the properties of an environment.
See: environmentDescription
smart constructor.
Response Lenses
eStatus :: Lens' EnvironmentDescription (Maybe EnvironmentStatus) Source #
The current operational status of the environment:
Launching
: Environment is in the process of initial deployment.Updating
: Environment is in the process of updating its configuration settings or application version.Ready
: Environment is available to have an action performed on it, such as update or terminate.Terminating
: Environment is in the shut-down process.Terminated
: Environment is not running.
eCNAME :: Lens' EnvironmentDescription (Maybe Text) Source #
The URL to the CNAME for this environment.
eTemplateName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the configuration template used to originally launch this environment.
eAbortableOperationInProgress :: Lens' EnvironmentDescription (Maybe Bool) Source #
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.
'true:' There is an update in progress.
'false:' There are no updates currently in progress.
eEndpointURL :: Lens' EnvironmentDescription (Maybe Text) Source #
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.
eResources :: Lens' EnvironmentDescription (Maybe EnvironmentResourcesDescription) Source #
The description of the AWS resources used by this environment.
eDateUpdated :: Lens' EnvironmentDescription (Maybe UTCTime) Source #
The last modified date for this environment.
eDateCreated :: Lens' EnvironmentDescription (Maybe UTCTime) Source #
The creation date for this environment.
eHealth :: Lens' EnvironmentDescription (Maybe EnvironmentHealth) Source #
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:
Red
: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.Yellow
: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.Green
: Indicates the environment is healthy and fully functional.Grey
: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during anUpdateEnvironment
orRestartEnvironement
request.
Default: Grey
eVersionLabel :: Lens' EnvironmentDescription (Maybe Text) Source #
The application version deployed in this environment.
eTier :: Lens' EnvironmentDescription (Maybe EnvironmentTier) Source #
Describes the current tier of this environment.
eEnvironmentName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of this environment.
eApplicationName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the application associated with this environment.
eSolutionStackName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the SolutionStack
deployed with this environment.
eEnvironmentId :: Lens' EnvironmentDescription (Maybe Text) Source #
The ID of this environment.
eHealthStatus :: Lens' EnvironmentDescription (Maybe EnvironmentHealthStatus) Source #
Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses.
eEnvironmentLinks :: Lens' EnvironmentDescription [EnvironmentLink] Source #
A list of links to other environments in the same group.
eDescription :: Lens' EnvironmentDescription (Maybe Text) Source #
Describes this environment.