| 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 |
Amazonka.Backup.GetBackupPlanFromJSON
Description
Returns a valid JSON document specifying a backup plan or an error.
Synopsis
- data GetBackupPlanFromJSON = GetBackupPlanFromJSON' {}
- newGetBackupPlanFromJSON :: Text -> GetBackupPlanFromJSON
- getBackupPlanFromJSON_backupPlanTemplateJson :: Lens' GetBackupPlanFromJSON Text
- data GetBackupPlanFromJSONResponse = GetBackupPlanFromJSONResponse' {}
- newGetBackupPlanFromJSONResponse :: Int -> GetBackupPlanFromJSONResponse
- getBackupPlanFromJSONResponse_backupPlan :: Lens' GetBackupPlanFromJSONResponse (Maybe BackupPlan)
- getBackupPlanFromJSONResponse_httpStatus :: Lens' GetBackupPlanFromJSONResponse Int
Creating a Request
data GetBackupPlanFromJSON Source #
See: newGetBackupPlanFromJSON smart constructor.
Constructors
| GetBackupPlanFromJSON' | |
Fields
| |
Instances
newGetBackupPlanFromJSON Source #
Create a value of GetBackupPlanFromJSON 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:backupPlanTemplateJson:GetBackupPlanFromJSON', getBackupPlanFromJSON_backupPlanTemplateJson - A customer-supplied backup plan document in JSON format.
Request Lenses
getBackupPlanFromJSON_backupPlanTemplateJson :: Lens' GetBackupPlanFromJSON Text Source #
A customer-supplied backup plan document in JSON format.
Destructuring the Response
data GetBackupPlanFromJSONResponse Source #
See: newGetBackupPlanFromJSONResponse smart constructor.
Constructors
| GetBackupPlanFromJSONResponse' | |
Fields
| |
Instances
newGetBackupPlanFromJSONResponse Source #
Create a value of GetBackupPlanFromJSONResponse 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:backupPlan:GetBackupPlanFromJSONResponse', getBackupPlanFromJSONResponse_backupPlan - Specifies the body of a backup plan. Includes a BackupPlanName and one
or more sets of Rules.
$sel:httpStatus:GetBackupPlanFromJSONResponse', getBackupPlanFromJSONResponse_httpStatus - The response's http status code.
Response Lenses
getBackupPlanFromJSONResponse_backupPlan :: Lens' GetBackupPlanFromJSONResponse (Maybe BackupPlan) Source #
Specifies the body of a backup plan. Includes a BackupPlanName and one
or more sets of Rules.
getBackupPlanFromJSONResponse_httpStatus :: Lens' GetBackupPlanFromJSONResponse Int Source #
The response's http status code.