libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.OpsWorksCM.DescribeBackups

Description

Describes backups. The results are ordered by time, with newest backups first. If you do not specify a BackupId or ServerName, the command returns all backups.

This operation is synchronous.

A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException is raised when parameters of the request are not valid.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeBackups Source #

See: newDescribeBackups smart constructor.

Constructors

DescribeBackups' 

Fields

Instances

Instances details
Eq DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Read DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Show DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Generic DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Associated Types

type Rep DescribeBackups :: Type -> Type #

NFData DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Methods

rnf :: DescribeBackups -> () #

Hashable DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

ToJSON DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

AWSPager DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

AWSRequest DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Associated Types

type AWSResponse DescribeBackups #

ToHeaders DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

ToPath DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

ToQuery DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

type Rep DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

type Rep DescribeBackups = D1 ('MetaData "DescribeBackups" "Amazonka.OpsWorksCM.DescribeBackups" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DescribeBackups'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "serverName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeBackups Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

newDescribeBackups :: DescribeBackups Source #

Create a value of DescribeBackups 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:serverName:DescribeBackups', describeBackups_serverName - Returns backups for the server with the specified ServerName.

$sel:backupId:DescribeBackups', describeBackups_backupId - Describes a single backup.

$sel:nextToken:DescribeBackups', describeBackups_nextToken - This is not currently implemented for DescribeBackups requests.

$sel:maxResults:DescribeBackups', describeBackups_maxResults - This is not currently implemented for DescribeBackups requests.

Request Lenses

describeBackups_serverName :: Lens' DescribeBackups (Maybe Text) Source #

Returns backups for the server with the specified ServerName.

describeBackups_nextToken :: Lens' DescribeBackups (Maybe Text) Source #

This is not currently implemented for DescribeBackups requests.

describeBackups_maxResults :: Lens' DescribeBackups (Maybe Natural) Source #

This is not currently implemented for DescribeBackups requests.

Destructuring the Response

data DescribeBackupsResponse Source #

See: newDescribeBackupsResponse smart constructor.

Constructors

DescribeBackupsResponse' 

Fields

Instances

Instances details
Eq DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Read DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Show DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Generic DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Associated Types

type Rep DescribeBackupsResponse :: Type -> Type #

NFData DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

Methods

rnf :: DescribeBackupsResponse -> () #

type Rep DescribeBackupsResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DescribeBackups

type Rep DescribeBackupsResponse = D1 ('MetaData "DescribeBackupsResponse" "Amazonka.OpsWorksCM.DescribeBackups" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DescribeBackupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Backup])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeBackupsResponse Source #

Create a value of DescribeBackupsResponse 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:backups:DescribeBackupsResponse', describeBackupsResponse_backups - Contains the response to a DescribeBackups request.

$sel:nextToken:DescribeBackups', describeBackupsResponse_nextToken - This is not currently implemented for DescribeBackups requests.

$sel:httpStatus:DescribeBackupsResponse', describeBackupsResponse_httpStatus - The response's http status code.

Response Lenses

describeBackupsResponse_backups :: Lens' DescribeBackupsResponse (Maybe [Backup]) Source #

Contains the response to a DescribeBackups request.

describeBackupsResponse_nextToken :: Lens' DescribeBackupsResponse (Maybe Text) Source #

This is not currently implemented for DescribeBackups requests.