Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data UpdateEnvironment = UpdateEnvironment' {
- templateName :: Maybe Text
- optionsToRemove :: Maybe [OptionSpecification]
- optionSettings :: Maybe [ConfigurationOptionSetting]
- versionLabel :: Maybe Text
- platformArn :: Maybe Text
- tier :: Maybe EnvironmentTier
- environmentName :: Maybe Text
- applicationName :: Maybe Text
- solutionStackName :: Maybe Text
- environmentId :: Maybe Text
- groupName :: Maybe Text
- description :: Maybe Text
- newUpdateEnvironment :: UpdateEnvironment
- updateEnvironment_templateName :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_optionsToRemove :: Lens' UpdateEnvironment (Maybe [OptionSpecification])
- updateEnvironment_optionSettings :: Lens' UpdateEnvironment (Maybe [ConfigurationOptionSetting])
- updateEnvironment_versionLabel :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_platformArn :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_tier :: Lens' UpdateEnvironment (Maybe EnvironmentTier)
- updateEnvironment_environmentName :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_applicationName :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_solutionStackName :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_environmentId :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_groupName :: Lens' UpdateEnvironment (Maybe Text)
- updateEnvironment_description :: Lens' UpdateEnvironment (Maybe Text)
- data EnvironmentDescription = EnvironmentDescription' {
- status :: Maybe EnvironmentStatus
- cname :: Maybe Text
- templateName :: Maybe Text
- abortableOperationInProgress :: Maybe Bool
- endpointURL :: Maybe Text
- resources :: Maybe EnvironmentResourcesDescription
- dateUpdated :: Maybe ISO8601
- dateCreated :: Maybe ISO8601
- health :: Maybe EnvironmentHealth
- versionLabel :: Maybe Text
- operationsRole :: Maybe Text
- platformArn :: Maybe Text
- tier :: Maybe EnvironmentTier
- environmentName :: Maybe Text
- applicationName :: Maybe Text
- environmentArn :: Maybe Text
- solutionStackName :: Maybe Text
- environmentId :: Maybe Text
- healthStatus :: Maybe EnvironmentHealthStatus
- environmentLinks :: Maybe [EnvironmentLink]
- description :: Maybe Text
- newEnvironmentDescription :: EnvironmentDescription
- environmentDescription_status :: Lens' EnvironmentDescription (Maybe EnvironmentStatus)
- environmentDescription_cname :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_templateName :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_abortableOperationInProgress :: Lens' EnvironmentDescription (Maybe Bool)
- environmentDescription_endpointURL :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_resources :: Lens' EnvironmentDescription (Maybe EnvironmentResourcesDescription)
- environmentDescription_dateUpdated :: Lens' EnvironmentDescription (Maybe UTCTime)
- environmentDescription_dateCreated :: Lens' EnvironmentDescription (Maybe UTCTime)
- environmentDescription_health :: Lens' EnvironmentDescription (Maybe EnvironmentHealth)
- environmentDescription_versionLabel :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_operationsRole :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_platformArn :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_tier :: Lens' EnvironmentDescription (Maybe EnvironmentTier)
- environmentDescription_environmentName :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_applicationName :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_environmentArn :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_solutionStackName :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_environmentId :: Lens' EnvironmentDescription (Maybe Text)
- environmentDescription_healthStatus :: Lens' EnvironmentDescription (Maybe EnvironmentHealthStatus)
- environmentDescription_environmentLinks :: Lens' EnvironmentDescription (Maybe [EnvironmentLink])
- environmentDescription_description :: Lens' EnvironmentDescription (Maybe Text)
Creating a Request
data UpdateEnvironment Source #
Request to update an environment.
See: newUpdateEnvironment
smart constructor.
UpdateEnvironment' | |
|
Instances
newUpdateEnvironment :: UpdateEnvironment Source #
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:
$sel:templateName:UpdateEnvironment'
, updateEnvironment_templateName
- 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.
$sel:optionsToRemove:UpdateEnvironment'
, updateEnvironment_optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this environment.
$sel:optionSettings:UpdateEnvironment'
, updateEnvironment_optionSettings
- If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.
$sel:versionLabel:UpdateEnvironment'
, updateEnvironment_versionLabel
- 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.
$sel:platformArn:UpdateEnvironment'
, updateEnvironment_platformArn
- The ARN of the platform, if used.
$sel:tier:UpdateEnvironment'
, updateEnvironment_tier
- 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.
$sel:environmentName:UpdateEnvironment'
, updateEnvironment_environmentName
- 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.
$sel:applicationName:UpdateEnvironment'
, updateEnvironment_applicationName
- The name of the application with which the environment is associated.
$sel:solutionStackName:UpdateEnvironment'
, updateEnvironment_solutionStackName
- This specifies the platform version that the environment will run after
the environment is updated.
$sel:environmentId:UpdateEnvironment'
, updateEnvironment_environmentId
- 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.
$sel:groupName:UpdateEnvironment'
, updateEnvironment_groupName
- 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.
$sel:description:UpdateEnvironment'
, updateEnvironment_description
- If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.
Request Lenses
updateEnvironment_templateName :: 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.
updateEnvironment_optionsToRemove :: Lens' UpdateEnvironment (Maybe [OptionSpecification]) Source #
A list of custom user-defined configuration options to remove from the configuration set for this environment.
updateEnvironment_optionSettings :: Lens' UpdateEnvironment (Maybe [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.
updateEnvironment_versionLabel :: 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.
updateEnvironment_platformArn :: Lens' UpdateEnvironment (Maybe Text) Source #
The ARN of the platform, if used.
updateEnvironment_tier :: 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.
updateEnvironment_environmentName :: 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.
updateEnvironment_applicationName :: Lens' UpdateEnvironment (Maybe Text) Source #
The name of the application with which the environment is associated.
updateEnvironment_solutionStackName :: Lens' UpdateEnvironment (Maybe Text) Source #
This specifies the platform version that the environment will run after the environment is updated.
updateEnvironment_environmentId :: 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.
updateEnvironment_groupName :: 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.
updateEnvironment_description :: Lens' UpdateEnvironment (Maybe Text) Source #
If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.
Destructuring the Response
data EnvironmentDescription Source #
Describes the properties of an environment.
See: newEnvironmentDescription
smart constructor.
EnvironmentDescription' | |
|
Instances
newEnvironmentDescription :: EnvironmentDescription Source #
Create a value of EnvironmentDescription
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:status:EnvironmentDescription'
, environmentDescription_status
- 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.
$sel:cname:EnvironmentDescription'
, environmentDescription_cname
- The URL to the CNAME for this environment.
$sel:templateName:EnvironmentDescription'
, environmentDescription_templateName
- The name of the configuration template used to originally launch this
environment.
$sel:abortableOperationInProgress:EnvironmentDescription'
, environmentDescription_abortableOperationInProgress
- 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.
$sel:endpointURL:EnvironmentDescription'
, environmentDescription_endpointURL
- For load-balanced, autoscaling environments, the URL to the
LoadBalancer. For single-instance environments, the IP address of the
instance.
$sel:resources:EnvironmentDescription'
, environmentDescription_resources
- The description of the AWS resources used by this environment.
$sel:dateUpdated:EnvironmentDescription'
, environmentDescription_dateUpdated
- The last modified date for this environment.
$sel:dateCreated:EnvironmentDescription'
, environmentDescription_dateCreated
- The creation date for this environment.
$sel:health:EnvironmentDescription'
, environmentDescription_health
- 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
orRestartEnvironment
request.
Default: Grey
$sel:versionLabel:EnvironmentDescription'
, environmentDescription_versionLabel
- The application version deployed in this environment.
$sel:operationsRole:EnvironmentDescription'
, environmentDescription_operationsRole
- The Amazon Resource Name (ARN) of the environment's operations role.
For more information, see
Operations roles
in the AWS Elastic Beanstalk Developer Guide.
$sel:platformArn:EnvironmentDescription'
, environmentDescription_platformArn
- The ARN of the platform version.
$sel:tier:EnvironmentDescription'
, environmentDescription_tier
- Describes the current tier of this environment.
$sel:environmentName:EnvironmentDescription'
, environmentDescription_environmentName
- The name of this environment.
$sel:applicationName:EnvironmentDescription'
, environmentDescription_applicationName
- The name of the application associated with this environment.
$sel:environmentArn:EnvironmentDescription'
, environmentDescription_environmentArn
- The environment's Amazon Resource Name (ARN), which can be used in
other API requests that require an ARN.
$sel:solutionStackName:EnvironmentDescription'
, environmentDescription_solutionStackName
- The name of the SolutionStack
deployed with this environment.
$sel:environmentId:EnvironmentDescription'
, environmentDescription_environmentId
- The ID of this environment.
$sel:healthStatus:EnvironmentDescription'
, environmentDescription_healthStatus
- Returns the health status of the application running in your
environment. For more information, see
Health Colors and Statuses.
$sel:environmentLinks:EnvironmentDescription'
, environmentDescription_environmentLinks
- A list of links to other environments in the same group.
$sel:description:EnvironmentDescription'
, environmentDescription_description
- Describes this environment.
Response Lenses
environmentDescription_status :: 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.
environmentDescription_cname :: Lens' EnvironmentDescription (Maybe Text) Source #
The URL to the CNAME for this environment.
environmentDescription_templateName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the configuration template used to originally launch this environment.
environmentDescription_abortableOperationInProgress :: 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.
environmentDescription_endpointURL :: 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.
environmentDescription_resources :: Lens' EnvironmentDescription (Maybe EnvironmentResourcesDescription) Source #
The description of the AWS resources used by this environment.
environmentDescription_dateUpdated :: Lens' EnvironmentDescription (Maybe UTCTime) Source #
The last modified date for this environment.
environmentDescription_dateCreated :: Lens' EnvironmentDescription (Maybe UTCTime) Source #
The creation date for this environment.
environmentDescription_health :: 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
orRestartEnvironment
request.
Default: Grey
environmentDescription_versionLabel :: Lens' EnvironmentDescription (Maybe Text) Source #
The application version deployed in this environment.
environmentDescription_operationsRole :: Lens' EnvironmentDescription (Maybe Text) Source #
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.
environmentDescription_platformArn :: Lens' EnvironmentDescription (Maybe Text) Source #
The ARN of the platform version.
environmentDescription_tier :: Lens' EnvironmentDescription (Maybe EnvironmentTier) Source #
Describes the current tier of this environment.
environmentDescription_environmentName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of this environment.
environmentDescription_applicationName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the application associated with this environment.
environmentDescription_environmentArn :: Lens' EnvironmentDescription (Maybe Text) Source #
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
environmentDescription_solutionStackName :: Lens' EnvironmentDescription (Maybe Text) Source #
The name of the SolutionStack
deployed with this environment.
environmentDescription_environmentId :: Lens' EnvironmentDescription (Maybe Text) Source #
The ID of this environment.
environmentDescription_healthStatus :: Lens' EnvironmentDescription (Maybe EnvironmentHealthStatus) Source #
Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses.
environmentDescription_environmentLinks :: Lens' EnvironmentDescription (Maybe [EnvironmentLink]) Source #
A list of links to other environments in the same group.
environmentDescription_description :: Lens' EnvironmentDescription (Maybe Text) Source #
Describes this environment.