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 #

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 #

See: createDisk smart constructor.

Instances

Eq CreateDisk # 
Data CreateDisk # 

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 # 
Show CreateDisk # 
Generic CreateDisk # 

Associated Types

type Rep CreateDisk :: * -> * #

Hashable CreateDisk # 
ToJSON CreateDisk # 
NFData CreateDisk # 

Methods

rnf :: CreateDisk -> () #

AWSRequest CreateDisk # 
ToHeaders CreateDisk # 

Methods

toHeaders :: CreateDisk -> [Header] #

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

Request Lenses

cdDiskName :: Lens' CreateDisk Text #

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

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

cdSizeInGb :: Lens' CreateDisk Int #

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

Destructuring the Response

createDiskResponse #

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 #

See: createDiskResponse smart constructor.

Instances

Eq CreateDiskResponse # 
Data CreateDiskResponse # 

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 # 
Show CreateDiskResponse # 
Generic CreateDiskResponse # 
NFData CreateDiskResponse # 

Methods

rnf :: CreateDiskResponse -> () #

type Rep CreateDiskResponse # 
type Rep CreateDiskResponse = D1 * (MetaData "CreateDiskResponse" "Network.AWS.Lightsail.CreateDisk" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" 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] #

An object describing the API operations.

crsResponseStatus :: Lens' CreateDiskResponse Int #

  • - | The response status code.