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 #

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 #

See: createDiskFromSnapshot smart constructor.

Instances

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

Methods

rnf :: CreateDiskFromSnapshot -> () #

AWSRequest CreateDiskFromSnapshot # 
ToHeaders CreateDiskFromSnapshot # 
ToPath CreateDiskFromSnapshot # 
ToQuery CreateDiskFromSnapshot # 
type Rep CreateDiskFromSnapshot # 
type Rep CreateDiskFromSnapshot = D1 * (MetaData "CreateDiskFromSnapshot" "Network.AWS.Lightsail.CreateDiskFromSnapshot" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" 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 # 

Request Lenses

cdfsDiskName :: Lens' CreateDiskFromSnapshot Text #

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

cdfsDiskSnapshotName :: Lens' CreateDiskFromSnapshot Text #

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

cdfsAvailabilityZone :: Lens' CreateDiskFromSnapshot Text #

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 #

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

Destructuring the Response

createDiskFromSnapshotResponse #

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 #

See: createDiskFromSnapshotResponse smart constructor.

Instances

Eq CreateDiskFromSnapshotResponse # 
Data CreateDiskFromSnapshotResponse # 

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

An object describing the API operations.