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 |
Returns BackupPlan
details for the specified BackupPlanId
. The
details are the body of a backup plan in JSON format, in addition to
plan metadata.
Synopsis
- data GetBackupPlan = GetBackupPlan' {
- versionId :: Maybe Text
- backupPlanId :: Text
- newGetBackupPlan :: Text -> GetBackupPlan
- getBackupPlan_versionId :: Lens' GetBackupPlan (Maybe Text)
- getBackupPlan_backupPlanId :: Lens' GetBackupPlan Text
- data GetBackupPlanResponse = GetBackupPlanResponse' {}
- newGetBackupPlanResponse :: Int -> GetBackupPlanResponse
- getBackupPlanResponse_advancedBackupSettings :: Lens' GetBackupPlanResponse (Maybe [AdvancedBackupSetting])
- getBackupPlanResponse_backupPlan :: Lens' GetBackupPlanResponse (Maybe BackupPlan)
- getBackupPlanResponse_backupPlanArn :: Lens' GetBackupPlanResponse (Maybe Text)
- getBackupPlanResponse_backupPlanId :: Lens' GetBackupPlanResponse (Maybe Text)
- getBackupPlanResponse_creationDate :: Lens' GetBackupPlanResponse (Maybe UTCTime)
- getBackupPlanResponse_creatorRequestId :: Lens' GetBackupPlanResponse (Maybe Text)
- getBackupPlanResponse_deletionDate :: Lens' GetBackupPlanResponse (Maybe UTCTime)
- getBackupPlanResponse_lastExecutionDate :: Lens' GetBackupPlanResponse (Maybe UTCTime)
- getBackupPlanResponse_versionId :: Lens' GetBackupPlanResponse (Maybe Text)
- getBackupPlanResponse_httpStatus :: Lens' GetBackupPlanResponse Int
Creating a Request
data GetBackupPlan Source #
See: newGetBackupPlan
smart constructor.
GetBackupPlan' | |
|
Instances
Create a value of GetBackupPlan
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:
GetBackupPlan
, getBackupPlan_versionId
- Unique, randomly generated, Unicode, UTF-8 encoded strings that are at
most 1,024 bytes long. Version IDs cannot be edited.
GetBackupPlan
, getBackupPlan_backupPlanId
- Uniquely identifies a backup plan.
Request Lenses
getBackupPlan_versionId :: Lens' GetBackupPlan (Maybe Text) Source #
Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
getBackupPlan_backupPlanId :: Lens' GetBackupPlan Text Source #
Uniquely identifies a backup plan.
Destructuring the Response
data GetBackupPlanResponse Source #
See: newGetBackupPlanResponse
smart constructor.
GetBackupPlanResponse' | |
|
Instances
newGetBackupPlanResponse Source #
Create a value of GetBackupPlanResponse
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:
GetBackupPlanResponse
, getBackupPlanResponse_advancedBackupSettings
- Contains a list of BackupOptions
for each resource type. The list is
populated only if the advanced option is set for the backup plan.
$sel:backupPlan:GetBackupPlanResponse'
, getBackupPlanResponse_backupPlan
- Specifies the body of a backup plan. Includes a BackupPlanName
and one
or more sets of Rules
.
GetBackupPlanResponse
, getBackupPlanResponse_backupPlanArn
- An Amazon Resource Name (ARN) that uniquely identifies a backup plan;
for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.
GetBackupPlan
, getBackupPlanResponse_backupPlanId
- Uniquely identifies a backup plan.
GetBackupPlanResponse
, getBackupPlanResponse_creationDate
- The date and time that a backup plan is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
GetBackupPlanResponse
, getBackupPlanResponse_creatorRequestId
- A unique string that identifies the request and allows failed requests
to be retried without the risk of running the operation twice.
GetBackupPlanResponse
, getBackupPlanResponse_deletionDate
- The date and time that a backup plan is deleted, in Unix format and
Coordinated Universal Time (UTC). The value of DeletionDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
GetBackupPlanResponse
, getBackupPlanResponse_lastExecutionDate
- The last time a job to back up resources was run with this backup plan.
A date and time, in Unix format and Coordinated Universal Time (UTC).
The value of LastExecutionDate
is accurate to milliseconds. For
example, the value 1516925490.087 represents Friday, January 26, 2018
12:11:30.087 AM.
GetBackupPlan
, getBackupPlanResponse_versionId
- Unique, randomly generated, Unicode, UTF-8 encoded strings that are at
most 1,024 bytes long. Version IDs cannot be edited.
$sel:httpStatus:GetBackupPlanResponse'
, getBackupPlanResponse_httpStatus
- The response's http status code.
Response Lenses
getBackupPlanResponse_advancedBackupSettings :: Lens' GetBackupPlanResponse (Maybe [AdvancedBackupSetting]) Source #
Contains a list of BackupOptions
for each resource type. The list is
populated only if the advanced option is set for the backup plan.
getBackupPlanResponse_backupPlan :: Lens' GetBackupPlanResponse (Maybe BackupPlan) Source #
Specifies the body of a backup plan. Includes a BackupPlanName
and one
or more sets of Rules
.
getBackupPlanResponse_backupPlanArn :: Lens' GetBackupPlanResponse (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a backup plan;
for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.
getBackupPlanResponse_backupPlanId :: Lens' GetBackupPlanResponse (Maybe Text) Source #
Uniquely identifies a backup plan.
getBackupPlanResponse_creationDate :: Lens' GetBackupPlanResponse (Maybe UTCTime) Source #
The date and time that a backup plan is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
getBackupPlanResponse_creatorRequestId :: Lens' GetBackupPlanResponse (Maybe Text) Source #
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice.
getBackupPlanResponse_deletionDate :: Lens' GetBackupPlanResponse (Maybe UTCTime) Source #
The date and time that a backup plan is deleted, in Unix format and
Coordinated Universal Time (UTC). The value of DeletionDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
getBackupPlanResponse_lastExecutionDate :: Lens' GetBackupPlanResponse (Maybe UTCTime) Source #
The last time a job to back up resources was run with this backup plan.
A date and time, in Unix format and Coordinated Universal Time (UTC).
The value of LastExecutionDate
is accurate to milliseconds. For
example, the value 1516925490.087 represents Friday, January 26, 2018
12:11:30.087 AM.
getBackupPlanResponse_versionId :: Lens' GetBackupPlanResponse (Maybe Text) Source #
Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
getBackupPlanResponse_httpStatus :: Lens' GetBackupPlanResponse Int Source #
The response's http status code.