amazonka-storagegateway-1.6.1: Amazon Storage Gateway SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.UpdateSnapshotSchedule

Contents

Description

Updates a snapshot schedule configured for a gateway volume. This operation is only supported in the cached volume and stored volume gateway types.

The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.

In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.

Synopsis

Creating a Request

updateSnapshotSchedule Source #

Creates a value of UpdateSnapshotSchedule with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ussDescription - Optional description of the snapshot that overwrites the existing description.
  • ussVolumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.
  • ussStartAt - The hour of the day at which the snapshot schedule begins represented as hh , where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.
  • ussRecurrenceInHours - Frequency of snapshots. Specify the number of hours between snapshots.

data UpdateSnapshotSchedule Source #

A JSON object containing one or more of the following fields:

  • 'UpdateSnapshotScheduleInput$Description'
  • 'UpdateSnapshotScheduleInput$RecurrenceInHours'
  • 'UpdateSnapshotScheduleInput$StartAt'
  • 'UpdateSnapshotScheduleInput$VolumeARN'

See: updateSnapshotSchedule smart constructor.

Instances
Eq UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Data UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateSnapshotSchedule -> c UpdateSnapshotSchedule #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateSnapshotSchedule #

toConstr :: UpdateSnapshotSchedule -> Constr #

dataTypeOf :: UpdateSnapshotSchedule -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateSnapshotSchedule) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateSnapshotSchedule) #

gmapT :: (forall b. Data b => b -> b) -> UpdateSnapshotSchedule -> UpdateSnapshotSchedule #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateSnapshotSchedule -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateSnapshotSchedule -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateSnapshotSchedule -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateSnapshotSchedule -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateSnapshotSchedule -> m UpdateSnapshotSchedule #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateSnapshotSchedule -> m UpdateSnapshotSchedule #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateSnapshotSchedule -> m UpdateSnapshotSchedule #

Read UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Show UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Generic UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Associated Types

type Rep UpdateSnapshotSchedule :: Type -> Type #

Hashable UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

ToJSON UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

AWSRequest UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Associated Types

type Rs UpdateSnapshotSchedule :: Type #

ToHeaders UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

ToPath UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

ToQuery UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

NFData UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Methods

rnf :: UpdateSnapshotSchedule -> () #

type Rep UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotSchedule = D1 (MetaData "UpdateSnapshotSchedule" "Network.AWS.StorageGateway.UpdateSnapshotSchedule" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "UpdateSnapshotSchedule'" PrefixI True) ((S1 (MetaSel (Just "_ussDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ussVolumeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ussStartAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: S1 (MetaSel (Just "_ussRecurrenceInHours") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat))))
type Rs UpdateSnapshotSchedule Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Request Lenses

ussDescription :: Lens' UpdateSnapshotSchedule (Maybe Text) Source #

Optional description of the snapshot that overwrites the existing description.

ussVolumeARN :: Lens' UpdateSnapshotSchedule Text Source #

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

ussStartAt :: Lens' UpdateSnapshotSchedule Natural Source #

The hour of the day at which the snapshot schedule begins represented as hh , where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.

ussRecurrenceInHours :: Lens' UpdateSnapshotSchedule Natural Source #

Frequency of snapshots. Specify the number of hours between snapshots.

Destructuring the Response

updateSnapshotScheduleResponse Source #

Creates a value of UpdateSnapshotScheduleResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateSnapshotScheduleResponse Source #

A JSON object containing the of the updated storage volume.

See: updateSnapshotScheduleResponse smart constructor.

Instances
Eq UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Data UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateSnapshotScheduleResponse -> c UpdateSnapshotScheduleResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateSnapshotScheduleResponse #

toConstr :: UpdateSnapshotScheduleResponse -> Constr #

dataTypeOf :: UpdateSnapshotScheduleResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateSnapshotScheduleResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateSnapshotScheduleResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateSnapshotScheduleResponse -> UpdateSnapshotScheduleResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateSnapshotScheduleResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateSnapshotScheduleResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateSnapshotScheduleResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateSnapshotScheduleResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateSnapshotScheduleResponse -> m UpdateSnapshotScheduleResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateSnapshotScheduleResponse -> m UpdateSnapshotScheduleResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateSnapshotScheduleResponse -> m UpdateSnapshotScheduleResponse #

Read UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Show UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Generic UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

Associated Types

type Rep UpdateSnapshotScheduleResponse :: Type -> Type #

NFData UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotScheduleResponse = D1 (MetaData "UpdateSnapshotScheduleResponse" "Network.AWS.StorageGateway.UpdateSnapshotSchedule" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "UpdateSnapshotScheduleResponse'" PrefixI True) (S1 (MetaSel (Just "_ussrsVolumeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ussrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses