| 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 |
Amazonka.FSx.UpdateSnapshot
Description
Updates the name of an Amazon FSx for OpenZFS snapshot.
Synopsis
- data UpdateSnapshot = UpdateSnapshot' {
- clientRequestToken :: Maybe Text
- name :: Text
- snapshotId :: Text
- newUpdateSnapshot :: Text -> Text -> UpdateSnapshot
- updateSnapshot_clientRequestToken :: Lens' UpdateSnapshot (Maybe Text)
- updateSnapshot_name :: Lens' UpdateSnapshot Text
- updateSnapshot_snapshotId :: Lens' UpdateSnapshot Text
- data UpdateSnapshotResponse = UpdateSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newUpdateSnapshotResponse :: Int -> UpdateSnapshotResponse
- updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe Snapshot)
- updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int
Creating a Request
data UpdateSnapshot Source #
See: newUpdateSnapshot smart constructor.
Constructors
| UpdateSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateSnapshot |
Create a value of UpdateSnapshot 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:clientRequestToken:UpdateSnapshot', updateSnapshot_clientRequestToken - Undocumented member.
UpdateSnapshot, updateSnapshot_name - The name of the snapshot to update.
UpdateSnapshot, updateSnapshot_snapshotId - The ID of the snapshot that you want to update, in the format
fsvolsnap-0123456789abcdef0.
Request Lenses
updateSnapshot_clientRequestToken :: Lens' UpdateSnapshot (Maybe Text) Source #
Undocumented member.
updateSnapshot_name :: Lens' UpdateSnapshot Text Source #
The name of the snapshot to update.
updateSnapshot_snapshotId :: Lens' UpdateSnapshot Text Source #
The ID of the snapshot that you want to update, in the format
fsvolsnap-0123456789abcdef0.
Destructuring the Response
data UpdateSnapshotResponse Source #
See: newUpdateSnapshotResponse smart constructor.
Constructors
| UpdateSnapshotResponse' | |
Fields
| |
Instances
newUpdateSnapshotResponse Source #
Create a value of UpdateSnapshotResponse 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:snapshot:UpdateSnapshotResponse', updateSnapshotResponse_snapshot - Returned after a successful UpdateSnapshot operation, describing the
snapshot that you updated.
$sel:httpStatus:UpdateSnapshotResponse', updateSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe Snapshot) Source #
Returned after a successful UpdateSnapshot operation, describing the
snapshot that you updated.
updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int Source #
The response's http status code.