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 # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Data CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Show CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Generic CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Associated Types

type Rep CreateDisk :: * -> * #

Hashable CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

ToJSON CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

AWSRequest CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Associated Types

type Rs CreateDisk :: * #

ToHeaders CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Methods

toHeaders :: CreateDisk -> [Header] #

ToPath CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

ToQuery CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

NFData CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Methods

rnf :: CreateDisk -> () #

type Rep CreateDisk # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

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

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Data CreateDiskResponse # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

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 # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Show CreateDiskResponse # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Generic CreateDiskResponse # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Associated Types

type Rep CreateDiskResponse :: * -> * #

NFData CreateDiskResponse # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

Methods

rnf :: CreateDiskResponse -> () #

type Rep CreateDiskResponse # 
Instance details

Defined in Network.AWS.Lightsail.CreateDisk

type Rep CreateDiskResponse = D1 (MetaData "CreateDiskResponse" "Network.AWS.Lightsail.CreateDisk" "amazonka-lightsail-1.6.0-KbsnSgop875C22ikCzX5R7" False) (C1 (MetaCons "CreateDiskResponse'" PrefixI True) (S1 (MetaSel (Just "_crsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_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.