{-# 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.CloudWatchEvents.DescribeArchive
(
DescribeArchive (..),
newDescribeArchive,
describeArchive_archiveName,
DescribeArchiveResponse (..),
newDescribeArchiveResponse,
describeArchiveResponse_creationTime,
describeArchiveResponse_sizeBytes,
describeArchiveResponse_eventSourceArn,
describeArchiveResponse_eventPattern,
describeArchiveResponse_state,
describeArchiveResponse_eventCount,
describeArchiveResponse_archiveName,
describeArchiveResponse_retentionDays,
describeArchiveResponse_archiveArn,
describeArchiveResponse_stateReason,
describeArchiveResponse_description,
describeArchiveResponse_httpStatus,
)
where
import Amazonka.CloudWatchEvents.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
data DescribeArchive = DescribeArchive'
{
DescribeArchive -> Text
archiveName :: Prelude.Text
}
deriving (DescribeArchive -> DescribeArchive -> Bool
(DescribeArchive -> DescribeArchive -> Bool)
-> (DescribeArchive -> DescribeArchive -> Bool)
-> Eq DescribeArchive
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeArchive -> DescribeArchive -> Bool
$c/= :: DescribeArchive -> DescribeArchive -> Bool
== :: DescribeArchive -> DescribeArchive -> Bool
$c== :: DescribeArchive -> DescribeArchive -> Bool
Prelude.Eq, ReadPrec [DescribeArchive]
ReadPrec DescribeArchive
Int -> ReadS DescribeArchive
ReadS [DescribeArchive]
(Int -> ReadS DescribeArchive)
-> ReadS [DescribeArchive]
-> ReadPrec DescribeArchive
-> ReadPrec [DescribeArchive]
-> Read DescribeArchive
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeArchive]
$creadListPrec :: ReadPrec [DescribeArchive]
readPrec :: ReadPrec DescribeArchive
$creadPrec :: ReadPrec DescribeArchive
readList :: ReadS [DescribeArchive]
$creadList :: ReadS [DescribeArchive]
readsPrec :: Int -> ReadS DescribeArchive
$creadsPrec :: Int -> ReadS DescribeArchive
Prelude.Read, Int -> DescribeArchive -> ShowS
[DescribeArchive] -> ShowS
DescribeArchive -> String
(Int -> DescribeArchive -> ShowS)
-> (DescribeArchive -> String)
-> ([DescribeArchive] -> ShowS)
-> Show DescribeArchive
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeArchive] -> ShowS
$cshowList :: [DescribeArchive] -> ShowS
show :: DescribeArchive -> String
$cshow :: DescribeArchive -> String
showsPrec :: Int -> DescribeArchive -> ShowS
$cshowsPrec :: Int -> DescribeArchive -> ShowS
Prelude.Show, (forall x. DescribeArchive -> Rep DescribeArchive x)
-> (forall x. Rep DescribeArchive x -> DescribeArchive)
-> Generic DescribeArchive
forall x. Rep DescribeArchive x -> DescribeArchive
forall x. DescribeArchive -> Rep DescribeArchive x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeArchive x -> DescribeArchive
$cfrom :: forall x. DescribeArchive -> Rep DescribeArchive x
Prelude.Generic)
newDescribeArchive ::
Prelude.Text ->
DescribeArchive
newDescribeArchive :: Text -> DescribeArchive
newDescribeArchive Text
pArchiveName_ =
DescribeArchive' :: Text -> DescribeArchive
DescribeArchive' {$sel:archiveName:DescribeArchive' :: Text
archiveName = Text
pArchiveName_}
describeArchive_archiveName :: Lens.Lens' DescribeArchive Prelude.Text
describeArchive_archiveName :: (Text -> f Text) -> DescribeArchive -> f DescribeArchive
describeArchive_archiveName = (DescribeArchive -> Text)
-> (DescribeArchive -> Text -> DescribeArchive)
-> Lens DescribeArchive DescribeArchive Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchive' {Text
archiveName :: Text
$sel:archiveName:DescribeArchive' :: DescribeArchive -> Text
archiveName} -> Text
archiveName) (\s :: DescribeArchive
s@DescribeArchive' {} Text
a -> DescribeArchive
s {$sel:archiveName:DescribeArchive' :: Text
archiveName = Text
a} :: DescribeArchive)
instance Core.AWSRequest DescribeArchive where
type
AWSResponse DescribeArchive =
DescribeArchiveResponse
request :: DescribeArchive -> Request DescribeArchive
request = Service -> DescribeArchive -> Request DescribeArchive
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeArchive
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeArchive)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeArchive))
-> Logger
-> Service
-> Proxy DescribeArchive
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeArchive)))
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 Integer
-> Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse
DescribeArchiveResponse'
(Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SizeBytes")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
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
"EventSourceArn")
Either
String
(Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
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
"EventPattern")
Either
String
(Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe ArchiveState)
-> Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ArchiveState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EventCount")
Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
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
"ArchiveName")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeArchiveResponse)
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
"RetentionDays")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> Int -> DescribeArchiveResponse)
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
"ArchiveArn")
Either
String (Maybe Text -> Maybe Text -> Int -> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeArchiveResponse)
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
"StateReason")
Either String (Maybe Text -> Int -> DescribeArchiveResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeArchiveResponse)
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
"Description")
Either String (Int -> DescribeArchiveResponse)
-> Either String Int -> Either String DescribeArchiveResponse
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 DescribeArchive
instance Prelude.NFData DescribeArchive
instance Core.ToHeaders DescribeArchive where
toHeaders :: DescribeArchive -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeArchive -> 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
"AWSEvents.DescribeArchive" :: 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 DescribeArchive where
toJSON :: DescribeArchive -> Value
toJSON DescribeArchive' {Text
archiveName :: Text
$sel:archiveName:DescribeArchive' :: DescribeArchive -> 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
"ArchiveName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
archiveName)]
)
instance Core.ToPath DescribeArchive where
toPath :: DescribeArchive -> ByteString
toPath = ByteString -> DescribeArchive -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeArchive where
toQuery :: DescribeArchive -> QueryString
toQuery = QueryString -> DescribeArchive -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeArchiveResponse = DescribeArchiveResponse'
{
DescribeArchiveResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeArchiveResponse -> Maybe Integer
sizeBytes :: Prelude.Maybe Prelude.Integer,
DescribeArchiveResponse -> Maybe Text
eventSourceArn :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Maybe Text
eventPattern :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Maybe ArchiveState
state :: Prelude.Maybe ArchiveState,
DescribeArchiveResponse -> Maybe Integer
eventCount :: Prelude.Maybe Prelude.Integer,
DescribeArchiveResponse -> Maybe Text
archiveName :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Maybe Natural
retentionDays :: Prelude.Maybe Prelude.Natural,
DescribeArchiveResponse -> Maybe Text
archiveArn :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Maybe Text
stateReason :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeArchiveResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeArchiveResponse -> DescribeArchiveResponse -> Bool
(DescribeArchiveResponse -> DescribeArchiveResponse -> Bool)
-> (DescribeArchiveResponse -> DescribeArchiveResponse -> Bool)
-> Eq DescribeArchiveResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeArchiveResponse -> DescribeArchiveResponse -> Bool
$c/= :: DescribeArchiveResponse -> DescribeArchiveResponse -> Bool
== :: DescribeArchiveResponse -> DescribeArchiveResponse -> Bool
$c== :: DescribeArchiveResponse -> DescribeArchiveResponse -> Bool
Prelude.Eq, ReadPrec [DescribeArchiveResponse]
ReadPrec DescribeArchiveResponse
Int -> ReadS DescribeArchiveResponse
ReadS [DescribeArchiveResponse]
(Int -> ReadS DescribeArchiveResponse)
-> ReadS [DescribeArchiveResponse]
-> ReadPrec DescribeArchiveResponse
-> ReadPrec [DescribeArchiveResponse]
-> Read DescribeArchiveResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeArchiveResponse]
$creadListPrec :: ReadPrec [DescribeArchiveResponse]
readPrec :: ReadPrec DescribeArchiveResponse
$creadPrec :: ReadPrec DescribeArchiveResponse
readList :: ReadS [DescribeArchiveResponse]
$creadList :: ReadS [DescribeArchiveResponse]
readsPrec :: Int -> ReadS DescribeArchiveResponse
$creadsPrec :: Int -> ReadS DescribeArchiveResponse
Prelude.Read, Int -> DescribeArchiveResponse -> ShowS
[DescribeArchiveResponse] -> ShowS
DescribeArchiveResponse -> String
(Int -> DescribeArchiveResponse -> ShowS)
-> (DescribeArchiveResponse -> String)
-> ([DescribeArchiveResponse] -> ShowS)
-> Show DescribeArchiveResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeArchiveResponse] -> ShowS
$cshowList :: [DescribeArchiveResponse] -> ShowS
show :: DescribeArchiveResponse -> String
$cshow :: DescribeArchiveResponse -> String
showsPrec :: Int -> DescribeArchiveResponse -> ShowS
$cshowsPrec :: Int -> DescribeArchiveResponse -> ShowS
Prelude.Show, (forall x.
DescribeArchiveResponse -> Rep DescribeArchiveResponse x)
-> (forall x.
Rep DescribeArchiveResponse x -> DescribeArchiveResponse)
-> Generic DescribeArchiveResponse
forall x. Rep DescribeArchiveResponse x -> DescribeArchiveResponse
forall x. DescribeArchiveResponse -> Rep DescribeArchiveResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeArchiveResponse x -> DescribeArchiveResponse
$cfrom :: forall x. DescribeArchiveResponse -> Rep DescribeArchiveResponse x
Prelude.Generic)
newDescribeArchiveResponse ::
Prelude.Int ->
DescribeArchiveResponse
newDescribeArchiveResponse :: Int -> DescribeArchiveResponse
newDescribeArchiveResponse Int
pHttpStatus_ =
DescribeArchiveResponse' :: Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe ArchiveState
-> Maybe Integer
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeArchiveResponse
DescribeArchiveResponse'
{ $sel:creationTime:DescribeArchiveResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sizeBytes:DescribeArchiveResponse' :: Maybe Integer
sizeBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:eventSourceArn:DescribeArchiveResponse' :: Maybe Text
eventSourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eventPattern:DescribeArchiveResponse' :: Maybe Text
eventPattern = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:DescribeArchiveResponse' :: Maybe ArchiveState
state = Maybe ArchiveState
forall a. Maybe a
Prelude.Nothing,
$sel:eventCount:DescribeArchiveResponse' :: Maybe Integer
eventCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:archiveName:DescribeArchiveResponse' :: Maybe Text
archiveName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:retentionDays:DescribeArchiveResponse' :: Maybe Natural
retentionDays = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:archiveArn:DescribeArchiveResponse' :: Maybe Text
archiveArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stateReason:DescribeArchiveResponse' :: Maybe Text
stateReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeArchiveResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeArchiveResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeArchiveResponse_creationTime :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.UTCTime)
describeArchiveResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_creationTime = (DescribeArchiveResponse -> Maybe POSIX)
-> (DescribeArchiveResponse
-> Maybe POSIX -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe POSIX
a -> DescribeArchiveResponse
s {$sel:creationTime:DescribeArchiveResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeArchiveResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeArchiveResponse -> f DescribeArchiveResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeArchiveResponse
-> f DescribeArchiveResponse
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
describeArchiveResponse_sizeBytes :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Integer)
describeArchiveResponse_sizeBytes :: (Maybe Integer -> f (Maybe Integer))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_sizeBytes = (DescribeArchiveResponse -> Maybe Integer)
-> (DescribeArchiveResponse
-> Maybe Integer -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Integer
sizeBytes :: Maybe Integer
$sel:sizeBytes:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Integer
sizeBytes} -> Maybe Integer
sizeBytes) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Integer
a -> DescribeArchiveResponse
s {$sel:sizeBytes:DescribeArchiveResponse' :: Maybe Integer
sizeBytes = Maybe Integer
a} :: DescribeArchiveResponse)
describeArchiveResponse_eventSourceArn :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_eventSourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_eventSourceArn = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
eventSourceArn :: Maybe Text
$sel:eventSourceArn:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
eventSourceArn} -> Maybe Text
eventSourceArn) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:eventSourceArn:DescribeArchiveResponse' :: Maybe Text
eventSourceArn = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_eventPattern :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_eventPattern :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_eventPattern = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
eventPattern :: Maybe Text
$sel:eventPattern:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
eventPattern} -> Maybe Text
eventPattern) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:eventPattern:DescribeArchiveResponse' :: Maybe Text
eventPattern = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_state :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe ArchiveState)
describeArchiveResponse_state :: (Maybe ArchiveState -> f (Maybe ArchiveState))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_state = (DescribeArchiveResponse -> Maybe ArchiveState)
-> (DescribeArchiveResponse
-> Maybe ArchiveState -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe ArchiveState)
(Maybe ArchiveState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe ArchiveState
state :: Maybe ArchiveState
$sel:state:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe ArchiveState
state} -> Maybe ArchiveState
state) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe ArchiveState
a -> DescribeArchiveResponse
s {$sel:state:DescribeArchiveResponse' :: Maybe ArchiveState
state = Maybe ArchiveState
a} :: DescribeArchiveResponse)
describeArchiveResponse_eventCount :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Integer)
describeArchiveResponse_eventCount :: (Maybe Integer -> f (Maybe Integer))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_eventCount = (DescribeArchiveResponse -> Maybe Integer)
-> (DescribeArchiveResponse
-> Maybe Integer -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Integer
eventCount :: Maybe Integer
$sel:eventCount:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Integer
eventCount} -> Maybe Integer
eventCount) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Integer
a -> DescribeArchiveResponse
s {$sel:eventCount:DescribeArchiveResponse' :: Maybe Integer
eventCount = Maybe Integer
a} :: DescribeArchiveResponse)
describeArchiveResponse_archiveName :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_archiveName :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_archiveName = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
archiveName :: Maybe Text
$sel:archiveName:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
archiveName} -> Maybe Text
archiveName) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:archiveName:DescribeArchiveResponse' :: Maybe Text
archiveName = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_retentionDays :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Natural)
describeArchiveResponse_retentionDays :: (Maybe Natural -> f (Maybe Natural))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_retentionDays = (DescribeArchiveResponse -> Maybe Natural)
-> (DescribeArchiveResponse
-> Maybe Natural -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Natural
retentionDays :: Maybe Natural
$sel:retentionDays:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Natural
retentionDays} -> Maybe Natural
retentionDays) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Natural
a -> DescribeArchiveResponse
s {$sel:retentionDays:DescribeArchiveResponse' :: Maybe Natural
retentionDays = Maybe Natural
a} :: DescribeArchiveResponse)
describeArchiveResponse_archiveArn :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_archiveArn :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_archiveArn = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
archiveArn :: Maybe Text
$sel:archiveArn:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
archiveArn} -> Maybe Text
archiveArn) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:archiveArn:DescribeArchiveResponse' :: Maybe Text
archiveArn = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_stateReason :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_stateReason :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_stateReason = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
stateReason :: Maybe Text
$sel:stateReason:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
stateReason} -> Maybe Text
stateReason) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:stateReason:DescribeArchiveResponse' :: Maybe Text
stateReason = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_description :: Lens.Lens' DescribeArchiveResponse (Prelude.Maybe Prelude.Text)
describeArchiveResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_description = (DescribeArchiveResponse -> Maybe Text)
-> (DescribeArchiveResponse
-> Maybe Text -> DescribeArchiveResponse)
-> Lens
DescribeArchiveResponse
DescribeArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeArchiveResponse' :: DescribeArchiveResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Maybe Text
a -> DescribeArchiveResponse
s {$sel:description:DescribeArchiveResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeArchiveResponse)
describeArchiveResponse_httpStatus :: Lens.Lens' DescribeArchiveResponse Prelude.Int
describeArchiveResponse_httpStatus :: (Int -> f Int)
-> DescribeArchiveResponse -> f DescribeArchiveResponse
describeArchiveResponse_httpStatus = (DescribeArchiveResponse -> Int)
-> (DescribeArchiveResponse -> Int -> DescribeArchiveResponse)
-> Lens DescribeArchiveResponse DescribeArchiveResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeArchiveResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeArchiveResponse' :: DescribeArchiveResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeArchiveResponse
s@DescribeArchiveResponse' {} Int
a -> DescribeArchiveResponse
s {$sel:httpStatus:DescribeArchiveResponse' :: Int
httpStatus = Int
a} :: DescribeArchiveResponse)
instance Prelude.NFData DescribeArchiveResponse