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

Description

Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools.

This operation returns paginated results.

Synopsis

Creating a Request

data ListBackupJobs Source #

See: newListBackupJobs smart constructor.

Constructors

ListBackupJobs' 

Fields

  • byAccountId :: Maybe Text

    The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.

    If used from an Organizations management account, passing * returns all jobs across the organization.

  • byBackupVaultName :: Maybe Text

    Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.

  • byCompleteAfter :: Maybe POSIX

    Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

  • byCompleteBefore :: Maybe POSIX

    Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

  • byCreatedAfter :: Maybe POSIX

    Returns only backup jobs that were created after the specified date.

  • byCreatedBefore :: Maybe POSIX

    Returns only backup jobs that were created before the specified date.

  • byParentJobId :: Maybe Text

    This is a filter to list child (nested) jobs based on parent job ID.

  • byResourceArn :: Maybe Text

    Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).

  • byResourceType :: Maybe Text

    Returns only backup jobs for the specified resources:

    • Aurora for Amazon Aurora
    • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)
    • DynamoDB for Amazon DynamoDB
    • EBS for Amazon Elastic Block Store
    • EC2 for Amazon Elastic Compute Cloud
    • EFS for Amazon Elastic File System
    • FSx for Amazon FSx
    • Neptune for Amazon Neptune
    • RDS for Amazon Relational Database Service
    • Storage Gateway for Storage Gateway
    • S3 for Amazon S3
    • VirtualMachine for virtual machines
  • byState :: Maybe BackupJobState

    Returns only backup jobs that are in the specified state.

  • maxResults :: Maybe Natural

    The maximum number of items to be returned.

  • nextToken :: Maybe Text

    The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Instances

Instances details
ToHeaders ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

ToPath ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

ToQuery ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

AWSPager ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

AWSRequest ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Associated Types

type AWSResponse ListBackupJobs #

Generic ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Associated Types

type Rep ListBackupJobs :: Type -> Type #

Read ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Show ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

NFData ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Methods

rnf :: ListBackupJobs -> () #

Eq ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Hashable ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

type AWSResponse ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

type Rep ListBackupJobs Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

type Rep ListBackupJobs = D1 ('MetaData "ListBackupJobs" "Amazonka.Backup.ListBackupJobs" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "ListBackupJobs'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "byAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "byBackupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "byCompleteAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "byCompleteBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "byCreatedAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "byCreatedBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "byParentJobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "byResourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "byResourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "byState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BackupJobState)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newListBackupJobs :: ListBackupJobs Source #

Create a value of ListBackupJobs 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:byAccountId:ListBackupJobs', listBackupJobs_byAccountId - The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.

If used from an Organizations management account, passing * returns all jobs across the organization.

$sel:byBackupVaultName:ListBackupJobs', listBackupJobs_byBackupVaultName - Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.

$sel:byCompleteAfter:ListBackupJobs', listBackupJobs_byCompleteAfter - Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

$sel:byCompleteBefore:ListBackupJobs', listBackupJobs_byCompleteBefore - Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

$sel:byCreatedAfter:ListBackupJobs', listBackupJobs_byCreatedAfter - Returns only backup jobs that were created after the specified date.

$sel:byCreatedBefore:ListBackupJobs', listBackupJobs_byCreatedBefore - Returns only backup jobs that were created before the specified date.

$sel:byParentJobId:ListBackupJobs', listBackupJobs_byParentJobId - This is a filter to list child (nested) jobs based on parent job ID.

$sel:byResourceArn:ListBackupJobs', listBackupJobs_byResourceArn - Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).

$sel:byResourceType:ListBackupJobs', listBackupJobs_byResourceType - Returns only backup jobs for the specified resources:

  • Aurora for Amazon Aurora
  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)
  • DynamoDB for Amazon DynamoDB
  • EBS for Amazon Elastic Block Store
  • EC2 for Amazon Elastic Compute Cloud
  • EFS for Amazon Elastic File System
  • FSx for Amazon FSx
  • Neptune for Amazon Neptune
  • RDS for Amazon Relational Database Service
  • Storage Gateway for Storage Gateway
  • S3 for Amazon S3
  • VirtualMachine for virtual machines

$sel:byState:ListBackupJobs', listBackupJobs_byState - Returns only backup jobs that are in the specified state.

$sel:maxResults:ListBackupJobs', listBackupJobs_maxResults - The maximum number of items to be returned.

ListBackupJobs, listBackupJobs_nextToken - The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Request Lenses

listBackupJobs_byAccountId :: Lens' ListBackupJobs (Maybe Text) Source #

The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.

If used from an Organizations management account, passing * returns all jobs across the organization.

listBackupJobs_byBackupVaultName :: Lens' ListBackupJobs (Maybe Text) Source #

Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.

listBackupJobs_byCompleteAfter :: Lens' ListBackupJobs (Maybe UTCTime) Source #

Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

listBackupJobs_byCompleteBefore :: Lens' ListBackupJobs (Maybe UTCTime) Source #

Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

listBackupJobs_byCreatedAfter :: Lens' ListBackupJobs (Maybe UTCTime) Source #

Returns only backup jobs that were created after the specified date.

listBackupJobs_byCreatedBefore :: Lens' ListBackupJobs (Maybe UTCTime) Source #

Returns only backup jobs that were created before the specified date.

listBackupJobs_byParentJobId :: Lens' ListBackupJobs (Maybe Text) Source #

This is a filter to list child (nested) jobs based on parent job ID.

listBackupJobs_byResourceArn :: Lens' ListBackupJobs (Maybe Text) Source #

Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).

listBackupJobs_byResourceType :: Lens' ListBackupJobs (Maybe Text) Source #

Returns only backup jobs for the specified resources:

  • Aurora for Amazon Aurora
  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)
  • DynamoDB for Amazon DynamoDB
  • EBS for Amazon Elastic Block Store
  • EC2 for Amazon Elastic Compute Cloud
  • EFS for Amazon Elastic File System
  • FSx for Amazon FSx
  • Neptune for Amazon Neptune
  • RDS for Amazon Relational Database Service
  • Storage Gateway for Storage Gateway
  • S3 for Amazon S3
  • VirtualMachine for virtual machines

listBackupJobs_byState :: Lens' ListBackupJobs (Maybe BackupJobState) Source #

Returns only backup jobs that are in the specified state.

listBackupJobs_maxResults :: Lens' ListBackupJobs (Maybe Natural) Source #

The maximum number of items to be returned.

listBackupJobs_nextToken :: Lens' ListBackupJobs (Maybe Text) Source #

The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Destructuring the Response

data ListBackupJobsResponse Source #

See: newListBackupJobsResponse smart constructor.

Constructors

ListBackupJobsResponse' 

Fields

  • backupJobs :: Maybe [BackupJob]

    An array of structures containing metadata about your backup jobs returned in JSON format.

  • nextToken :: Maybe Text

    The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Associated Types

type Rep ListBackupJobsResponse :: Type -> Type #

Read ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Show ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

NFData ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

Methods

rnf :: ListBackupJobsResponse -> () #

Eq ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

type Rep ListBackupJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListBackupJobs

type Rep ListBackupJobsResponse = D1 ('MetaData "ListBackupJobsResponse" "Amazonka.Backup.ListBackupJobs" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "ListBackupJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backupJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BackupJob])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBackupJobsResponse Source #

Create a value of ListBackupJobsResponse 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:backupJobs:ListBackupJobsResponse', listBackupJobsResponse_backupJobs - An array of structures containing metadata about your backup jobs returned in JSON format.

ListBackupJobs, listBackupJobsResponse_nextToken - The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

$sel:httpStatus:ListBackupJobsResponse', listBackupJobsResponse_httpStatus - The response's http status code.

Response Lenses

listBackupJobsResponse_backupJobs :: Lens' ListBackupJobsResponse (Maybe [BackupJob]) Source #

An array of structures containing metadata about your backup jobs returned in JSON format.

listBackupJobsResponse_nextToken :: Lens' ListBackupJobsResponse (Maybe Text) Source #

The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.