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 |
Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.
Synopsis
- data DescribeEnvironmentHealth = DescribeEnvironmentHealth' {}
- newDescribeEnvironmentHealth :: DescribeEnvironmentHealth
- describeEnvironmentHealth_environmentName :: Lens' DescribeEnvironmentHealth (Maybe Text)
- describeEnvironmentHealth_attributeNames :: Lens' DescribeEnvironmentHealth (Maybe [EnvironmentHealthAttribute])
- describeEnvironmentHealth_environmentId :: Lens' DescribeEnvironmentHealth (Maybe Text)
- data DescribeEnvironmentHealthResponse = DescribeEnvironmentHealthResponse' {}
- newDescribeEnvironmentHealthResponse :: Int -> DescribeEnvironmentHealthResponse
- describeEnvironmentHealthResponse_status :: Lens' DescribeEnvironmentHealthResponse (Maybe EnvironmentHealth)
- describeEnvironmentHealthResponse_causes :: Lens' DescribeEnvironmentHealthResponse (Maybe [Text])
- describeEnvironmentHealthResponse_applicationMetrics :: Lens' DescribeEnvironmentHealthResponse (Maybe ApplicationMetrics)
- describeEnvironmentHealthResponse_color :: Lens' DescribeEnvironmentHealthResponse (Maybe Text)
- describeEnvironmentHealthResponse_environmentName :: Lens' DescribeEnvironmentHealthResponse (Maybe Text)
- describeEnvironmentHealthResponse_healthStatus :: Lens' DescribeEnvironmentHealthResponse (Maybe Text)
- describeEnvironmentHealthResponse_instancesHealth :: Lens' DescribeEnvironmentHealthResponse (Maybe InstanceHealthSummary)
- describeEnvironmentHealthResponse_refreshedAt :: Lens' DescribeEnvironmentHealthResponse (Maybe UTCTime)
- describeEnvironmentHealthResponse_httpStatus :: Lens' DescribeEnvironmentHealthResponse Int
Creating a Request
data DescribeEnvironmentHealth Source #
See the example below to learn how to create a request body.
See: newDescribeEnvironmentHealth
smart constructor.
DescribeEnvironmentHealth' | |
|
Instances
newDescribeEnvironmentHealth :: DescribeEnvironmentHealth Source #
Create a value of DescribeEnvironmentHealth
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:environmentName:DescribeEnvironmentHealth'
, describeEnvironmentHealth_environmentName
- Specify the environment by name.
You must specify either this or an EnvironmentName, or both.
$sel:attributeNames:DescribeEnvironmentHealth'
, describeEnvironmentHealth_attributeNames
- Specify the response elements to return. To retrieve all attributes, set
to All
. If no attribute names are specified, returns the name of the
environment.
$sel:environmentId:DescribeEnvironmentHealth'
, describeEnvironmentHealth_environmentId
- Specify the environment by ID.
You must specify either this or an EnvironmentName, or both.
Request Lenses
describeEnvironmentHealth_environmentName :: Lens' DescribeEnvironmentHealth (Maybe Text) Source #
Specify the environment by name.
You must specify either this or an EnvironmentName, or both.
describeEnvironmentHealth_attributeNames :: Lens' DescribeEnvironmentHealth (Maybe [EnvironmentHealthAttribute]) Source #
Specify the response elements to return. To retrieve all attributes, set
to All
. If no attribute names are specified, returns the name of the
environment.
describeEnvironmentHealth_environmentId :: Lens' DescribeEnvironmentHealth (Maybe Text) Source #
Specify the environment by ID.
You must specify either this or an EnvironmentName, or both.
Destructuring the Response
data DescribeEnvironmentHealthResponse Source #
Health details for an AWS Elastic Beanstalk environment.
See: newDescribeEnvironmentHealthResponse
smart constructor.
DescribeEnvironmentHealthResponse' | |
|
Instances
newDescribeEnvironmentHealthResponse Source #
Create a value of DescribeEnvironmentHealthResponse
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:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_status
- The environment's operational status. Ready
, Launching
, Updating
,
Terminating
, or Terminated
.
$sel:causes:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_causes
- Descriptions of the data that contributed to the environment's current
health status.
$sel:applicationMetrics:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_applicationMetrics
- Application request metrics for the environment.
$sel:color:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_color
- The
health color
of the environment.
$sel:environmentName:DescribeEnvironmentHealth'
, describeEnvironmentHealthResponse_environmentName
- The environment's name.
$sel:healthStatus:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_healthStatus
- The
health status
of the environment. For example, Ok
.
$sel:instancesHealth:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_instancesHealth
- Summary health information for the instances in the environment.
$sel:refreshedAt:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_refreshedAt
- The date and time that the health information was retrieved.
$sel:httpStatus:DescribeEnvironmentHealthResponse'
, describeEnvironmentHealthResponse_httpStatus
- The response's http status code.
Response Lenses
describeEnvironmentHealthResponse_status :: Lens' DescribeEnvironmentHealthResponse (Maybe EnvironmentHealth) Source #
The environment's operational status. Ready
, Launching
, Updating
,
Terminating
, or Terminated
.
describeEnvironmentHealthResponse_causes :: Lens' DescribeEnvironmentHealthResponse (Maybe [Text]) Source #
Descriptions of the data that contributed to the environment's current health status.
describeEnvironmentHealthResponse_applicationMetrics :: Lens' DescribeEnvironmentHealthResponse (Maybe ApplicationMetrics) Source #
Application request metrics for the environment.
describeEnvironmentHealthResponse_color :: Lens' DescribeEnvironmentHealthResponse (Maybe Text) Source #
The health color of the environment.
describeEnvironmentHealthResponse_environmentName :: Lens' DescribeEnvironmentHealthResponse (Maybe Text) Source #
The environment's name.
describeEnvironmentHealthResponse_healthStatus :: Lens' DescribeEnvironmentHealthResponse (Maybe Text) Source #
The
health status
of the environment. For example, Ok
.
describeEnvironmentHealthResponse_instancesHealth :: Lens' DescribeEnvironmentHealthResponse (Maybe InstanceHealthSummary) Source #
Summary health information for the instances in the environment.
describeEnvironmentHealthResponse_refreshedAt :: Lens' DescribeEnvironmentHealthResponse (Maybe UTCTime) Source #
The date and time that the health information was retrieved.
describeEnvironmentHealthResponse_httpStatus :: Lens' DescribeEnvironmentHealthResponse Int Source #
The response's http status code.