Struct aws_sdk_backup::client::fluent_builders::ListBackupJobs
source · [−]pub struct ListBackupJobs { /* private fields */ }
Expand description
Fluent builder constructing a request to ListBackupJobs
.
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.
Implementations
sourceimpl ListBackupJobs
impl ListBackupJobs
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListBackupJobs, AwsResponseRetryClassifier>, SdkError<ListBackupJobsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListBackupJobs, AwsResponseRetryClassifier>, SdkError<ListBackupJobsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListBackupJobsOutput, SdkError<ListBackupJobsError>>
pub async fn send(
self
) -> Result<ListBackupJobsOutput, SdkError<ListBackupJobsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> ListBackupJobsPaginator
pub fn into_paginator(self) -> ListBackupJobsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
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.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of items to be returned.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of items to be returned.
sourcepub fn by_resource_arn(self, input: impl Into<String>) -> Self
pub fn by_resource_arn(self, input: impl Into<String>) -> Self
Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).
sourcepub fn set_by_resource_arn(self, input: Option<String>) -> Self
pub fn set_by_resource_arn(self, input: Option<String>) -> Self
Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).
sourcepub fn by_state(self, input: BackupJobState) -> Self
pub fn by_state(self, input: BackupJobState) -> Self
Returns only backup jobs that are in the specified state.
sourcepub fn set_by_state(self, input: Option<BackupJobState>) -> Self
pub fn set_by_state(self, input: Option<BackupJobState>) -> Self
Returns only backup jobs that are in the specified state.
sourcepub fn by_backup_vault_name(self, input: impl Into<String>) -> Self
pub fn by_backup_vault_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_by_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_by_backup_vault_name(self, input: Option<String>) -> Self
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.
sourcepub fn by_created_before(self, input: DateTime) -> Self
pub fn by_created_before(self, input: DateTime) -> Self
Returns only backup jobs that were created before the specified date.
sourcepub fn set_by_created_before(self, input: Option<DateTime>) -> Self
pub fn set_by_created_before(self, input: Option<DateTime>) -> Self
Returns only backup jobs that were created before the specified date.
sourcepub fn by_created_after(self, input: DateTime) -> Self
pub fn by_created_after(self, input: DateTime) -> Self
Returns only backup jobs that were created after the specified date.
sourcepub fn set_by_created_after(self, input: Option<DateTime>) -> Self
pub fn set_by_created_after(self, input: Option<DateTime>) -> Self
Returns only backup jobs that were created after the specified date.
sourcepub fn by_resource_type(self, input: impl Into<String>) -> Self
pub fn by_resource_type(self, input: impl Into<String>) -> Self
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
sourcepub fn set_by_resource_type(self, input: Option<String>) -> Self
pub fn set_by_resource_type(self, input: Option<String>) -> Self
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
sourcepub fn by_account_id(self, input: impl Into<String>) -> Self
pub fn by_account_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_by_account_id(self, input: Option<String>) -> Self
pub fn set_by_account_id(self, input: Option<String>) -> Self
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.
sourcepub fn by_complete_after(self, input: DateTime) -> Self
pub fn by_complete_after(self, input: DateTime) -> Self
Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
sourcepub fn set_by_complete_after(self, input: Option<DateTime>) -> Self
pub fn set_by_complete_after(self, input: Option<DateTime>) -> Self
Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
sourcepub fn by_complete_before(self, input: DateTime) -> Self
pub fn by_complete_before(self, input: DateTime) -> Self
Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
sourcepub fn set_by_complete_before(self, input: Option<DateTime>) -> Self
pub fn set_by_complete_before(self, input: Option<DateTime>) -> Self
Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
Trait Implementations
sourceimpl Clone for ListBackupJobs
impl Clone for ListBackupJobs
sourcefn clone(&self) -> ListBackupJobs
fn clone(&self) -> ListBackupJobs
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more