Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Create a snapshot schedule that can be associated to a cluster and which overrides the default system backup schedule.
Synopsis
- data CreateSnapshotSchedule = CreateSnapshotSchedule' {
- nextInvocations :: Maybe Int
- scheduleDefinitions :: Maybe [Text]
- scheduleDescription :: Maybe Text
- scheduleIdentifier :: Maybe Text
- dryRun :: Maybe Bool
- tags :: Maybe [Tag]
- newCreateSnapshotSchedule :: CreateSnapshotSchedule
- createSnapshotSchedule_nextInvocations :: Lens' CreateSnapshotSchedule (Maybe Int)
- createSnapshotSchedule_scheduleDefinitions :: Lens' CreateSnapshotSchedule (Maybe [Text])
- createSnapshotSchedule_scheduleDescription :: Lens' CreateSnapshotSchedule (Maybe Text)
- createSnapshotSchedule_scheduleIdentifier :: Lens' CreateSnapshotSchedule (Maybe Text)
- createSnapshotSchedule_dryRun :: Lens' CreateSnapshotSchedule (Maybe Bool)
- createSnapshotSchedule_tags :: Lens' CreateSnapshotSchedule (Maybe [Tag])
- data SnapshotSchedule = SnapshotSchedule' {}
- newSnapshotSchedule :: SnapshotSchedule
- snapshotSchedule_associatedClusters :: Lens' SnapshotSchedule (Maybe [ClusterAssociatedToSchedule])
- snapshotSchedule_nextInvocations :: Lens' SnapshotSchedule (Maybe [UTCTime])
- snapshotSchedule_scheduleDefinitions :: Lens' SnapshotSchedule (Maybe [Text])
- snapshotSchedule_scheduleDescription :: Lens' SnapshotSchedule (Maybe Text)
- snapshotSchedule_scheduleIdentifier :: Lens' SnapshotSchedule (Maybe Text)
- snapshotSchedule_associatedClusterCount :: Lens' SnapshotSchedule (Maybe Int)
- snapshotSchedule_tags :: Lens' SnapshotSchedule (Maybe [Tag])
Creating a Request
data CreateSnapshotSchedule Source #
See: newCreateSnapshotSchedule
smart constructor.
CreateSnapshotSchedule' | |
|
Instances
newCreateSnapshotSchedule :: CreateSnapshotSchedule Source #
Create a value of CreateSnapshotSchedule
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:nextInvocations:CreateSnapshotSchedule'
, createSnapshotSchedule_nextInvocations
-
$sel:scheduleDefinitions:CreateSnapshotSchedule'
, createSnapshotSchedule_scheduleDefinitions
- The definition of the snapshot schedule. The definition is made up of
schedule expressions, for example "cron(30 12 *)" or "rate(12
hours)".
$sel:scheduleDescription:CreateSnapshotSchedule'
, createSnapshotSchedule_scheduleDescription
- The description of the snapshot schedule.
$sel:scheduleIdentifier:CreateSnapshotSchedule'
, createSnapshotSchedule_scheduleIdentifier
- A unique identifier for a snapshot schedule. Only alphanumeric
characters are allowed for the identifier.
$sel:dryRun:CreateSnapshotSchedule'
, createSnapshotSchedule_dryRun
-
$sel:tags:CreateSnapshotSchedule'
, createSnapshotSchedule_tags
- An optional set of tags you can use to search for the schedule.
Request Lenses
createSnapshotSchedule_scheduleDefinitions :: Lens' CreateSnapshotSchedule (Maybe [Text]) Source #
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".
createSnapshotSchedule_scheduleDescription :: Lens' CreateSnapshotSchedule (Maybe Text) Source #
The description of the snapshot schedule.
createSnapshotSchedule_scheduleIdentifier :: Lens' CreateSnapshotSchedule (Maybe Text) Source #
A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.
createSnapshotSchedule_tags :: Lens' CreateSnapshotSchedule (Maybe [Tag]) Source #
An optional set of tags you can use to search for the schedule.
Destructuring the Response
data SnapshotSchedule Source #
Describes a snapshot schedule. You can set a regular interval for creating snapshots of a cluster. You can also schedule snapshots for specific dates.
See: newSnapshotSchedule
smart constructor.
SnapshotSchedule' | |
|
Instances
newSnapshotSchedule :: SnapshotSchedule Source #
Create a value of SnapshotSchedule
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:associatedClusters:SnapshotSchedule'
, snapshotSchedule_associatedClusters
- A list of clusters associated with the schedule. A maximum of 100
clusters is returned.
$sel:nextInvocations:SnapshotSchedule'
, snapshotSchedule_nextInvocations
-
$sel:scheduleDefinitions:SnapshotSchedule'
, snapshotSchedule_scheduleDefinitions
- A list of ScheduleDefinitions.
$sel:scheduleDescription:SnapshotSchedule'
, snapshotSchedule_scheduleDescription
- The description of the schedule.
$sel:scheduleIdentifier:SnapshotSchedule'
, snapshotSchedule_scheduleIdentifier
- A unique identifier for the schedule.
$sel:associatedClusterCount:SnapshotSchedule'
, snapshotSchedule_associatedClusterCount
- The number of clusters associated with the schedule.
$sel:tags:SnapshotSchedule'
, snapshotSchedule_tags
- An optional set of tags describing the schedule.
Response Lenses
snapshotSchedule_associatedClusters :: Lens' SnapshotSchedule (Maybe [ClusterAssociatedToSchedule]) Source #
A list of clusters associated with the schedule. A maximum of 100 clusters is returned.
snapshotSchedule_scheduleDefinitions :: Lens' SnapshotSchedule (Maybe [Text]) Source #
A list of ScheduleDefinitions.
snapshotSchedule_scheduleDescription :: Lens' SnapshotSchedule (Maybe Text) Source #
The description of the schedule.
snapshotSchedule_scheduleIdentifier :: Lens' SnapshotSchedule (Maybe Text) Source #
A unique identifier for the schedule.
snapshotSchedule_associatedClusterCount :: Lens' SnapshotSchedule (Maybe Int) Source #
The number of clusters associated with the schedule.
snapshotSchedule_tags :: Lens' SnapshotSchedule (Maybe [Tag]) Source #
An optional set of tags describing the schedule.