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

Amazonka.StorageGateway.UpdateSnapshotSchedule

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

data UpdateSnapshotSchedule Source #

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

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

See: newUpdateSnapshotSchedule smart constructor.

Constructors

UpdateSnapshotSchedule' 

Fields

  • description :: Maybe Text

    Optional description of the snapshot that overwrites the existing description.

  • tags :: Maybe [Tag]

    A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

    Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

  • volumeARN :: Text

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

  • startAt :: Natural

    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.

  • recurrenceInHours :: Natural

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

Instances

Instances details
Eq UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Read UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Show UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Generic UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Associated Types

type Rep UpdateSnapshotSchedule :: Type -> Type #

NFData UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Methods

rnf :: UpdateSnapshotSchedule -> () #

Hashable UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

ToJSON UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

AWSRequest UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Associated Types

type AWSResponse UpdateSnapshotSchedule #

ToHeaders UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

ToPath UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

ToQuery UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotSchedule = D1 ('MetaData "UpdateSnapshotSchedule" "Amazonka.StorageGateway.UpdateSnapshotSchedule" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "UpdateSnapshotSchedule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "volumeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "startAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "recurrenceInHours") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))
type AWSResponse UpdateSnapshotSchedule Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

newUpdateSnapshotSchedule Source #

Create a value of UpdateSnapshotSchedule 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:description:UpdateSnapshotSchedule', updateSnapshotSchedule_description - Optional description of the snapshot that overwrites the existing description.

$sel:tags:UpdateSnapshotSchedule', updateSnapshotSchedule_tags - A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

$sel:volumeARN:UpdateSnapshotSchedule', updateSnapshotSchedule_volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

$sel:startAt:UpdateSnapshotSchedule', updateSnapshotSchedule_startAt - 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.

$sel:recurrenceInHours:UpdateSnapshotSchedule', updateSnapshotSchedule_recurrenceInHours - Frequency of snapshots. Specify the number of hours between snapshots.

Request Lenses

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

Optional description of the snapshot that overwrites the existing description.

updateSnapshotSchedule_tags :: Lens' UpdateSnapshotSchedule (Maybe [Tag]) Source #

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

updateSnapshotSchedule_volumeARN :: Lens' UpdateSnapshotSchedule Text Source #

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

updateSnapshotSchedule_startAt :: 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.

updateSnapshotSchedule_recurrenceInHours :: Lens' UpdateSnapshotSchedule Natural Source #

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

Destructuring the Response

data UpdateSnapshotScheduleResponse Source #

A JSON object containing the Amazon Resource Name (ARN) of the updated storage volume.

See: newUpdateSnapshotScheduleResponse smart constructor.

Constructors

UpdateSnapshotScheduleResponse' 

Fields

  • volumeARN :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Read UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Show UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Generic UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

Associated Types

type Rep UpdateSnapshotScheduleResponse :: Type -> Type #

NFData UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotScheduleResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateSnapshotSchedule

type Rep UpdateSnapshotScheduleResponse = D1 ('MetaData "UpdateSnapshotScheduleResponse" "Amazonka.StorageGateway.UpdateSnapshotSchedule" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "UpdateSnapshotScheduleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "volumeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateSnapshotScheduleResponse Source #

Create a value of UpdateSnapshotScheduleResponse 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:volumeARN:UpdateSnapshotSchedule', updateSnapshotScheduleResponse_volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

$sel:httpStatus:UpdateSnapshotScheduleResponse', updateSnapshotScheduleResponse_httpStatus - The response's http status code.

Response Lenses

updateSnapshotScheduleResponse_volumeARN :: Lens' UpdateSnapshotScheduleResponse (Maybe Text) Source #

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