{-# 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.Schemas.PutCodeBinding
(
PutCodeBinding (..),
newPutCodeBinding,
putCodeBinding_schemaVersion,
putCodeBinding_registryName,
putCodeBinding_schemaName,
putCodeBinding_language,
PutCodeBindingResponse (..),
newPutCodeBindingResponse,
putCodeBindingResponse_status,
putCodeBindingResponse_schemaVersion,
putCodeBindingResponse_creationDate,
putCodeBindingResponse_lastModified,
putCodeBindingResponse_httpStatus,
)
where
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
import Amazonka.Schemas.Types
data PutCodeBinding = PutCodeBinding'
{
PutCodeBinding -> Maybe Text
schemaVersion :: Prelude.Maybe Prelude.Text,
PutCodeBinding -> Text
registryName :: Prelude.Text,
PutCodeBinding -> Text
schemaName :: Prelude.Text,
PutCodeBinding -> Text
language :: Prelude.Text
}
deriving (PutCodeBinding -> PutCodeBinding -> Bool
(PutCodeBinding -> PutCodeBinding -> Bool)
-> (PutCodeBinding -> PutCodeBinding -> Bool) -> Eq PutCodeBinding
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutCodeBinding -> PutCodeBinding -> Bool
$c/= :: PutCodeBinding -> PutCodeBinding -> Bool
== :: PutCodeBinding -> PutCodeBinding -> Bool
$c== :: PutCodeBinding -> PutCodeBinding -> Bool
Prelude.Eq, ReadPrec [PutCodeBinding]
ReadPrec PutCodeBinding
Int -> ReadS PutCodeBinding
ReadS [PutCodeBinding]
(Int -> ReadS PutCodeBinding)
-> ReadS [PutCodeBinding]
-> ReadPrec PutCodeBinding
-> ReadPrec [PutCodeBinding]
-> Read PutCodeBinding
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutCodeBinding]
$creadListPrec :: ReadPrec [PutCodeBinding]
readPrec :: ReadPrec PutCodeBinding
$creadPrec :: ReadPrec PutCodeBinding
readList :: ReadS [PutCodeBinding]
$creadList :: ReadS [PutCodeBinding]
readsPrec :: Int -> ReadS PutCodeBinding
$creadsPrec :: Int -> ReadS PutCodeBinding
Prelude.Read, Int -> PutCodeBinding -> ShowS
[PutCodeBinding] -> ShowS
PutCodeBinding -> String
(Int -> PutCodeBinding -> ShowS)
-> (PutCodeBinding -> String)
-> ([PutCodeBinding] -> ShowS)
-> Show PutCodeBinding
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutCodeBinding] -> ShowS
$cshowList :: [PutCodeBinding] -> ShowS
show :: PutCodeBinding -> String
$cshow :: PutCodeBinding -> String
showsPrec :: Int -> PutCodeBinding -> ShowS
$cshowsPrec :: Int -> PutCodeBinding -> ShowS
Prelude.Show, (forall x. PutCodeBinding -> Rep PutCodeBinding x)
-> (forall x. Rep PutCodeBinding x -> PutCodeBinding)
-> Generic PutCodeBinding
forall x. Rep PutCodeBinding x -> PutCodeBinding
forall x. PutCodeBinding -> Rep PutCodeBinding x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutCodeBinding x -> PutCodeBinding
$cfrom :: forall x. PutCodeBinding -> Rep PutCodeBinding x
Prelude.Generic)
newPutCodeBinding ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PutCodeBinding
newPutCodeBinding :: Text -> Text -> Text -> PutCodeBinding
newPutCodeBinding
Text
pRegistryName_
Text
pSchemaName_
Text
pLanguage_ =
PutCodeBinding' :: Maybe Text -> Text -> Text -> Text -> PutCodeBinding
PutCodeBinding'
{ $sel:schemaVersion:PutCodeBinding' :: Maybe Text
schemaVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:registryName:PutCodeBinding' :: Text
registryName = Text
pRegistryName_,
$sel:schemaName:PutCodeBinding' :: Text
schemaName = Text
pSchemaName_,
$sel:language:PutCodeBinding' :: Text
language = Text
pLanguage_
}
putCodeBinding_schemaVersion :: Lens.Lens' PutCodeBinding (Prelude.Maybe Prelude.Text)
putCodeBinding_schemaVersion :: (Maybe Text -> f (Maybe Text))
-> PutCodeBinding -> f PutCodeBinding
putCodeBinding_schemaVersion = (PutCodeBinding -> Maybe Text)
-> (PutCodeBinding -> Maybe Text -> PutCodeBinding)
-> Lens PutCodeBinding PutCodeBinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBinding' {Maybe Text
schemaVersion :: Maybe Text
$sel:schemaVersion:PutCodeBinding' :: PutCodeBinding -> Maybe Text
schemaVersion} -> Maybe Text
schemaVersion) (\s :: PutCodeBinding
s@PutCodeBinding' {} Maybe Text
a -> PutCodeBinding
s {$sel:schemaVersion:PutCodeBinding' :: Maybe Text
schemaVersion = Maybe Text
a} :: PutCodeBinding)
putCodeBinding_registryName :: Lens.Lens' PutCodeBinding Prelude.Text
putCodeBinding_registryName :: (Text -> f Text) -> PutCodeBinding -> f PutCodeBinding
putCodeBinding_registryName = (PutCodeBinding -> Text)
-> (PutCodeBinding -> Text -> PutCodeBinding)
-> Lens PutCodeBinding PutCodeBinding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBinding' {Text
registryName :: Text
$sel:registryName:PutCodeBinding' :: PutCodeBinding -> Text
registryName} -> Text
registryName) (\s :: PutCodeBinding
s@PutCodeBinding' {} Text
a -> PutCodeBinding
s {$sel:registryName:PutCodeBinding' :: Text
registryName = Text
a} :: PutCodeBinding)
putCodeBinding_schemaName :: Lens.Lens' PutCodeBinding Prelude.Text
putCodeBinding_schemaName :: (Text -> f Text) -> PutCodeBinding -> f PutCodeBinding
putCodeBinding_schemaName = (PutCodeBinding -> Text)
-> (PutCodeBinding -> Text -> PutCodeBinding)
-> Lens PutCodeBinding PutCodeBinding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBinding' {Text
schemaName :: Text
$sel:schemaName:PutCodeBinding' :: PutCodeBinding -> Text
schemaName} -> Text
schemaName) (\s :: PutCodeBinding
s@PutCodeBinding' {} Text
a -> PutCodeBinding
s {$sel:schemaName:PutCodeBinding' :: Text
schemaName = Text
a} :: PutCodeBinding)
putCodeBinding_language :: Lens.Lens' PutCodeBinding Prelude.Text
putCodeBinding_language :: (Text -> f Text) -> PutCodeBinding -> f PutCodeBinding
putCodeBinding_language = (PutCodeBinding -> Text)
-> (PutCodeBinding -> Text -> PutCodeBinding)
-> Lens PutCodeBinding PutCodeBinding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBinding' {Text
language :: Text
$sel:language:PutCodeBinding' :: PutCodeBinding -> Text
language} -> Text
language) (\s :: PutCodeBinding
s@PutCodeBinding' {} Text
a -> PutCodeBinding
s {$sel:language:PutCodeBinding' :: Text
language = Text
a} :: PutCodeBinding)
instance Core.AWSRequest PutCodeBinding where
type
AWSResponse PutCodeBinding =
PutCodeBindingResponse
request :: PutCodeBinding -> Request PutCodeBinding
request = Service -> PutCodeBinding -> Request PutCodeBinding
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutCodeBinding
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutCodeBinding)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutCodeBinding))
-> Logger
-> Service
-> Proxy PutCodeBinding
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutCodeBinding)))
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 CodeGenerationStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Int
-> PutCodeBindingResponse
PutCodeBindingResponse'
(Maybe CodeGenerationStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Int
-> PutCodeBindingResponse)
-> Either String (Maybe CodeGenerationStatus)
-> Either
String
(Maybe Text
-> Maybe POSIX -> Maybe POSIX -> Int -> PutCodeBindingResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe CodeGenerationStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe POSIX -> Maybe POSIX -> Int -> PutCodeBindingResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX -> Maybe POSIX -> Int -> PutCodeBindingResponse)
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
"SchemaVersion")
Either
String
(Maybe POSIX -> Maybe POSIX -> Int -> PutCodeBindingResponse)
-> Either String (Maybe POSIX)
-> Either String (Maybe POSIX -> Int -> PutCodeBindingResponse)
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
"CreationDate")
Either String (Maybe POSIX -> Int -> PutCodeBindingResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> PutCodeBindingResponse)
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
"LastModified")
Either String (Int -> PutCodeBindingResponse)
-> Either String Int -> Either String PutCodeBindingResponse
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 PutCodeBinding
instance Prelude.NFData PutCodeBinding
instance Core.ToHeaders PutCodeBinding where
toHeaders :: PutCodeBinding -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutCodeBinding -> 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 PutCodeBinding where
toJSON :: PutCodeBinding -> Value
toJSON = Value -> PutCodeBinding -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath PutCodeBinding where
toPath :: PutCodeBinding -> ByteString
toPath PutCodeBinding' {Maybe Text
Text
language :: Text
schemaName :: Text
registryName :: Text
schemaVersion :: Maybe Text
$sel:language:PutCodeBinding' :: PutCodeBinding -> Text
$sel:schemaName:PutCodeBinding' :: PutCodeBinding -> Text
$sel:registryName:PutCodeBinding' :: PutCodeBinding -> Text
$sel:schemaVersion:PutCodeBinding' :: PutCodeBinding -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/registries/name/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
registryName,
ByteString
"/schemas/name/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
schemaName,
ByteString
"/language/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
language
]
instance Core.ToQuery PutCodeBinding where
toQuery :: PutCodeBinding -> QueryString
toQuery PutCodeBinding' {Maybe Text
Text
language :: Text
schemaName :: Text
registryName :: Text
schemaVersion :: Maybe Text
$sel:language:PutCodeBinding' :: PutCodeBinding -> Text
$sel:schemaName:PutCodeBinding' :: PutCodeBinding -> Text
$sel:registryName:PutCodeBinding' :: PutCodeBinding -> Text
$sel:schemaVersion:PutCodeBinding' :: PutCodeBinding -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"schemaVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
schemaVersion]
data PutCodeBindingResponse = PutCodeBindingResponse'
{
PutCodeBindingResponse -> Maybe CodeGenerationStatus
status :: Prelude.Maybe CodeGenerationStatus,
PutCodeBindingResponse -> Maybe Text
schemaVersion :: Prelude.Maybe Prelude.Text,
PutCodeBindingResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
PutCodeBindingResponse -> Maybe POSIX
lastModified :: Prelude.Maybe Core.POSIX,
PutCodeBindingResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutCodeBindingResponse -> PutCodeBindingResponse -> Bool
(PutCodeBindingResponse -> PutCodeBindingResponse -> Bool)
-> (PutCodeBindingResponse -> PutCodeBindingResponse -> Bool)
-> Eq PutCodeBindingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutCodeBindingResponse -> PutCodeBindingResponse -> Bool
$c/= :: PutCodeBindingResponse -> PutCodeBindingResponse -> Bool
== :: PutCodeBindingResponse -> PutCodeBindingResponse -> Bool
$c== :: PutCodeBindingResponse -> PutCodeBindingResponse -> Bool
Prelude.Eq, ReadPrec [PutCodeBindingResponse]
ReadPrec PutCodeBindingResponse
Int -> ReadS PutCodeBindingResponse
ReadS [PutCodeBindingResponse]
(Int -> ReadS PutCodeBindingResponse)
-> ReadS [PutCodeBindingResponse]
-> ReadPrec PutCodeBindingResponse
-> ReadPrec [PutCodeBindingResponse]
-> Read PutCodeBindingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutCodeBindingResponse]
$creadListPrec :: ReadPrec [PutCodeBindingResponse]
readPrec :: ReadPrec PutCodeBindingResponse
$creadPrec :: ReadPrec PutCodeBindingResponse
readList :: ReadS [PutCodeBindingResponse]
$creadList :: ReadS [PutCodeBindingResponse]
readsPrec :: Int -> ReadS PutCodeBindingResponse
$creadsPrec :: Int -> ReadS PutCodeBindingResponse
Prelude.Read, Int -> PutCodeBindingResponse -> ShowS
[PutCodeBindingResponse] -> ShowS
PutCodeBindingResponse -> String
(Int -> PutCodeBindingResponse -> ShowS)
-> (PutCodeBindingResponse -> String)
-> ([PutCodeBindingResponse] -> ShowS)
-> Show PutCodeBindingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutCodeBindingResponse] -> ShowS
$cshowList :: [PutCodeBindingResponse] -> ShowS
show :: PutCodeBindingResponse -> String
$cshow :: PutCodeBindingResponse -> String
showsPrec :: Int -> PutCodeBindingResponse -> ShowS
$cshowsPrec :: Int -> PutCodeBindingResponse -> ShowS
Prelude.Show, (forall x. PutCodeBindingResponse -> Rep PutCodeBindingResponse x)
-> (forall x.
Rep PutCodeBindingResponse x -> PutCodeBindingResponse)
-> Generic PutCodeBindingResponse
forall x. Rep PutCodeBindingResponse x -> PutCodeBindingResponse
forall x. PutCodeBindingResponse -> Rep PutCodeBindingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutCodeBindingResponse x -> PutCodeBindingResponse
$cfrom :: forall x. PutCodeBindingResponse -> Rep PutCodeBindingResponse x
Prelude.Generic)
newPutCodeBindingResponse ::
Prelude.Int ->
PutCodeBindingResponse
newPutCodeBindingResponse :: Int -> PutCodeBindingResponse
newPutCodeBindingResponse Int
pHttpStatus_ =
PutCodeBindingResponse' :: Maybe CodeGenerationStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Int
-> PutCodeBindingResponse
PutCodeBindingResponse'
{ $sel:status:PutCodeBindingResponse' :: Maybe CodeGenerationStatus
status = Maybe CodeGenerationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:schemaVersion:PutCodeBindingResponse' :: Maybe Text
schemaVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:PutCodeBindingResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastModified:PutCodeBindingResponse' :: Maybe POSIX
lastModified = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutCodeBindingResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putCodeBindingResponse_status :: Lens.Lens' PutCodeBindingResponse (Prelude.Maybe CodeGenerationStatus)
putCodeBindingResponse_status :: (Maybe CodeGenerationStatus -> f (Maybe CodeGenerationStatus))
-> PutCodeBindingResponse -> f PutCodeBindingResponse
putCodeBindingResponse_status = (PutCodeBindingResponse -> Maybe CodeGenerationStatus)
-> (PutCodeBindingResponse
-> Maybe CodeGenerationStatus -> PutCodeBindingResponse)
-> Lens
PutCodeBindingResponse
PutCodeBindingResponse
(Maybe CodeGenerationStatus)
(Maybe CodeGenerationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBindingResponse' {Maybe CodeGenerationStatus
status :: Maybe CodeGenerationStatus
$sel:status:PutCodeBindingResponse' :: PutCodeBindingResponse -> Maybe CodeGenerationStatus
status} -> Maybe CodeGenerationStatus
status) (\s :: PutCodeBindingResponse
s@PutCodeBindingResponse' {} Maybe CodeGenerationStatus
a -> PutCodeBindingResponse
s {$sel:status:PutCodeBindingResponse' :: Maybe CodeGenerationStatus
status = Maybe CodeGenerationStatus
a} :: PutCodeBindingResponse)
putCodeBindingResponse_schemaVersion :: Lens.Lens' PutCodeBindingResponse (Prelude.Maybe Prelude.Text)
putCodeBindingResponse_schemaVersion :: (Maybe Text -> f (Maybe Text))
-> PutCodeBindingResponse -> f PutCodeBindingResponse
putCodeBindingResponse_schemaVersion = (PutCodeBindingResponse -> Maybe Text)
-> (PutCodeBindingResponse -> Maybe Text -> PutCodeBindingResponse)
-> Lens
PutCodeBindingResponse
PutCodeBindingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBindingResponse' {Maybe Text
schemaVersion :: Maybe Text
$sel:schemaVersion:PutCodeBindingResponse' :: PutCodeBindingResponse -> Maybe Text
schemaVersion} -> Maybe Text
schemaVersion) (\s :: PutCodeBindingResponse
s@PutCodeBindingResponse' {} Maybe Text
a -> PutCodeBindingResponse
s {$sel:schemaVersion:PutCodeBindingResponse' :: Maybe Text
schemaVersion = Maybe Text
a} :: PutCodeBindingResponse)
putCodeBindingResponse_creationDate :: Lens.Lens' PutCodeBindingResponse (Prelude.Maybe Prelude.UTCTime)
putCodeBindingResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PutCodeBindingResponse -> f PutCodeBindingResponse
putCodeBindingResponse_creationDate = (PutCodeBindingResponse -> Maybe POSIX)
-> (PutCodeBindingResponse
-> Maybe POSIX -> PutCodeBindingResponse)
-> Lens
PutCodeBindingResponse
PutCodeBindingResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBindingResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:PutCodeBindingResponse' :: PutCodeBindingResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: PutCodeBindingResponse
s@PutCodeBindingResponse' {} Maybe POSIX
a -> PutCodeBindingResponse
s {$sel:creationDate:PutCodeBindingResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: PutCodeBindingResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> PutCodeBindingResponse -> f PutCodeBindingResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PutCodeBindingResponse
-> f PutCodeBindingResponse
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
putCodeBindingResponse_lastModified :: Lens.Lens' PutCodeBindingResponse (Prelude.Maybe Prelude.UTCTime)
putCodeBindingResponse_lastModified :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PutCodeBindingResponse -> f PutCodeBindingResponse
putCodeBindingResponse_lastModified = (PutCodeBindingResponse -> Maybe POSIX)
-> (PutCodeBindingResponse
-> Maybe POSIX -> PutCodeBindingResponse)
-> Lens
PutCodeBindingResponse
PutCodeBindingResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBindingResponse' {Maybe POSIX
lastModified :: Maybe POSIX
$sel:lastModified:PutCodeBindingResponse' :: PutCodeBindingResponse -> Maybe POSIX
lastModified} -> Maybe POSIX
lastModified) (\s :: PutCodeBindingResponse
s@PutCodeBindingResponse' {} Maybe POSIX
a -> PutCodeBindingResponse
s {$sel:lastModified:PutCodeBindingResponse' :: Maybe POSIX
lastModified = Maybe POSIX
a} :: PutCodeBindingResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> PutCodeBindingResponse -> f PutCodeBindingResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PutCodeBindingResponse
-> f PutCodeBindingResponse
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
putCodeBindingResponse_httpStatus :: Lens.Lens' PutCodeBindingResponse Prelude.Int
putCodeBindingResponse_httpStatus :: (Int -> f Int)
-> PutCodeBindingResponse -> f PutCodeBindingResponse
putCodeBindingResponse_httpStatus = (PutCodeBindingResponse -> Int)
-> (PutCodeBindingResponse -> Int -> PutCodeBindingResponse)
-> Lens PutCodeBindingResponse PutCodeBindingResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutCodeBindingResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutCodeBindingResponse' :: PutCodeBindingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutCodeBindingResponse
s@PutCodeBindingResponse' {} Int
a -> PutCodeBindingResponse
s {$sel:httpStatus:PutCodeBindingResponse' :: Int
httpStatus = Int
a} :: PutCodeBindingResponse)
instance Prelude.NFData PutCodeBindingResponse