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 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 .
- createDiskFromSnapshot :: Text -> Text -> Text -> Int -> CreateDiskFromSnapshot
- data CreateDiskFromSnapshot
- cdfsDiskName :: Lens' CreateDiskFromSnapshot Text
- cdfsDiskSnapshotName :: Lens' CreateDiskFromSnapshot Text
- cdfsAvailabilityZone :: Lens' CreateDiskFromSnapshot Text
- cdfsSizeInGb :: Lens' CreateDiskFromSnapshot Int
- createDiskFromSnapshotResponse :: Int -> CreateDiskFromSnapshotResponse
- data CreateDiskFromSnapshotResponse
- cdfsrsOperations :: Lens' CreateDiskFromSnapshotResponse [Operation]
- cdfsrsResponseStatus :: Lens' CreateDiskFromSnapshotResponse Int
Creating a Request
createDiskFromSnapshot Source #
:: Text | |
-> Text | |
-> Text | |
-> Int | |
-> 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 Source #
See: createDiskFromSnapshot
smart constructor.
Request Lenses
cdfsDiskName :: Lens' CreateDiskFromSnapshot Text Source #
The unique Lightsail disk name (e.g., my-disk
).
cdfsDiskSnapshotName :: Lens' CreateDiskFromSnapshot Text Source #
The name of the disk snapshot (e.g., my-snapshot
) from which to create the new storage disk.
cdfsAvailabilityZone :: Lens' CreateDiskFromSnapshot 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.
cdfsSizeInGb :: Lens' CreateDiskFromSnapshot Int Source #
The size of the disk in GB (e.g., 32
).
Destructuring the Response
createDiskFromSnapshotResponse Source #
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:
cdfsrsOperations
- An object describing the API operations.cdfsrsResponseStatus
- -- | The response status code.
data CreateDiskFromSnapshotResponse Source #
See: createDiskFromSnapshotResponse
smart constructor.
Response Lenses
cdfsrsOperations :: Lens' CreateDiskFromSnapshotResponse [Operation] Source #
An object describing the API operations.
cdfsrsResponseStatus :: Lens' CreateDiskFromSnapshotResponse Int Source #
- - | The response status code.