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

Description

Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.

Synopsis

Creating a Request

data GetBackupSelection Source #

See: newGetBackupSelection smart constructor.

Constructors

GetBackupSelection' 

Fields

  • backupPlanId :: Text

    Uniquely identifies a backup plan.

  • selectionId :: Text

    Uniquely identifies the body of a request to assign a set of resources to a backup plan.

Instances

Instances details
ToHeaders GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

ToPath GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

ToQuery GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

AWSRequest GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Associated Types

type AWSResponse GetBackupSelection #

Generic GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Associated Types

type Rep GetBackupSelection :: Type -> Type #

Read GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Show GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

NFData GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Methods

rnf :: GetBackupSelection -> () #

Eq GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Hashable GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

type AWSResponse GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

type Rep GetBackupSelection Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

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

newGetBackupSelection Source #

Create a value of GetBackupSelection 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:

GetBackupSelection, getBackupSelection_backupPlanId - Uniquely identifies a backup plan.

GetBackupSelection, getBackupSelection_selectionId - Uniquely identifies the body of a request to assign a set of resources to a backup plan.

Request Lenses

getBackupSelection_selectionId :: Lens' GetBackupSelection Text Source #

Uniquely identifies the body of a request to assign a set of resources to a backup plan.

Destructuring the Response

data GetBackupSelectionResponse Source #

See: newGetBackupSelectionResponse smart constructor.

Constructors

GetBackupSelectionResponse' 

Fields

  • backupPlanId :: Maybe Text

    Uniquely identifies a backup plan.

  • backupSelection :: Maybe BackupSelection

    Specifies the body of a request to assign a set of resources to a backup plan.

  • creationDate :: Maybe POSIX

    The date and time a backup selection 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.

  • selectionId :: Maybe Text

    Uniquely identifies the body of a request to assign a set of resources to a backup plan.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Associated Types

type Rep GetBackupSelectionResponse :: Type -> Type #

Read GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Show GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

NFData GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

Eq GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

type Rep GetBackupSelectionResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupSelection

type Rep GetBackupSelectionResponse = D1 ('MetaData "GetBackupSelectionResponse" "Amazonka.Backup.GetBackupSelection" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "GetBackupSelectionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backupPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "backupSelection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BackupSelection)) :*: S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "creatorRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "selectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetBackupSelectionResponse Source #

Create a value of GetBackupSelectionResponse 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:

GetBackupSelection, getBackupSelectionResponse_backupPlanId - Uniquely identifies a backup plan.

$sel:backupSelection:GetBackupSelectionResponse', getBackupSelectionResponse_backupSelection - Specifies the body of a request to assign a set of resources to a backup plan.

GetBackupSelectionResponse, getBackupSelectionResponse_creationDate - The date and time a backup selection 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.

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

GetBackupSelection, getBackupSelectionResponse_selectionId - Uniquely identifies the body of a request to assign a set of resources to a backup plan.

$sel:httpStatus:GetBackupSelectionResponse', getBackupSelectionResponse_httpStatus - The response's http status code.

Response Lenses

getBackupSelectionResponse_backupSelection :: Lens' GetBackupSelectionResponse (Maybe BackupSelection) Source #

Specifies the body of a request to assign a set of resources to a backup plan.

getBackupSelectionResponse_creationDate :: Lens' GetBackupSelectionResponse (Maybe UTCTime) Source #

The date and time a backup selection 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.

getBackupSelectionResponse_creatorRequestId :: Lens' GetBackupSelectionResponse (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.

getBackupSelectionResponse_selectionId :: Lens' GetBackupSelectionResponse (Maybe Text) Source #

Uniquely identifies the body of a request to assign a set of resources to a backup plan.