[][src]Struct rusoto_backup::BackupClient

pub struct BackupClient { /* fields omitted */ }

A client for the AWS Backup API.

Implementations

impl BackupClient[src]

pub fn new(region: Region) -> BackupClient[src]

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

pub fn new_with<P, D>(
    request_dispatcher: D,
    credentials_provider: P,
    region: Region
) -> BackupClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(client: Client, region: Region) -> BackupClient[src]

Trait Implementations

impl Backup for BackupClient[src]

fn create_backup_plan<'life0, 'async_trait>(
    &'life0 self,
    input: CreateBackupPlanInput
) -> Pin<Box<dyn Future<Output = Result<CreateBackupPlanOutput, RusotoError<CreateBackupPlanError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Backup plans are documents that contain information that AWS Backup uses to schedule tasks that create recovery points of resources.

If you call CreateBackupPlan with a plan that already exists, an AlreadyExistsException is returned.

fn create_backup_selection<'life0, 'async_trait>(
    &'life0 self,
    input: CreateBackupSelectionInput
) -> Pin<Box<dyn Future<Output = Result<CreateBackupSelectionOutput, RusotoError<CreateBackupSelectionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a JSON document that specifies a set of resources to assign to a backup plan. Resources can be included by specifying patterns for a ListOfTags and selected Resources.

For example, consider the following patterns:

  • Resources: "arn:aws:ec2:region:account-id:volume/volume-id"

  • ConditionKey:"department"

    ConditionValue:"finance"

    ConditionType:"STRINGEQUALS"

  • ConditionKey:"importance"

    ConditionValue:"critical"

    ConditionType:"STRINGEQUALS"

Using these patterns would back up all Amazon Elastic Block Store (Amazon EBS) volumes that are tagged as "department=finance", "importance=critical", in addition to an EBS volume with the specified volume Id.

Resources and conditions are additive in that all resources that match the pattern are selected. This shouldn't be confused with a logical AND, where all conditions must match. The matching patterns are logically 'put together using the OR operator. In other words, all patterns that match are selected for backup.

fn create_backup_vault<'life0, 'async_trait>(
    &'life0 self,
    input: CreateBackupVaultInput
) -> Pin<Box<dyn Future<Output = Result<CreateBackupVaultOutput, RusotoError<CreateBackupVaultError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a logical container where backups are stored. A CreateBackupVault request includes a name, optionally one or more resource tags, an encryption key, and a request ID.

Sensitive data, such as passport numbers, should not be included the name of a backup vault.

fn delete_backup_plan<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteBackupPlanInput
) -> Pin<Box<dyn Future<Output = Result<DeleteBackupPlanOutput, RusotoError<DeleteBackupPlanError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes a backup plan. A backup plan can only be deleted after all associated selections of resources have been deleted. Deleting a backup plan deletes the current version of a backup plan. Previous versions, if any, will still exist.

fn delete_backup_selection<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteBackupSelectionInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteBackupSelectionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the resource selection associated with a backup plan that is specified by the SelectionId.

fn delete_backup_vault<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteBackupVaultInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteBackupVaultError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.

fn delete_backup_vault_access_policy<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteBackupVaultAccessPolicyInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteBackupVaultAccessPolicyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the policy document that manages permissions on a backup vault.

fn delete_backup_vault_notifications<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteBackupVaultNotificationsInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteBackupVaultNotificationsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes event notifications for the specified backup vault.

fn delete_recovery_point<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteRecoveryPointInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteRecoveryPointError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the recovery point specified by a recovery point ID.

fn describe_backup_job<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeBackupJobInput
) -> Pin<Box<dyn Future<Output = Result<DescribeBackupJobOutput, RusotoError<DescribeBackupJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata associated with creating a backup of a resource.

fn describe_backup_vault<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeBackupVaultInput
) -> Pin<Box<dyn Future<Output = Result<DescribeBackupVaultOutput, RusotoError<DescribeBackupVaultError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata about a backup vault specified by its name.

fn describe_copy_job<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeCopyJobInput
) -> Pin<Box<dyn Future<Output = Result<DescribeCopyJobOutput, RusotoError<DescribeCopyJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata associated with creating a copy of a resource.

fn describe_protected_resource<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeProtectedResourceInput
) -> Pin<Box<dyn Future<Output = Result<DescribeProtectedResourceOutput, RusotoError<DescribeProtectedResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the AWS service type of the saved resource.

fn describe_recovery_point<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeRecoveryPointInput
) -> Pin<Box<dyn Future<Output = Result<DescribeRecoveryPointOutput, RusotoError<DescribeRecoveryPointError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.

fn describe_region_settings<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<DescribeRegionSettingsOutput, RusotoError<DescribeRegionSettingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the current service opt-in settings for the region. If the service has a value set to true, AWS Backup will attempt to protect that service's resources in this region, when included in an on-demand backup or scheduled backup plan. If the value is set to false for a service, AWS Backup will not attempt to protect that service's resources in this region.

fn describe_restore_job<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeRestoreJobInput
) -> Pin<Box<dyn Future<Output = Result<DescribeRestoreJobOutput, RusotoError<DescribeRestoreJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata associated with a restore job that is specified by a job ID.

fn export_backup_plan_template<'life0, 'async_trait>(
    &'life0 self,
    input: ExportBackupPlanTemplateInput
) -> Pin<Box<dyn Future<Output = Result<ExportBackupPlanTemplateOutput, RusotoError<ExportBackupPlanTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the backup plan that is specified by the plan ID as a backup template.

fn get_backup_plan<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupPlanInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupPlanOutput, RusotoError<GetBackupPlanError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the body of a backup plan in JSON format, in addition to plan metadata.

fn get_backup_plan_from_json<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupPlanFromJSONInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupPlanFromJSONOutput, RusotoError<GetBackupPlanFromJSONError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a valid JSON document specifying a backup plan or an error.

fn get_backup_plan_from_template<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupPlanFromTemplateInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupPlanFromTemplateOutput, RusotoError<GetBackupPlanFromTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the template specified by its templateId as a backup plan.

fn get_backup_selection<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupSelectionInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupSelectionOutput, RusotoError<GetBackupSelectionError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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

fn get_backup_vault_access_policy<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupVaultAccessPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupVaultAccessPolicyOutput, RusotoError<GetBackupVaultAccessPolicyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the access policy document that is associated with the named backup vault.

fn get_backup_vault_notifications<'life0, 'async_trait>(
    &'life0 self,
    input: GetBackupVaultNotificationsInput
) -> Pin<Box<dyn Future<Output = Result<GetBackupVaultNotificationsOutput, RusotoError<GetBackupVaultNotificationsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns event notifications for the specified backup vault.

fn get_recovery_point_restore_metadata<'life0, 'async_trait>(
    &'life0 self,
    input: GetRecoveryPointRestoreMetadataInput
) -> Pin<Box<dyn Future<Output = Result<GetRecoveryPointRestoreMetadataOutput, RusotoError<GetRecoveryPointRestoreMetadataError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a set of metadata key-value pairs that were used to create the backup.

fn get_supported_resource_types<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetSupportedResourceTypesOutput, RusotoError<GetSupportedResourceTypesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns the AWS resource types supported by AWS Backup.

fn list_backup_jobs<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupJobsInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupJobsOutput, RusotoError<ListBackupJobsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata about your backup jobs.

fn list_backup_plan_templates<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupPlanTemplatesInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupPlanTemplatesOutput, RusotoError<ListBackupPlanTemplatesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.

fn list_backup_plan_versions<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupPlanVersionsInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupPlanVersionsOutput, RusotoError<ListBackupPlanVersionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.

fn list_backup_plans<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupPlansInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupPlansOutput, RusotoError<ListBackupPlansError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata of your saved backup plans, including Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs.

fn list_backup_selections<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupSelectionsInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupSelectionsOutput, RusotoError<ListBackupSelectionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns an array containing metadata of the resources associated with the target backup plan.

fn list_backup_vaults<'life0, 'async_trait>(
    &'life0 self,
    input: ListBackupVaultsInput
) -> Pin<Box<dyn Future<Output = Result<ListBackupVaultsOutput, RusotoError<ListBackupVaultsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a list of recovery point storage containers along with information about them.

fn list_copy_jobs<'life0, 'async_trait>(
    &'life0 self,
    input: ListCopyJobsInput
) -> Pin<Box<dyn Future<Output = Result<ListCopyJobsOutput, RusotoError<ListCopyJobsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns metadata about your copy jobs.

fn list_protected_resources<'life0, 'async_trait>(
    &'life0 self,
    input: ListProtectedResourcesInput
) -> Pin<Box<dyn Future<Output = Result<ListProtectedResourcesOutput, RusotoError<ListProtectedResourcesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns an array of resources successfully backed up by AWS Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

fn list_recovery_points_by_backup_vault<'life0, 'async_trait>(
    &'life0 self,
    input: ListRecoveryPointsByBackupVaultInput
) -> Pin<Box<dyn Future<Output = Result<ListRecoveryPointsByBackupVaultOutput, RusotoError<ListRecoveryPointsByBackupVaultError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns detailed information about the recovery points stored in a backup vault.

fn list_recovery_points_by_resource<'life0, 'async_trait>(
    &'life0 self,
    input: ListRecoveryPointsByResourceInput
) -> Pin<Box<dyn Future<Output = Result<ListRecoveryPointsByResourceOutput, RusotoError<ListRecoveryPointsByResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns detailed information about recovery points of the type specified by a resource Amazon Resource Name (ARN).

fn list_restore_jobs<'life0, 'async_trait>(
    &'life0 self,
    input: ListRestoreJobsInput
) -> Pin<Box<dyn Future<Output = Result<ListRestoreJobsOutput, RusotoError<ListRestoreJobsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a list of jobs that AWS Backup initiated to restore a saved resource, including metadata about the recovery process.

fn list_tags<'life0, 'async_trait>(
    &'life0 self,
    input: ListTagsInput
) -> Pin<Box<dyn Future<Output = Result<ListTagsOutput, RusotoError<ListTagsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault.

ListTags are currently only supported with Amazon EFS backups.

fn put_backup_vault_access_policy<'life0, 'async_trait>(
    &'life0 self,
    input: PutBackupVaultAccessPolicyInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PutBackupVaultAccessPolicyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Sets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.

fn put_backup_vault_notifications<'life0, 'async_trait>(
    &'life0 self,
    input: PutBackupVaultNotificationsInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PutBackupVaultNotificationsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Turns on notifications on a backup vault for the specified topic and events.

fn start_backup_job<'life0, 'async_trait>(
    &'life0 self,
    input: StartBackupJobInput
) -> Pin<Box<dyn Future<Output = Result<StartBackupJobOutput, RusotoError<StartBackupJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Starts a job to create a one-time backup of the specified resource.

fn start_copy_job<'life0, 'async_trait>(
    &'life0 self,
    input: StartCopyJobInput
) -> Pin<Box<dyn Future<Output = Result<StartCopyJobOutput, RusotoError<StartCopyJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Starts a job to create a one-time copy of the specified resource.

fn start_restore_job<'life0, 'async_trait>(
    &'life0 self,
    input: StartRestoreJobInput
) -> Pin<Box<dyn Future<Output = Result<StartRestoreJobOutput, RusotoError<StartRestoreJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Recovers the saved resource identified by an Amazon Resource Name (ARN).

If the resource ARN is included in the request, then the last complete backup of that resource is recovered. If the ARN of a recovery point is supplied, then that recovery point is restored.

fn stop_backup_job<'life0, 'async_trait>(
    &'life0 self,
    input: StopBackupJobInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<StopBackupJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Attempts to cancel a job to create a one-time backup of a resource.

fn tag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: TagResourceInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).

fn untag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: UntagResourceInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)

fn update_backup_plan<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateBackupPlanInput
) -> Pin<Box<dyn Future<Output = Result<UpdateBackupPlanOutput, RusotoError<UpdateBackupPlanError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Replaces the body of a saved backup plan identified by its backupPlanId with the input document in JSON format. The new version is uniquely identified by a VersionId.

fn update_recovery_point_lifecycle<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateRecoveryPointLifecycleInput
) -> Pin<Box<dyn Future<Output = Result<UpdateRecoveryPointLifecycleOutput, RusotoError<UpdateRecoveryPointLifecycleError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Sets the transition lifecycle of a recovery point.

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

fn update_region_settings<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateRegionSettingsInput
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateRegionSettingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Updates the current service opt-in settings for the region. If the service has a value set to true, AWS Backup will attempt to protect that service's resources in this region, when included in an on-demand backup or scheduled backup plan. If the value is set to false for a service, AWS Backup will not attempt to protect that service's resources in this region.

impl Clone for BackupClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.