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.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 # 
Data CreateDiskFromSnapshot Source # 

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

Methods

rnf :: CreateDiskFromSnapshot -> () #

AWSRequest CreateDiskFromSnapshot Source # 
ToHeaders CreateDiskFromSnapshot Source # 
ToPath CreateDiskFromSnapshot Source # 
ToQuery CreateDiskFromSnapshot Source # 
type Rep CreateDiskFromSnapshot Source # 
type Rep CreateDiskFromSnapshot = D1 * (MetaData "CreateDiskFromSnapshot" "Network.AWS.Lightsail.CreateDiskFromSnapshot" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "CreateDiskFromSnapshot'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdfsDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cdfsDiskSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdfsAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cdfsSizeInGb") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))
type Rs CreateDiskFromSnapshot Source # 

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 # 
Data CreateDiskFromSnapshotResponse Source # 

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 # 
Show CreateDiskFromSnapshotResponse Source # 
Generic CreateDiskFromSnapshotResponse Source # 
NFData CreateDiskFromSnapshotResponse Source # 
type Rep CreateDiskFromSnapshotResponse Source # 
type Rep CreateDiskFromSnapshotResponse = D1 * (MetaData "CreateDiskFromSnapshotResponse" "Network.AWS.Lightsail.CreateDiskFromSnapshot" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "CreateDiskFromSnapshotResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdfsrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_cdfsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

cdfsrsOperations :: Lens' CreateDiskFromSnapshotResponse [Operation] Source #

An object describing the API operations.