Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data ModifySnapshotTier = ModifySnapshotTier' {}
- newModifySnapshotTier :: Text -> ModifySnapshotTier
- modifySnapshotTier_dryRun :: Lens' ModifySnapshotTier (Maybe Bool)
- modifySnapshotTier_storageTier :: Lens' ModifySnapshotTier (Maybe TargetStorageTier)
- modifySnapshotTier_snapshotId :: Lens' ModifySnapshotTier Text
- data ModifySnapshotTierResponse = ModifySnapshotTierResponse' {}
- newModifySnapshotTierResponse :: Int -> ModifySnapshotTierResponse
- modifySnapshotTierResponse_snapshotId :: Lens' ModifySnapshotTierResponse (Maybe Text)
- modifySnapshotTierResponse_tieringStartTime :: Lens' ModifySnapshotTierResponse (Maybe UTCTime)
- modifySnapshotTierResponse_httpStatus :: Lens' ModifySnapshotTierResponse Int
Creating a Request
data ModifySnapshotTier Source #
See: newModifySnapshotTier
smart constructor.
ModifySnapshotTier' | |
|
Instances
newModifySnapshotTier Source #
Create a value of ModifySnapshotTier
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:ModifySnapshotTier'
, modifySnapshotTier_dryRun
- 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
.
ModifySnapshotTier
, modifySnapshotTier_storageTier
- The name of the storage tier. You must specify archive
.
ModifySnapshotTier
, modifySnapshotTier_snapshotId
- The ID of the snapshot.
Request Lenses
modifySnapshotTier_dryRun :: Lens' ModifySnapshotTier (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
.
modifySnapshotTier_storageTier :: Lens' ModifySnapshotTier (Maybe TargetStorageTier) Source #
The name of the storage tier. You must specify archive
.
modifySnapshotTier_snapshotId :: Lens' ModifySnapshotTier Text Source #
The ID of the snapshot.
Destructuring the Response
data ModifySnapshotTierResponse Source #
See: newModifySnapshotTierResponse
smart constructor.
ModifySnapshotTierResponse' | |
|
Instances
newModifySnapshotTierResponse Source #
Create a value of ModifySnapshotTierResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifySnapshotTier
, modifySnapshotTierResponse_snapshotId
- The ID of the snapshot.
$sel:tieringStartTime:ModifySnapshotTierResponse'
, modifySnapshotTierResponse_tieringStartTime
- The date and time when the archive process was started.
$sel:httpStatus:ModifySnapshotTierResponse'
, modifySnapshotTierResponse_httpStatus
- The response's http status code.
Response Lenses
modifySnapshotTierResponse_snapshotId :: Lens' ModifySnapshotTierResponse (Maybe Text) Source #
The ID of the snapshot.
modifySnapshotTierResponse_tieringStartTime :: Lens' ModifySnapshotTierResponse (Maybe UTCTime) Source #
The date and time when the archive process was started.
modifySnapshotTierResponse_httpStatus :: Lens' ModifySnapshotTierResponse Int Source #
The response's http status code.