{-# 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.Lightsail.CreateRelationalDatabaseSnapshot
(
CreateRelationalDatabaseSnapshot (..),
newCreateRelationalDatabaseSnapshot,
createRelationalDatabaseSnapshot_tags,
createRelationalDatabaseSnapshot_relationalDatabaseName,
createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName,
CreateRelationalDatabaseSnapshotResponse (..),
newCreateRelationalDatabaseSnapshotResponse,
createRelationalDatabaseSnapshotResponse_operations,
createRelationalDatabaseSnapshotResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateRelationalDatabaseSnapshot = CreateRelationalDatabaseSnapshot'
{
CreateRelationalDatabaseSnapshot -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateRelationalDatabaseSnapshot -> Text
relationalDatabaseName :: Prelude.Text,
CreateRelationalDatabaseSnapshot -> Text
relationalDatabaseSnapshotName :: Prelude.Text
}
deriving (CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool
(CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool)
-> (CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool)
-> Eq CreateRelationalDatabaseSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool
$c/= :: CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool
== :: CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool
$c== :: CreateRelationalDatabaseSnapshot
-> CreateRelationalDatabaseSnapshot -> Bool
Prelude.Eq, ReadPrec [CreateRelationalDatabaseSnapshot]
ReadPrec CreateRelationalDatabaseSnapshot
Int -> ReadS CreateRelationalDatabaseSnapshot
ReadS [CreateRelationalDatabaseSnapshot]
(Int -> ReadS CreateRelationalDatabaseSnapshot)
-> ReadS [CreateRelationalDatabaseSnapshot]
-> ReadPrec CreateRelationalDatabaseSnapshot
-> ReadPrec [CreateRelationalDatabaseSnapshot]
-> Read CreateRelationalDatabaseSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRelationalDatabaseSnapshot]
$creadListPrec :: ReadPrec [CreateRelationalDatabaseSnapshot]
readPrec :: ReadPrec CreateRelationalDatabaseSnapshot
$creadPrec :: ReadPrec CreateRelationalDatabaseSnapshot
readList :: ReadS [CreateRelationalDatabaseSnapshot]
$creadList :: ReadS [CreateRelationalDatabaseSnapshot]
readsPrec :: Int -> ReadS CreateRelationalDatabaseSnapshot
$creadsPrec :: Int -> ReadS CreateRelationalDatabaseSnapshot
Prelude.Read, Int -> CreateRelationalDatabaseSnapshot -> ShowS
[CreateRelationalDatabaseSnapshot] -> ShowS
CreateRelationalDatabaseSnapshot -> String
(Int -> CreateRelationalDatabaseSnapshot -> ShowS)
-> (CreateRelationalDatabaseSnapshot -> String)
-> ([CreateRelationalDatabaseSnapshot] -> ShowS)
-> Show CreateRelationalDatabaseSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRelationalDatabaseSnapshot] -> ShowS
$cshowList :: [CreateRelationalDatabaseSnapshot] -> ShowS
show :: CreateRelationalDatabaseSnapshot -> String
$cshow :: CreateRelationalDatabaseSnapshot -> String
showsPrec :: Int -> CreateRelationalDatabaseSnapshot -> ShowS
$cshowsPrec :: Int -> CreateRelationalDatabaseSnapshot -> ShowS
Prelude.Show, (forall x.
CreateRelationalDatabaseSnapshot
-> Rep CreateRelationalDatabaseSnapshot x)
-> (forall x.
Rep CreateRelationalDatabaseSnapshot x
-> CreateRelationalDatabaseSnapshot)
-> Generic CreateRelationalDatabaseSnapshot
forall x.
Rep CreateRelationalDatabaseSnapshot x
-> CreateRelationalDatabaseSnapshot
forall x.
CreateRelationalDatabaseSnapshot
-> Rep CreateRelationalDatabaseSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateRelationalDatabaseSnapshot x
-> CreateRelationalDatabaseSnapshot
$cfrom :: forall x.
CreateRelationalDatabaseSnapshot
-> Rep CreateRelationalDatabaseSnapshot x
Prelude.Generic)
newCreateRelationalDatabaseSnapshot ::
Prelude.Text ->
Prelude.Text ->
CreateRelationalDatabaseSnapshot
newCreateRelationalDatabaseSnapshot :: Text -> Text -> CreateRelationalDatabaseSnapshot
newCreateRelationalDatabaseSnapshot
Text
pRelationalDatabaseName_
Text
pRelationalDatabaseSnapshotName_ =
CreateRelationalDatabaseSnapshot' :: Maybe [Tag] -> Text -> Text -> CreateRelationalDatabaseSnapshot
CreateRelationalDatabaseSnapshot'
{ $sel:tags:CreateRelationalDatabaseSnapshot' :: Maybe [Tag]
tags =
Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot' :: Text
relationalDatabaseName =
Text
pRelationalDatabaseName_,
$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot' :: Text
relationalDatabaseSnapshotName =
Text
pRelationalDatabaseSnapshotName_
}
createRelationalDatabaseSnapshot_tags :: Lens.Lens' CreateRelationalDatabaseSnapshot (Prelude.Maybe [Tag])
createRelationalDatabaseSnapshot_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateRelationalDatabaseSnapshot
-> f CreateRelationalDatabaseSnapshot
createRelationalDatabaseSnapshot_tags = (CreateRelationalDatabaseSnapshot -> Maybe [Tag])
-> (CreateRelationalDatabaseSnapshot
-> Maybe [Tag] -> CreateRelationalDatabaseSnapshot)
-> Lens
CreateRelationalDatabaseSnapshot
CreateRelationalDatabaseSnapshot
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRelationalDatabaseSnapshot' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateRelationalDatabaseSnapshot
s@CreateRelationalDatabaseSnapshot' {} Maybe [Tag]
a -> CreateRelationalDatabaseSnapshot
s {$sel:tags:CreateRelationalDatabaseSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateRelationalDatabaseSnapshot) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateRelationalDatabaseSnapshot
-> f CreateRelationalDatabaseSnapshot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateRelationalDatabaseSnapshot
-> f CreateRelationalDatabaseSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRelationalDatabaseSnapshot_relationalDatabaseName :: Lens.Lens' CreateRelationalDatabaseSnapshot Prelude.Text
createRelationalDatabaseSnapshot_relationalDatabaseName :: (Text -> f Text)
-> CreateRelationalDatabaseSnapshot
-> f CreateRelationalDatabaseSnapshot
createRelationalDatabaseSnapshot_relationalDatabaseName = (CreateRelationalDatabaseSnapshot -> Text)
-> (CreateRelationalDatabaseSnapshot
-> Text -> CreateRelationalDatabaseSnapshot)
-> Lens
CreateRelationalDatabaseSnapshot
CreateRelationalDatabaseSnapshot
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRelationalDatabaseSnapshot' {Text
relationalDatabaseName :: Text
$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Text
relationalDatabaseName} -> Text
relationalDatabaseName) (\s :: CreateRelationalDatabaseSnapshot
s@CreateRelationalDatabaseSnapshot' {} Text
a -> CreateRelationalDatabaseSnapshot
s {$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot' :: Text
relationalDatabaseName = Text
a} :: CreateRelationalDatabaseSnapshot)
createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: Lens.Lens' CreateRelationalDatabaseSnapshot Prelude.Text
createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: (Text -> f Text)
-> CreateRelationalDatabaseSnapshot
-> f CreateRelationalDatabaseSnapshot
createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName = (CreateRelationalDatabaseSnapshot -> Text)
-> (CreateRelationalDatabaseSnapshot
-> Text -> CreateRelationalDatabaseSnapshot)
-> Lens
CreateRelationalDatabaseSnapshot
CreateRelationalDatabaseSnapshot
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRelationalDatabaseSnapshot' {Text
relationalDatabaseSnapshotName :: Text
$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Text
relationalDatabaseSnapshotName} -> Text
relationalDatabaseSnapshotName) (\s :: CreateRelationalDatabaseSnapshot
s@CreateRelationalDatabaseSnapshot' {} Text
a -> CreateRelationalDatabaseSnapshot
s {$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot' :: Text
relationalDatabaseSnapshotName = Text
a} :: CreateRelationalDatabaseSnapshot)
instance
Core.AWSRequest
CreateRelationalDatabaseSnapshot
where
type
AWSResponse CreateRelationalDatabaseSnapshot =
CreateRelationalDatabaseSnapshotResponse
request :: CreateRelationalDatabaseSnapshot
-> Request CreateRelationalDatabaseSnapshot
request = Service
-> CreateRelationalDatabaseSnapshot
-> Request CreateRelationalDatabaseSnapshot
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateRelationalDatabaseSnapshot
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateRelationalDatabaseSnapshot)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateRelationalDatabaseSnapshot))
-> Logger
-> Service
-> Proxy CreateRelationalDatabaseSnapshot
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateRelationalDatabaseSnapshot)))
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 [Operation]
-> Int -> CreateRelationalDatabaseSnapshotResponse
CreateRelationalDatabaseSnapshotResponse'
(Maybe [Operation]
-> Int -> CreateRelationalDatabaseSnapshotResponse)
-> Either String (Maybe [Operation])
-> Either String (Int -> CreateRelationalDatabaseSnapshotResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Operation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"operations" Either String (Maybe (Maybe [Operation]))
-> Maybe [Operation] -> Either String (Maybe [Operation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Operation]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> CreateRelationalDatabaseSnapshotResponse)
-> Either String Int
-> Either String CreateRelationalDatabaseSnapshotResponse
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
CreateRelationalDatabaseSnapshot
instance
Prelude.NFData
CreateRelationalDatabaseSnapshot
instance
Core.ToHeaders
CreateRelationalDatabaseSnapshot
where
toHeaders :: CreateRelationalDatabaseSnapshot -> ResponseHeaders
toHeaders =
ResponseHeaders
-> CreateRelationalDatabaseSnapshot -> 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
"Lightsail_20161128.CreateRelationalDatabaseSnapshot" ::
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 CreateRelationalDatabaseSnapshot where
toJSON :: CreateRelationalDatabaseSnapshot -> Value
toJSON CreateRelationalDatabaseSnapshot' {Maybe [Tag]
Text
relationalDatabaseSnapshotName :: Text
relationalDatabaseName :: Text
tags :: Maybe [Tag]
$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Text
$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Text
$sel:tags:CreateRelationalDatabaseSnapshot' :: CreateRelationalDatabaseSnapshot -> Maybe [Tag]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"relationalDatabaseName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
relationalDatabaseName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"relationalDatabaseSnapshotName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
relationalDatabaseSnapshotName
)
]
)
instance Core.ToPath CreateRelationalDatabaseSnapshot where
toPath :: CreateRelationalDatabaseSnapshot -> ByteString
toPath = ByteString -> CreateRelationalDatabaseSnapshot -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
CreateRelationalDatabaseSnapshot
where
toQuery :: CreateRelationalDatabaseSnapshot -> QueryString
toQuery = QueryString -> CreateRelationalDatabaseSnapshot -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateRelationalDatabaseSnapshotResponse = CreateRelationalDatabaseSnapshotResponse'
{
CreateRelationalDatabaseSnapshotResponse -> Maybe [Operation]
operations :: Prelude.Maybe [Operation],
CreateRelationalDatabaseSnapshotResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool
(CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool)
-> (CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool)
-> Eq CreateRelationalDatabaseSnapshotResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool
$c/= :: CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool
== :: CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool
$c== :: CreateRelationalDatabaseSnapshotResponse
-> CreateRelationalDatabaseSnapshotResponse -> Bool
Prelude.Eq, ReadPrec [CreateRelationalDatabaseSnapshotResponse]
ReadPrec CreateRelationalDatabaseSnapshotResponse
Int -> ReadS CreateRelationalDatabaseSnapshotResponse
ReadS [CreateRelationalDatabaseSnapshotResponse]
(Int -> ReadS CreateRelationalDatabaseSnapshotResponse)
-> ReadS [CreateRelationalDatabaseSnapshotResponse]
-> ReadPrec CreateRelationalDatabaseSnapshotResponse
-> ReadPrec [CreateRelationalDatabaseSnapshotResponse]
-> Read CreateRelationalDatabaseSnapshotResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRelationalDatabaseSnapshotResponse]
$creadListPrec :: ReadPrec [CreateRelationalDatabaseSnapshotResponse]
readPrec :: ReadPrec CreateRelationalDatabaseSnapshotResponse
$creadPrec :: ReadPrec CreateRelationalDatabaseSnapshotResponse
readList :: ReadS [CreateRelationalDatabaseSnapshotResponse]
$creadList :: ReadS [CreateRelationalDatabaseSnapshotResponse]
readsPrec :: Int -> ReadS CreateRelationalDatabaseSnapshotResponse
$creadsPrec :: Int -> ReadS CreateRelationalDatabaseSnapshotResponse
Prelude.Read, Int -> CreateRelationalDatabaseSnapshotResponse -> ShowS
[CreateRelationalDatabaseSnapshotResponse] -> ShowS
CreateRelationalDatabaseSnapshotResponse -> String
(Int -> CreateRelationalDatabaseSnapshotResponse -> ShowS)
-> (CreateRelationalDatabaseSnapshotResponse -> String)
-> ([CreateRelationalDatabaseSnapshotResponse] -> ShowS)
-> Show CreateRelationalDatabaseSnapshotResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRelationalDatabaseSnapshotResponse] -> ShowS
$cshowList :: [CreateRelationalDatabaseSnapshotResponse] -> ShowS
show :: CreateRelationalDatabaseSnapshotResponse -> String
$cshow :: CreateRelationalDatabaseSnapshotResponse -> String
showsPrec :: Int -> CreateRelationalDatabaseSnapshotResponse -> ShowS
$cshowsPrec :: Int -> CreateRelationalDatabaseSnapshotResponse -> ShowS
Prelude.Show, (forall x.
CreateRelationalDatabaseSnapshotResponse
-> Rep CreateRelationalDatabaseSnapshotResponse x)
-> (forall x.
Rep CreateRelationalDatabaseSnapshotResponse x
-> CreateRelationalDatabaseSnapshotResponse)
-> Generic CreateRelationalDatabaseSnapshotResponse
forall x.
Rep CreateRelationalDatabaseSnapshotResponse x
-> CreateRelationalDatabaseSnapshotResponse
forall x.
CreateRelationalDatabaseSnapshotResponse
-> Rep CreateRelationalDatabaseSnapshotResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateRelationalDatabaseSnapshotResponse x
-> CreateRelationalDatabaseSnapshotResponse
$cfrom :: forall x.
CreateRelationalDatabaseSnapshotResponse
-> Rep CreateRelationalDatabaseSnapshotResponse x
Prelude.Generic)
newCreateRelationalDatabaseSnapshotResponse ::
Prelude.Int ->
CreateRelationalDatabaseSnapshotResponse
newCreateRelationalDatabaseSnapshotResponse :: Int -> CreateRelationalDatabaseSnapshotResponse
newCreateRelationalDatabaseSnapshotResponse
Int
pHttpStatus_ =
CreateRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
-> Int -> CreateRelationalDatabaseSnapshotResponse
CreateRelationalDatabaseSnapshotResponse'
{ $sel:operations:CreateRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
operations =
Maybe [Operation]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateRelationalDatabaseSnapshotResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createRelationalDatabaseSnapshotResponse_operations :: Lens.Lens' CreateRelationalDatabaseSnapshotResponse (Prelude.Maybe [Operation])
createRelationalDatabaseSnapshotResponse_operations :: (Maybe [Operation] -> f (Maybe [Operation]))
-> CreateRelationalDatabaseSnapshotResponse
-> f CreateRelationalDatabaseSnapshotResponse
createRelationalDatabaseSnapshotResponse_operations = (CreateRelationalDatabaseSnapshotResponse -> Maybe [Operation])
-> (CreateRelationalDatabaseSnapshotResponse
-> Maybe [Operation] -> CreateRelationalDatabaseSnapshotResponse)
-> Lens
CreateRelationalDatabaseSnapshotResponse
CreateRelationalDatabaseSnapshotResponse
(Maybe [Operation])
(Maybe [Operation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRelationalDatabaseSnapshotResponse' {Maybe [Operation]
operations :: Maybe [Operation]
$sel:operations:CreateRelationalDatabaseSnapshotResponse' :: CreateRelationalDatabaseSnapshotResponse -> Maybe [Operation]
operations} -> Maybe [Operation]
operations) (\s :: CreateRelationalDatabaseSnapshotResponse
s@CreateRelationalDatabaseSnapshotResponse' {} Maybe [Operation]
a -> CreateRelationalDatabaseSnapshotResponse
s {$sel:operations:CreateRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
operations = Maybe [Operation]
a} :: CreateRelationalDatabaseSnapshotResponse) ((Maybe [Operation] -> f (Maybe [Operation]))
-> CreateRelationalDatabaseSnapshotResponse
-> f CreateRelationalDatabaseSnapshotResponse)
-> ((Maybe [Operation] -> f (Maybe [Operation]))
-> Maybe [Operation] -> f (Maybe [Operation]))
-> (Maybe [Operation] -> f (Maybe [Operation]))
-> CreateRelationalDatabaseSnapshotResponse
-> f CreateRelationalDatabaseSnapshotResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Operation] [Operation] [Operation] [Operation]
-> Iso
(Maybe [Operation])
(Maybe [Operation])
(Maybe [Operation])
(Maybe [Operation])
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 [Operation] [Operation] [Operation] [Operation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRelationalDatabaseSnapshotResponse_httpStatus :: Lens.Lens' CreateRelationalDatabaseSnapshotResponse Prelude.Int
createRelationalDatabaseSnapshotResponse_httpStatus :: (Int -> f Int)
-> CreateRelationalDatabaseSnapshotResponse
-> f CreateRelationalDatabaseSnapshotResponse
createRelationalDatabaseSnapshotResponse_httpStatus = (CreateRelationalDatabaseSnapshotResponse -> Int)
-> (CreateRelationalDatabaseSnapshotResponse
-> Int -> CreateRelationalDatabaseSnapshotResponse)
-> Lens
CreateRelationalDatabaseSnapshotResponse
CreateRelationalDatabaseSnapshotResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRelationalDatabaseSnapshotResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateRelationalDatabaseSnapshotResponse' :: CreateRelationalDatabaseSnapshotResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateRelationalDatabaseSnapshotResponse
s@CreateRelationalDatabaseSnapshotResponse' {} Int
a -> CreateRelationalDatabaseSnapshotResponse
s {$sel:httpStatus:CreateRelationalDatabaseSnapshotResponse' :: Int
httpStatus = Int
a} :: CreateRelationalDatabaseSnapshotResponse)
instance
Prelude.NFData
CreateRelationalDatabaseSnapshotResponse