{-# 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.UpdateArchive
(
UpdateArchive (..),
newUpdateArchive,
updateArchive_eventPattern,
updateArchive_retentionDays,
updateArchive_description,
updateArchive_archiveName,
UpdateArchiveResponse (..),
newUpdateArchiveResponse,
updateArchiveResponse_creationTime,
updateArchiveResponse_state,
updateArchiveResponse_archiveArn,
updateArchiveResponse_stateReason,
updateArchiveResponse_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 UpdateArchive = UpdateArchive'
{
UpdateArchive -> Maybe Text
eventPattern :: Prelude.Maybe Prelude.Text,
UpdateArchive -> Maybe Natural
retentionDays :: Prelude.Maybe Prelude.Natural,
UpdateArchive -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateArchive -> Text
archiveName :: Prelude.Text
}
deriving (UpdateArchive -> UpdateArchive -> Bool
(UpdateArchive -> UpdateArchive -> Bool)
-> (UpdateArchive -> UpdateArchive -> Bool) -> Eq UpdateArchive
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateArchive -> UpdateArchive -> Bool
$c/= :: UpdateArchive -> UpdateArchive -> Bool
== :: UpdateArchive -> UpdateArchive -> Bool
$c== :: UpdateArchive -> UpdateArchive -> Bool
Prelude.Eq, ReadPrec [UpdateArchive]
ReadPrec UpdateArchive
Int -> ReadS UpdateArchive
ReadS [UpdateArchive]
(Int -> ReadS UpdateArchive)
-> ReadS [UpdateArchive]
-> ReadPrec UpdateArchive
-> ReadPrec [UpdateArchive]
-> Read UpdateArchive
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateArchive]
$creadListPrec :: ReadPrec [UpdateArchive]
readPrec :: ReadPrec UpdateArchive
$creadPrec :: ReadPrec UpdateArchive
readList :: ReadS [UpdateArchive]
$creadList :: ReadS [UpdateArchive]
readsPrec :: Int -> ReadS UpdateArchive
$creadsPrec :: Int -> ReadS UpdateArchive
Prelude.Read, Int -> UpdateArchive -> ShowS
[UpdateArchive] -> ShowS
UpdateArchive -> String
(Int -> UpdateArchive -> ShowS)
-> (UpdateArchive -> String)
-> ([UpdateArchive] -> ShowS)
-> Show UpdateArchive
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateArchive] -> ShowS
$cshowList :: [UpdateArchive] -> ShowS
show :: UpdateArchive -> String
$cshow :: UpdateArchive -> String
showsPrec :: Int -> UpdateArchive -> ShowS
$cshowsPrec :: Int -> UpdateArchive -> ShowS
Prelude.Show, (forall x. UpdateArchive -> Rep UpdateArchive x)
-> (forall x. Rep UpdateArchive x -> UpdateArchive)
-> Generic UpdateArchive
forall x. Rep UpdateArchive x -> UpdateArchive
forall x. UpdateArchive -> Rep UpdateArchive x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateArchive x -> UpdateArchive
$cfrom :: forall x. UpdateArchive -> Rep UpdateArchive x
Prelude.Generic)
newUpdateArchive ::
Prelude.Text ->
UpdateArchive
newUpdateArchive :: Text -> UpdateArchive
newUpdateArchive Text
pArchiveName_ =
UpdateArchive' :: Maybe Text -> Maybe Natural -> Maybe Text -> Text -> UpdateArchive
UpdateArchive'
{ $sel:eventPattern:UpdateArchive' :: Maybe Text
eventPattern = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:retentionDays:UpdateArchive' :: Maybe Natural
retentionDays = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateArchive' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:archiveName:UpdateArchive' :: Text
archiveName = Text
pArchiveName_
}
updateArchive_eventPattern :: Lens.Lens' UpdateArchive (Prelude.Maybe Prelude.Text)
updateArchive_eventPattern :: (Maybe Text -> f (Maybe Text)) -> UpdateArchive -> f UpdateArchive
updateArchive_eventPattern = (UpdateArchive -> Maybe Text)
-> (UpdateArchive -> Maybe Text -> UpdateArchive)
-> Lens UpdateArchive UpdateArchive (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchive' {Maybe Text
eventPattern :: Maybe Text
$sel:eventPattern:UpdateArchive' :: UpdateArchive -> Maybe Text
eventPattern} -> Maybe Text
eventPattern) (\s :: UpdateArchive
s@UpdateArchive' {} Maybe Text
a -> UpdateArchive
s {$sel:eventPattern:UpdateArchive' :: Maybe Text
eventPattern = Maybe Text
a} :: UpdateArchive)
updateArchive_retentionDays :: Lens.Lens' UpdateArchive (Prelude.Maybe Prelude.Natural)
updateArchive_retentionDays :: (Maybe Natural -> f (Maybe Natural))
-> UpdateArchive -> f UpdateArchive
updateArchive_retentionDays = (UpdateArchive -> Maybe Natural)
-> (UpdateArchive -> Maybe Natural -> UpdateArchive)
-> Lens UpdateArchive UpdateArchive (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchive' {Maybe Natural
retentionDays :: Maybe Natural
$sel:retentionDays:UpdateArchive' :: UpdateArchive -> Maybe Natural
retentionDays} -> Maybe Natural
retentionDays) (\s :: UpdateArchive
s@UpdateArchive' {} Maybe Natural
a -> UpdateArchive
s {$sel:retentionDays:UpdateArchive' :: Maybe Natural
retentionDays = Maybe Natural
a} :: UpdateArchive)
updateArchive_description :: Lens.Lens' UpdateArchive (Prelude.Maybe Prelude.Text)
updateArchive_description :: (Maybe Text -> f (Maybe Text)) -> UpdateArchive -> f UpdateArchive
updateArchive_description = (UpdateArchive -> Maybe Text)
-> (UpdateArchive -> Maybe Text -> UpdateArchive)
-> Lens UpdateArchive UpdateArchive (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchive' {Maybe Text
description :: Maybe Text
$sel:description:UpdateArchive' :: UpdateArchive -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateArchive
s@UpdateArchive' {} Maybe Text
a -> UpdateArchive
s {$sel:description:UpdateArchive' :: Maybe Text
description = Maybe Text
a} :: UpdateArchive)
updateArchive_archiveName :: Lens.Lens' UpdateArchive Prelude.Text
updateArchive_archiveName :: (Text -> f Text) -> UpdateArchive -> f UpdateArchive
updateArchive_archiveName = (UpdateArchive -> Text)
-> (UpdateArchive -> Text -> UpdateArchive)
-> Lens UpdateArchive UpdateArchive Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchive' {Text
archiveName :: Text
$sel:archiveName:UpdateArchive' :: UpdateArchive -> Text
archiveName} -> Text
archiveName) (\s :: UpdateArchive
s@UpdateArchive' {} Text
a -> UpdateArchive
s {$sel:archiveName:UpdateArchive' :: Text
archiveName = Text
a} :: UpdateArchive)
instance Core.AWSRequest UpdateArchive where
type
AWSResponse UpdateArchive =
UpdateArchiveResponse
request :: UpdateArchive -> Request UpdateArchive
request = Service -> UpdateArchive -> Request UpdateArchive
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateArchive
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateArchive)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateArchive))
-> Logger
-> Service
-> Proxy UpdateArchive
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateArchive)))
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 ArchiveState
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateArchiveResponse
UpdateArchiveResponse'
(Maybe POSIX
-> Maybe ArchiveState
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateArchiveResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe ArchiveState
-> Maybe Text -> Maybe Text -> Int -> UpdateArchiveResponse)
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 ArchiveState
-> Maybe Text -> Maybe Text -> Int -> UpdateArchiveResponse)
-> Either String (Maybe ArchiveState)
-> Either
String (Maybe Text -> Maybe Text -> Int -> UpdateArchiveResponse)
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 Text -> Maybe Text -> Int -> UpdateArchiveResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateArchiveResponse)
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 -> Int -> UpdateArchiveResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateArchiveResponse)
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 (Int -> UpdateArchiveResponse)
-> Either String Int -> Either String UpdateArchiveResponse
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 UpdateArchive
instance Prelude.NFData UpdateArchive
instance Core.ToHeaders UpdateArchive where
toHeaders :: UpdateArchive -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateArchive -> 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.UpdateArchive" :: 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 UpdateArchive where
toJSON :: UpdateArchive -> Value
toJSON UpdateArchive' {Maybe Natural
Maybe Text
Text
archiveName :: Text
description :: Maybe Text
retentionDays :: Maybe Natural
eventPattern :: Maybe Text
$sel:archiveName:UpdateArchive' :: UpdateArchive -> Text
$sel:description:UpdateArchive' :: UpdateArchive -> Maybe Text
$sel:retentionDays:UpdateArchive' :: UpdateArchive -> Maybe Natural
$sel:eventPattern:UpdateArchive' :: UpdateArchive -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"EventPattern" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
eventPattern,
(Text
"RetentionDays" 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
retentionDays,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
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 UpdateArchive where
toPath :: UpdateArchive -> ByteString
toPath = ByteString -> UpdateArchive -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateArchive where
toQuery :: UpdateArchive -> QueryString
toQuery = QueryString -> UpdateArchive -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateArchiveResponse = UpdateArchiveResponse'
{
UpdateArchiveResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
UpdateArchiveResponse -> Maybe ArchiveState
state :: Prelude.Maybe ArchiveState,
UpdateArchiveResponse -> Maybe Text
archiveArn :: Prelude.Maybe Prelude.Text,
UpdateArchiveResponse -> Maybe Text
stateReason :: Prelude.Maybe Prelude.Text,
UpdateArchiveResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateArchiveResponse -> UpdateArchiveResponse -> Bool
(UpdateArchiveResponse -> UpdateArchiveResponse -> Bool)
-> (UpdateArchiveResponse -> UpdateArchiveResponse -> Bool)
-> Eq UpdateArchiveResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateArchiveResponse -> UpdateArchiveResponse -> Bool
$c/= :: UpdateArchiveResponse -> UpdateArchiveResponse -> Bool
== :: UpdateArchiveResponse -> UpdateArchiveResponse -> Bool
$c== :: UpdateArchiveResponse -> UpdateArchiveResponse -> Bool
Prelude.Eq, ReadPrec [UpdateArchiveResponse]
ReadPrec UpdateArchiveResponse
Int -> ReadS UpdateArchiveResponse
ReadS [UpdateArchiveResponse]
(Int -> ReadS UpdateArchiveResponse)
-> ReadS [UpdateArchiveResponse]
-> ReadPrec UpdateArchiveResponse
-> ReadPrec [UpdateArchiveResponse]
-> Read UpdateArchiveResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateArchiveResponse]
$creadListPrec :: ReadPrec [UpdateArchiveResponse]
readPrec :: ReadPrec UpdateArchiveResponse
$creadPrec :: ReadPrec UpdateArchiveResponse
readList :: ReadS [UpdateArchiveResponse]
$creadList :: ReadS [UpdateArchiveResponse]
readsPrec :: Int -> ReadS UpdateArchiveResponse
$creadsPrec :: Int -> ReadS UpdateArchiveResponse
Prelude.Read, Int -> UpdateArchiveResponse -> ShowS
[UpdateArchiveResponse] -> ShowS
UpdateArchiveResponse -> String
(Int -> UpdateArchiveResponse -> ShowS)
-> (UpdateArchiveResponse -> String)
-> ([UpdateArchiveResponse] -> ShowS)
-> Show UpdateArchiveResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateArchiveResponse] -> ShowS
$cshowList :: [UpdateArchiveResponse] -> ShowS
show :: UpdateArchiveResponse -> String
$cshow :: UpdateArchiveResponse -> String
showsPrec :: Int -> UpdateArchiveResponse -> ShowS
$cshowsPrec :: Int -> UpdateArchiveResponse -> ShowS
Prelude.Show, (forall x. UpdateArchiveResponse -> Rep UpdateArchiveResponse x)
-> (forall x. Rep UpdateArchiveResponse x -> UpdateArchiveResponse)
-> Generic UpdateArchiveResponse
forall x. Rep UpdateArchiveResponse x -> UpdateArchiveResponse
forall x. UpdateArchiveResponse -> Rep UpdateArchiveResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateArchiveResponse x -> UpdateArchiveResponse
$cfrom :: forall x. UpdateArchiveResponse -> Rep UpdateArchiveResponse x
Prelude.Generic)
newUpdateArchiveResponse ::
Prelude.Int ->
UpdateArchiveResponse
newUpdateArchiveResponse :: Int -> UpdateArchiveResponse
newUpdateArchiveResponse Int
pHttpStatus_ =
UpdateArchiveResponse' :: Maybe POSIX
-> Maybe ArchiveState
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateArchiveResponse
UpdateArchiveResponse'
{ $sel:creationTime:UpdateArchiveResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:state:UpdateArchiveResponse' :: Maybe ArchiveState
state = Maybe ArchiveState
forall a. Maybe a
Prelude.Nothing,
$sel:archiveArn:UpdateArchiveResponse' :: Maybe Text
archiveArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stateReason:UpdateArchiveResponse' :: Maybe Text
stateReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateArchiveResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateArchiveResponse_creationTime :: Lens.Lens' UpdateArchiveResponse (Prelude.Maybe Prelude.UTCTime)
updateArchiveResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateArchiveResponse -> f UpdateArchiveResponse
updateArchiveResponse_creationTime = (UpdateArchiveResponse -> Maybe POSIX)
-> (UpdateArchiveResponse -> Maybe POSIX -> UpdateArchiveResponse)
-> Lens
UpdateArchiveResponse
UpdateArchiveResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchiveResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateArchiveResponse' :: UpdateArchiveResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateArchiveResponse
s@UpdateArchiveResponse' {} Maybe POSIX
a -> UpdateArchiveResponse
s {$sel:creationTime:UpdateArchiveResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateArchiveResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateArchiveResponse -> f UpdateArchiveResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateArchiveResponse
-> f UpdateArchiveResponse
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
updateArchiveResponse_state :: Lens.Lens' UpdateArchiveResponse (Prelude.Maybe ArchiveState)
updateArchiveResponse_state :: (Maybe ArchiveState -> f (Maybe ArchiveState))
-> UpdateArchiveResponse -> f UpdateArchiveResponse
updateArchiveResponse_state = (UpdateArchiveResponse -> Maybe ArchiveState)
-> (UpdateArchiveResponse
-> Maybe ArchiveState -> UpdateArchiveResponse)
-> Lens
UpdateArchiveResponse
UpdateArchiveResponse
(Maybe ArchiveState)
(Maybe ArchiveState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchiveResponse' {Maybe ArchiveState
state :: Maybe ArchiveState
$sel:state:UpdateArchiveResponse' :: UpdateArchiveResponse -> Maybe ArchiveState
state} -> Maybe ArchiveState
state) (\s :: UpdateArchiveResponse
s@UpdateArchiveResponse' {} Maybe ArchiveState
a -> UpdateArchiveResponse
s {$sel:state:UpdateArchiveResponse' :: Maybe ArchiveState
state = Maybe ArchiveState
a} :: UpdateArchiveResponse)
updateArchiveResponse_archiveArn :: Lens.Lens' UpdateArchiveResponse (Prelude.Maybe Prelude.Text)
updateArchiveResponse_archiveArn :: (Maybe Text -> f (Maybe Text))
-> UpdateArchiveResponse -> f UpdateArchiveResponse
updateArchiveResponse_archiveArn = (UpdateArchiveResponse -> Maybe Text)
-> (UpdateArchiveResponse -> Maybe Text -> UpdateArchiveResponse)
-> Lens
UpdateArchiveResponse
UpdateArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchiveResponse' {Maybe Text
archiveArn :: Maybe Text
$sel:archiveArn:UpdateArchiveResponse' :: UpdateArchiveResponse -> Maybe Text
archiveArn} -> Maybe Text
archiveArn) (\s :: UpdateArchiveResponse
s@UpdateArchiveResponse' {} Maybe Text
a -> UpdateArchiveResponse
s {$sel:archiveArn:UpdateArchiveResponse' :: Maybe Text
archiveArn = Maybe Text
a} :: UpdateArchiveResponse)
updateArchiveResponse_stateReason :: Lens.Lens' UpdateArchiveResponse (Prelude.Maybe Prelude.Text)
updateArchiveResponse_stateReason :: (Maybe Text -> f (Maybe Text))
-> UpdateArchiveResponse -> f UpdateArchiveResponse
updateArchiveResponse_stateReason = (UpdateArchiveResponse -> Maybe Text)
-> (UpdateArchiveResponse -> Maybe Text -> UpdateArchiveResponse)
-> Lens
UpdateArchiveResponse
UpdateArchiveResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchiveResponse' {Maybe Text
stateReason :: Maybe Text
$sel:stateReason:UpdateArchiveResponse' :: UpdateArchiveResponse -> Maybe Text
stateReason} -> Maybe Text
stateReason) (\s :: UpdateArchiveResponse
s@UpdateArchiveResponse' {} Maybe Text
a -> UpdateArchiveResponse
s {$sel:stateReason:UpdateArchiveResponse' :: Maybe Text
stateReason = Maybe Text
a} :: UpdateArchiveResponse)
updateArchiveResponse_httpStatus :: Lens.Lens' UpdateArchiveResponse Prelude.Int
updateArchiveResponse_httpStatus :: (Int -> f Int) -> UpdateArchiveResponse -> f UpdateArchiveResponse
updateArchiveResponse_httpStatus = (UpdateArchiveResponse -> Int)
-> (UpdateArchiveResponse -> Int -> UpdateArchiveResponse)
-> Lens UpdateArchiveResponse UpdateArchiveResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateArchiveResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateArchiveResponse' :: UpdateArchiveResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateArchiveResponse
s@UpdateArchiveResponse' {} Int
a -> UpdateArchiveResponse
s {$sel:httpStatus:UpdateArchiveResponse' :: Int
httpStatus = Int
a} :: UpdateArchiveResponse)
instance Prelude.NFData UpdateArchiveResponse