{-# 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 #-}
module Amazonka.KMS.ScheduleKeyDeletion
(
ScheduleKeyDeletion (..),
newScheduleKeyDeletion,
scheduleKeyDeletion_pendingWindowInDays,
scheduleKeyDeletion_keyId,
ScheduleKeyDeletionResponse (..),
newScheduleKeyDeletionResponse,
scheduleKeyDeletionResponse_keyId,
scheduleKeyDeletionResponse_keyState,
scheduleKeyDeletionResponse_deletionDate,
scheduleKeyDeletionResponse_pendingWindowInDays,
scheduleKeyDeletionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KMS.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
data ScheduleKeyDeletion = ScheduleKeyDeletion'
{
ScheduleKeyDeletion -> Maybe Natural
pendingWindowInDays :: Prelude.Maybe Prelude.Natural,
ScheduleKeyDeletion -> Text
keyId :: Prelude.Text
}
deriving (ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool
(ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool)
-> (ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool)
-> Eq ScheduleKeyDeletion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool
$c/= :: ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool
== :: ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool
$c== :: ScheduleKeyDeletion -> ScheduleKeyDeletion -> Bool
Prelude.Eq, ReadPrec [ScheduleKeyDeletion]
ReadPrec ScheduleKeyDeletion
Int -> ReadS ScheduleKeyDeletion
ReadS [ScheduleKeyDeletion]
(Int -> ReadS ScheduleKeyDeletion)
-> ReadS [ScheduleKeyDeletion]
-> ReadPrec ScheduleKeyDeletion
-> ReadPrec [ScheduleKeyDeletion]
-> Read ScheduleKeyDeletion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScheduleKeyDeletion]
$creadListPrec :: ReadPrec [ScheduleKeyDeletion]
readPrec :: ReadPrec ScheduleKeyDeletion
$creadPrec :: ReadPrec ScheduleKeyDeletion
readList :: ReadS [ScheduleKeyDeletion]
$creadList :: ReadS [ScheduleKeyDeletion]
readsPrec :: Int -> ReadS ScheduleKeyDeletion
$creadsPrec :: Int -> ReadS ScheduleKeyDeletion
Prelude.Read, Int -> ScheduleKeyDeletion -> ShowS
[ScheduleKeyDeletion] -> ShowS
ScheduleKeyDeletion -> String
(Int -> ScheduleKeyDeletion -> ShowS)
-> (ScheduleKeyDeletion -> String)
-> ([ScheduleKeyDeletion] -> ShowS)
-> Show ScheduleKeyDeletion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScheduleKeyDeletion] -> ShowS
$cshowList :: [ScheduleKeyDeletion] -> ShowS
show :: ScheduleKeyDeletion -> String
$cshow :: ScheduleKeyDeletion -> String
showsPrec :: Int -> ScheduleKeyDeletion -> ShowS
$cshowsPrec :: Int -> ScheduleKeyDeletion -> ShowS
Prelude.Show, (forall x. ScheduleKeyDeletion -> Rep ScheduleKeyDeletion x)
-> (forall x. Rep ScheduleKeyDeletion x -> ScheduleKeyDeletion)
-> Generic ScheduleKeyDeletion
forall x. Rep ScheduleKeyDeletion x -> ScheduleKeyDeletion
forall x. ScheduleKeyDeletion -> Rep ScheduleKeyDeletion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ScheduleKeyDeletion x -> ScheduleKeyDeletion
$cfrom :: forall x. ScheduleKeyDeletion -> Rep ScheduleKeyDeletion x
Prelude.Generic)
newScheduleKeyDeletion ::
Prelude.Text ->
ScheduleKeyDeletion
newScheduleKeyDeletion :: Text -> ScheduleKeyDeletion
newScheduleKeyDeletion Text
pKeyId_ =
ScheduleKeyDeletion' :: Maybe Natural -> Text -> ScheduleKeyDeletion
ScheduleKeyDeletion'
{ $sel:pendingWindowInDays:ScheduleKeyDeletion' :: Maybe Natural
pendingWindowInDays =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:keyId:ScheduleKeyDeletion' :: Text
keyId = Text
pKeyId_
}
scheduleKeyDeletion_pendingWindowInDays :: Lens.Lens' ScheduleKeyDeletion (Prelude.Maybe Prelude.Natural)
scheduleKeyDeletion_pendingWindowInDays :: (Maybe Natural -> f (Maybe Natural))
-> ScheduleKeyDeletion -> f ScheduleKeyDeletion
scheduleKeyDeletion_pendingWindowInDays = (ScheduleKeyDeletion -> Maybe Natural)
-> (ScheduleKeyDeletion -> Maybe Natural -> ScheduleKeyDeletion)
-> Lens
ScheduleKeyDeletion
ScheduleKeyDeletion
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletion' {Maybe Natural
pendingWindowInDays :: Maybe Natural
$sel:pendingWindowInDays:ScheduleKeyDeletion' :: ScheduleKeyDeletion -> Maybe Natural
pendingWindowInDays} -> Maybe Natural
pendingWindowInDays) (\s :: ScheduleKeyDeletion
s@ScheduleKeyDeletion' {} Maybe Natural
a -> ScheduleKeyDeletion
s {$sel:pendingWindowInDays:ScheduleKeyDeletion' :: Maybe Natural
pendingWindowInDays = Maybe Natural
a} :: ScheduleKeyDeletion)
scheduleKeyDeletion_keyId :: Lens.Lens' ScheduleKeyDeletion Prelude.Text
scheduleKeyDeletion_keyId :: (Text -> f Text) -> ScheduleKeyDeletion -> f ScheduleKeyDeletion
scheduleKeyDeletion_keyId = (ScheduleKeyDeletion -> Text)
-> (ScheduleKeyDeletion -> Text -> ScheduleKeyDeletion)
-> Lens ScheduleKeyDeletion ScheduleKeyDeletion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletion' {Text
keyId :: Text
$sel:keyId:ScheduleKeyDeletion' :: ScheduleKeyDeletion -> Text
keyId} -> Text
keyId) (\s :: ScheduleKeyDeletion
s@ScheduleKeyDeletion' {} Text
a -> ScheduleKeyDeletion
s {$sel:keyId:ScheduleKeyDeletion' :: Text
keyId = Text
a} :: ScheduleKeyDeletion)
instance Core.AWSRequest ScheduleKeyDeletion where
type
AWSResponse ScheduleKeyDeletion =
ScheduleKeyDeletionResponse
request :: ScheduleKeyDeletion -> Request ScheduleKeyDeletion
request = Service -> ScheduleKeyDeletion -> Request ScheduleKeyDeletion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ScheduleKeyDeletion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ScheduleKeyDeletion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ScheduleKeyDeletion))
-> Logger
-> Service
-> Proxy ScheduleKeyDeletion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ScheduleKeyDeletion)))
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 KeyState
-> Maybe POSIX
-> Maybe Natural
-> Int
-> ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse'
(Maybe Text
-> Maybe KeyState
-> Maybe POSIX
-> Maybe Natural
-> Int
-> ScheduleKeyDeletionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe KeyState
-> Maybe POSIX
-> Maybe Natural
-> Int
-> ScheduleKeyDeletionResponse)
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
"KeyId")
Either
String
(Maybe KeyState
-> Maybe POSIX
-> Maybe Natural
-> Int
-> ScheduleKeyDeletionResponse)
-> Either String (Maybe KeyState)
-> Either
String
(Maybe POSIX
-> Maybe Natural -> Int -> ScheduleKeyDeletionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe KeyState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"KeyState")
Either
String
(Maybe POSIX
-> Maybe Natural -> Int -> ScheduleKeyDeletionResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Natural -> Int -> ScheduleKeyDeletionResponse)
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
"DeletionDate")
Either String (Maybe Natural -> Int -> ScheduleKeyDeletionResponse)
-> Either String (Maybe Natural)
-> Either String (Int -> ScheduleKeyDeletionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PendingWindowInDays")
Either String (Int -> ScheduleKeyDeletionResponse)
-> Either String Int -> Either String ScheduleKeyDeletionResponse
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 ScheduleKeyDeletion
instance Prelude.NFData ScheduleKeyDeletion
instance Core.ToHeaders ScheduleKeyDeletion where
toHeaders :: ScheduleKeyDeletion -> ResponseHeaders
toHeaders =
ResponseHeaders -> ScheduleKeyDeletion -> 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
"TrentService.ScheduleKeyDeletion" ::
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 ScheduleKeyDeletion where
toJSON :: ScheduleKeyDeletion -> Value
toJSON ScheduleKeyDeletion' {Maybe Natural
Text
keyId :: Text
pendingWindowInDays :: Maybe Natural
$sel:keyId:ScheduleKeyDeletion' :: ScheduleKeyDeletion -> Text
$sel:pendingWindowInDays:ScheduleKeyDeletion' :: ScheduleKeyDeletion -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"PendingWindowInDays" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pendingWindowInDays,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"KeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
keyId)
]
)
instance Core.ToPath ScheduleKeyDeletion where
toPath :: ScheduleKeyDeletion -> ByteString
toPath = ByteString -> ScheduleKeyDeletion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ScheduleKeyDeletion where
toQuery :: ScheduleKeyDeletion -> QueryString
toQuery = QueryString -> ScheduleKeyDeletion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ScheduleKeyDeletionResponse = ScheduleKeyDeletionResponse'
{
ScheduleKeyDeletionResponse -> Maybe Text
keyId :: Prelude.Maybe Prelude.Text,
ScheduleKeyDeletionResponse -> Maybe KeyState
keyState :: Prelude.Maybe KeyState,
ScheduleKeyDeletionResponse -> Maybe POSIX
deletionDate :: Prelude.Maybe Core.POSIX,
ScheduleKeyDeletionResponse -> Maybe Natural
pendingWindowInDays :: Prelude.Maybe Prelude.Natural,
ScheduleKeyDeletionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ScheduleKeyDeletionResponse -> ScheduleKeyDeletionResponse -> Bool
(ScheduleKeyDeletionResponse
-> ScheduleKeyDeletionResponse -> Bool)
-> (ScheduleKeyDeletionResponse
-> ScheduleKeyDeletionResponse -> Bool)
-> Eq ScheduleKeyDeletionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScheduleKeyDeletionResponse -> ScheduleKeyDeletionResponse -> Bool
$c/= :: ScheduleKeyDeletionResponse -> ScheduleKeyDeletionResponse -> Bool
== :: ScheduleKeyDeletionResponse -> ScheduleKeyDeletionResponse -> Bool
$c== :: ScheduleKeyDeletionResponse -> ScheduleKeyDeletionResponse -> Bool
Prelude.Eq, ReadPrec [ScheduleKeyDeletionResponse]
ReadPrec ScheduleKeyDeletionResponse
Int -> ReadS ScheduleKeyDeletionResponse
ReadS [ScheduleKeyDeletionResponse]
(Int -> ReadS ScheduleKeyDeletionResponse)
-> ReadS [ScheduleKeyDeletionResponse]
-> ReadPrec ScheduleKeyDeletionResponse
-> ReadPrec [ScheduleKeyDeletionResponse]
-> Read ScheduleKeyDeletionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScheduleKeyDeletionResponse]
$creadListPrec :: ReadPrec [ScheduleKeyDeletionResponse]
readPrec :: ReadPrec ScheduleKeyDeletionResponse
$creadPrec :: ReadPrec ScheduleKeyDeletionResponse
readList :: ReadS [ScheduleKeyDeletionResponse]
$creadList :: ReadS [ScheduleKeyDeletionResponse]
readsPrec :: Int -> ReadS ScheduleKeyDeletionResponse
$creadsPrec :: Int -> ReadS ScheduleKeyDeletionResponse
Prelude.Read, Int -> ScheduleKeyDeletionResponse -> ShowS
[ScheduleKeyDeletionResponse] -> ShowS
ScheduleKeyDeletionResponse -> String
(Int -> ScheduleKeyDeletionResponse -> ShowS)
-> (ScheduleKeyDeletionResponse -> String)
-> ([ScheduleKeyDeletionResponse] -> ShowS)
-> Show ScheduleKeyDeletionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScheduleKeyDeletionResponse] -> ShowS
$cshowList :: [ScheduleKeyDeletionResponse] -> ShowS
show :: ScheduleKeyDeletionResponse -> String
$cshow :: ScheduleKeyDeletionResponse -> String
showsPrec :: Int -> ScheduleKeyDeletionResponse -> ShowS
$cshowsPrec :: Int -> ScheduleKeyDeletionResponse -> ShowS
Prelude.Show, (forall x.
ScheduleKeyDeletionResponse -> Rep ScheduleKeyDeletionResponse x)
-> (forall x.
Rep ScheduleKeyDeletionResponse x -> ScheduleKeyDeletionResponse)
-> Generic ScheduleKeyDeletionResponse
forall x.
Rep ScheduleKeyDeletionResponse x -> ScheduleKeyDeletionResponse
forall x.
ScheduleKeyDeletionResponse -> Rep ScheduleKeyDeletionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ScheduleKeyDeletionResponse x -> ScheduleKeyDeletionResponse
$cfrom :: forall x.
ScheduleKeyDeletionResponse -> Rep ScheduleKeyDeletionResponse x
Prelude.Generic)
newScheduleKeyDeletionResponse ::
Prelude.Int ->
ScheduleKeyDeletionResponse
newScheduleKeyDeletionResponse :: Int -> ScheduleKeyDeletionResponse
newScheduleKeyDeletionResponse Int
pHttpStatus_ =
ScheduleKeyDeletionResponse' :: Maybe Text
-> Maybe KeyState
-> Maybe POSIX
-> Maybe Natural
-> Int
-> ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse'
{ $sel:keyId:ScheduleKeyDeletionResponse' :: Maybe Text
keyId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keyState:ScheduleKeyDeletionResponse' :: Maybe KeyState
keyState = Maybe KeyState
forall a. Maybe a
Prelude.Nothing,
$sel:deletionDate:ScheduleKeyDeletionResponse' :: Maybe POSIX
deletionDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:pendingWindowInDays:ScheduleKeyDeletionResponse' :: Maybe Natural
pendingWindowInDays = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ScheduleKeyDeletionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
scheduleKeyDeletionResponse_keyId :: Lens.Lens' ScheduleKeyDeletionResponse (Prelude.Maybe Prelude.Text)
scheduleKeyDeletionResponse_keyId :: (Maybe Text -> f (Maybe Text))
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse
scheduleKeyDeletionResponse_keyId = (ScheduleKeyDeletionResponse -> Maybe Text)
-> (ScheduleKeyDeletionResponse
-> Maybe Text -> ScheduleKeyDeletionResponse)
-> Lens
ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletionResponse' {Maybe Text
keyId :: Maybe Text
$sel:keyId:ScheduleKeyDeletionResponse' :: ScheduleKeyDeletionResponse -> Maybe Text
keyId} -> Maybe Text
keyId) (\s :: ScheduleKeyDeletionResponse
s@ScheduleKeyDeletionResponse' {} Maybe Text
a -> ScheduleKeyDeletionResponse
s {$sel:keyId:ScheduleKeyDeletionResponse' :: Maybe Text
keyId = Maybe Text
a} :: ScheduleKeyDeletionResponse)
scheduleKeyDeletionResponse_keyState :: Lens.Lens' ScheduleKeyDeletionResponse (Prelude.Maybe KeyState)
scheduleKeyDeletionResponse_keyState :: (Maybe KeyState -> f (Maybe KeyState))
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse
scheduleKeyDeletionResponse_keyState = (ScheduleKeyDeletionResponse -> Maybe KeyState)
-> (ScheduleKeyDeletionResponse
-> Maybe KeyState -> ScheduleKeyDeletionResponse)
-> Lens
ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse
(Maybe KeyState)
(Maybe KeyState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletionResponse' {Maybe KeyState
keyState :: Maybe KeyState
$sel:keyState:ScheduleKeyDeletionResponse' :: ScheduleKeyDeletionResponse -> Maybe KeyState
keyState} -> Maybe KeyState
keyState) (\s :: ScheduleKeyDeletionResponse
s@ScheduleKeyDeletionResponse' {} Maybe KeyState
a -> ScheduleKeyDeletionResponse
s {$sel:keyState:ScheduleKeyDeletionResponse' :: Maybe KeyState
keyState = Maybe KeyState
a} :: ScheduleKeyDeletionResponse)
scheduleKeyDeletionResponse_deletionDate :: Lens.Lens' ScheduleKeyDeletionResponse (Prelude.Maybe Prelude.UTCTime)
scheduleKeyDeletionResponse_deletionDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse
scheduleKeyDeletionResponse_deletionDate = (ScheduleKeyDeletionResponse -> Maybe POSIX)
-> (ScheduleKeyDeletionResponse
-> Maybe POSIX -> ScheduleKeyDeletionResponse)
-> Lens
ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletionResponse' {Maybe POSIX
deletionDate :: Maybe POSIX
$sel:deletionDate:ScheduleKeyDeletionResponse' :: ScheduleKeyDeletionResponse -> Maybe POSIX
deletionDate} -> Maybe POSIX
deletionDate) (\s :: ScheduleKeyDeletionResponse
s@ScheduleKeyDeletionResponse' {} Maybe POSIX
a -> ScheduleKeyDeletionResponse
s {$sel:deletionDate:ScheduleKeyDeletionResponse' :: Maybe POSIX
deletionDate = Maybe POSIX
a} :: ScheduleKeyDeletionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ScheduleKeyDeletionResponse
-> f ScheduleKeyDeletionResponse
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
scheduleKeyDeletionResponse_pendingWindowInDays :: Lens.Lens' ScheduleKeyDeletionResponse (Prelude.Maybe Prelude.Natural)
scheduleKeyDeletionResponse_pendingWindowInDays :: (Maybe Natural -> f (Maybe Natural))
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse
scheduleKeyDeletionResponse_pendingWindowInDays = (ScheduleKeyDeletionResponse -> Maybe Natural)
-> (ScheduleKeyDeletionResponse
-> Maybe Natural -> ScheduleKeyDeletionResponse)
-> Lens
ScheduleKeyDeletionResponse
ScheduleKeyDeletionResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletionResponse' {Maybe Natural
pendingWindowInDays :: Maybe Natural
$sel:pendingWindowInDays:ScheduleKeyDeletionResponse' :: ScheduleKeyDeletionResponse -> Maybe Natural
pendingWindowInDays} -> Maybe Natural
pendingWindowInDays) (\s :: ScheduleKeyDeletionResponse
s@ScheduleKeyDeletionResponse' {} Maybe Natural
a -> ScheduleKeyDeletionResponse
s {$sel:pendingWindowInDays:ScheduleKeyDeletionResponse' :: Maybe Natural
pendingWindowInDays = Maybe Natural
a} :: ScheduleKeyDeletionResponse)
scheduleKeyDeletionResponse_httpStatus :: Lens.Lens' ScheduleKeyDeletionResponse Prelude.Int
scheduleKeyDeletionResponse_httpStatus :: (Int -> f Int)
-> ScheduleKeyDeletionResponse -> f ScheduleKeyDeletionResponse
scheduleKeyDeletionResponse_httpStatus = (ScheduleKeyDeletionResponse -> Int)
-> (ScheduleKeyDeletionResponse
-> Int -> ScheduleKeyDeletionResponse)
-> Lens
ScheduleKeyDeletionResponse ScheduleKeyDeletionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduleKeyDeletionResponse' {Int
httpStatus :: Int
$sel:httpStatus:ScheduleKeyDeletionResponse' :: ScheduleKeyDeletionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ScheduleKeyDeletionResponse
s@ScheduleKeyDeletionResponse' {} Int
a -> ScheduleKeyDeletionResponse
s {$sel:httpStatus:ScheduleKeyDeletionResponse' :: Int
httpStatus = Int
a} :: ScheduleKeyDeletionResponse)
instance Prelude.NFData ScheduleKeyDeletionResponse