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 |
Amazonka.Backup.GetBackupPlanFromTemplate
Description
Returns the template specified by its templateId
as a backup plan.
Synopsis
- data GetBackupPlanFromTemplate = GetBackupPlanFromTemplate' {}
- newGetBackupPlanFromTemplate :: Text -> GetBackupPlanFromTemplate
- getBackupPlanFromTemplate_backupPlanTemplateId :: Lens' GetBackupPlanFromTemplate Text
- data GetBackupPlanFromTemplateResponse = GetBackupPlanFromTemplateResponse' {}
- newGetBackupPlanFromTemplateResponse :: Int -> GetBackupPlanFromTemplateResponse
- getBackupPlanFromTemplateResponse_backupPlanDocument :: Lens' GetBackupPlanFromTemplateResponse (Maybe BackupPlan)
- getBackupPlanFromTemplateResponse_httpStatus :: Lens' GetBackupPlanFromTemplateResponse Int
Creating a Request
data GetBackupPlanFromTemplate Source #
See: newGetBackupPlanFromTemplate
smart constructor.
Constructors
GetBackupPlanFromTemplate' | |
Fields
|
Instances
newGetBackupPlanFromTemplate Source #
Create a value of GetBackupPlanFromTemplate
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:backupPlanTemplateId:GetBackupPlanFromTemplate'
, getBackupPlanFromTemplate_backupPlanTemplateId
- Uniquely identifies a stored backup plan template.
Request Lenses
getBackupPlanFromTemplate_backupPlanTemplateId :: Lens' GetBackupPlanFromTemplate Text Source #
Uniquely identifies a stored backup plan template.
Destructuring the Response
data GetBackupPlanFromTemplateResponse Source #
See: newGetBackupPlanFromTemplateResponse
smart constructor.
Constructors
GetBackupPlanFromTemplateResponse' | |
Fields
|
Instances
newGetBackupPlanFromTemplateResponse Source #
Arguments
:: Int | |
-> GetBackupPlanFromTemplateResponse |
Create a value of GetBackupPlanFromTemplateResponse
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:backupPlanDocument:GetBackupPlanFromTemplateResponse'
, getBackupPlanFromTemplateResponse_backupPlanDocument
- Returns the body of a backup plan based on the target template,
including the name, rules, and backup vault of the plan.
$sel:httpStatus:GetBackupPlanFromTemplateResponse'
, getBackupPlanFromTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
getBackupPlanFromTemplateResponse_backupPlanDocument :: Lens' GetBackupPlanFromTemplateResponse (Maybe BackupPlan) Source #
Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.
getBackupPlanFromTemplateResponse_httpStatus :: Lens' GetBackupPlanFromTemplateResponse Int Source #
The response's http status code.