Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Imports a disk into an EBS snapshot.
- importSnapshot :: ImportSnapshot
- data ImportSnapshot
- isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer)
- isClientToken :: Lens' ImportSnapshot (Maybe Text)
- isRoleName :: Lens' ImportSnapshot (Maybe Text)
- isDescription :: Lens' ImportSnapshot (Maybe Text)
- isDryRun :: Lens' ImportSnapshot (Maybe Bool)
- isClientData :: Lens' ImportSnapshot (Maybe ClientData)
- importSnapshotResponse :: Int -> ImportSnapshotResponse
- data ImportSnapshotResponse
- isrsSnapshotTaskDetail :: Lens' ImportSnapshotResponse (Maybe SnapshotTaskDetail)
- isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text)
- isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text)
- isrsResponseStatus :: Lens' ImportSnapshotResponse Int
Creating a Request
importSnapshot :: ImportSnapshot Source #
Creates a value of ImportSnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
isDiskContainer
- Information about the disk container.isClientToken
- Token to enable idempotency for VM import requests.isRoleName
- The name of the role to use when not using the default role,vmimport
.isDescription
- The description string for the import snapshot task.isDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.isClientData
- The client-specific data.
data ImportSnapshot Source #
Contains the parameters for ImportSnapshot.
See: importSnapshot
smart constructor.
Request Lenses
isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer) Source #
Information about the disk container.
isClientToken :: Lens' ImportSnapshot (Maybe Text) Source #
Token to enable idempotency for VM import requests.
isRoleName :: Lens' ImportSnapshot (Maybe Text) Source #
The name of the role to use when not using the default role, vmimport
.
isDescription :: Lens' ImportSnapshot (Maybe Text) Source #
The description string for the import snapshot task.
isDryRun :: Lens' ImportSnapshot (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
isClientData :: Lens' ImportSnapshot (Maybe ClientData) Source #
The client-specific data.
Destructuring the Response
importSnapshotResponse Source #
Creates a value of ImportSnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
isrsSnapshotTaskDetail
- Information about the import snapshot task.isrsImportTaskId
- The ID of the import snapshot task.isrsDescription
- A description of the import snapshot task.isrsResponseStatus
- -- | The response status code.
data ImportSnapshotResponse Source #
Contains the output for ImportSnapshot.
See: importSnapshotResponse
smart constructor.
Response Lenses
isrsSnapshotTaskDetail :: Lens' ImportSnapshotResponse (Maybe SnapshotTaskDetail) Source #
Information about the import snapshot task.
isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text) Source #
The ID of the import snapshot task.
isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text) Source #
A description of the import snapshot task.
isrsResponseStatus :: Lens' ImportSnapshotResponse Int Source #
- - | The response status code.