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.CreateDiskFromSnapshot

Contents

Description

Creates a block storage disk from a disk snapshot that can be attached to a Lightsail instance in the same Availability Zone (e.g., us-east-2a ). The disk is created in the regional endpoint that you send the HTTP request to. For more information, see Regions and Availability Zones in Lightsail .

Synopsis

Creating a Request

createDiskFromSnapshot Source #

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

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

  • cdfsDiskName - The unique Lightsail disk name (e.g., my-disk ).
  • cdfsDiskSnapshotName - The name of the disk snapshot (e.g., my-snapshot ) from which to create the new storage disk.
  • cdfsAvailabilityZone - The Availability Zone where you want to create the disk (e.g., us-east-2a ). Choose the same Availability Zone as the Lightsail instance where you want to create the disk. Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
  • cdfsSizeInGb - The size of the disk in GB (e.g., 32 ).

data CreateDiskFromSnapshot Source #

See: createDiskFromSnapshot smart constructor.

Instances
Eq CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Data CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Methods

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

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

toConstr :: CreateDiskFromSnapshot -> Constr #

dataTypeOf :: CreateDiskFromSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Show CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Generic CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Associated Types

type Rep CreateDiskFromSnapshot :: Type -> Type #

Hashable CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

ToJSON CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

AWSRequest CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Associated Types

type Rs CreateDiskFromSnapshot :: Type #

ToHeaders CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

ToPath CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

ToQuery CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

NFData CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Methods

rnf :: CreateDiskFromSnapshot -> () #

type Rep CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

type Rep CreateDiskFromSnapshot = D1 (MetaData "CreateDiskFromSnapshot" "Network.AWS.Lightsail.CreateDiskFromSnapshot" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateDiskFromSnapshot'" PrefixI True) ((S1 (MetaSel (Just "_cdfsDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cdfsDiskSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cdfsAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cdfsSizeInGb") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))
type Rs CreateDiskFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Request Lenses

cdfsDiskName :: Lens' CreateDiskFromSnapshot Text Source #

The unique Lightsail disk name (e.g., my-disk ).

cdfsDiskSnapshotName :: Lens' CreateDiskFromSnapshot Text Source #

The name of the disk snapshot (e.g., my-snapshot ) from which to create the new storage disk.

cdfsAvailabilityZone :: Lens' CreateDiskFromSnapshot Text Source #

The Availability Zone where you want to create the disk (e.g., us-east-2a ). Choose the same Availability Zone as the Lightsail instance where you want to create the disk. Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.

cdfsSizeInGb :: Lens' CreateDiskFromSnapshot Int Source #

The size of the disk in GB (e.g., 32 ).

Destructuring the Response

createDiskFromSnapshotResponse Source #

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

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

data CreateDiskFromSnapshotResponse Source #

See: createDiskFromSnapshotResponse smart constructor.

Instances
Eq CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Data CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Methods

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

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

toConstr :: CreateDiskFromSnapshotResponse -> Constr #

dataTypeOf :: CreateDiskFromSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Show CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Generic CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

Associated Types

type Rep CreateDiskFromSnapshotResponse :: Type -> Type #

NFData CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

type Rep CreateDiskFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateDiskFromSnapshot

type Rep CreateDiskFromSnapshotResponse = D1 (MetaData "CreateDiskFromSnapshotResponse" "Network.AWS.Lightsail.CreateDiskFromSnapshot" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateDiskFromSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just "_cdfsrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_cdfsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cdfsrsOperations :: Lens' CreateDiskFromSnapshotResponse [Operation] Source #

An object describing the API operations.