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

Description

Returns metadata about your copy jobs.

This operation returns paginated results.

Synopsis

Creating a Request

data ListCopyJobs Source #

See: newListCopyJobs smart constructor.

Constructors

ListCopyJobs' 

Fields

  • byAccountId :: Maybe Text

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

  • byCompleteAfter :: Maybe POSIX

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

  • byCompleteBefore :: Maybe POSIX

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

  • byCreatedAfter :: Maybe POSIX

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

  • byCreatedBefore :: Maybe POSIX

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

  • byDestinationVaultArn :: Maybe Text

    An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

  • byParentJobId :: Maybe Text

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

  • byResourceArn :: Maybe Text

    Returns only copy 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 CopyJobState

    Returns only copy 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 ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

ToPath ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

ToQuery ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

AWSPager ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

AWSRequest ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Associated Types

type AWSResponse ListCopyJobs #

Generic ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Associated Types

type Rep ListCopyJobs :: Type -> Type #

Read ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Show ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

NFData ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Methods

rnf :: ListCopyJobs -> () #

Eq ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Hashable ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

type AWSResponse ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

type Rep ListCopyJobs Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

type Rep ListCopyJobs = D1 ('MetaData "ListCopyJobs" "Amazonka.Backup.ListCopyJobs" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "ListCopyJobs'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "byAccountId") '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 "byDestinationVaultArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((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 CopyJobState)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newListCopyJobs :: ListCopyJobs Source #

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

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

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

$sel:byCreatedAfter:ListCopyJobs', listCopyJobs_byCreatedAfter - Returns only copy jobs that were created after the specified date.

$sel:byCreatedBefore:ListCopyJobs', listCopyJobs_byCreatedBefore - Returns only copy jobs that were created before the specified date.

$sel:byDestinationVaultArn:ListCopyJobs', listCopyJobs_byDestinationVaultArn - An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

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

$sel:byResourceArn:ListCopyJobs', listCopyJobs_byResourceArn - Returns only copy jobs that match the specified resource Amazon Resource Name (ARN).

$sel:byResourceType:ListCopyJobs', listCopyJobs_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:ListCopyJobs', listCopyJobs_byState - Returns only copy jobs that are in the specified state.

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

ListCopyJobs, listCopyJobs_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

listCopyJobs_byAccountId :: Lens' ListCopyJobs (Maybe Text) Source #

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

listCopyJobs_byCompleteAfter :: Lens' ListCopyJobs (Maybe UTCTime) Source #

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

listCopyJobs_byCompleteBefore :: Lens' ListCopyJobs (Maybe UTCTime) Source #

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

listCopyJobs_byCreatedAfter :: Lens' ListCopyJobs (Maybe UTCTime) Source #

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

listCopyJobs_byCreatedBefore :: Lens' ListCopyJobs (Maybe UTCTime) Source #

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

listCopyJobs_byDestinationVaultArn :: Lens' ListCopyJobs (Maybe Text) Source #

An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

listCopyJobs_byParentJobId :: Lens' ListCopyJobs (Maybe Text) Source #

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

listCopyJobs_byResourceArn :: Lens' ListCopyJobs (Maybe Text) Source #

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

listCopyJobs_byResourceType :: Lens' ListCopyJobs (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

listCopyJobs_byState :: Lens' ListCopyJobs (Maybe CopyJobState) Source #

Returns only copy jobs that are in the specified state.

listCopyJobs_maxResults :: Lens' ListCopyJobs (Maybe Natural) Source #

The maximum number of items to be returned.

listCopyJobs_nextToken :: Lens' ListCopyJobs (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 ListCopyJobsResponse Source #

See: newListCopyJobsResponse smart constructor.

Constructors

ListCopyJobsResponse' 

Fields

  • copyJobs :: Maybe [CopyJob]

    An array of structures containing metadata about your copy 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 ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Associated Types

type Rep ListCopyJobsResponse :: Type -> Type #

Read ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Show ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

NFData ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

Methods

rnf :: ListCopyJobsResponse -> () #

Eq ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

type Rep ListCopyJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListCopyJobs

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

newListCopyJobsResponse Source #

Create a value of ListCopyJobsResponse 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:copyJobs:ListCopyJobsResponse', listCopyJobsResponse_copyJobs - An array of structures containing metadata about your copy jobs returned in JSON format.

ListCopyJobs, listCopyJobsResponse_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:ListCopyJobsResponse', listCopyJobsResponse_httpStatus - The response's http status code.

Response Lenses

listCopyJobsResponse_copyJobs :: Lens' ListCopyJobsResponse (Maybe [CopyJob]) Source #

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

listCopyJobsResponse_nextToken :: Lens' ListCopyJobsResponse (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.