amazonka-lightsail-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Data GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Show GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Generic GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Associated Types

type Rep GetDiskSnapshots :: Type -> Type #

Hashable GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

ToJSON GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

AWSRequest GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Associated Types

type Rs GetDiskSnapshots :: Type #

ToHeaders GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

ToPath GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

ToQuery GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

NFData GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Methods

rnf :: GetDiskSnapshots -> () #

type Rep GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshots = D1 (MetaData "GetDiskSnapshots" "Network.AWS.Lightsail.GetDiskSnapshots" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" True) (C1 (MetaCons "GetDiskSnapshots'" PrefixI True) (S1 (MetaSel (Just "_gdsPageToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs GetDiskSnapshots # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Data GetDiskSnapshotsResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

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 # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Show GetDiskSnapshotsResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Generic GetDiskSnapshotsResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

Associated Types

type Rep GetDiskSnapshotsResponse :: Type -> Type #

NFData GetDiskSnapshotsResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshotsResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshotsResponse = D1 (MetaData "GetDiskSnapshotsResponse" "Network.AWS.Lightsail.GetDiskSnapshots" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" False) (C1 (MetaCons "GetDiskSnapshotsResponse'" PrefixI True) (S1 (MetaSel (Just "_gdssrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gdssrsDiskSnapshots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DiskSnapshot])) :*: S1 (MetaSel (Just "_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.