{-# 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.EMR.DescribeSecurityConfiguration
-- 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)
--
-- Provides the details of a security configuration by returning the
-- configuration JSON.
module Amazonka.EMR.DescribeSecurityConfiguration
  ( -- * Creating a Request
    DescribeSecurityConfiguration (..),
    newDescribeSecurityConfiguration,

    -- * Request Lenses
    describeSecurityConfiguration_name,

    -- * Destructuring the Response
    DescribeSecurityConfigurationResponse (..),
    newDescribeSecurityConfigurationResponse,

    -- * Response Lenses
    describeSecurityConfigurationResponse_securityConfiguration,
    describeSecurityConfigurationResponse_name,
    describeSecurityConfigurationResponse_creationDateTime,
    describeSecurityConfigurationResponse_httpStatus,
  )
where

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

-- |
-- Create a value of 'DescribeSecurityConfiguration' 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:
--
-- 'name', 'describeSecurityConfiguration_name' - The name of the security configuration.
newDescribeSecurityConfiguration ::
  -- | 'name'
  Prelude.Text ->
  DescribeSecurityConfiguration
newDescribeSecurityConfiguration :: Text -> DescribeSecurityConfiguration
newDescribeSecurityConfiguration Text
pName_ =
  DescribeSecurityConfiguration' :: Text -> DescribeSecurityConfiguration
DescribeSecurityConfiguration' {$sel:name:DescribeSecurityConfiguration' :: Text
name = Text
pName_}

-- | The name of the security configuration.
describeSecurityConfiguration_name :: Lens.Lens' DescribeSecurityConfiguration Prelude.Text
describeSecurityConfiguration_name :: (Text -> f Text)
-> DescribeSecurityConfiguration -> f DescribeSecurityConfiguration
describeSecurityConfiguration_name = (DescribeSecurityConfiguration -> Text)
-> (DescribeSecurityConfiguration
    -> Text -> DescribeSecurityConfiguration)
-> Lens
     DescribeSecurityConfiguration
     DescribeSecurityConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSecurityConfiguration' {Text
name :: Text
$sel:name:DescribeSecurityConfiguration' :: DescribeSecurityConfiguration -> Text
name} -> Text
name) (\s :: DescribeSecurityConfiguration
s@DescribeSecurityConfiguration' {} Text
a -> DescribeSecurityConfiguration
s {$sel:name:DescribeSecurityConfiguration' :: Text
name = Text
a} :: DescribeSecurityConfiguration)

instance
  Core.AWSRequest
    DescribeSecurityConfiguration
  where
  type
    AWSResponse DescribeSecurityConfiguration =
      DescribeSecurityConfigurationResponse
  request :: DescribeSecurityConfiguration
-> Request DescribeSecurityConfiguration
request = Service
-> DescribeSecurityConfiguration
-> Request DescribeSecurityConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeSecurityConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeSecurityConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeSecurityConfiguration))
-> Logger
-> Service
-> Proxy DescribeSecurityConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeSecurityConfiguration)))
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 Text
-> Maybe Text
-> Maybe POSIX
-> Int
-> DescribeSecurityConfigurationResponse
DescribeSecurityConfigurationResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Int
 -> DescribeSecurityConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX -> Int -> DescribeSecurityConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SecurityConfiguration")
            Either
  String
  (Maybe Text
   -> Maybe POSIX -> Int -> DescribeSecurityConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX -> Int -> DescribeSecurityConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Name")
            Either
  String
  (Maybe POSIX -> Int -> DescribeSecurityConfigurationResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> DescribeSecurityConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationDateTime")
            Either String (Int -> DescribeSecurityConfigurationResponse)
-> Either String Int
-> Either String DescribeSecurityConfigurationResponse
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
    DescribeSecurityConfiguration

instance Prelude.NFData DescribeSecurityConfiguration

instance Core.ToHeaders DescribeSecurityConfiguration where
  toHeaders :: DescribeSecurityConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeSecurityConfiguration -> 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
"ElasticMapReduce.DescribeSecurityConfiguration" ::
                          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 DescribeSecurityConfiguration where
  toJSON :: DescribeSecurityConfiguration -> Value
toJSON DescribeSecurityConfiguration' {Text
name :: Text
$sel:name:DescribeSecurityConfiguration' :: DescribeSecurityConfiguration -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
      )

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

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

-- | /See:/ 'newDescribeSecurityConfigurationResponse' smart constructor.
data DescribeSecurityConfigurationResponse = DescribeSecurityConfigurationResponse'
  { -- | The security configuration details in JSON format.
    DescribeSecurityConfigurationResponse -> Maybe Text
securityConfiguration :: Prelude.Maybe Prelude.Text,
    -- | The name of the security configuration.
    DescribeSecurityConfigurationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The date and time the security configuration was created
    DescribeSecurityConfigurationResponse -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
    -- | The response's http status code.
    DescribeSecurityConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeSecurityConfigurationResponse
-> DescribeSecurityConfigurationResponse -> Bool
(DescribeSecurityConfigurationResponse
 -> DescribeSecurityConfigurationResponse -> Bool)
-> (DescribeSecurityConfigurationResponse
    -> DescribeSecurityConfigurationResponse -> Bool)
-> Eq DescribeSecurityConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSecurityConfigurationResponse
-> DescribeSecurityConfigurationResponse -> Bool
$c/= :: DescribeSecurityConfigurationResponse
-> DescribeSecurityConfigurationResponse -> Bool
== :: DescribeSecurityConfigurationResponse
-> DescribeSecurityConfigurationResponse -> Bool
$c== :: DescribeSecurityConfigurationResponse
-> DescribeSecurityConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSecurityConfigurationResponse]
ReadPrec DescribeSecurityConfigurationResponse
Int -> ReadS DescribeSecurityConfigurationResponse
ReadS [DescribeSecurityConfigurationResponse]
(Int -> ReadS DescribeSecurityConfigurationResponse)
-> ReadS [DescribeSecurityConfigurationResponse]
-> ReadPrec DescribeSecurityConfigurationResponse
-> ReadPrec [DescribeSecurityConfigurationResponse]
-> Read DescribeSecurityConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSecurityConfigurationResponse]
$creadListPrec :: ReadPrec [DescribeSecurityConfigurationResponse]
readPrec :: ReadPrec DescribeSecurityConfigurationResponse
$creadPrec :: ReadPrec DescribeSecurityConfigurationResponse
readList :: ReadS [DescribeSecurityConfigurationResponse]
$creadList :: ReadS [DescribeSecurityConfigurationResponse]
readsPrec :: Int -> ReadS DescribeSecurityConfigurationResponse
$creadsPrec :: Int -> ReadS DescribeSecurityConfigurationResponse
Prelude.Read, Int -> DescribeSecurityConfigurationResponse -> ShowS
[DescribeSecurityConfigurationResponse] -> ShowS
DescribeSecurityConfigurationResponse -> String
(Int -> DescribeSecurityConfigurationResponse -> ShowS)
-> (DescribeSecurityConfigurationResponse -> String)
-> ([DescribeSecurityConfigurationResponse] -> ShowS)
-> Show DescribeSecurityConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSecurityConfigurationResponse] -> ShowS
$cshowList :: [DescribeSecurityConfigurationResponse] -> ShowS
show :: DescribeSecurityConfigurationResponse -> String
$cshow :: DescribeSecurityConfigurationResponse -> String
showsPrec :: Int -> DescribeSecurityConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DescribeSecurityConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeSecurityConfigurationResponse
 -> Rep DescribeSecurityConfigurationResponse x)
-> (forall x.
    Rep DescribeSecurityConfigurationResponse x
    -> DescribeSecurityConfigurationResponse)
-> Generic DescribeSecurityConfigurationResponse
forall x.
Rep DescribeSecurityConfigurationResponse x
-> DescribeSecurityConfigurationResponse
forall x.
DescribeSecurityConfigurationResponse
-> Rep DescribeSecurityConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeSecurityConfigurationResponse x
-> DescribeSecurityConfigurationResponse
$cfrom :: forall x.
DescribeSecurityConfigurationResponse
-> Rep DescribeSecurityConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeSecurityConfigurationResponse' 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:
--
-- 'securityConfiguration', 'describeSecurityConfigurationResponse_securityConfiguration' - The security configuration details in JSON format.
--
-- 'name', 'describeSecurityConfigurationResponse_name' - The name of the security configuration.
--
-- 'creationDateTime', 'describeSecurityConfigurationResponse_creationDateTime' - The date and time the security configuration was created
--
-- 'httpStatus', 'describeSecurityConfigurationResponse_httpStatus' - The response's http status code.
newDescribeSecurityConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeSecurityConfigurationResponse
newDescribeSecurityConfigurationResponse :: Int -> DescribeSecurityConfigurationResponse
newDescribeSecurityConfigurationResponse Int
pHttpStatus_ =
  DescribeSecurityConfigurationResponse' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Int
-> DescribeSecurityConfigurationResponse
DescribeSecurityConfigurationResponse'
    { $sel:securityConfiguration:DescribeSecurityConfigurationResponse' :: Maybe Text
securityConfiguration =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeSecurityConfigurationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:DescribeSecurityConfigurationResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeSecurityConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The security configuration details in JSON format.
describeSecurityConfigurationResponse_securityConfiguration :: Lens.Lens' DescribeSecurityConfigurationResponse (Prelude.Maybe Prelude.Text)
describeSecurityConfigurationResponse_securityConfiguration :: (Maybe Text -> f (Maybe Text))
-> DescribeSecurityConfigurationResponse
-> f DescribeSecurityConfigurationResponse
describeSecurityConfigurationResponse_securityConfiguration = (DescribeSecurityConfigurationResponse -> Maybe Text)
-> (DescribeSecurityConfigurationResponse
    -> Maybe Text -> DescribeSecurityConfigurationResponse)
-> Lens
     DescribeSecurityConfigurationResponse
     DescribeSecurityConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSecurityConfigurationResponse' {Maybe Text
securityConfiguration :: Maybe Text
$sel:securityConfiguration:DescribeSecurityConfigurationResponse' :: DescribeSecurityConfigurationResponse -> Maybe Text
securityConfiguration} -> Maybe Text
securityConfiguration) (\s :: DescribeSecurityConfigurationResponse
s@DescribeSecurityConfigurationResponse' {} Maybe Text
a -> DescribeSecurityConfigurationResponse
s {$sel:securityConfiguration:DescribeSecurityConfigurationResponse' :: Maybe Text
securityConfiguration = Maybe Text
a} :: DescribeSecurityConfigurationResponse)

-- | The name of the security configuration.
describeSecurityConfigurationResponse_name :: Lens.Lens' DescribeSecurityConfigurationResponse (Prelude.Maybe Prelude.Text)
describeSecurityConfigurationResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeSecurityConfigurationResponse
-> f DescribeSecurityConfigurationResponse
describeSecurityConfigurationResponse_name = (DescribeSecurityConfigurationResponse -> Maybe Text)
-> (DescribeSecurityConfigurationResponse
    -> Maybe Text -> DescribeSecurityConfigurationResponse)
-> Lens
     DescribeSecurityConfigurationResponse
     DescribeSecurityConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSecurityConfigurationResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeSecurityConfigurationResponse' :: DescribeSecurityConfigurationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeSecurityConfigurationResponse
s@DescribeSecurityConfigurationResponse' {} Maybe Text
a -> DescribeSecurityConfigurationResponse
s {$sel:name:DescribeSecurityConfigurationResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeSecurityConfigurationResponse)

-- | The date and time the security configuration was created
describeSecurityConfigurationResponse_creationDateTime :: Lens.Lens' DescribeSecurityConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
describeSecurityConfigurationResponse_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSecurityConfigurationResponse
-> f DescribeSecurityConfigurationResponse
describeSecurityConfigurationResponse_creationDateTime = (DescribeSecurityConfigurationResponse -> Maybe POSIX)
-> (DescribeSecurityConfigurationResponse
    -> Maybe POSIX -> DescribeSecurityConfigurationResponse)
-> Lens
     DescribeSecurityConfigurationResponse
     DescribeSecurityConfigurationResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSecurityConfigurationResponse' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DescribeSecurityConfigurationResponse' :: DescribeSecurityConfigurationResponse -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DescribeSecurityConfigurationResponse
s@DescribeSecurityConfigurationResponse' {} Maybe POSIX
a -> DescribeSecurityConfigurationResponse
s {$sel:creationDateTime:DescribeSecurityConfigurationResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DescribeSecurityConfigurationResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeSecurityConfigurationResponse
 -> f DescribeSecurityConfigurationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSecurityConfigurationResponse
-> f DescribeSecurityConfigurationResponse
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.
describeSecurityConfigurationResponse_httpStatus :: Lens.Lens' DescribeSecurityConfigurationResponse Prelude.Int
describeSecurityConfigurationResponse_httpStatus :: (Int -> f Int)
-> DescribeSecurityConfigurationResponse
-> f DescribeSecurityConfigurationResponse
describeSecurityConfigurationResponse_httpStatus = (DescribeSecurityConfigurationResponse -> Int)
-> (DescribeSecurityConfigurationResponse
    -> Int -> DescribeSecurityConfigurationResponse)
-> Lens
     DescribeSecurityConfigurationResponse
     DescribeSecurityConfigurationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSecurityConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSecurityConfigurationResponse' :: DescribeSecurityConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSecurityConfigurationResponse
s@DescribeSecurityConfigurationResponse' {} Int
a -> DescribeSecurityConfigurationResponse
s {$sel:httpStatus:DescribeSecurityConfigurationResponse' :: Int
httpStatus = Int
a} :: DescribeSecurityConfigurationResponse)

instance
  Prelude.NFData
    DescribeSecurityConfigurationResponse