amazonka-route53-autonaming-1.6.0: Amazon Route 53 Auto Naming SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53AutoNaming.GetInstancesHealthStatus

Contents

Description

Gets the current health status (Healthy , Unhealthy , or Unknown ) of one or more instances that are associated with a specified service.

Synopsis

Creating a Request

getInstancesHealthStatus Source #

Creates a value of GetInstancesHealthStatus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gihsNextToken - For the first GetInstancesHealthStatus request, omit this value. If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.
  • gihsInstances - An array that contains the IDs of all the instances that you want to get the health status for. If you omit Instances , Amazon Route 53 returns the health status for all the instances that are associated with the specified service.
  • gihsMaxResults - The maximum number of instances that you want Route 53 to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults , Route 53 returns up to 100 instances.
  • gihsServiceId - The ID of the service that the instance is associated with.

data GetInstancesHealthStatus Source #

See: getInstancesHealthStatus smart constructor.

Instances

Eq GetInstancesHealthStatus Source # 
Data GetInstancesHealthStatus Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstancesHealthStatus -> c GetInstancesHealthStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstancesHealthStatus #

toConstr :: GetInstancesHealthStatus -> Constr #

dataTypeOf :: GetInstancesHealthStatus -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetInstancesHealthStatus) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstancesHealthStatus) #

gmapT :: (forall b. Data b => b -> b) -> GetInstancesHealthStatus -> GetInstancesHealthStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancesHealthStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancesHealthStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstancesHealthStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstancesHealthStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatus -> m GetInstancesHealthStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatus -> m GetInstancesHealthStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatus -> m GetInstancesHealthStatus #

Read GetInstancesHealthStatus Source # 
Show GetInstancesHealthStatus Source # 
Generic GetInstancesHealthStatus Source # 
Hashable GetInstancesHealthStatus Source # 
ToJSON GetInstancesHealthStatus Source # 
NFData GetInstancesHealthStatus Source # 
AWSRequest GetInstancesHealthStatus Source # 
ToHeaders GetInstancesHealthStatus Source # 
ToPath GetInstancesHealthStatus Source # 
ToQuery GetInstancesHealthStatus Source # 
type Rep GetInstancesHealthStatus Source # 
type Rep GetInstancesHealthStatus = D1 * (MetaData "GetInstancesHealthStatus" "Network.AWS.Route53AutoNaming.GetInstancesHealthStatus" "amazonka-route53-autonaming-1.6.0-4f8jSBk5IlzKqnGwUJVunt" False) (C1 * (MetaCons "GetInstancesHealthStatus'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gihsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gihsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (List1 Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gihsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_gihsServiceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs GetInstancesHealthStatus Source # 

Request Lenses

gihsNextToken :: Lens' GetInstancesHealthStatus (Maybe Text) Source #

For the first GetInstancesHealthStatus request, omit this value. If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

gihsInstances :: Lens' GetInstancesHealthStatus (Maybe (NonEmpty Text)) Source #

An array that contains the IDs of all the instances that you want to get the health status for. If you omit Instances , Amazon Route 53 returns the health status for all the instances that are associated with the specified service.

gihsMaxResults :: Lens' GetInstancesHealthStatus (Maybe Natural) Source #

The maximum number of instances that you want Route 53 to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults , Route 53 returns up to 100 instances.

gihsServiceId :: Lens' GetInstancesHealthStatus Text Source #

The ID of the service that the instance is associated with.

Destructuring the Response

getInstancesHealthStatusResponse Source #

Creates a value of GetInstancesHealthStatusResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gihsrsStatus - A complex type that contains the IDs and the health status of the instances that you specified in the GetInstancesHealthStatus request.
  • gihsrsNextToken - If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.
  • gihsrsResponseStatus - -- | The response status code.

data GetInstancesHealthStatusResponse Source #

See: getInstancesHealthStatusResponse smart constructor.

Instances

Eq GetInstancesHealthStatusResponse Source # 
Data GetInstancesHealthStatusResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstancesHealthStatusResponse -> c GetInstancesHealthStatusResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstancesHealthStatusResponse #

toConstr :: GetInstancesHealthStatusResponse -> Constr #

dataTypeOf :: GetInstancesHealthStatusResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetInstancesHealthStatusResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstancesHealthStatusResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetInstancesHealthStatusResponse -> GetInstancesHealthStatusResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancesHealthStatusResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancesHealthStatusResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstancesHealthStatusResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstancesHealthStatusResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatusResponse -> m GetInstancesHealthStatusResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatusResponse -> m GetInstancesHealthStatusResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancesHealthStatusResponse -> m GetInstancesHealthStatusResponse #

Read GetInstancesHealthStatusResponse Source # 
Show GetInstancesHealthStatusResponse Source # 
Generic GetInstancesHealthStatusResponse Source # 
NFData GetInstancesHealthStatusResponse Source # 
type Rep GetInstancesHealthStatusResponse Source # 
type Rep GetInstancesHealthStatusResponse = D1 * (MetaData "GetInstancesHealthStatusResponse" "Network.AWS.Route53AutoNaming.GetInstancesHealthStatus" "amazonka-route53-autonaming-1.6.0-4f8jSBk5IlzKqnGwUJVunt" False) (C1 * (MetaCons "GetInstancesHealthStatusResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gihsrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text HealthStatus)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gihsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gihsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gihsrsStatus :: Lens' GetInstancesHealthStatusResponse (HashMap Text HealthStatus) Source #

A complex type that contains the IDs and the health status of the instances that you specified in the GetInstancesHealthStatus request.

gihsrsNextToken :: Lens' GetInstancesHealthStatusResponse (Maybe Text) Source #

If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.