{-# 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.GetInstanceSnapshots
(
GetInstanceSnapshots (..),
newGetInstanceSnapshots,
getInstanceSnapshots_pageToken,
GetInstanceSnapshotsResponse (..),
newGetInstanceSnapshotsResponse,
getInstanceSnapshotsResponse_nextPageToken,
getInstanceSnapshotsResponse_instanceSnapshots,
getInstanceSnapshotsResponse_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 GetInstanceSnapshots = GetInstanceSnapshots'
{
GetInstanceSnapshots -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text
}
deriving (GetInstanceSnapshots -> GetInstanceSnapshots -> Bool
(GetInstanceSnapshots -> GetInstanceSnapshots -> Bool)
-> (GetInstanceSnapshots -> GetInstanceSnapshots -> Bool)
-> Eq GetInstanceSnapshots
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInstanceSnapshots -> GetInstanceSnapshots -> Bool
$c/= :: GetInstanceSnapshots -> GetInstanceSnapshots -> Bool
== :: GetInstanceSnapshots -> GetInstanceSnapshots -> Bool
$c== :: GetInstanceSnapshots -> GetInstanceSnapshots -> Bool
Prelude.Eq, ReadPrec [GetInstanceSnapshots]
ReadPrec GetInstanceSnapshots
Int -> ReadS GetInstanceSnapshots
ReadS [GetInstanceSnapshots]
(Int -> ReadS GetInstanceSnapshots)
-> ReadS [GetInstanceSnapshots]
-> ReadPrec GetInstanceSnapshots
-> ReadPrec [GetInstanceSnapshots]
-> Read GetInstanceSnapshots
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInstanceSnapshots]
$creadListPrec :: ReadPrec [GetInstanceSnapshots]
readPrec :: ReadPrec GetInstanceSnapshots
$creadPrec :: ReadPrec GetInstanceSnapshots
readList :: ReadS [GetInstanceSnapshots]
$creadList :: ReadS [GetInstanceSnapshots]
readsPrec :: Int -> ReadS GetInstanceSnapshots
$creadsPrec :: Int -> ReadS GetInstanceSnapshots
Prelude.Read, Int -> GetInstanceSnapshots -> ShowS
[GetInstanceSnapshots] -> ShowS
GetInstanceSnapshots -> String
(Int -> GetInstanceSnapshots -> ShowS)
-> (GetInstanceSnapshots -> String)
-> ([GetInstanceSnapshots] -> ShowS)
-> Show GetInstanceSnapshots
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInstanceSnapshots] -> ShowS
$cshowList :: [GetInstanceSnapshots] -> ShowS
show :: GetInstanceSnapshots -> String
$cshow :: GetInstanceSnapshots -> String
showsPrec :: Int -> GetInstanceSnapshots -> ShowS
$cshowsPrec :: Int -> GetInstanceSnapshots -> ShowS
Prelude.Show, (forall x. GetInstanceSnapshots -> Rep GetInstanceSnapshots x)
-> (forall x. Rep GetInstanceSnapshots x -> GetInstanceSnapshots)
-> Generic GetInstanceSnapshots
forall x. Rep GetInstanceSnapshots x -> GetInstanceSnapshots
forall x. GetInstanceSnapshots -> Rep GetInstanceSnapshots x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetInstanceSnapshots x -> GetInstanceSnapshots
$cfrom :: forall x. GetInstanceSnapshots -> Rep GetInstanceSnapshots x
Prelude.Generic)
newGetInstanceSnapshots ::
GetInstanceSnapshots
newGetInstanceSnapshots :: GetInstanceSnapshots
newGetInstanceSnapshots =
GetInstanceSnapshots' :: Maybe Text -> GetInstanceSnapshots
GetInstanceSnapshots' {$sel:pageToken:GetInstanceSnapshots' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing}
getInstanceSnapshots_pageToken :: Lens.Lens' GetInstanceSnapshots (Prelude.Maybe Prelude.Text)
getInstanceSnapshots_pageToken :: (Maybe Text -> f (Maybe Text))
-> GetInstanceSnapshots -> f GetInstanceSnapshots
getInstanceSnapshots_pageToken = (GetInstanceSnapshots -> Maybe Text)
-> (GetInstanceSnapshots -> Maybe Text -> GetInstanceSnapshots)
-> Lens
GetInstanceSnapshots GetInstanceSnapshots (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInstanceSnapshots' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetInstanceSnapshots' :: GetInstanceSnapshots -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetInstanceSnapshots
s@GetInstanceSnapshots' {} Maybe Text
a -> GetInstanceSnapshots
s {$sel:pageToken:GetInstanceSnapshots' :: Maybe Text
pageToken = Maybe Text
a} :: GetInstanceSnapshots)
instance Core.AWSPager GetInstanceSnapshots where
page :: GetInstanceSnapshots
-> AWSResponse GetInstanceSnapshots -> Maybe GetInstanceSnapshots
page GetInstanceSnapshots
rq AWSResponse GetInstanceSnapshots
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetInstanceSnapshots
GetInstanceSnapshotsResponse
rs
GetInstanceSnapshotsResponse
-> Getting (First Text) GetInstanceSnapshotsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetInstanceSnapshotsResponse
-> Const (First Text) GetInstanceSnapshotsResponse
Lens' GetInstanceSnapshotsResponse (Maybe Text)
getInstanceSnapshotsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetInstanceSnapshotsResponse
-> Const (First Text) GetInstanceSnapshotsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetInstanceSnapshotsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetInstanceSnapshots
forall a. Maybe a
Prelude.Nothing
| Maybe [InstanceSnapshot] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetInstanceSnapshots
GetInstanceSnapshotsResponse
rs
GetInstanceSnapshotsResponse
-> Getting
(First [InstanceSnapshot])
GetInstanceSnapshotsResponse
[InstanceSnapshot]
-> Maybe [InstanceSnapshot]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [InstanceSnapshot]
-> Const (First [InstanceSnapshot]) (Maybe [InstanceSnapshot]))
-> GetInstanceSnapshotsResponse
-> Const (First [InstanceSnapshot]) GetInstanceSnapshotsResponse
Lens' GetInstanceSnapshotsResponse (Maybe [InstanceSnapshot])
getInstanceSnapshotsResponse_instanceSnapshots
((Maybe [InstanceSnapshot]
-> Const (First [InstanceSnapshot]) (Maybe [InstanceSnapshot]))
-> GetInstanceSnapshotsResponse
-> Const (First [InstanceSnapshot]) GetInstanceSnapshotsResponse)
-> (([InstanceSnapshot]
-> Const (First [InstanceSnapshot]) [InstanceSnapshot])
-> Maybe [InstanceSnapshot]
-> Const (First [InstanceSnapshot]) (Maybe [InstanceSnapshot]))
-> Getting
(First [InstanceSnapshot])
GetInstanceSnapshotsResponse
[InstanceSnapshot]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([InstanceSnapshot]
-> Const (First [InstanceSnapshot]) [InstanceSnapshot])
-> Maybe [InstanceSnapshot]
-> Const (First [InstanceSnapshot]) (Maybe [InstanceSnapshot])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetInstanceSnapshots
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetInstanceSnapshots -> Maybe GetInstanceSnapshots
forall a. a -> Maybe a
Prelude.Just (GetInstanceSnapshots -> Maybe GetInstanceSnapshots)
-> GetInstanceSnapshots -> Maybe GetInstanceSnapshots
forall a b. (a -> b) -> a -> b
Prelude.$
GetInstanceSnapshots
rq
GetInstanceSnapshots
-> (GetInstanceSnapshots -> GetInstanceSnapshots)
-> GetInstanceSnapshots
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetInstanceSnapshots -> Identity GetInstanceSnapshots
Lens
GetInstanceSnapshots GetInstanceSnapshots (Maybe Text) (Maybe Text)
getInstanceSnapshots_pageToken
((Maybe Text -> Identity (Maybe Text))
-> GetInstanceSnapshots -> Identity GetInstanceSnapshots)
-> Maybe Text -> GetInstanceSnapshots -> GetInstanceSnapshots
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetInstanceSnapshots
GetInstanceSnapshotsResponse
rs
GetInstanceSnapshotsResponse
-> Getting (First Text) GetInstanceSnapshotsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetInstanceSnapshotsResponse
-> Const (First Text) GetInstanceSnapshotsResponse
Lens' GetInstanceSnapshotsResponse (Maybe Text)
getInstanceSnapshotsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetInstanceSnapshotsResponse
-> Const (First Text) GetInstanceSnapshotsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetInstanceSnapshotsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest GetInstanceSnapshots where
type
AWSResponse GetInstanceSnapshots =
GetInstanceSnapshotsResponse
request :: GetInstanceSnapshots -> Request GetInstanceSnapshots
request = Service -> GetInstanceSnapshots -> Request GetInstanceSnapshots
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetInstanceSnapshots
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetInstanceSnapshots)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetInstanceSnapshots))
-> Logger
-> Service
-> Proxy GetInstanceSnapshots
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetInstanceSnapshots)))
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 [InstanceSnapshot] -> Int -> GetInstanceSnapshotsResponse
GetInstanceSnapshotsResponse'
(Maybe Text
-> Maybe [InstanceSnapshot] -> Int -> GetInstanceSnapshotsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [InstanceSnapshot] -> Int -> GetInstanceSnapshotsResponse)
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
"nextPageToken")
Either
String
(Maybe [InstanceSnapshot] -> Int -> GetInstanceSnapshotsResponse)
-> Either String (Maybe [InstanceSnapshot])
-> Either String (Int -> GetInstanceSnapshotsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [InstanceSnapshot]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"instanceSnapshots"
Either String (Maybe (Maybe [InstanceSnapshot]))
-> Maybe [InstanceSnapshot]
-> Either String (Maybe [InstanceSnapshot])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InstanceSnapshot]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetInstanceSnapshotsResponse)
-> Either String Int -> Either String GetInstanceSnapshotsResponse
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 GetInstanceSnapshots
instance Prelude.NFData GetInstanceSnapshots
instance Core.ToHeaders GetInstanceSnapshots where
toHeaders :: GetInstanceSnapshots -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetInstanceSnapshots -> 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.GetInstanceSnapshots" ::
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 GetInstanceSnapshots where
toJSON :: GetInstanceSnapshots -> Value
toJSON GetInstanceSnapshots' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetInstanceSnapshots' :: GetInstanceSnapshots -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"pageToken" 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
pageToken]
)
instance Core.ToPath GetInstanceSnapshots where
toPath :: GetInstanceSnapshots -> ByteString
toPath = ByteString -> GetInstanceSnapshots -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetInstanceSnapshots where
toQuery :: GetInstanceSnapshots -> QueryString
toQuery = QueryString -> GetInstanceSnapshots -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetInstanceSnapshotsResponse = GetInstanceSnapshotsResponse'
{
GetInstanceSnapshotsResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
GetInstanceSnapshotsResponse -> Maybe [InstanceSnapshot]
instanceSnapshots :: Prelude.Maybe [InstanceSnapshot],
GetInstanceSnapshotsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool
(GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool)
-> (GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool)
-> Eq GetInstanceSnapshotsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool
$c/= :: GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool
== :: GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool
$c== :: GetInstanceSnapshotsResponse
-> GetInstanceSnapshotsResponse -> Bool
Prelude.Eq, ReadPrec [GetInstanceSnapshotsResponse]
ReadPrec GetInstanceSnapshotsResponse
Int -> ReadS GetInstanceSnapshotsResponse
ReadS [GetInstanceSnapshotsResponse]
(Int -> ReadS GetInstanceSnapshotsResponse)
-> ReadS [GetInstanceSnapshotsResponse]
-> ReadPrec GetInstanceSnapshotsResponse
-> ReadPrec [GetInstanceSnapshotsResponse]
-> Read GetInstanceSnapshotsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInstanceSnapshotsResponse]
$creadListPrec :: ReadPrec [GetInstanceSnapshotsResponse]
readPrec :: ReadPrec GetInstanceSnapshotsResponse
$creadPrec :: ReadPrec GetInstanceSnapshotsResponse
readList :: ReadS [GetInstanceSnapshotsResponse]
$creadList :: ReadS [GetInstanceSnapshotsResponse]
readsPrec :: Int -> ReadS GetInstanceSnapshotsResponse
$creadsPrec :: Int -> ReadS GetInstanceSnapshotsResponse
Prelude.Read, Int -> GetInstanceSnapshotsResponse -> ShowS
[GetInstanceSnapshotsResponse] -> ShowS
GetInstanceSnapshotsResponse -> String
(Int -> GetInstanceSnapshotsResponse -> ShowS)
-> (GetInstanceSnapshotsResponse -> String)
-> ([GetInstanceSnapshotsResponse] -> ShowS)
-> Show GetInstanceSnapshotsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInstanceSnapshotsResponse] -> ShowS
$cshowList :: [GetInstanceSnapshotsResponse] -> ShowS
show :: GetInstanceSnapshotsResponse -> String
$cshow :: GetInstanceSnapshotsResponse -> String
showsPrec :: Int -> GetInstanceSnapshotsResponse -> ShowS
$cshowsPrec :: Int -> GetInstanceSnapshotsResponse -> ShowS
Prelude.Show, (forall x.
GetInstanceSnapshotsResponse -> Rep GetInstanceSnapshotsResponse x)
-> (forall x.
Rep GetInstanceSnapshotsResponse x -> GetInstanceSnapshotsResponse)
-> Generic GetInstanceSnapshotsResponse
forall x.
Rep GetInstanceSnapshotsResponse x -> GetInstanceSnapshotsResponse
forall x.
GetInstanceSnapshotsResponse -> Rep GetInstanceSnapshotsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetInstanceSnapshotsResponse x -> GetInstanceSnapshotsResponse
$cfrom :: forall x.
GetInstanceSnapshotsResponse -> Rep GetInstanceSnapshotsResponse x
Prelude.Generic)
newGetInstanceSnapshotsResponse ::
Prelude.Int ->
GetInstanceSnapshotsResponse
newGetInstanceSnapshotsResponse :: Int -> GetInstanceSnapshotsResponse
newGetInstanceSnapshotsResponse Int
pHttpStatus_ =
GetInstanceSnapshotsResponse' :: Maybe Text
-> Maybe [InstanceSnapshot] -> Int -> GetInstanceSnapshotsResponse
GetInstanceSnapshotsResponse'
{ $sel:nextPageToken:GetInstanceSnapshotsResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceSnapshots:GetInstanceSnapshotsResponse' :: Maybe [InstanceSnapshot]
instanceSnapshots = Maybe [InstanceSnapshot]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetInstanceSnapshotsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getInstanceSnapshotsResponse_nextPageToken :: Lens.Lens' GetInstanceSnapshotsResponse (Prelude.Maybe Prelude.Text)
getInstanceSnapshotsResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> GetInstanceSnapshotsResponse -> f GetInstanceSnapshotsResponse
getInstanceSnapshotsResponse_nextPageToken = (GetInstanceSnapshotsResponse -> Maybe Text)
-> (GetInstanceSnapshotsResponse
-> Maybe Text -> GetInstanceSnapshotsResponse)
-> Lens' GetInstanceSnapshotsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInstanceSnapshotsResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetInstanceSnapshotsResponse' :: GetInstanceSnapshotsResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetInstanceSnapshotsResponse
s@GetInstanceSnapshotsResponse' {} Maybe Text
a -> GetInstanceSnapshotsResponse
s {$sel:nextPageToken:GetInstanceSnapshotsResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetInstanceSnapshotsResponse)
getInstanceSnapshotsResponse_instanceSnapshots :: Lens.Lens' GetInstanceSnapshotsResponse (Prelude.Maybe [InstanceSnapshot])
getInstanceSnapshotsResponse_instanceSnapshots :: (Maybe [InstanceSnapshot] -> f (Maybe [InstanceSnapshot]))
-> GetInstanceSnapshotsResponse -> f GetInstanceSnapshotsResponse
getInstanceSnapshotsResponse_instanceSnapshots = (GetInstanceSnapshotsResponse -> Maybe [InstanceSnapshot])
-> (GetInstanceSnapshotsResponse
-> Maybe [InstanceSnapshot] -> GetInstanceSnapshotsResponse)
-> Lens' GetInstanceSnapshotsResponse (Maybe [InstanceSnapshot])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInstanceSnapshotsResponse' {Maybe [InstanceSnapshot]
instanceSnapshots :: Maybe [InstanceSnapshot]
$sel:instanceSnapshots:GetInstanceSnapshotsResponse' :: GetInstanceSnapshotsResponse -> Maybe [InstanceSnapshot]
instanceSnapshots} -> Maybe [InstanceSnapshot]
instanceSnapshots) (\s :: GetInstanceSnapshotsResponse
s@GetInstanceSnapshotsResponse' {} Maybe [InstanceSnapshot]
a -> GetInstanceSnapshotsResponse
s {$sel:instanceSnapshots:GetInstanceSnapshotsResponse' :: Maybe [InstanceSnapshot]
instanceSnapshots = Maybe [InstanceSnapshot]
a} :: GetInstanceSnapshotsResponse) ((Maybe [InstanceSnapshot] -> f (Maybe [InstanceSnapshot]))
-> GetInstanceSnapshotsResponse -> f GetInstanceSnapshotsResponse)
-> ((Maybe [InstanceSnapshot] -> f (Maybe [InstanceSnapshot]))
-> Maybe [InstanceSnapshot] -> f (Maybe [InstanceSnapshot]))
-> (Maybe [InstanceSnapshot] -> f (Maybe [InstanceSnapshot]))
-> GetInstanceSnapshotsResponse
-> f GetInstanceSnapshotsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InstanceSnapshot]
[InstanceSnapshot]
[InstanceSnapshot]
[InstanceSnapshot]
-> Iso
(Maybe [InstanceSnapshot])
(Maybe [InstanceSnapshot])
(Maybe [InstanceSnapshot])
(Maybe [InstanceSnapshot])
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
[InstanceSnapshot]
[InstanceSnapshot]
[InstanceSnapshot]
[InstanceSnapshot]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getInstanceSnapshotsResponse_httpStatus :: Lens.Lens' GetInstanceSnapshotsResponse Prelude.Int
getInstanceSnapshotsResponse_httpStatus :: (Int -> f Int)
-> GetInstanceSnapshotsResponse -> f GetInstanceSnapshotsResponse
getInstanceSnapshotsResponse_httpStatus = (GetInstanceSnapshotsResponse -> Int)
-> (GetInstanceSnapshotsResponse
-> Int -> GetInstanceSnapshotsResponse)
-> Lens
GetInstanceSnapshotsResponse GetInstanceSnapshotsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInstanceSnapshotsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetInstanceSnapshotsResponse' :: GetInstanceSnapshotsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetInstanceSnapshotsResponse
s@GetInstanceSnapshotsResponse' {} Int
a -> GetInstanceSnapshotsResponse
s {$sel:httpStatus:GetInstanceSnapshotsResponse' :: Int
httpStatus = Int
a} :: GetInstanceSnapshotsResponse)
instance Prelude.NFData GetInstanceSnapshotsResponse