{-# 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.CreateSecurityConfiguration
-- 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)
--
-- Creates a security configuration, which is stored in the service and can
-- be specified when a cluster is created.
module Amazonka.EMR.CreateSecurityConfiguration
  ( -- * Creating a Request
    CreateSecurityConfiguration (..),
    newCreateSecurityConfiguration,

    -- * Request Lenses
    createSecurityConfiguration_name,
    createSecurityConfiguration_securityConfiguration,

    -- * Destructuring the Response
    CreateSecurityConfigurationResponse (..),
    newCreateSecurityConfigurationResponse,

    -- * Response Lenses
    createSecurityConfigurationResponse_httpStatus,
    createSecurityConfigurationResponse_name,
    createSecurityConfigurationResponse_creationDateTime,
  )
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:/ 'newCreateSecurityConfiguration' smart constructor.
data CreateSecurityConfiguration = CreateSecurityConfiguration'
  { -- | The name of the security configuration.
    CreateSecurityConfiguration -> Text
name :: Prelude.Text,
    -- | The security configuration details in JSON format. For JSON parameters
    -- and examples, see
    -- <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html Use Security Configurations to Set Up Cluster Security>
    -- in the /Amazon EMR Management Guide/.
    CreateSecurityConfiguration -> Text
securityConfiguration :: Prelude.Text
  }
  deriving (CreateSecurityConfiguration -> CreateSecurityConfiguration -> Bool
(CreateSecurityConfiguration
 -> CreateSecurityConfiguration -> Bool)
-> (CreateSecurityConfiguration
    -> CreateSecurityConfiguration -> Bool)
-> Eq CreateSecurityConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSecurityConfiguration -> CreateSecurityConfiguration -> Bool
$c/= :: CreateSecurityConfiguration -> CreateSecurityConfiguration -> Bool
== :: CreateSecurityConfiguration -> CreateSecurityConfiguration -> Bool
$c== :: CreateSecurityConfiguration -> CreateSecurityConfiguration -> Bool
Prelude.Eq, ReadPrec [CreateSecurityConfiguration]
ReadPrec CreateSecurityConfiguration
Int -> ReadS CreateSecurityConfiguration
ReadS [CreateSecurityConfiguration]
(Int -> ReadS CreateSecurityConfiguration)
-> ReadS [CreateSecurityConfiguration]
-> ReadPrec CreateSecurityConfiguration
-> ReadPrec [CreateSecurityConfiguration]
-> Read CreateSecurityConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSecurityConfiguration]
$creadListPrec :: ReadPrec [CreateSecurityConfiguration]
readPrec :: ReadPrec CreateSecurityConfiguration
$creadPrec :: ReadPrec CreateSecurityConfiguration
readList :: ReadS [CreateSecurityConfiguration]
$creadList :: ReadS [CreateSecurityConfiguration]
readsPrec :: Int -> ReadS CreateSecurityConfiguration
$creadsPrec :: Int -> ReadS CreateSecurityConfiguration
Prelude.Read, Int -> CreateSecurityConfiguration -> ShowS
[CreateSecurityConfiguration] -> ShowS
CreateSecurityConfiguration -> String
(Int -> CreateSecurityConfiguration -> ShowS)
-> (CreateSecurityConfiguration -> String)
-> ([CreateSecurityConfiguration] -> ShowS)
-> Show CreateSecurityConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSecurityConfiguration] -> ShowS
$cshowList :: [CreateSecurityConfiguration] -> ShowS
show :: CreateSecurityConfiguration -> String
$cshow :: CreateSecurityConfiguration -> String
showsPrec :: Int -> CreateSecurityConfiguration -> ShowS
$cshowsPrec :: Int -> CreateSecurityConfiguration -> ShowS
Prelude.Show, (forall x.
 CreateSecurityConfiguration -> Rep CreateSecurityConfiguration x)
-> (forall x.
    Rep CreateSecurityConfiguration x -> CreateSecurityConfiguration)
-> Generic CreateSecurityConfiguration
forall x.
Rep CreateSecurityConfiguration x -> CreateSecurityConfiguration
forall x.
CreateSecurityConfiguration -> Rep CreateSecurityConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSecurityConfiguration x -> CreateSecurityConfiguration
$cfrom :: forall x.
CreateSecurityConfiguration -> Rep CreateSecurityConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'CreateSecurityConfiguration' 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', 'createSecurityConfiguration_name' - The name of the security configuration.
--
-- 'securityConfiguration', 'createSecurityConfiguration_securityConfiguration' - The security configuration details in JSON format. For JSON parameters
-- and examples, see
-- <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html Use Security Configurations to Set Up Cluster Security>
-- in the /Amazon EMR Management Guide/.
newCreateSecurityConfiguration ::
  -- | 'name'
  Prelude.Text ->
  -- | 'securityConfiguration'
  Prelude.Text ->
  CreateSecurityConfiguration
newCreateSecurityConfiguration :: Text -> Text -> CreateSecurityConfiguration
newCreateSecurityConfiguration
  Text
pName_
  Text
pSecurityConfiguration_ =
    CreateSecurityConfiguration' :: Text -> Text -> CreateSecurityConfiguration
CreateSecurityConfiguration'
      { $sel:name:CreateSecurityConfiguration' :: Text
name = Text
pName_,
        $sel:securityConfiguration:CreateSecurityConfiguration' :: Text
securityConfiguration =
          Text
pSecurityConfiguration_
      }

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

-- | The security configuration details in JSON format. For JSON parameters
-- and examples, see
-- <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html Use Security Configurations to Set Up Cluster Security>
-- in the /Amazon EMR Management Guide/.
createSecurityConfiguration_securityConfiguration :: Lens.Lens' CreateSecurityConfiguration Prelude.Text
createSecurityConfiguration_securityConfiguration :: (Text -> f Text)
-> CreateSecurityConfiguration -> f CreateSecurityConfiguration
createSecurityConfiguration_securityConfiguration = (CreateSecurityConfiguration -> Text)
-> (CreateSecurityConfiguration
    -> Text -> CreateSecurityConfiguration)
-> Lens
     CreateSecurityConfiguration CreateSecurityConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSecurityConfiguration' {Text
securityConfiguration :: Text
$sel:securityConfiguration:CreateSecurityConfiguration' :: CreateSecurityConfiguration -> Text
securityConfiguration} -> Text
securityConfiguration) (\s :: CreateSecurityConfiguration
s@CreateSecurityConfiguration' {} Text
a -> CreateSecurityConfiguration
s {$sel:securityConfiguration:CreateSecurityConfiguration' :: Text
securityConfiguration = Text
a} :: CreateSecurityConfiguration)

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

instance Prelude.Hashable CreateSecurityConfiguration

instance Prelude.NFData CreateSecurityConfiguration

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

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

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

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

-- |
-- Create a value of 'CreateSecurityConfigurationResponse' 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:
--
-- 'httpStatus', 'createSecurityConfigurationResponse_httpStatus' - The response's http status code.
--
-- 'name', 'createSecurityConfigurationResponse_name' - The name of the security configuration.
--
-- 'creationDateTime', 'createSecurityConfigurationResponse_creationDateTime' - The date and time the security configuration was created.
newCreateSecurityConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'name'
  Prelude.Text ->
  -- | 'creationDateTime'
  Prelude.UTCTime ->
  CreateSecurityConfigurationResponse
newCreateSecurityConfigurationResponse :: Int -> Text -> UTCTime -> CreateSecurityConfigurationResponse
newCreateSecurityConfigurationResponse
  Int
pHttpStatus_
  Text
pName_
  UTCTime
pCreationDateTime_ =
    CreateSecurityConfigurationResponse' :: Int -> Text -> POSIX -> CreateSecurityConfigurationResponse
CreateSecurityConfigurationResponse'
      { $sel:httpStatus:CreateSecurityConfigurationResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:name:CreateSecurityConfigurationResponse' :: Text
name = Text
pName_,
        $sel:creationDateTime:CreateSecurityConfigurationResponse' :: POSIX
creationDateTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationDateTime_
      }

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

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

-- | The date and time the security configuration was created.
createSecurityConfigurationResponse_creationDateTime :: Lens.Lens' CreateSecurityConfigurationResponse Prelude.UTCTime
createSecurityConfigurationResponse_creationDateTime :: (UTCTime -> f UTCTime)
-> CreateSecurityConfigurationResponse
-> f CreateSecurityConfigurationResponse
createSecurityConfigurationResponse_creationDateTime = (CreateSecurityConfigurationResponse -> POSIX)
-> (CreateSecurityConfigurationResponse
    -> POSIX -> CreateSecurityConfigurationResponse)
-> Lens
     CreateSecurityConfigurationResponse
     CreateSecurityConfigurationResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSecurityConfigurationResponse' {POSIX
creationDateTime :: POSIX
$sel:creationDateTime:CreateSecurityConfigurationResponse' :: CreateSecurityConfigurationResponse -> POSIX
creationDateTime} -> POSIX
creationDateTime) (\s :: CreateSecurityConfigurationResponse
s@CreateSecurityConfigurationResponse' {} POSIX
a -> CreateSecurityConfigurationResponse
s {$sel:creationDateTime:CreateSecurityConfigurationResponse' :: POSIX
creationDateTime = POSIX
a} :: CreateSecurityConfigurationResponse) ((POSIX -> f POSIX)
 -> CreateSecurityConfigurationResponse
 -> f CreateSecurityConfigurationResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> CreateSecurityConfigurationResponse
-> f CreateSecurityConfigurationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance
  Prelude.NFData
    CreateSecurityConfigurationResponse