{-# 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.IoT.DescribeEventConfigurations
-- 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)
--
-- Describes event configurations.
--
-- Requires permission to access the
-- <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions DescribeEventConfigurations>
-- action.
module Amazonka.IoT.DescribeEventConfigurations
  ( -- * Creating a Request
    DescribeEventConfigurations (..),
    newDescribeEventConfigurations,

    -- * Destructuring the Response
    DescribeEventConfigurationsResponse (..),
    newDescribeEventConfigurationsResponse,

    -- * Response Lenses
    describeEventConfigurationsResponse_lastModifiedDate,
    describeEventConfigurationsResponse_eventConfigurations,
    describeEventConfigurationsResponse_creationDate,
    describeEventConfigurationsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
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:/ 'newDescribeEventConfigurations' smart constructor.
data DescribeEventConfigurations = DescribeEventConfigurations'
  {
  }
  deriving (DescribeEventConfigurations -> DescribeEventConfigurations -> Bool
(DescribeEventConfigurations
 -> DescribeEventConfigurations -> Bool)
-> (DescribeEventConfigurations
    -> DescribeEventConfigurations -> Bool)
-> Eq DescribeEventConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEventConfigurations -> DescribeEventConfigurations -> Bool
$c/= :: DescribeEventConfigurations -> DescribeEventConfigurations -> Bool
== :: DescribeEventConfigurations -> DescribeEventConfigurations -> Bool
$c== :: DescribeEventConfigurations -> DescribeEventConfigurations -> Bool
Prelude.Eq, ReadPrec [DescribeEventConfigurations]
ReadPrec DescribeEventConfigurations
Int -> ReadS DescribeEventConfigurations
ReadS [DescribeEventConfigurations]
(Int -> ReadS DescribeEventConfigurations)
-> ReadS [DescribeEventConfigurations]
-> ReadPrec DescribeEventConfigurations
-> ReadPrec [DescribeEventConfigurations]
-> Read DescribeEventConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEventConfigurations]
$creadListPrec :: ReadPrec [DescribeEventConfigurations]
readPrec :: ReadPrec DescribeEventConfigurations
$creadPrec :: ReadPrec DescribeEventConfigurations
readList :: ReadS [DescribeEventConfigurations]
$creadList :: ReadS [DescribeEventConfigurations]
readsPrec :: Int -> ReadS DescribeEventConfigurations
$creadsPrec :: Int -> ReadS DescribeEventConfigurations
Prelude.Read, Int -> DescribeEventConfigurations -> ShowS
[DescribeEventConfigurations] -> ShowS
DescribeEventConfigurations -> String
(Int -> DescribeEventConfigurations -> ShowS)
-> (DescribeEventConfigurations -> String)
-> ([DescribeEventConfigurations] -> ShowS)
-> Show DescribeEventConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEventConfigurations] -> ShowS
$cshowList :: [DescribeEventConfigurations] -> ShowS
show :: DescribeEventConfigurations -> String
$cshow :: DescribeEventConfigurations -> String
showsPrec :: Int -> DescribeEventConfigurations -> ShowS
$cshowsPrec :: Int -> DescribeEventConfigurations -> ShowS
Prelude.Show, (forall x.
 DescribeEventConfigurations -> Rep DescribeEventConfigurations x)
-> (forall x.
    Rep DescribeEventConfigurations x -> DescribeEventConfigurations)
-> Generic DescribeEventConfigurations
forall x.
Rep DescribeEventConfigurations x -> DescribeEventConfigurations
forall x.
DescribeEventConfigurations -> Rep DescribeEventConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEventConfigurations x -> DescribeEventConfigurations
$cfrom :: forall x.
DescribeEventConfigurations -> Rep DescribeEventConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEventConfigurations' 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.
newDescribeEventConfigurations ::
  DescribeEventConfigurations
newDescribeEventConfigurations :: DescribeEventConfigurations
newDescribeEventConfigurations =
  DescribeEventConfigurations
DescribeEventConfigurations'

instance Core.AWSRequest DescribeEventConfigurations where
  type
    AWSResponse DescribeEventConfigurations =
      DescribeEventConfigurationsResponse
  request :: DescribeEventConfigurations -> Request DescribeEventConfigurations
request = Service
-> DescribeEventConfigurations
-> Request DescribeEventConfigurations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeEventConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEventConfigurations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeEventConfigurations))
-> Logger
-> Service
-> Proxy DescribeEventConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEventConfigurations)))
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 POSIX
-> Maybe (HashMap EventType Configuration)
-> Maybe POSIX
-> Int
-> DescribeEventConfigurationsResponse
DescribeEventConfigurationsResponse'
            (Maybe POSIX
 -> Maybe (HashMap EventType Configuration)
 -> Maybe POSIX
 -> Int
 -> DescribeEventConfigurationsResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe (HashMap EventType Configuration)
      -> Maybe POSIX -> Int -> DescribeEventConfigurationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Key -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"lastModifiedDate")
            Either
  String
  (Maybe (HashMap EventType Configuration)
   -> Maybe POSIX -> Int -> DescribeEventConfigurationsResponse)
-> Either String (Maybe (HashMap EventType Configuration))
-> Either
     String (Maybe POSIX -> Int -> DescribeEventConfigurationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Key
-> Either String (Maybe (Maybe (HashMap EventType Configuration)))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"eventConfigurations"
                            Either String (Maybe (Maybe (HashMap EventType Configuration)))
-> Maybe (HashMap EventType Configuration)
-> Either String (Maybe (HashMap EventType Configuration))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap EventType Configuration)
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe POSIX -> Int -> DescribeEventConfigurationsResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> DescribeEventConfigurationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"creationDate")
            Either String (Int -> DescribeEventConfigurationsResponse)
-> Either String Int
-> Either String DescribeEventConfigurationsResponse
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 DescribeEventConfigurations

instance Prelude.NFData DescribeEventConfigurations

instance Core.ToHeaders DescribeEventConfigurations where
  toHeaders :: DescribeEventConfigurations -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeEventConfigurations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

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

-- | /See:/ 'newDescribeEventConfigurationsResponse' smart constructor.
data DescribeEventConfigurationsResponse = DescribeEventConfigurationsResponse'
  { -- | The date the event configurations were last modified.
    DescribeEventConfigurationsResponse -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Core.POSIX,
    -- | The event configurations.
    DescribeEventConfigurationsResponse
-> Maybe (HashMap EventType Configuration)
eventConfigurations :: Prelude.Maybe (Prelude.HashMap EventType Configuration),
    -- | The creation date of the event configuration.
    DescribeEventConfigurationsResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
    -- | The response's http status code.
    DescribeEventConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeEventConfigurationsResponse
-> DescribeEventConfigurationsResponse -> Bool
(DescribeEventConfigurationsResponse
 -> DescribeEventConfigurationsResponse -> Bool)
-> (DescribeEventConfigurationsResponse
    -> DescribeEventConfigurationsResponse -> Bool)
-> Eq DescribeEventConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEventConfigurationsResponse
-> DescribeEventConfigurationsResponse -> Bool
$c/= :: DescribeEventConfigurationsResponse
-> DescribeEventConfigurationsResponse -> Bool
== :: DescribeEventConfigurationsResponse
-> DescribeEventConfigurationsResponse -> Bool
$c== :: DescribeEventConfigurationsResponse
-> DescribeEventConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEventConfigurationsResponse]
ReadPrec DescribeEventConfigurationsResponse
Int -> ReadS DescribeEventConfigurationsResponse
ReadS [DescribeEventConfigurationsResponse]
(Int -> ReadS DescribeEventConfigurationsResponse)
-> ReadS [DescribeEventConfigurationsResponse]
-> ReadPrec DescribeEventConfigurationsResponse
-> ReadPrec [DescribeEventConfigurationsResponse]
-> Read DescribeEventConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEventConfigurationsResponse]
$creadListPrec :: ReadPrec [DescribeEventConfigurationsResponse]
readPrec :: ReadPrec DescribeEventConfigurationsResponse
$creadPrec :: ReadPrec DescribeEventConfigurationsResponse
readList :: ReadS [DescribeEventConfigurationsResponse]
$creadList :: ReadS [DescribeEventConfigurationsResponse]
readsPrec :: Int -> ReadS DescribeEventConfigurationsResponse
$creadsPrec :: Int -> ReadS DescribeEventConfigurationsResponse
Prelude.Read, Int -> DescribeEventConfigurationsResponse -> ShowS
[DescribeEventConfigurationsResponse] -> ShowS
DescribeEventConfigurationsResponse -> String
(Int -> DescribeEventConfigurationsResponse -> ShowS)
-> (DescribeEventConfigurationsResponse -> String)
-> ([DescribeEventConfigurationsResponse] -> ShowS)
-> Show DescribeEventConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEventConfigurationsResponse] -> ShowS
$cshowList :: [DescribeEventConfigurationsResponse] -> ShowS
show :: DescribeEventConfigurationsResponse -> String
$cshow :: DescribeEventConfigurationsResponse -> String
showsPrec :: Int -> DescribeEventConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeEventConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeEventConfigurationsResponse
 -> Rep DescribeEventConfigurationsResponse x)
-> (forall x.
    Rep DescribeEventConfigurationsResponse x
    -> DescribeEventConfigurationsResponse)
-> Generic DescribeEventConfigurationsResponse
forall x.
Rep DescribeEventConfigurationsResponse x
-> DescribeEventConfigurationsResponse
forall x.
DescribeEventConfigurationsResponse
-> Rep DescribeEventConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEventConfigurationsResponse x
-> DescribeEventConfigurationsResponse
$cfrom :: forall x.
DescribeEventConfigurationsResponse
-> Rep DescribeEventConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEventConfigurationsResponse' 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:
--
-- 'lastModifiedDate', 'describeEventConfigurationsResponse_lastModifiedDate' - The date the event configurations were last modified.
--
-- 'eventConfigurations', 'describeEventConfigurationsResponse_eventConfigurations' - The event configurations.
--
-- 'creationDate', 'describeEventConfigurationsResponse_creationDate' - The creation date of the event configuration.
--
-- 'httpStatus', 'describeEventConfigurationsResponse_httpStatus' - The response's http status code.
newDescribeEventConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeEventConfigurationsResponse
newDescribeEventConfigurationsResponse :: Int -> DescribeEventConfigurationsResponse
newDescribeEventConfigurationsResponse Int
pHttpStatus_ =
  DescribeEventConfigurationsResponse' :: Maybe POSIX
-> Maybe (HashMap EventType Configuration)
-> Maybe POSIX
-> Int
-> DescribeEventConfigurationsResponse
DescribeEventConfigurationsResponse'
    { $sel:lastModifiedDate:DescribeEventConfigurationsResponse' :: Maybe POSIX
lastModifiedDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:eventConfigurations:DescribeEventConfigurationsResponse' :: Maybe (HashMap EventType Configuration)
eventConfigurations = Maybe (HashMap EventType Configuration)
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:DescribeEventConfigurationsResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeEventConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The date the event configurations were last modified.
describeEventConfigurationsResponse_lastModifiedDate :: Lens.Lens' DescribeEventConfigurationsResponse (Prelude.Maybe Prelude.UTCTime)
describeEventConfigurationsResponse_lastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
describeEventConfigurationsResponse_lastModifiedDate = (DescribeEventConfigurationsResponse -> Maybe POSIX)
-> (DescribeEventConfigurationsResponse
    -> Maybe POSIX -> DescribeEventConfigurationsResponse)
-> Lens
     DescribeEventConfigurationsResponse
     DescribeEventConfigurationsResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventConfigurationsResponse' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:DescribeEventConfigurationsResponse' :: DescribeEventConfigurationsResponse -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: DescribeEventConfigurationsResponse
s@DescribeEventConfigurationsResponse' {} Maybe POSIX
a -> DescribeEventConfigurationsResponse
s {$sel:lastModifiedDate:DescribeEventConfigurationsResponse' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: DescribeEventConfigurationsResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeEventConfigurationsResponse
 -> f DescribeEventConfigurationsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The event configurations.
describeEventConfigurationsResponse_eventConfigurations :: Lens.Lens' DescribeEventConfigurationsResponse (Prelude.Maybe (Prelude.HashMap EventType Configuration))
describeEventConfigurationsResponse_eventConfigurations :: (Maybe (HashMap EventType Configuration)
 -> f (Maybe (HashMap EventType Configuration)))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
describeEventConfigurationsResponse_eventConfigurations = (DescribeEventConfigurationsResponse
 -> Maybe (HashMap EventType Configuration))
-> (DescribeEventConfigurationsResponse
    -> Maybe (HashMap EventType Configuration)
    -> DescribeEventConfigurationsResponse)
-> Lens
     DescribeEventConfigurationsResponse
     DescribeEventConfigurationsResponse
     (Maybe (HashMap EventType Configuration))
     (Maybe (HashMap EventType Configuration))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventConfigurationsResponse' {Maybe (HashMap EventType Configuration)
eventConfigurations :: Maybe (HashMap EventType Configuration)
$sel:eventConfigurations:DescribeEventConfigurationsResponse' :: DescribeEventConfigurationsResponse
-> Maybe (HashMap EventType Configuration)
eventConfigurations} -> Maybe (HashMap EventType Configuration)
eventConfigurations) (\s :: DescribeEventConfigurationsResponse
s@DescribeEventConfigurationsResponse' {} Maybe (HashMap EventType Configuration)
a -> DescribeEventConfigurationsResponse
s {$sel:eventConfigurations:DescribeEventConfigurationsResponse' :: Maybe (HashMap EventType Configuration)
eventConfigurations = Maybe (HashMap EventType Configuration)
a} :: DescribeEventConfigurationsResponse) ((Maybe (HashMap EventType Configuration)
  -> f (Maybe (HashMap EventType Configuration)))
 -> DescribeEventConfigurationsResponse
 -> f DescribeEventConfigurationsResponse)
-> ((Maybe (HashMap EventType Configuration)
     -> f (Maybe (HashMap EventType Configuration)))
    -> Maybe (HashMap EventType Configuration)
    -> f (Maybe (HashMap EventType Configuration)))
-> (Maybe (HashMap EventType Configuration)
    -> f (Maybe (HashMap EventType Configuration)))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
-> Iso
     (Maybe (HashMap EventType Configuration))
     (Maybe (HashMap EventType Configuration))
     (Maybe (HashMap EventType Configuration))
     (Maybe (HashMap EventType Configuration))
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
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
  (HashMap EventType Configuration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The creation date of the event configuration.
describeEventConfigurationsResponse_creationDate :: Lens.Lens' DescribeEventConfigurationsResponse (Prelude.Maybe Prelude.UTCTime)
describeEventConfigurationsResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
describeEventConfigurationsResponse_creationDate = (DescribeEventConfigurationsResponse -> Maybe POSIX)
-> (DescribeEventConfigurationsResponse
    -> Maybe POSIX -> DescribeEventConfigurationsResponse)
-> Lens
     DescribeEventConfigurationsResponse
     DescribeEventConfigurationsResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventConfigurationsResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:DescribeEventConfigurationsResponse' :: DescribeEventConfigurationsResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: DescribeEventConfigurationsResponse
s@DescribeEventConfigurationsResponse' {} Maybe POSIX
a -> DescribeEventConfigurationsResponse
s {$sel:creationDate:DescribeEventConfigurationsResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: DescribeEventConfigurationsResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeEventConfigurationsResponse
 -> f DescribeEventConfigurationsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeEventConfigurationsResponse
-> f DescribeEventConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

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

instance
  Prelude.NFData
    DescribeEventConfigurationsResponse