Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 .
- createDisk :: Text -> Text -> Int -> CreateDisk
- data CreateDisk
- cdDiskName :: Lens' CreateDisk Text
- cdAvailabilityZone :: Lens' CreateDisk Text
- cdSizeInGb :: Lens' CreateDisk Int
- createDiskResponse :: Int -> CreateDiskResponse
- data CreateDiskResponse
- crsOperations :: Lens' CreateDiskResponse [Operation]
- crsResponseStatus :: Lens' CreateDiskResponse Int
Creating a Request
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.
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
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:
crsOperations
- An object describing the API operations.crsResponseStatus
- -- | The response status code.
data CreateDiskResponse Source #
See: createDiskResponse
smart constructor.
Response Lenses
crsOperations :: Lens' CreateDiskResponse [Operation] Source #
An object describing the API operations.
crsResponseStatus :: Lens' CreateDiskResponse Int Source #
- - | The response status code.