amazonka-lightsail-1.6.0: Amazon Lightsail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lightsail.GetDiskSnapshots

Contents

Description

Returns information about all block storage disk snapshots in your AWS account and region.

If you are describing a long list of disk snapshots, you can paginate the output to make the list more manageable. You can use the pageToken and nextPageToken values to retrieve the next items in the list.

Synopsis

Creating a Request

getDiskSnapshots :: GetDiskSnapshots Source #

Creates a value of GetDiskSnapshots with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gdsPageToken - A token used for advancing to the next page of results from your GetDiskSnapshots request.

data GetDiskSnapshots Source #

See: getDiskSnapshots smart constructor.

Instances

Eq GetDiskSnapshots Source # 
Data GetDiskSnapshots Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDiskSnapshots -> c GetDiskSnapshots #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDiskSnapshots #

toConstr :: GetDiskSnapshots -> Constr #

dataTypeOf :: GetDiskSnapshots -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetDiskSnapshots) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDiskSnapshots) #

gmapT :: (forall b. Data b => b -> b) -> GetDiskSnapshots -> GetDiskSnapshots #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskSnapshots -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskSnapshots -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDiskSnapshots -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDiskSnapshots -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDiskSnapshots -> m GetDiskSnapshots #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskSnapshots -> m GetDiskSnapshots #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskSnapshots -> m GetDiskSnapshots #

Read GetDiskSnapshots Source # 
Show GetDiskSnapshots Source # 
Generic GetDiskSnapshots Source # 
Hashable GetDiskSnapshots Source # 
ToJSON GetDiskSnapshots Source # 
NFData GetDiskSnapshots Source # 

Methods

rnf :: GetDiskSnapshots -> () #

AWSRequest GetDiskSnapshots Source # 
ToHeaders GetDiskSnapshots Source # 
ToPath GetDiskSnapshots Source # 
ToQuery GetDiskSnapshots Source # 
type Rep GetDiskSnapshots Source # 
type Rep GetDiskSnapshots = D1 * (MetaData "GetDiskSnapshots" "Network.AWS.Lightsail.GetDiskSnapshots" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" True) (C1 * (MetaCons "GetDiskSnapshots'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gdsPageToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))
type Rs GetDiskSnapshots Source # 

Request Lenses

gdsPageToken :: Lens' GetDiskSnapshots (Maybe Text) Source #

A token used for advancing to the next page of results from your GetDiskSnapshots request.

Destructuring the Response

getDiskSnapshotsResponse Source #

Creates a value of GetDiskSnapshotsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetDiskSnapshotsResponse Source #

See: getDiskSnapshotsResponse smart constructor.

Instances

Eq GetDiskSnapshotsResponse Source # 
Data GetDiskSnapshotsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDiskSnapshotsResponse -> c GetDiskSnapshotsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDiskSnapshotsResponse #

toConstr :: GetDiskSnapshotsResponse -> Constr #

dataTypeOf :: GetDiskSnapshotsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetDiskSnapshotsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDiskSnapshotsResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetDiskSnapshotsResponse -> GetDiskSnapshotsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskSnapshotsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskSnapshotsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDiskSnapshotsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDiskSnapshotsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDiskSnapshotsResponse -> m GetDiskSnapshotsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskSnapshotsResponse -> m GetDiskSnapshotsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskSnapshotsResponse -> m GetDiskSnapshotsResponse #

Read GetDiskSnapshotsResponse Source # 
Show GetDiskSnapshotsResponse Source # 
Generic GetDiskSnapshotsResponse Source # 
NFData GetDiskSnapshotsResponse Source # 
type Rep GetDiskSnapshotsResponse Source # 
type Rep GetDiskSnapshotsResponse = D1 * (MetaData "GetDiskSnapshotsResponse" "Network.AWS.Lightsail.GetDiskSnapshots" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "GetDiskSnapshotsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdssrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdssrsDiskSnapshots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DiskSnapshot]))) (S1 * (MetaSel (Just Symbol "_gdssrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gdssrsNextPageToken :: Lens' GetDiskSnapshotsResponse (Maybe Text) Source #

A token used for advancing to the next page of results from your GetDiskSnapshots request.

gdssrsDiskSnapshots :: Lens' GetDiskSnapshotsResponse [DiskSnapshot] Source #

An array of objects containing information about all block storage disk snapshots.