{-# 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.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint
(
CreateSnapshotFromVolumeRecoveryPoint (..),
newCreateSnapshotFromVolumeRecoveryPoint,
createSnapshotFromVolumeRecoveryPoint_tags,
createSnapshotFromVolumeRecoveryPoint_volumeARN,
createSnapshotFromVolumeRecoveryPoint_snapshotDescription,
CreateSnapshotFromVolumeRecoveryPointResponse (..),
newCreateSnapshotFromVolumeRecoveryPointResponse,
createSnapshotFromVolumeRecoveryPointResponse_volumeRecoveryPointTime,
createSnapshotFromVolumeRecoveryPointResponse_volumeARN,
createSnapshotFromVolumeRecoveryPointResponse_snapshotId,
createSnapshotFromVolumeRecoveryPointResponse_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.StorageGateway.Types
data CreateSnapshotFromVolumeRecoveryPoint = CreateSnapshotFromVolumeRecoveryPoint'
{
CreateSnapshotFromVolumeRecoveryPoint -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateSnapshotFromVolumeRecoveryPoint -> Text
volumeARN :: Prelude.Text,
CreateSnapshotFromVolumeRecoveryPoint -> Text
snapshotDescription :: Prelude.Text
}
deriving (CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool
(CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool)
-> (CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool)
-> Eq CreateSnapshotFromVolumeRecoveryPoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool
$c/= :: CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool
== :: CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool
$c== :: CreateSnapshotFromVolumeRecoveryPoint
-> CreateSnapshotFromVolumeRecoveryPoint -> Bool
Prelude.Eq, ReadPrec [CreateSnapshotFromVolumeRecoveryPoint]
ReadPrec CreateSnapshotFromVolumeRecoveryPoint
Int -> ReadS CreateSnapshotFromVolumeRecoveryPoint
ReadS [CreateSnapshotFromVolumeRecoveryPoint]
(Int -> ReadS CreateSnapshotFromVolumeRecoveryPoint)
-> ReadS [CreateSnapshotFromVolumeRecoveryPoint]
-> ReadPrec CreateSnapshotFromVolumeRecoveryPoint
-> ReadPrec [CreateSnapshotFromVolumeRecoveryPoint]
-> Read CreateSnapshotFromVolumeRecoveryPoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSnapshotFromVolumeRecoveryPoint]
$creadListPrec :: ReadPrec [CreateSnapshotFromVolumeRecoveryPoint]
readPrec :: ReadPrec CreateSnapshotFromVolumeRecoveryPoint
$creadPrec :: ReadPrec CreateSnapshotFromVolumeRecoveryPoint
readList :: ReadS [CreateSnapshotFromVolumeRecoveryPoint]
$creadList :: ReadS [CreateSnapshotFromVolumeRecoveryPoint]
readsPrec :: Int -> ReadS CreateSnapshotFromVolumeRecoveryPoint
$creadsPrec :: Int -> ReadS CreateSnapshotFromVolumeRecoveryPoint
Prelude.Read, Int -> CreateSnapshotFromVolumeRecoveryPoint -> ShowS
[CreateSnapshotFromVolumeRecoveryPoint] -> ShowS
CreateSnapshotFromVolumeRecoveryPoint -> String
(Int -> CreateSnapshotFromVolumeRecoveryPoint -> ShowS)
-> (CreateSnapshotFromVolumeRecoveryPoint -> String)
-> ([CreateSnapshotFromVolumeRecoveryPoint] -> ShowS)
-> Show CreateSnapshotFromVolumeRecoveryPoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSnapshotFromVolumeRecoveryPoint] -> ShowS
$cshowList :: [CreateSnapshotFromVolumeRecoveryPoint] -> ShowS
show :: CreateSnapshotFromVolumeRecoveryPoint -> String
$cshow :: CreateSnapshotFromVolumeRecoveryPoint -> String
showsPrec :: Int -> CreateSnapshotFromVolumeRecoveryPoint -> ShowS
$cshowsPrec :: Int -> CreateSnapshotFromVolumeRecoveryPoint -> ShowS
Prelude.Show, (forall x.
CreateSnapshotFromVolumeRecoveryPoint
-> Rep CreateSnapshotFromVolumeRecoveryPoint x)
-> (forall x.
Rep CreateSnapshotFromVolumeRecoveryPoint x
-> CreateSnapshotFromVolumeRecoveryPoint)
-> Generic CreateSnapshotFromVolumeRecoveryPoint
forall x.
Rep CreateSnapshotFromVolumeRecoveryPoint x
-> CreateSnapshotFromVolumeRecoveryPoint
forall x.
CreateSnapshotFromVolumeRecoveryPoint
-> Rep CreateSnapshotFromVolumeRecoveryPoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSnapshotFromVolumeRecoveryPoint x
-> CreateSnapshotFromVolumeRecoveryPoint
$cfrom :: forall x.
CreateSnapshotFromVolumeRecoveryPoint
-> Rep CreateSnapshotFromVolumeRecoveryPoint x
Prelude.Generic)
newCreateSnapshotFromVolumeRecoveryPoint ::
Prelude.Text ->
Prelude.Text ->
CreateSnapshotFromVolumeRecoveryPoint
newCreateSnapshotFromVolumeRecoveryPoint :: Text -> Text -> CreateSnapshotFromVolumeRecoveryPoint
newCreateSnapshotFromVolumeRecoveryPoint
Text
pVolumeARN_
Text
pSnapshotDescription_ =
CreateSnapshotFromVolumeRecoveryPoint' :: Maybe [Tag]
-> Text -> Text -> CreateSnapshotFromVolumeRecoveryPoint
CreateSnapshotFromVolumeRecoveryPoint'
{ $sel:tags:CreateSnapshotFromVolumeRecoveryPoint' :: Maybe [Tag]
tags =
Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint' :: Text
volumeARN = Text
pVolumeARN_,
$sel:snapshotDescription:CreateSnapshotFromVolumeRecoveryPoint' :: Text
snapshotDescription =
Text
pSnapshotDescription_
}
createSnapshotFromVolumeRecoveryPoint_tags :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPoint (Prelude.Maybe [Tag])
createSnapshotFromVolumeRecoveryPoint_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotFromVolumeRecoveryPoint
-> f CreateSnapshotFromVolumeRecoveryPoint
createSnapshotFromVolumeRecoveryPoint_tags = (CreateSnapshotFromVolumeRecoveryPoint -> Maybe [Tag])
-> (CreateSnapshotFromVolumeRecoveryPoint
-> Maybe [Tag] -> CreateSnapshotFromVolumeRecoveryPoint)
-> Lens
CreateSnapshotFromVolumeRecoveryPoint
CreateSnapshotFromVolumeRecoveryPoint
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPoint' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateSnapshotFromVolumeRecoveryPoint
s@CreateSnapshotFromVolumeRecoveryPoint' {} Maybe [Tag]
a -> CreateSnapshotFromVolumeRecoveryPoint
s {$sel:tags:CreateSnapshotFromVolumeRecoveryPoint' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateSnapshotFromVolumeRecoveryPoint) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotFromVolumeRecoveryPoint
-> f CreateSnapshotFromVolumeRecoveryPoint)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotFromVolumeRecoveryPoint
-> f CreateSnapshotFromVolumeRecoveryPoint
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
createSnapshotFromVolumeRecoveryPoint_volumeARN :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPoint Prelude.Text
createSnapshotFromVolumeRecoveryPoint_volumeARN :: (Text -> f Text)
-> CreateSnapshotFromVolumeRecoveryPoint
-> f CreateSnapshotFromVolumeRecoveryPoint
createSnapshotFromVolumeRecoveryPoint_volumeARN = (CreateSnapshotFromVolumeRecoveryPoint -> Text)
-> (CreateSnapshotFromVolumeRecoveryPoint
-> Text -> CreateSnapshotFromVolumeRecoveryPoint)
-> Lens
CreateSnapshotFromVolumeRecoveryPoint
CreateSnapshotFromVolumeRecoveryPoint
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPoint' {Text
volumeARN :: Text
$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> Text
volumeARN} -> Text
volumeARN) (\s :: CreateSnapshotFromVolumeRecoveryPoint
s@CreateSnapshotFromVolumeRecoveryPoint' {} Text
a -> CreateSnapshotFromVolumeRecoveryPoint
s {$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint' :: Text
volumeARN = Text
a} :: CreateSnapshotFromVolumeRecoveryPoint)
createSnapshotFromVolumeRecoveryPoint_snapshotDescription :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPoint Prelude.Text
createSnapshotFromVolumeRecoveryPoint_snapshotDescription :: (Text -> f Text)
-> CreateSnapshotFromVolumeRecoveryPoint
-> f CreateSnapshotFromVolumeRecoveryPoint
createSnapshotFromVolumeRecoveryPoint_snapshotDescription = (CreateSnapshotFromVolumeRecoveryPoint -> Text)
-> (CreateSnapshotFromVolumeRecoveryPoint
-> Text -> CreateSnapshotFromVolumeRecoveryPoint)
-> Lens
CreateSnapshotFromVolumeRecoveryPoint
CreateSnapshotFromVolumeRecoveryPoint
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPoint' {Text
snapshotDescription :: Text
$sel:snapshotDescription:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> Text
snapshotDescription} -> Text
snapshotDescription) (\s :: CreateSnapshotFromVolumeRecoveryPoint
s@CreateSnapshotFromVolumeRecoveryPoint' {} Text
a -> CreateSnapshotFromVolumeRecoveryPoint
s {$sel:snapshotDescription:CreateSnapshotFromVolumeRecoveryPoint' :: Text
snapshotDescription = Text
a} :: CreateSnapshotFromVolumeRecoveryPoint)
instance
Core.AWSRequest
CreateSnapshotFromVolumeRecoveryPoint
where
type
AWSResponse
CreateSnapshotFromVolumeRecoveryPoint =
CreateSnapshotFromVolumeRecoveryPointResponse
request :: CreateSnapshotFromVolumeRecoveryPoint
-> Request CreateSnapshotFromVolumeRecoveryPoint
request = Service
-> CreateSnapshotFromVolumeRecoveryPoint
-> Request CreateSnapshotFromVolumeRecoveryPoint
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateSnapshotFromVolumeRecoveryPoint
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse CreateSnapshotFromVolumeRecoveryPoint)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse CreateSnapshotFromVolumeRecoveryPoint))
-> Logger
-> Service
-> Proxy CreateSnapshotFromVolumeRecoveryPoint
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse CreateSnapshotFromVolumeRecoveryPoint)))
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 Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Int
-> CreateSnapshotFromVolumeRecoveryPointResponse)
forall (f :: * -> *) a b. Functor 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
"VolumeRecoveryPointTime")
Either
String
(Maybe Text
-> Maybe Text
-> Int
-> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Int -> CreateSnapshotFromVolumeRecoveryPointResponse)
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
"VolumeARN")
Either
String
(Maybe Text
-> Int -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> CreateSnapshotFromVolumeRecoveryPointResponse)
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
"SnapshotId")
Either
String (Int -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Either String Int
-> Either String CreateSnapshotFromVolumeRecoveryPointResponse
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
CreateSnapshotFromVolumeRecoveryPoint
instance
Prelude.NFData
CreateSnapshotFromVolumeRecoveryPoint
instance
Core.ToHeaders
CreateSnapshotFromVolumeRecoveryPoint
where
toHeaders :: CreateSnapshotFromVolumeRecoveryPoint -> ResponseHeaders
toHeaders =
ResponseHeaders
-> CreateSnapshotFromVolumeRecoveryPoint -> 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
"StorageGateway_20130630.CreateSnapshotFromVolumeRecoveryPoint" ::
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
CreateSnapshotFromVolumeRecoveryPoint
where
toJSON :: CreateSnapshotFromVolumeRecoveryPoint -> Value
toJSON CreateSnapshotFromVolumeRecoveryPoint' {Maybe [Tag]
Text
snapshotDescription :: Text
volumeARN :: Text
tags :: Maybe [Tag]
$sel:snapshotDescription:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> Text
$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> Text
$sel:tags:CreateSnapshotFromVolumeRecoveryPoint' :: CreateSnapshotFromVolumeRecoveryPoint -> 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
"VolumeARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
volumeARN),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"SnapshotDescription" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
snapshotDescription)
]
)
instance
Core.ToPath
CreateSnapshotFromVolumeRecoveryPoint
where
toPath :: CreateSnapshotFromVolumeRecoveryPoint -> ByteString
toPath = ByteString -> CreateSnapshotFromVolumeRecoveryPoint -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
CreateSnapshotFromVolumeRecoveryPoint
where
toQuery :: CreateSnapshotFromVolumeRecoveryPoint -> QueryString
toQuery = QueryString -> CreateSnapshotFromVolumeRecoveryPoint -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateSnapshotFromVolumeRecoveryPointResponse = CreateSnapshotFromVolumeRecoveryPointResponse'
{
CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
volumeRecoveryPointTime :: Prelude.Maybe Prelude.Text,
CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
volumeARN :: Prelude.Maybe Prelude.Text,
CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
snapshotId :: Prelude.Maybe Prelude.Text,
CreateSnapshotFromVolumeRecoveryPointResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool
(CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool)
-> (CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool)
-> Eq CreateSnapshotFromVolumeRecoveryPointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool
$c/= :: CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool
== :: CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool
$c== :: CreateSnapshotFromVolumeRecoveryPointResponse
-> CreateSnapshotFromVolumeRecoveryPointResponse -> Bool
Prelude.Eq, ReadPrec [CreateSnapshotFromVolumeRecoveryPointResponse]
ReadPrec CreateSnapshotFromVolumeRecoveryPointResponse
Int -> ReadS CreateSnapshotFromVolumeRecoveryPointResponse
ReadS [CreateSnapshotFromVolumeRecoveryPointResponse]
(Int -> ReadS CreateSnapshotFromVolumeRecoveryPointResponse)
-> ReadS [CreateSnapshotFromVolumeRecoveryPointResponse]
-> ReadPrec CreateSnapshotFromVolumeRecoveryPointResponse
-> ReadPrec [CreateSnapshotFromVolumeRecoveryPointResponse]
-> Read CreateSnapshotFromVolumeRecoveryPointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSnapshotFromVolumeRecoveryPointResponse]
$creadListPrec :: ReadPrec [CreateSnapshotFromVolumeRecoveryPointResponse]
readPrec :: ReadPrec CreateSnapshotFromVolumeRecoveryPointResponse
$creadPrec :: ReadPrec CreateSnapshotFromVolumeRecoveryPointResponse
readList :: ReadS [CreateSnapshotFromVolumeRecoveryPointResponse]
$creadList :: ReadS [CreateSnapshotFromVolumeRecoveryPointResponse]
readsPrec :: Int -> ReadS CreateSnapshotFromVolumeRecoveryPointResponse
$creadsPrec :: Int -> ReadS CreateSnapshotFromVolumeRecoveryPointResponse
Prelude.Read, Int -> CreateSnapshotFromVolumeRecoveryPointResponse -> ShowS
[CreateSnapshotFromVolumeRecoveryPointResponse] -> ShowS
CreateSnapshotFromVolumeRecoveryPointResponse -> String
(Int -> CreateSnapshotFromVolumeRecoveryPointResponse -> ShowS)
-> (CreateSnapshotFromVolumeRecoveryPointResponse -> String)
-> ([CreateSnapshotFromVolumeRecoveryPointResponse] -> ShowS)
-> Show CreateSnapshotFromVolumeRecoveryPointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSnapshotFromVolumeRecoveryPointResponse] -> ShowS
$cshowList :: [CreateSnapshotFromVolumeRecoveryPointResponse] -> ShowS
show :: CreateSnapshotFromVolumeRecoveryPointResponse -> String
$cshow :: CreateSnapshotFromVolumeRecoveryPointResponse -> String
showsPrec :: Int -> CreateSnapshotFromVolumeRecoveryPointResponse -> ShowS
$cshowsPrec :: Int -> CreateSnapshotFromVolumeRecoveryPointResponse -> ShowS
Prelude.Show, (forall x.
CreateSnapshotFromVolumeRecoveryPointResponse
-> Rep CreateSnapshotFromVolumeRecoveryPointResponse x)
-> (forall x.
Rep CreateSnapshotFromVolumeRecoveryPointResponse x
-> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Generic CreateSnapshotFromVolumeRecoveryPointResponse
forall x.
Rep CreateSnapshotFromVolumeRecoveryPointResponse x
-> CreateSnapshotFromVolumeRecoveryPointResponse
forall x.
CreateSnapshotFromVolumeRecoveryPointResponse
-> Rep CreateSnapshotFromVolumeRecoveryPointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSnapshotFromVolumeRecoveryPointResponse x
-> CreateSnapshotFromVolumeRecoveryPointResponse
$cfrom :: forall x.
CreateSnapshotFromVolumeRecoveryPointResponse
-> Rep CreateSnapshotFromVolumeRecoveryPointResponse x
Prelude.Generic)
newCreateSnapshotFromVolumeRecoveryPointResponse ::
Prelude.Int ->
CreateSnapshotFromVolumeRecoveryPointResponse
newCreateSnapshotFromVolumeRecoveryPointResponse :: Int -> CreateSnapshotFromVolumeRecoveryPointResponse
newCreateSnapshotFromVolumeRecoveryPointResponse
Int
pHttpStatus_ =
CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse'
{ $sel:volumeRecoveryPointTime:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
volumeRecoveryPointTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
volumeARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotId:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
snapshotId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateSnapshotFromVolumeRecoveryPointResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createSnapshotFromVolumeRecoveryPointResponse_volumeRecoveryPointTime :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
createSnapshotFromVolumeRecoveryPointResponse_volumeRecoveryPointTime :: (Maybe Text -> f (Maybe Text))
-> CreateSnapshotFromVolumeRecoveryPointResponse
-> f CreateSnapshotFromVolumeRecoveryPointResponse
createSnapshotFromVolumeRecoveryPointResponse_volumeRecoveryPointTime = (CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text)
-> (CreateSnapshotFromVolumeRecoveryPointResponse
-> Maybe Text -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Lens
CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPointResponse' {Maybe Text
volumeRecoveryPointTime :: Maybe Text
$sel:volumeRecoveryPointTime:CreateSnapshotFromVolumeRecoveryPointResponse' :: CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
volumeRecoveryPointTime} -> Maybe Text
volumeRecoveryPointTime) (\s :: CreateSnapshotFromVolumeRecoveryPointResponse
s@CreateSnapshotFromVolumeRecoveryPointResponse' {} Maybe Text
a -> CreateSnapshotFromVolumeRecoveryPointResponse
s {$sel:volumeRecoveryPointTime:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
volumeRecoveryPointTime = Maybe Text
a} :: CreateSnapshotFromVolumeRecoveryPointResponse)
createSnapshotFromVolumeRecoveryPointResponse_volumeARN :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
createSnapshotFromVolumeRecoveryPointResponse_volumeARN :: (Maybe Text -> f (Maybe Text))
-> CreateSnapshotFromVolumeRecoveryPointResponse
-> f CreateSnapshotFromVolumeRecoveryPointResponse
createSnapshotFromVolumeRecoveryPointResponse_volumeARN = (CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text)
-> (CreateSnapshotFromVolumeRecoveryPointResponse
-> Maybe Text -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Lens
CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPointResponse' {Maybe Text
volumeARN :: Maybe Text
$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPointResponse' :: CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
volumeARN} -> Maybe Text
volumeARN) (\s :: CreateSnapshotFromVolumeRecoveryPointResponse
s@CreateSnapshotFromVolumeRecoveryPointResponse' {} Maybe Text
a -> CreateSnapshotFromVolumeRecoveryPointResponse
s {$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
volumeARN = Maybe Text
a} :: CreateSnapshotFromVolumeRecoveryPointResponse)
createSnapshotFromVolumeRecoveryPointResponse_snapshotId :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
createSnapshotFromVolumeRecoveryPointResponse_snapshotId :: (Maybe Text -> f (Maybe Text))
-> CreateSnapshotFromVolumeRecoveryPointResponse
-> f CreateSnapshotFromVolumeRecoveryPointResponse
createSnapshotFromVolumeRecoveryPointResponse_snapshotId = (CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text)
-> (CreateSnapshotFromVolumeRecoveryPointResponse
-> Maybe Text -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Lens
CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPointResponse' {Maybe Text
snapshotId :: Maybe Text
$sel:snapshotId:CreateSnapshotFromVolumeRecoveryPointResponse' :: CreateSnapshotFromVolumeRecoveryPointResponse -> Maybe Text
snapshotId} -> Maybe Text
snapshotId) (\s :: CreateSnapshotFromVolumeRecoveryPointResponse
s@CreateSnapshotFromVolumeRecoveryPointResponse' {} Maybe Text
a -> CreateSnapshotFromVolumeRecoveryPointResponse
s {$sel:snapshotId:CreateSnapshotFromVolumeRecoveryPointResponse' :: Maybe Text
snapshotId = Maybe Text
a} :: CreateSnapshotFromVolumeRecoveryPointResponse)
createSnapshotFromVolumeRecoveryPointResponse_httpStatus :: Lens.Lens' CreateSnapshotFromVolumeRecoveryPointResponse Prelude.Int
createSnapshotFromVolumeRecoveryPointResponse_httpStatus :: (Int -> f Int)
-> CreateSnapshotFromVolumeRecoveryPointResponse
-> f CreateSnapshotFromVolumeRecoveryPointResponse
createSnapshotFromVolumeRecoveryPointResponse_httpStatus = (CreateSnapshotFromVolumeRecoveryPointResponse -> Int)
-> (CreateSnapshotFromVolumeRecoveryPointResponse
-> Int -> CreateSnapshotFromVolumeRecoveryPointResponse)
-> Lens
CreateSnapshotFromVolumeRecoveryPointResponse
CreateSnapshotFromVolumeRecoveryPointResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotFromVolumeRecoveryPointResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSnapshotFromVolumeRecoveryPointResponse' :: CreateSnapshotFromVolumeRecoveryPointResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSnapshotFromVolumeRecoveryPointResponse
s@CreateSnapshotFromVolumeRecoveryPointResponse' {} Int
a -> CreateSnapshotFromVolumeRecoveryPointResponse
s {$sel:httpStatus:CreateSnapshotFromVolumeRecoveryPointResponse' :: Int
httpStatus = Int
a} :: CreateSnapshotFromVolumeRecoveryPointResponse)
instance
Prelude.NFData
CreateSnapshotFromVolumeRecoveryPointResponse