amazonka-backup-2.0: Amazon Backup SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Backup.GetBackupPlan

Description

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

Creating a Request

data GetBackupPlan Source #

See: newGetBackupPlan smart constructor.

Constructors

GetBackupPlan' 

Fields

  • versionId :: Maybe Text

    Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.

  • backupPlanId :: Text

    Uniquely identifies a backup plan.

Instances

Instances details
ToHeaders GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

ToPath GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

ToQuery GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

AWSRequest GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Associated Types

type AWSResponse GetBackupPlan #

Generic GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Associated Types

type Rep GetBackupPlan :: Type -> Type #

Read GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Show GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

NFData GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Methods

rnf :: GetBackupPlan -> () #

Eq GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Hashable GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

type AWSResponse GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

type Rep GetBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

type Rep GetBackupPlan = D1 ('MetaData "GetBackupPlan" "Amazonka.Backup.GetBackupPlan" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "GetBackupPlan'" 'PrefixI 'True) (S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetBackupPlan Source #

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.

Constructors

GetBackupPlanResponse' 

Fields

  • advancedBackupSettings :: Maybe [AdvancedBackupSetting]

    Contains a list of BackupOptions for each resource type. The list is populated only if the advanced option is set for the backup plan.

  • backupPlan :: Maybe BackupPlan

    Specifies the body of a backup plan. Includes a BackupPlanName and one or more sets of Rules.

  • backupPlanArn :: Maybe Text

    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.

  • backupPlanId :: Maybe Text

    Uniquely identifies a backup plan.

  • creationDate :: Maybe POSIX

    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.

  • creatorRequestId :: Maybe Text

    A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice.

  • deletionDate :: Maybe POSIX

    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.

  • lastExecutionDate :: Maybe POSIX

    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.

  • versionId :: Maybe Text

    Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Associated Types

type Rep GetBackupPlanResponse :: Type -> Type #

Show GetBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

NFData GetBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

Methods

rnf :: GetBackupPlanResponse -> () #

Eq GetBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

type Rep GetBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupPlan

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_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.