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

Contents

Description

Creates a block storage disk 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

createDisk Source #

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

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

  • cdDiskName - The unique Lightsail disk name (e.g., my-disk ).
  • cdAvailabilityZone - 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.
  • cdSizeInGb - The size of the disk in GB (e.g., 32 ).

data CreateDisk Source #

See: createDisk smart constructor.

Instances

Eq CreateDisk Source # 
Data CreateDisk Source # 

Methods

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

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

toConstr :: CreateDisk -> Constr #

dataTypeOf :: CreateDisk -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDisk Source # 
Show CreateDisk Source # 
Generic CreateDisk Source # 

Associated Types

type Rep CreateDisk :: * -> * #

Hashable CreateDisk Source # 
ToJSON CreateDisk Source # 
NFData CreateDisk Source # 

Methods

rnf :: CreateDisk -> () #

AWSRequest CreateDisk Source # 
ToHeaders CreateDisk Source # 

Methods

toHeaders :: CreateDisk -> [Header] #

ToPath CreateDisk Source # 
ToQuery CreateDisk Source # 
type Rep CreateDisk Source # 
type Rep CreateDisk = D1 * (MetaData "CreateDisk" "Network.AWS.Lightsail.CreateDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "CreateDisk'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cdSizeInGb") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))
type Rs CreateDisk Source # 

Request Lenses

cdDiskName :: Lens' CreateDisk Text Source #

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

cdAvailabilityZone :: Lens' CreateDisk 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.

cdSizeInGb :: Lens' CreateDisk Int Source #

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

Destructuring the Response

createDiskResponse Source #

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

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

data CreateDiskResponse Source #

See: createDiskResponse smart constructor.

Instances

Eq CreateDiskResponse Source # 
Data CreateDiskResponse Source # 

Methods

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

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

toConstr :: CreateDiskResponse -> Constr #

dataTypeOf :: CreateDiskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDiskResponse Source # 
Show CreateDiskResponse Source # 
Generic CreateDiskResponse Source # 
NFData CreateDiskResponse Source # 

Methods

rnf :: CreateDiskResponse -> () #

type Rep CreateDiskResponse Source # 
type Rep CreateDiskResponse = D1 * (MetaData "CreateDiskResponse" "Network.AWS.Lightsail.CreateDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "CreateDiskResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

crsOperations :: Lens' CreateDiskResponse [Operation] Source #

An object describing the API operations.

crsResponseStatus :: Lens' CreateDiskResponse Int Source #

  • - | The response status code.