{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AWSHealth.DescribeEntityAggregates
-- 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)
--
-- Returns the number of entities that are affected by each of the
-- specified events. If no events are specified, the counts of all affected
-- entities are returned.
module Amazonka.AWSHealth.DescribeEntityAggregates
  ( -- * Creating a Request
    DescribeEntityAggregates (..),
    newDescribeEntityAggregates,

    -- * Request Lenses
    describeEntityAggregates_eventArns,

    -- * Destructuring the Response
    DescribeEntityAggregatesResponse (..),
    newDescribeEntityAggregatesResponse,

    -- * Response Lenses
    describeEntityAggregatesResponse_entityAggregates,
    describeEntityAggregatesResponse_httpStatus,
  )
where

import Amazonka.AWSHealth.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeEntityAggregates' smart constructor.
data DescribeEntityAggregates = DescribeEntityAggregates'
  { -- | A list of event ARNs (unique identifiers). For example:
    -- @\"arn:aws:health:us-east-1::event\/EC2\/EC2_INSTANCE_RETIREMENT_SCHEDULED\/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456\", \"arn:aws:health:us-west-1::event\/EBS\/AWS_EBS_LOST_VOLUME\/AWS_EBS_LOST_VOLUME_CHI789_JKL101\"@
    DescribeEntityAggregates -> Maybe (NonEmpty Text)
eventArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text)
  }
  deriving (DescribeEntityAggregates -> DescribeEntityAggregates -> Bool
(DescribeEntityAggregates -> DescribeEntityAggregates -> Bool)
-> (DescribeEntityAggregates -> DescribeEntityAggregates -> Bool)
-> Eq DescribeEntityAggregates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEntityAggregates -> DescribeEntityAggregates -> Bool
$c/= :: DescribeEntityAggregates -> DescribeEntityAggregates -> Bool
== :: DescribeEntityAggregates -> DescribeEntityAggregates -> Bool
$c== :: DescribeEntityAggregates -> DescribeEntityAggregates -> Bool
Prelude.Eq, ReadPrec [DescribeEntityAggregates]
ReadPrec DescribeEntityAggregates
Int -> ReadS DescribeEntityAggregates
ReadS [DescribeEntityAggregates]
(Int -> ReadS DescribeEntityAggregates)
-> ReadS [DescribeEntityAggregates]
-> ReadPrec DescribeEntityAggregates
-> ReadPrec [DescribeEntityAggregates]
-> Read DescribeEntityAggregates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEntityAggregates]
$creadListPrec :: ReadPrec [DescribeEntityAggregates]
readPrec :: ReadPrec DescribeEntityAggregates
$creadPrec :: ReadPrec DescribeEntityAggregates
readList :: ReadS [DescribeEntityAggregates]
$creadList :: ReadS [DescribeEntityAggregates]
readsPrec :: Int -> ReadS DescribeEntityAggregates
$creadsPrec :: Int -> ReadS DescribeEntityAggregates
Prelude.Read, Int -> DescribeEntityAggregates -> ShowS
[DescribeEntityAggregates] -> ShowS
DescribeEntityAggregates -> String
(Int -> DescribeEntityAggregates -> ShowS)
-> (DescribeEntityAggregates -> String)
-> ([DescribeEntityAggregates] -> ShowS)
-> Show DescribeEntityAggregates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEntityAggregates] -> ShowS
$cshowList :: [DescribeEntityAggregates] -> ShowS
show :: DescribeEntityAggregates -> String
$cshow :: DescribeEntityAggregates -> String
showsPrec :: Int -> DescribeEntityAggregates -> ShowS
$cshowsPrec :: Int -> DescribeEntityAggregates -> ShowS
Prelude.Show, (forall x.
 DescribeEntityAggregates -> Rep DescribeEntityAggregates x)
-> (forall x.
    Rep DescribeEntityAggregates x -> DescribeEntityAggregates)
-> Generic DescribeEntityAggregates
forall x.
Rep DescribeEntityAggregates x -> DescribeEntityAggregates
forall x.
DescribeEntityAggregates -> Rep DescribeEntityAggregates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEntityAggregates x -> DescribeEntityAggregates
$cfrom :: forall x.
DescribeEntityAggregates -> Rep DescribeEntityAggregates x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEntityAggregates' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'eventArns', 'describeEntityAggregates_eventArns' - A list of event ARNs (unique identifiers). For example:
-- @\"arn:aws:health:us-east-1::event\/EC2\/EC2_INSTANCE_RETIREMENT_SCHEDULED\/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456\", \"arn:aws:health:us-west-1::event\/EBS\/AWS_EBS_LOST_VOLUME\/AWS_EBS_LOST_VOLUME_CHI789_JKL101\"@
newDescribeEntityAggregates ::
  DescribeEntityAggregates
newDescribeEntityAggregates :: DescribeEntityAggregates
newDescribeEntityAggregates =
  DescribeEntityAggregates' :: Maybe (NonEmpty Text) -> DescribeEntityAggregates
DescribeEntityAggregates'
    { $sel:eventArns:DescribeEntityAggregates' :: Maybe (NonEmpty Text)
eventArns =
        Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | A list of event ARNs (unique identifiers). For example:
-- @\"arn:aws:health:us-east-1::event\/EC2\/EC2_INSTANCE_RETIREMENT_SCHEDULED\/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456\", \"arn:aws:health:us-west-1::event\/EBS\/AWS_EBS_LOST_VOLUME\/AWS_EBS_LOST_VOLUME_CHI789_JKL101\"@
describeEntityAggregates_eventArns :: Lens.Lens' DescribeEntityAggregates (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeEntityAggregates_eventArns :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeEntityAggregates -> f DescribeEntityAggregates
describeEntityAggregates_eventArns = (DescribeEntityAggregates -> Maybe (NonEmpty Text))
-> (DescribeEntityAggregates
    -> Maybe (NonEmpty Text) -> DescribeEntityAggregates)
-> Lens
     DescribeEntityAggregates
     DescribeEntityAggregates
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEntityAggregates' {Maybe (NonEmpty Text)
eventArns :: Maybe (NonEmpty Text)
$sel:eventArns:DescribeEntityAggregates' :: DescribeEntityAggregates -> Maybe (NonEmpty Text)
eventArns} -> Maybe (NonEmpty Text)
eventArns) (\s :: DescribeEntityAggregates
s@DescribeEntityAggregates' {} Maybe (NonEmpty Text)
a -> DescribeEntityAggregates
s {$sel:eventArns:DescribeEntityAggregates' :: Maybe (NonEmpty Text)
eventArns = Maybe (NonEmpty Text)
a} :: DescribeEntityAggregates) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> DescribeEntityAggregates -> f DescribeEntityAggregates)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeEntityAggregates
-> f DescribeEntityAggregates
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest DescribeEntityAggregates where
  type
    AWSResponse DescribeEntityAggregates =
      DescribeEntityAggregatesResponse
  request :: DescribeEntityAggregates -> Request DescribeEntityAggregates
request = Service
-> DescribeEntityAggregates -> Request DescribeEntityAggregates
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeEntityAggregates
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEntityAggregates)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeEntityAggregates))
-> Logger
-> Service
-> Proxy DescribeEntityAggregates
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEntityAggregates)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [EntityAggregate] -> Int -> DescribeEntityAggregatesResponse
DescribeEntityAggregatesResponse'
            (Maybe [EntityAggregate]
 -> Int -> DescribeEntityAggregatesResponse)
-> Either String (Maybe [EntityAggregate])
-> Either String (Int -> DescribeEntityAggregatesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [EntityAggregate]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"entityAggregates"
                            Either String (Maybe (Maybe [EntityAggregate]))
-> Maybe [EntityAggregate]
-> Either String (Maybe [EntityAggregate])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EntityAggregate]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> DescribeEntityAggregatesResponse)
-> Either String Int
-> Either String DescribeEntityAggregatesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeEntityAggregates

instance Prelude.NFData DescribeEntityAggregates

instance Core.ToHeaders DescribeEntityAggregates where
  toHeaders :: DescribeEntityAggregates -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeEntityAggregates -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSHealth_20160804.DescribeEntityAggregates" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DescribeEntityAggregates where
  toJSON :: DescribeEntityAggregates -> Value
toJSON DescribeEntityAggregates' {Maybe (NonEmpty Text)
eventArns :: Maybe (NonEmpty Text)
$sel:eventArns:DescribeEntityAggregates' :: DescribeEntityAggregates -> Maybe (NonEmpty Text)
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"eventArns" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
eventArns]
      )

instance Core.ToPath DescribeEntityAggregates where
  toPath :: DescribeEntityAggregates -> ByteString
toPath = ByteString -> DescribeEntityAggregates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeEntityAggregates where
  toQuery :: DescribeEntityAggregates -> QueryString
toQuery = QueryString -> DescribeEntityAggregates -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeEntityAggregatesResponse' smart constructor.
data DescribeEntityAggregatesResponse = DescribeEntityAggregatesResponse'
  { -- | The number of entities that are affected by each of the specified
    -- events.
    DescribeEntityAggregatesResponse -> Maybe [EntityAggregate]
entityAggregates :: Prelude.Maybe [EntityAggregate],
    -- | The response's http status code.
    DescribeEntityAggregatesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeEntityAggregatesResponse
-> DescribeEntityAggregatesResponse -> Bool
(DescribeEntityAggregatesResponse
 -> DescribeEntityAggregatesResponse -> Bool)
-> (DescribeEntityAggregatesResponse
    -> DescribeEntityAggregatesResponse -> Bool)
-> Eq DescribeEntityAggregatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEntityAggregatesResponse
-> DescribeEntityAggregatesResponse -> Bool
$c/= :: DescribeEntityAggregatesResponse
-> DescribeEntityAggregatesResponse -> Bool
== :: DescribeEntityAggregatesResponse
-> DescribeEntityAggregatesResponse -> Bool
$c== :: DescribeEntityAggregatesResponse
-> DescribeEntityAggregatesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEntityAggregatesResponse]
ReadPrec DescribeEntityAggregatesResponse
Int -> ReadS DescribeEntityAggregatesResponse
ReadS [DescribeEntityAggregatesResponse]
(Int -> ReadS DescribeEntityAggregatesResponse)
-> ReadS [DescribeEntityAggregatesResponse]
-> ReadPrec DescribeEntityAggregatesResponse
-> ReadPrec [DescribeEntityAggregatesResponse]
-> Read DescribeEntityAggregatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEntityAggregatesResponse]
$creadListPrec :: ReadPrec [DescribeEntityAggregatesResponse]
readPrec :: ReadPrec DescribeEntityAggregatesResponse
$creadPrec :: ReadPrec DescribeEntityAggregatesResponse
readList :: ReadS [DescribeEntityAggregatesResponse]
$creadList :: ReadS [DescribeEntityAggregatesResponse]
readsPrec :: Int -> ReadS DescribeEntityAggregatesResponse
$creadsPrec :: Int -> ReadS DescribeEntityAggregatesResponse
Prelude.Read, Int -> DescribeEntityAggregatesResponse -> ShowS
[DescribeEntityAggregatesResponse] -> ShowS
DescribeEntityAggregatesResponse -> String
(Int -> DescribeEntityAggregatesResponse -> ShowS)
-> (DescribeEntityAggregatesResponse -> String)
-> ([DescribeEntityAggregatesResponse] -> ShowS)
-> Show DescribeEntityAggregatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEntityAggregatesResponse] -> ShowS
$cshowList :: [DescribeEntityAggregatesResponse] -> ShowS
show :: DescribeEntityAggregatesResponse -> String
$cshow :: DescribeEntityAggregatesResponse -> String
showsPrec :: Int -> DescribeEntityAggregatesResponse -> ShowS
$cshowsPrec :: Int -> DescribeEntityAggregatesResponse -> ShowS
Prelude.Show, (forall x.
 DescribeEntityAggregatesResponse
 -> Rep DescribeEntityAggregatesResponse x)
-> (forall x.
    Rep DescribeEntityAggregatesResponse x
    -> DescribeEntityAggregatesResponse)
-> Generic DescribeEntityAggregatesResponse
forall x.
Rep DescribeEntityAggregatesResponse x
-> DescribeEntityAggregatesResponse
forall x.
DescribeEntityAggregatesResponse
-> Rep DescribeEntityAggregatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEntityAggregatesResponse x
-> DescribeEntityAggregatesResponse
$cfrom :: forall x.
DescribeEntityAggregatesResponse
-> Rep DescribeEntityAggregatesResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEntityAggregatesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'entityAggregates', 'describeEntityAggregatesResponse_entityAggregates' - The number of entities that are affected by each of the specified
-- events.
--
-- 'httpStatus', 'describeEntityAggregatesResponse_httpStatus' - The response's http status code.
newDescribeEntityAggregatesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeEntityAggregatesResponse
newDescribeEntityAggregatesResponse :: Int -> DescribeEntityAggregatesResponse
newDescribeEntityAggregatesResponse Int
pHttpStatus_ =
  DescribeEntityAggregatesResponse' :: Maybe [EntityAggregate] -> Int -> DescribeEntityAggregatesResponse
DescribeEntityAggregatesResponse'
    { $sel:entityAggregates:DescribeEntityAggregatesResponse' :: Maybe [EntityAggregate]
entityAggregates =
        Maybe [EntityAggregate]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeEntityAggregatesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The number of entities that are affected by each of the specified
-- events.
describeEntityAggregatesResponse_entityAggregates :: Lens.Lens' DescribeEntityAggregatesResponse (Prelude.Maybe [EntityAggregate])
describeEntityAggregatesResponse_entityAggregates :: (Maybe [EntityAggregate] -> f (Maybe [EntityAggregate]))
-> DescribeEntityAggregatesResponse
-> f DescribeEntityAggregatesResponse
describeEntityAggregatesResponse_entityAggregates = (DescribeEntityAggregatesResponse -> Maybe [EntityAggregate])
-> (DescribeEntityAggregatesResponse
    -> Maybe [EntityAggregate] -> DescribeEntityAggregatesResponse)
-> Lens
     DescribeEntityAggregatesResponse
     DescribeEntityAggregatesResponse
     (Maybe [EntityAggregate])
     (Maybe [EntityAggregate])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEntityAggregatesResponse' {Maybe [EntityAggregate]
entityAggregates :: Maybe [EntityAggregate]
$sel:entityAggregates:DescribeEntityAggregatesResponse' :: DescribeEntityAggregatesResponse -> Maybe [EntityAggregate]
entityAggregates} -> Maybe [EntityAggregate]
entityAggregates) (\s :: DescribeEntityAggregatesResponse
s@DescribeEntityAggregatesResponse' {} Maybe [EntityAggregate]
a -> DescribeEntityAggregatesResponse
s {$sel:entityAggregates:DescribeEntityAggregatesResponse' :: Maybe [EntityAggregate]
entityAggregates = Maybe [EntityAggregate]
a} :: DescribeEntityAggregatesResponse) ((Maybe [EntityAggregate] -> f (Maybe [EntityAggregate]))
 -> DescribeEntityAggregatesResponse
 -> f DescribeEntityAggregatesResponse)
-> ((Maybe [EntityAggregate] -> f (Maybe [EntityAggregate]))
    -> Maybe [EntityAggregate] -> f (Maybe [EntityAggregate]))
-> (Maybe [EntityAggregate] -> f (Maybe [EntityAggregate]))
-> DescribeEntityAggregatesResponse
-> f DescribeEntityAggregatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EntityAggregate]
  [EntityAggregate]
  [EntityAggregate]
  [EntityAggregate]
-> Iso
     (Maybe [EntityAggregate])
     (Maybe [EntityAggregate])
     (Maybe [EntityAggregate])
     (Maybe [EntityAggregate])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [EntityAggregate]
  [EntityAggregate]
  [EntityAggregate]
  [EntityAggregate]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeEntityAggregatesResponse_httpStatus :: Lens.Lens' DescribeEntityAggregatesResponse Prelude.Int
describeEntityAggregatesResponse_httpStatus :: (Int -> f Int)
-> DescribeEntityAggregatesResponse
-> f DescribeEntityAggregatesResponse
describeEntityAggregatesResponse_httpStatus = (DescribeEntityAggregatesResponse -> Int)
-> (DescribeEntityAggregatesResponse
    -> Int -> DescribeEntityAggregatesResponse)
-> Lens
     DescribeEntityAggregatesResponse
     DescribeEntityAggregatesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEntityAggregatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEntityAggregatesResponse' :: DescribeEntityAggregatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEntityAggregatesResponse
s@DescribeEntityAggregatesResponse' {} Int
a -> DescribeEntityAggregatesResponse
s {$sel:httpStatus:DescribeEntityAggregatesResponse' :: Int
httpStatus = Int
a} :: DescribeEntityAggregatesResponse)

instance
  Prelude.NFData
    DescribeEntityAggregatesResponse