amazonka-fsx-2.0: Amazon FSx SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.FSx.RestoreVolumeFromSnapshot

Description

Returns an Amazon FSx for OpenZFS volume to the state saved by the specified snapshot.

Synopsis

Creating a Request

data RestoreVolumeFromSnapshot Source #

See: newRestoreVolumeFromSnapshot smart constructor.

Constructors

RestoreVolumeFromSnapshot' 

Fields

  • clientRequestToken :: Maybe Text
     
  • options :: Maybe [RestoreOpenZFSVolumeOption]

    The settings used when restoring the specified volume from snapshot.

    • DELETE_INTERMEDIATE_SNAPSHOTS - Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot fails.
    • DELETE_CLONED_VOLUMES - Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot fails.
  • volumeId :: Text

    The ID of the volume that you are restoring.

  • snapshotId :: Text

    The ID of the source snapshot. Specifies the snapshot that you are restoring from.

Instances

Instances details
ToJSON RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

ToHeaders RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

ToPath RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

ToQuery RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

AWSRequest RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Generic RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Associated Types

type Rep RestoreVolumeFromSnapshot :: Type -> Type #

Read RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Show RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

NFData RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Eq RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Hashable RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

type AWSResponse RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

type Rep RestoreVolumeFromSnapshot Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

type Rep RestoreVolumeFromSnapshot = D1 ('MetaData "RestoreVolumeFromSnapshot" "Amazonka.FSx.RestoreVolumeFromSnapshot" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "RestoreVolumeFromSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RestoreOpenZFSVolumeOption]))) :*: (S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newRestoreVolumeFromSnapshot Source #

Create a value of RestoreVolumeFromSnapshot 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:RestoreVolumeFromSnapshot', restoreVolumeFromSnapshot_clientRequestToken - Undocumented member.

RestoreVolumeFromSnapshot, restoreVolumeFromSnapshot_options - The settings used when restoring the specified volume from snapshot.

  • DELETE_INTERMEDIATE_SNAPSHOTS - Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot fails.
  • DELETE_CLONED_VOLUMES - Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot fails.

RestoreVolumeFromSnapshot, restoreVolumeFromSnapshot_volumeId - The ID of the volume that you are restoring.

RestoreVolumeFromSnapshot, restoreVolumeFromSnapshot_snapshotId - The ID of the source snapshot. Specifies the snapshot that you are restoring from.

Request Lenses

restoreVolumeFromSnapshot_options :: Lens' RestoreVolumeFromSnapshot (Maybe [RestoreOpenZFSVolumeOption]) Source #

The settings used when restoring the specified volume from snapshot.

  • DELETE_INTERMEDIATE_SNAPSHOTS - Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot fails.
  • DELETE_CLONED_VOLUMES - Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot fails.

restoreVolumeFromSnapshot_volumeId :: Lens' RestoreVolumeFromSnapshot Text Source #

The ID of the volume that you are restoring.

restoreVolumeFromSnapshot_snapshotId :: Lens' RestoreVolumeFromSnapshot Text Source #

The ID of the source snapshot. Specifies the snapshot that you are restoring from.

Destructuring the Response

data RestoreVolumeFromSnapshotResponse Source #

See: newRestoreVolumeFromSnapshotResponse smart constructor.

Constructors

RestoreVolumeFromSnapshotResponse' 

Fields

Instances

Instances details
Generic RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Associated Types

type Rep RestoreVolumeFromSnapshotResponse :: Type -> Type #

Read RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Show RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

NFData RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

Eq RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

type Rep RestoreVolumeFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.RestoreVolumeFromSnapshot

type Rep RestoreVolumeFromSnapshotResponse = D1 ('MetaData "RestoreVolumeFromSnapshotResponse" "Amazonka.FSx.RestoreVolumeFromSnapshot" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "RestoreVolumeFromSnapshotResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "administrativeActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdministrativeAction])) :*: S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VolumeLifecycle))) :*: (S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRestoreVolumeFromSnapshotResponse Source #

Create a value of RestoreVolumeFromSnapshotResponse 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:

RestoreVolumeFromSnapshotResponse, restoreVolumeFromSnapshotResponse_administrativeActions - A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.

RestoreVolumeFromSnapshotResponse, restoreVolumeFromSnapshotResponse_lifecycle - The lifecycle state of the volume being restored.

RestoreVolumeFromSnapshot, restoreVolumeFromSnapshotResponse_volumeId - The ID of the volume that you restored.

$sel:httpStatus:RestoreVolumeFromSnapshotResponse', restoreVolumeFromSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

restoreVolumeFromSnapshotResponse_administrativeActions :: Lens' RestoreVolumeFromSnapshotResponse (Maybe [AdministrativeAction]) Source #

A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.