{-# 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.Backup.UpdateFramework
(
UpdateFramework (..),
newUpdateFramework,
updateFramework_idempotencyToken,
updateFramework_frameworkDescription,
updateFramework_frameworkControls,
updateFramework_frameworkName,
UpdateFrameworkResponse (..),
newUpdateFrameworkResponse,
updateFrameworkResponse_creationTime,
updateFrameworkResponse_frameworkArn,
updateFrameworkResponse_frameworkName,
updateFrameworkResponse_httpStatus,
)
where
import Amazonka.Backup.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 UpdateFramework = UpdateFramework'
{
UpdateFramework -> Maybe Text
idempotencyToken :: Prelude.Maybe Prelude.Text,
UpdateFramework -> Maybe Text
frameworkDescription :: Prelude.Maybe Prelude.Text,
UpdateFramework -> Maybe [FrameworkControl]
frameworkControls :: Prelude.Maybe [FrameworkControl],
UpdateFramework -> Text
frameworkName :: Prelude.Text
}
deriving (UpdateFramework -> UpdateFramework -> Bool
(UpdateFramework -> UpdateFramework -> Bool)
-> (UpdateFramework -> UpdateFramework -> Bool)
-> Eq UpdateFramework
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFramework -> UpdateFramework -> Bool
$c/= :: UpdateFramework -> UpdateFramework -> Bool
== :: UpdateFramework -> UpdateFramework -> Bool
$c== :: UpdateFramework -> UpdateFramework -> Bool
Prelude.Eq, ReadPrec [UpdateFramework]
ReadPrec UpdateFramework
Int -> ReadS UpdateFramework
ReadS [UpdateFramework]
(Int -> ReadS UpdateFramework)
-> ReadS [UpdateFramework]
-> ReadPrec UpdateFramework
-> ReadPrec [UpdateFramework]
-> Read UpdateFramework
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFramework]
$creadListPrec :: ReadPrec [UpdateFramework]
readPrec :: ReadPrec UpdateFramework
$creadPrec :: ReadPrec UpdateFramework
readList :: ReadS [UpdateFramework]
$creadList :: ReadS [UpdateFramework]
readsPrec :: Int -> ReadS UpdateFramework
$creadsPrec :: Int -> ReadS UpdateFramework
Prelude.Read, Int -> UpdateFramework -> ShowS
[UpdateFramework] -> ShowS
UpdateFramework -> String
(Int -> UpdateFramework -> ShowS)
-> (UpdateFramework -> String)
-> ([UpdateFramework] -> ShowS)
-> Show UpdateFramework
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFramework] -> ShowS
$cshowList :: [UpdateFramework] -> ShowS
show :: UpdateFramework -> String
$cshow :: UpdateFramework -> String
showsPrec :: Int -> UpdateFramework -> ShowS
$cshowsPrec :: Int -> UpdateFramework -> ShowS
Prelude.Show, (forall x. UpdateFramework -> Rep UpdateFramework x)
-> (forall x. Rep UpdateFramework x -> UpdateFramework)
-> Generic UpdateFramework
forall x. Rep UpdateFramework x -> UpdateFramework
forall x. UpdateFramework -> Rep UpdateFramework x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateFramework x -> UpdateFramework
$cfrom :: forall x. UpdateFramework -> Rep UpdateFramework x
Prelude.Generic)
newUpdateFramework ::
Prelude.Text ->
UpdateFramework
newUpdateFramework :: Text -> UpdateFramework
newUpdateFramework Text
pFrameworkName_ =
UpdateFramework' :: Maybe Text
-> Maybe Text
-> Maybe [FrameworkControl]
-> Text
-> UpdateFramework
UpdateFramework'
{ $sel:idempotencyToken:UpdateFramework' :: Maybe Text
idempotencyToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkDescription:UpdateFramework' :: Maybe Text
frameworkDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkControls:UpdateFramework' :: Maybe [FrameworkControl]
frameworkControls = Maybe [FrameworkControl]
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkName:UpdateFramework' :: Text
frameworkName = Text
pFrameworkName_
}
updateFramework_idempotencyToken :: Lens.Lens' UpdateFramework (Prelude.Maybe Prelude.Text)
updateFramework_idempotencyToken :: (Maybe Text -> f (Maybe Text))
-> UpdateFramework -> f UpdateFramework
updateFramework_idempotencyToken = (UpdateFramework -> Maybe Text)
-> (UpdateFramework -> Maybe Text -> UpdateFramework)
-> Lens UpdateFramework UpdateFramework (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFramework' {Maybe Text
idempotencyToken :: Maybe Text
$sel:idempotencyToken:UpdateFramework' :: UpdateFramework -> Maybe Text
idempotencyToken} -> Maybe Text
idempotencyToken) (\s :: UpdateFramework
s@UpdateFramework' {} Maybe Text
a -> UpdateFramework
s {$sel:idempotencyToken:UpdateFramework' :: Maybe Text
idempotencyToken = Maybe Text
a} :: UpdateFramework)
updateFramework_frameworkDescription :: Lens.Lens' UpdateFramework (Prelude.Maybe Prelude.Text)
updateFramework_frameworkDescription :: (Maybe Text -> f (Maybe Text))
-> UpdateFramework -> f UpdateFramework
updateFramework_frameworkDescription = (UpdateFramework -> Maybe Text)
-> (UpdateFramework -> Maybe Text -> UpdateFramework)
-> Lens UpdateFramework UpdateFramework (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFramework' {Maybe Text
frameworkDescription :: Maybe Text
$sel:frameworkDescription:UpdateFramework' :: UpdateFramework -> Maybe Text
frameworkDescription} -> Maybe Text
frameworkDescription) (\s :: UpdateFramework
s@UpdateFramework' {} Maybe Text
a -> UpdateFramework
s {$sel:frameworkDescription:UpdateFramework' :: Maybe Text
frameworkDescription = Maybe Text
a} :: UpdateFramework)
updateFramework_frameworkControls :: Lens.Lens' UpdateFramework (Prelude.Maybe [FrameworkControl])
updateFramework_frameworkControls :: (Maybe [FrameworkControl] -> f (Maybe [FrameworkControl]))
-> UpdateFramework -> f UpdateFramework
updateFramework_frameworkControls = (UpdateFramework -> Maybe [FrameworkControl])
-> (UpdateFramework -> Maybe [FrameworkControl] -> UpdateFramework)
-> Lens
UpdateFramework
UpdateFramework
(Maybe [FrameworkControl])
(Maybe [FrameworkControl])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFramework' {Maybe [FrameworkControl]
frameworkControls :: Maybe [FrameworkControl]
$sel:frameworkControls:UpdateFramework' :: UpdateFramework -> Maybe [FrameworkControl]
frameworkControls} -> Maybe [FrameworkControl]
frameworkControls) (\s :: UpdateFramework
s@UpdateFramework' {} Maybe [FrameworkControl]
a -> UpdateFramework
s {$sel:frameworkControls:UpdateFramework' :: Maybe [FrameworkControl]
frameworkControls = Maybe [FrameworkControl]
a} :: UpdateFramework) ((Maybe [FrameworkControl] -> f (Maybe [FrameworkControl]))
-> UpdateFramework -> f UpdateFramework)
-> ((Maybe [FrameworkControl] -> f (Maybe [FrameworkControl]))
-> Maybe [FrameworkControl] -> f (Maybe [FrameworkControl]))
-> (Maybe [FrameworkControl] -> f (Maybe [FrameworkControl]))
-> UpdateFramework
-> f UpdateFramework
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FrameworkControl]
[FrameworkControl]
[FrameworkControl]
[FrameworkControl]
-> Iso
(Maybe [FrameworkControl])
(Maybe [FrameworkControl])
(Maybe [FrameworkControl])
(Maybe [FrameworkControl])
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
[FrameworkControl]
[FrameworkControl]
[FrameworkControl]
[FrameworkControl]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateFramework_frameworkName :: Lens.Lens' UpdateFramework Prelude.Text
updateFramework_frameworkName :: (Text -> f Text) -> UpdateFramework -> f UpdateFramework
updateFramework_frameworkName = (UpdateFramework -> Text)
-> (UpdateFramework -> Text -> UpdateFramework)
-> Lens UpdateFramework UpdateFramework Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFramework' {Text
frameworkName :: Text
$sel:frameworkName:UpdateFramework' :: UpdateFramework -> Text
frameworkName} -> Text
frameworkName) (\s :: UpdateFramework
s@UpdateFramework' {} Text
a -> UpdateFramework
s {$sel:frameworkName:UpdateFramework' :: Text
frameworkName = Text
a} :: UpdateFramework)
instance Core.AWSRequest UpdateFramework where
type
AWSResponse UpdateFramework =
UpdateFrameworkResponse
request :: UpdateFramework -> Request UpdateFramework
request = Service -> UpdateFramework -> Request UpdateFramework
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateFramework
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateFramework)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateFramework))
-> Logger
-> Service
-> Proxy UpdateFramework
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateFramework)))
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 Text -> Maybe Text -> Int -> UpdateFrameworkResponse
UpdateFrameworkResponse'
(Maybe POSIX
-> Maybe Text -> Maybe Text -> Int -> UpdateFrameworkResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Text -> Maybe Text -> Int -> UpdateFrameworkResponse)
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 Text -> Maybe Text -> Int -> UpdateFrameworkResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateFrameworkResponse)
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
"FrameworkArn")
Either String (Maybe Text -> Int -> UpdateFrameworkResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateFrameworkResponse)
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
"FrameworkName")
Either String (Int -> UpdateFrameworkResponse)
-> Either String Int -> Either String UpdateFrameworkResponse
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 UpdateFramework
instance Prelude.NFData UpdateFramework
instance Core.ToHeaders UpdateFramework where
toHeaders :: UpdateFramework -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateFramework -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 UpdateFramework where
toJSON :: UpdateFramework -> Value
toJSON UpdateFramework' {Maybe [FrameworkControl]
Maybe Text
Text
frameworkName :: Text
frameworkControls :: Maybe [FrameworkControl]
frameworkDescription :: Maybe Text
idempotencyToken :: Maybe Text
$sel:frameworkName:UpdateFramework' :: UpdateFramework -> Text
$sel:frameworkControls:UpdateFramework' :: UpdateFramework -> Maybe [FrameworkControl]
$sel:frameworkDescription:UpdateFramework' :: UpdateFramework -> Maybe Text
$sel:idempotencyToken:UpdateFramework' :: UpdateFramework -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"IdempotencyToken" 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
idempotencyToken,
(Text
"FrameworkDescription" 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
frameworkDescription,
(Text
"FrameworkControls" Text -> [FrameworkControl] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([FrameworkControl] -> Pair)
-> Maybe [FrameworkControl] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FrameworkControl]
frameworkControls
]
)
instance Core.ToPath UpdateFramework where
toPath :: UpdateFramework -> ByteString
toPath UpdateFramework' {Maybe [FrameworkControl]
Maybe Text
Text
frameworkName :: Text
frameworkControls :: Maybe [FrameworkControl]
frameworkDescription :: Maybe Text
idempotencyToken :: Maybe Text
$sel:frameworkName:UpdateFramework' :: UpdateFramework -> Text
$sel:frameworkControls:UpdateFramework' :: UpdateFramework -> Maybe [FrameworkControl]
$sel:frameworkDescription:UpdateFramework' :: UpdateFramework -> Maybe Text
$sel:idempotencyToken:UpdateFramework' :: UpdateFramework -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/audit/frameworks/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
frameworkName]
instance Core.ToQuery UpdateFramework where
toQuery :: UpdateFramework -> QueryString
toQuery = QueryString -> UpdateFramework -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateFrameworkResponse = UpdateFrameworkResponse'
{
UpdateFrameworkResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
UpdateFrameworkResponse -> Maybe Text
frameworkArn :: Prelude.Maybe Prelude.Text,
UpdateFrameworkResponse -> Maybe Text
frameworkName :: Prelude.Maybe Prelude.Text,
UpdateFrameworkResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool
(UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool)
-> (UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool)
-> Eq UpdateFrameworkResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool
$c/= :: UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool
== :: UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool
$c== :: UpdateFrameworkResponse -> UpdateFrameworkResponse -> Bool
Prelude.Eq, ReadPrec [UpdateFrameworkResponse]
ReadPrec UpdateFrameworkResponse
Int -> ReadS UpdateFrameworkResponse
ReadS [UpdateFrameworkResponse]
(Int -> ReadS UpdateFrameworkResponse)
-> ReadS [UpdateFrameworkResponse]
-> ReadPrec UpdateFrameworkResponse
-> ReadPrec [UpdateFrameworkResponse]
-> Read UpdateFrameworkResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFrameworkResponse]
$creadListPrec :: ReadPrec [UpdateFrameworkResponse]
readPrec :: ReadPrec UpdateFrameworkResponse
$creadPrec :: ReadPrec UpdateFrameworkResponse
readList :: ReadS [UpdateFrameworkResponse]
$creadList :: ReadS [UpdateFrameworkResponse]
readsPrec :: Int -> ReadS UpdateFrameworkResponse
$creadsPrec :: Int -> ReadS UpdateFrameworkResponse
Prelude.Read, Int -> UpdateFrameworkResponse -> ShowS
[UpdateFrameworkResponse] -> ShowS
UpdateFrameworkResponse -> String
(Int -> UpdateFrameworkResponse -> ShowS)
-> (UpdateFrameworkResponse -> String)
-> ([UpdateFrameworkResponse] -> ShowS)
-> Show UpdateFrameworkResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFrameworkResponse] -> ShowS
$cshowList :: [UpdateFrameworkResponse] -> ShowS
show :: UpdateFrameworkResponse -> String
$cshow :: UpdateFrameworkResponse -> String
showsPrec :: Int -> UpdateFrameworkResponse -> ShowS
$cshowsPrec :: Int -> UpdateFrameworkResponse -> ShowS
Prelude.Show, (forall x.
UpdateFrameworkResponse -> Rep UpdateFrameworkResponse x)
-> (forall x.
Rep UpdateFrameworkResponse x -> UpdateFrameworkResponse)
-> Generic UpdateFrameworkResponse
forall x. Rep UpdateFrameworkResponse x -> UpdateFrameworkResponse
forall x. UpdateFrameworkResponse -> Rep UpdateFrameworkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateFrameworkResponse x -> UpdateFrameworkResponse
$cfrom :: forall x. UpdateFrameworkResponse -> Rep UpdateFrameworkResponse x
Prelude.Generic)
newUpdateFrameworkResponse ::
Prelude.Int ->
UpdateFrameworkResponse
newUpdateFrameworkResponse :: Int -> UpdateFrameworkResponse
newUpdateFrameworkResponse Int
pHttpStatus_ =
UpdateFrameworkResponse' :: Maybe POSIX
-> Maybe Text -> Maybe Text -> Int -> UpdateFrameworkResponse
UpdateFrameworkResponse'
{ $sel:creationTime:UpdateFrameworkResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkArn:UpdateFrameworkResponse' :: Maybe Text
frameworkArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkName:UpdateFrameworkResponse' :: Maybe Text
frameworkName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateFrameworkResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateFrameworkResponse_creationTime :: Lens.Lens' UpdateFrameworkResponse (Prelude.Maybe Prelude.UTCTime)
updateFrameworkResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateFrameworkResponse -> f UpdateFrameworkResponse
updateFrameworkResponse_creationTime = (UpdateFrameworkResponse -> Maybe POSIX)
-> (UpdateFrameworkResponse
-> Maybe POSIX -> UpdateFrameworkResponse)
-> Lens
UpdateFrameworkResponse
UpdateFrameworkResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFrameworkResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateFrameworkResponse' :: UpdateFrameworkResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateFrameworkResponse
s@UpdateFrameworkResponse' {} Maybe POSIX
a -> UpdateFrameworkResponse
s {$sel:creationTime:UpdateFrameworkResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateFrameworkResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateFrameworkResponse -> f UpdateFrameworkResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateFrameworkResponse
-> f UpdateFrameworkResponse
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
updateFrameworkResponse_frameworkArn :: Lens.Lens' UpdateFrameworkResponse (Prelude.Maybe Prelude.Text)
updateFrameworkResponse_frameworkArn :: (Maybe Text -> f (Maybe Text))
-> UpdateFrameworkResponse -> f UpdateFrameworkResponse
updateFrameworkResponse_frameworkArn = (UpdateFrameworkResponse -> Maybe Text)
-> (UpdateFrameworkResponse
-> Maybe Text -> UpdateFrameworkResponse)
-> Lens
UpdateFrameworkResponse
UpdateFrameworkResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFrameworkResponse' {Maybe Text
frameworkArn :: Maybe Text
$sel:frameworkArn:UpdateFrameworkResponse' :: UpdateFrameworkResponse -> Maybe Text
frameworkArn} -> Maybe Text
frameworkArn) (\s :: UpdateFrameworkResponse
s@UpdateFrameworkResponse' {} Maybe Text
a -> UpdateFrameworkResponse
s {$sel:frameworkArn:UpdateFrameworkResponse' :: Maybe Text
frameworkArn = Maybe Text
a} :: UpdateFrameworkResponse)
updateFrameworkResponse_frameworkName :: Lens.Lens' UpdateFrameworkResponse (Prelude.Maybe Prelude.Text)
updateFrameworkResponse_frameworkName :: (Maybe Text -> f (Maybe Text))
-> UpdateFrameworkResponse -> f UpdateFrameworkResponse
updateFrameworkResponse_frameworkName = (UpdateFrameworkResponse -> Maybe Text)
-> (UpdateFrameworkResponse
-> Maybe Text -> UpdateFrameworkResponse)
-> Lens
UpdateFrameworkResponse
UpdateFrameworkResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFrameworkResponse' {Maybe Text
frameworkName :: Maybe Text
$sel:frameworkName:UpdateFrameworkResponse' :: UpdateFrameworkResponse -> Maybe Text
frameworkName} -> Maybe Text
frameworkName) (\s :: UpdateFrameworkResponse
s@UpdateFrameworkResponse' {} Maybe Text
a -> UpdateFrameworkResponse
s {$sel:frameworkName:UpdateFrameworkResponse' :: Maybe Text
frameworkName = Maybe Text
a} :: UpdateFrameworkResponse)
updateFrameworkResponse_httpStatus :: Lens.Lens' UpdateFrameworkResponse Prelude.Int
updateFrameworkResponse_httpStatus :: (Int -> f Int)
-> UpdateFrameworkResponse -> f UpdateFrameworkResponse
updateFrameworkResponse_httpStatus = (UpdateFrameworkResponse -> Int)
-> (UpdateFrameworkResponse -> Int -> UpdateFrameworkResponse)
-> Lens UpdateFrameworkResponse UpdateFrameworkResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFrameworkResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateFrameworkResponse' :: UpdateFrameworkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateFrameworkResponse
s@UpdateFrameworkResponse' {} Int
a -> UpdateFrameworkResponse
s {$sel:httpStatus:UpdateFrameworkResponse' :: Int
httpStatus = Int
a} :: UpdateFrameworkResponse)
instance Prelude.NFData UpdateFrameworkResponse