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 #

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 #

See: getDiskSnapshots smart constructor.

Instances

Eq GetDiskSnapshots # 
Data GetDiskSnapshots # 

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 # 
Show GetDiskSnapshots # 
Generic GetDiskSnapshots # 
Hashable GetDiskSnapshots # 
ToJSON GetDiskSnapshots # 
NFData GetDiskSnapshots # 

Methods

rnf :: GetDiskSnapshots -> () #

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

Request Lenses

gdsPageToken :: Lens' GetDiskSnapshots (Maybe Text) #

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

Destructuring the Response

getDiskSnapshotsResponse #

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 #

See: getDiskSnapshotsResponse smart constructor.

Instances

Eq GetDiskSnapshotsResponse # 
Data GetDiskSnapshotsResponse # 

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 # 
Show GetDiskSnapshotsResponse # 
Generic GetDiskSnapshotsResponse # 
NFData GetDiskSnapshotsResponse # 
type Rep GetDiskSnapshotsResponse # 
type Rep GetDiskSnapshotsResponse = D1 * (MetaData "GetDiskSnapshotsResponse" "Network.AWS.Lightsail.GetDiskSnapshots" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" 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) #

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

gdssrsDiskSnapshots :: Lens' GetDiskSnapshotsResponse [DiskSnapshot] #

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

gdssrsResponseStatus :: Lens' GetDiskSnapshotsResponse Int #

  • - | The response status code.