Struct aws_sdk_backup::client::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for AWS Backup

Client for invoking operations on AWS Backup. Each operation on AWS Backup is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_backup::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_backup::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the CancelLegalHold operation has a Client::cancel_legal_hold, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.cancel_legal_hold()
    .legal_hold_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

Constructs a fluent builder for the CancelLegalHold operation.

source§

impl Client

source

pub fn create_backup_plan(&self) -> CreateBackupPlanFluentBuilder

Constructs a fluent builder for the CreateBackupPlan operation.

source§

impl Client

source

pub fn create_backup_selection(&self) -> CreateBackupSelectionFluentBuilder

Constructs a fluent builder for the CreateBackupSelection operation.

source§

impl Client

source

pub fn create_backup_vault(&self) -> CreateBackupVaultFluentBuilder

Constructs a fluent builder for the CreateBackupVault operation.

source§

impl Client

source

pub fn create_framework(&self) -> CreateFrameworkFluentBuilder

Constructs a fluent builder for the CreateFramework operation.

source§

impl Client

Constructs a fluent builder for the CreateLegalHold operation.

source§

impl Client

source

pub fn create_logically_air_gapped_backup_vault( &self ) -> CreateLogicallyAirGappedBackupVaultFluentBuilder

Constructs a fluent builder for the CreateLogicallyAirGappedBackupVault operation.

source§

impl Client

source

pub fn create_report_plan(&self) -> CreateReportPlanFluentBuilder

Constructs a fluent builder for the CreateReportPlan operation.

source§

impl Client

source

pub fn create_restore_testing_plan( &self ) -> CreateRestoreTestingPlanFluentBuilder

Constructs a fluent builder for the CreateRestoreTestingPlan operation.

source§

impl Client

source

pub fn create_restore_testing_selection( &self ) -> CreateRestoreTestingSelectionFluentBuilder

Constructs a fluent builder for the CreateRestoreTestingSelection operation.

source§

impl Client

source

pub fn delete_backup_plan(&self) -> DeleteBackupPlanFluentBuilder

Constructs a fluent builder for the DeleteBackupPlan operation.

source§

impl Client

source

pub fn delete_backup_selection(&self) -> DeleteBackupSelectionFluentBuilder

Constructs a fluent builder for the DeleteBackupSelection operation.

source§

impl Client

source

pub fn delete_backup_vault(&self) -> DeleteBackupVaultFluentBuilder

Constructs a fluent builder for the DeleteBackupVault operation.

source§

impl Client

source

pub fn delete_backup_vault_access_policy( &self ) -> DeleteBackupVaultAccessPolicyFluentBuilder

Constructs a fluent builder for the DeleteBackupVaultAccessPolicy operation.

source§

impl Client

source

pub fn delete_backup_vault_lock_configuration( &self ) -> DeleteBackupVaultLockConfigurationFluentBuilder

Constructs a fluent builder for the DeleteBackupVaultLockConfiguration operation.

source§

impl Client

source

pub fn delete_backup_vault_notifications( &self ) -> DeleteBackupVaultNotificationsFluentBuilder

Constructs a fluent builder for the DeleteBackupVaultNotifications operation.

source§

impl Client

source

pub fn delete_framework(&self) -> DeleteFrameworkFluentBuilder

Constructs a fluent builder for the DeleteFramework operation.

source§

impl Client

source

pub fn delete_recovery_point(&self) -> DeleteRecoveryPointFluentBuilder

Constructs a fluent builder for the DeleteRecoveryPoint operation.

source§

impl Client

source

pub fn delete_report_plan(&self) -> DeleteReportPlanFluentBuilder

Constructs a fluent builder for the DeleteReportPlan operation.

source§

impl Client

source

pub fn delete_restore_testing_plan( &self ) -> DeleteRestoreTestingPlanFluentBuilder

Constructs a fluent builder for the DeleteRestoreTestingPlan operation.

source§

impl Client

source

pub fn delete_restore_testing_selection( &self ) -> DeleteRestoreTestingSelectionFluentBuilder

Constructs a fluent builder for the DeleteRestoreTestingSelection operation.

source§

impl Client

source

pub fn describe_backup_job(&self) -> DescribeBackupJobFluentBuilder

Constructs a fluent builder for the DescribeBackupJob operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeBackupJobOutput with field(s):
    • account_id(Option<String>):

      Returns the account ID that owns the backup job.

    • backup_job_id(Option<String>):

      Uniquely identifies a request to Backup to back up a resource.

    • backup_vault_name(Option<String>):

      The name of a logical container where backups are stored. 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.

    • backup_vault_arn(Option<String>):

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

    • recovery_point_arn(Option<String>):

      An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • resource_arn(Option<String>):

      An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.

    • creation_date(Option<DateTime>):

      The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • completion_date(Option<DateTime>):

      The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • state(Option<BackupJobState>):

      The current state of a backup job.

    • status_message(Option<String>):

      A detailed message explaining the status of the job to back up a resource.

    • percent_done(Option<String>):

      Contains an estimated percentage that is complete of a job at the time the job status was queried.

    • backup_size_in_bytes(Option<i64>):

      The size, in bytes, of a backup.

    • iam_role_arn(Option<String>):

      Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access.

    • created_by(Option<RecoveryPointCreator>):

      Contains identifying information about the creation of a backup job, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan that is used to create it.

    • resource_type(Option<String>):

      The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

    • bytes_transferred(Option<i64>):

      The size in bytes transferred to a backup vault at the time that the job status was queried.

    • expected_completion_date(Option<DateTime>):

      The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • start_by(Option<DateTime>):

      Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy time would be 8:00 PM on the date specified. The value of StartBy is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • backup_options(Option<HashMap::<String, String>>):

      Represents the options specified as part of backup plan or on-demand backup job.

    • backup_type(Option<String>):

      Represents the actual backup type selected for a backup job. For example, if a successful Windows Volume Shadow Copy Service (VSS) backup was taken, BackupType returns “WindowsVSS”. If BackupType is empty, then the backup type was a regular backup.

    • parent_job_id(Option<String>):

      This returns the parent (composite) resource backup job ID.

    • is_parent(bool):

      This returns the boolean value that a backup job is a parent (composite) job.

    • number_of_child_jobs(Option<i64>):

      This returns the number of child (nested) backup jobs.

    • child_jobs_in_state(Option<HashMap::<BackupJobState, i64>>):

      This returns the statistics of the included child (nested) backup jobs.

    • resource_name(Option<String>):

      This is the non-unique name of the resource that belongs to the specified backup.

    • initiation_date(Option<DateTime>):

      This is the date a backup job was initiated.

    • message_category(Option<String>):

      This is the job count for the specified message category.

      Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. View Monitoring for a list of accepted MessageCategory strings.

  • On failure, responds with SdkError<DescribeBackupJobError>
source§

impl Client

source

pub fn describe_backup_vault(&self) -> DescribeBackupVaultFluentBuilder

Constructs a fluent builder for the DescribeBackupVault operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeBackupVaultOutput with field(s):
    • backup_vault_name(Option<String>):

      The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens.

    • backup_vault_arn(Option<String>):

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

    • vault_type(Option<VaultType>):

      This is the type of vault described.

    • encryption_key_arn(Option<String>):

      The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    • creation_date(Option<DateTime>):

      The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • creator_request_id(Option<String>):

      A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or ‘-_.’ characters.

    • number_of_recovery_points(i64):

      The number of recovery points that are stored in a backup vault.

    • locked(Option<bool>):

      A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. True means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.

    • min_retention_days(Option<i64>):

      The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a minimum retention period.

      If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job’s retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.

    • max_retention_days(Option<i64>):

      The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).

      If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job’s retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.

    • lock_date(Option<DateTime>):

      The date and time when Backup Vault Lock configuration cannot be changed or deleted.

      If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.

      This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

  • On failure, responds with SdkError<DescribeBackupVaultError>
source§

impl Client

source

pub fn describe_copy_job(&self) -> DescribeCopyJobFluentBuilder

Constructs a fluent builder for the DescribeCopyJob operation.

source§

impl Client

source

pub fn describe_framework(&self) -> DescribeFrameworkFluentBuilder

Constructs a fluent builder for the DescribeFramework operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeFrameworkOutput with field(s):
    • framework_name(Option<String>):

      The unique name of a framework.

    • framework_arn(Option<String>):

      An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.

    • framework_description(Option<String>):

      An optional description of the framework.

    • framework_controls(Option<Vec::<FrameworkControl>>):

      A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope.

    • creation_time(Option<DateTime>):

      The date and time that a framework is created, in ISO 8601 representation. The value of CreationTime is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.

    • deployment_status(Option<String>):

      The deployment status of a framework. The statuses are:

      CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED | FAILED

    • framework_status(Option<String>):

      A framework consists of one or more controls. Each control governs a resource, such as backup plans, backup selections, backup vaults, or recovery points. You can also turn Config recording on or off for each resource. The statuses are:

      • ACTIVE when recording is turned on for all resources governed by the framework.

      • PARTIALLY_ACTIVE when recording is turned off for at least one resource governed by the framework.

      • INACTIVE when recording is turned off for all resources governed by the framework.

      • UNAVAILABLE when Backup is unable to validate recording status at this time.

    • idempotency_token(Option<String>):

      A customer-chosen string that you can use to distinguish between otherwise identical calls to DescribeFrameworkOutput. Retrying a successful request with the same idempotency token results in a success message with no action taken.

  • On failure, responds with SdkError<DescribeFrameworkError>
source§

impl Client

source

pub fn describe_global_settings(&self) -> DescribeGlobalSettingsFluentBuilder

Constructs a fluent builder for the DescribeGlobalSettings operation.

source§

impl Client

source

pub fn describe_protected_resource( &self ) -> DescribeProtectedResourceFluentBuilder

Constructs a fluent builder for the DescribeProtectedResource operation.

source§

impl Client

source

pub fn describe_recovery_point(&self) -> DescribeRecoveryPointFluentBuilder

Constructs a fluent builder for the DescribeRecoveryPoint operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeRecoveryPointOutput with field(s):
    • recovery_point_arn(Option<String>):

      An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • backup_vault_name(Option<String>):

      The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens.

    • backup_vault_arn(Option<String>):

      An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

    • source_backup_vault_arn(Option<String>):

      An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed up in; for example, arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the recovery is restored to the same Amazon Web Services account or Region, this value will be null.

    • resource_arn(Option<String>):

      An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.

    • resource_type(Option<String>):

      The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

    • created_by(Option<RecoveryPointCreator>):

      Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan used to create it.

    • iam_role_arn(Option<String>):

      Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access.

    • status(Option<RecoveryPointStatus>):

      A status code specifying the state of the recovery point.

      PARTIAL status indicates Backup could not create the recovery point before the backup window closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and editing your backup plan.

      EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see Step 3: Delete the recovery points in the Clean up resources section of Getting started.

      STOPPED status occurs on a continuous backup where a user has taken some action that causes the continuous backup to be disabled. This can be caused by the removal of permissions, turning off versioning, turning off events being sent to EventBridge, or disabling the EventBridge rules that are put in place by Backup.

      To resolve STOPPED status, ensure that all requested permissions are in place and that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance of a backup rule running will result in a new continuous recovery point being created. The recovery points with STOPPED status do not need to be deleted.

      For SAP HANA on Amazon EC2 STOPPED status occurs due to user action, application misconfiguration, or backup failure. To ensure that future continuous backups succeed, refer to the recovery point status and check SAP HANA for details.

    • status_message(Option<String>):

      A status message explaining the status of the recovery point.

    • creation_date(Option<DateTime>):

      The date and time that a recovery point is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • completion_date(Option<DateTime>):

      The date and time that a job to create a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • backup_size_in_bytes(Option<i64>):

      The size, in bytes, of a backup.

    • calculated_lifecycle(Option<CalculatedLifecycle>):

      A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

    • lifecycle(Option<Lifecycle>):

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

      Backups that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” 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.

      Resource types that are able to be transitioned to cold storage are listed in the “Lifecycle to cold storage” section of the Feature availability by resource table. Backup ignores this expression for other resource types.

    • encryption_key_arn(Option<String>):

      The server-side encryption key used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    • is_encrypted(bool):

      A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or FALSE if the recovery point is not encrypted.

    • storage_class(Option<StorageClass>):

      Specifies the storage class of the recovery point. Valid values are WARM or COLD.

    • last_restore_time(Option<DateTime>):

      The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • parent_recovery_point_arn(Option<String>):

      This is an ARN that uniquely identifies a parent (composite) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • composite_member_identifier(Option<String>):

      This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.

    • is_parent(bool):

      This returns the boolean value that a recovery point is a parent (composite) job.

    • resource_name(Option<String>):

      This is the non-unique name of the resource that belongs to the specified backup.

    • vault_type(Option<VaultType>):

      This is the type of vault in which the described recovery point is stored.

  • On failure, responds with SdkError<DescribeRecoveryPointError>
source§

impl Client

source

pub fn describe_region_settings(&self) -> DescribeRegionSettingsFluentBuilder

Constructs a fluent builder for the DescribeRegionSettings operation.

source§

impl Client

source

pub fn describe_report_job(&self) -> DescribeReportJobFluentBuilder

Constructs a fluent builder for the DescribeReportJob operation.

source§

impl Client

source

pub fn describe_report_plan(&self) -> DescribeReportPlanFluentBuilder

Constructs a fluent builder for the DescribeReportPlan operation.

source§

impl Client

source

pub fn describe_restore_job(&self) -> DescribeRestoreJobFluentBuilder

Constructs a fluent builder for the DescribeRestoreJob operation.

source§

impl Client

source

pub fn disassociate_recovery_point( &self ) -> DisassociateRecoveryPointFluentBuilder

Constructs a fluent builder for the DisassociateRecoveryPoint operation.

source§

impl Client

source

pub fn disassociate_recovery_point_from_parent( &self ) -> DisassociateRecoveryPointFromParentFluentBuilder

Constructs a fluent builder for the DisassociateRecoveryPointFromParent operation.

source§

impl Client

source

pub fn export_backup_plan_template( &self ) -> ExportBackupPlanTemplateFluentBuilder

Constructs a fluent builder for the ExportBackupPlanTemplate operation.

source§

impl Client

source

pub fn get_backup_plan(&self) -> GetBackupPlanFluentBuilder

Constructs a fluent builder for the GetBackupPlan operation.

source§

impl Client

source

pub fn get_backup_plan_from_json(&self) -> GetBackupPlanFromJSONFluentBuilder

Constructs a fluent builder for the GetBackupPlanFromJSON operation.

source§

impl Client

source

pub fn get_backup_plan_from_template( &self ) -> GetBackupPlanFromTemplateFluentBuilder

Constructs a fluent builder for the GetBackupPlanFromTemplate operation.

source§

impl Client

source

pub fn get_backup_selection(&self) -> GetBackupSelectionFluentBuilder

Constructs a fluent builder for the GetBackupSelection operation.

source§

impl Client

source

pub fn get_backup_vault_access_policy( &self ) -> GetBackupVaultAccessPolicyFluentBuilder

Constructs a fluent builder for the GetBackupVaultAccessPolicy operation.

source§

impl Client

source

pub fn get_backup_vault_notifications( &self ) -> GetBackupVaultNotificationsFluentBuilder

Constructs a fluent builder for the GetBackupVaultNotifications operation.

source§

impl Client

Constructs a fluent builder for the GetLegalHold operation.

source§

impl Client

source

pub fn get_recovery_point_restore_metadata( &self ) -> GetRecoveryPointRestoreMetadataFluentBuilder

Constructs a fluent builder for the GetRecoveryPointRestoreMetadata operation.

source§

impl Client

source

pub fn get_restore_job_metadata(&self) -> GetRestoreJobMetadataFluentBuilder

Constructs a fluent builder for the GetRestoreJobMetadata operation.

source§

impl Client

source

pub fn get_restore_testing_inferred_metadata( &self ) -> GetRestoreTestingInferredMetadataFluentBuilder

Constructs a fluent builder for the GetRestoreTestingInferredMetadata operation.

source§

impl Client

source

pub fn get_restore_testing_plan(&self) -> GetRestoreTestingPlanFluentBuilder

Constructs a fluent builder for the GetRestoreTestingPlan operation.

source§

impl Client

source

pub fn get_restore_testing_selection( &self ) -> GetRestoreTestingSelectionFluentBuilder

Constructs a fluent builder for the GetRestoreTestingSelection operation.

source§

impl Client

source

pub fn get_supported_resource_types( &self ) -> GetSupportedResourceTypesFluentBuilder

Constructs a fluent builder for the GetSupportedResourceTypes operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetSupportedResourceTypesOutput with field(s):
    • resource_types(Option<Vec::<String>>):

      Contains a string with the supported Amazon Web Services resource types:

      • Aurora for Amazon Aurora

      • 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

      • RDS for Amazon Relational Database Service

      • Storage Gateway for Storage Gateway

      • DocDB for Amazon DocumentDB (with MongoDB compatibility)

      • Neptune for Amazon Neptune

  • On failure, responds with SdkError<GetSupportedResourceTypesError>
source§

impl Client

source

pub fn list_backup_job_summaries(&self) -> ListBackupJobSummariesFluentBuilder

Constructs a fluent builder for the ListBackupJobSummaries operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: false

      Returns the job count for the specified account.

      If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor’s account will be returned.

      Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.

      AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum.


    • state(BackupJobStatus) / set_state(Option<BackupJobStatus>):
      required: false

      This parameter returns the job count for jobs with the specified state.

      The the value ANY returns count of all states.

      AGGREGATE_ALL aggregates job counts for all states and returns the sum.

      Completed with issues is a status found only in the Backup console. For API, this status refers to jobs with a state of COMPLETED and a MessageCategory with a value other than SUCCESS; that is, the status is completed but comes with a status message. To obtain the job count for Completed with issues, run two GET requests, and subtract the second, smaller number:

      GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED

      GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED


    • resource_type(impl Into<String>) / set_resource_type(Option<String>):
      required: false

      Returns the job count for the specified resource type. Use request GetSupportedResourceTypes to obtain strings for supported resource types.

      The the value ANY returns count of all resource types.

      AGGREGATE_ALL aggregates job counts for all resource types and returns the sum.

      The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.


    • message_category(impl Into<String>) / set_message_category(Option<String>):
      required: false

      This parameter returns the job count for the specified message category.

      Example accepted strings include AccessDenied, Success, and InvalidParameters. See Monitoring for a list of accepted MessageCategory strings.

      The the value ANY returns count of all message categories.

      AGGREGATE_ALL aggregates job counts for all message categories and returns the sum.


    • aggregation_period(AggregationPeriod) / set_aggregation_period(Option<AggregationPeriod>):
      required: false

      This is the period that sets the boundaries for returned results.

      Acceptable values include

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      This parameter sets the maximum number of items to be returned.

      The value is an integer. Range of accepted values is from 1 to 500.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

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


  • On success, responds with ListBackupJobSummariesOutput with field(s):
    • backup_job_summaries(Option<Vec::<BackupJobSummary>>):

      This request returns a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.

    • aggregation_period(Option<String>):

      This is the period that sets the boundaries for returned results.

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.

    • next_token(Option<String>):

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

  • On failure, responds with SdkError<ListBackupJobSummariesError>
source§

impl Client

source

pub fn list_backup_jobs(&self) -> ListBackupJobsFluentBuilder

Constructs a fluent builder for the ListBackupJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_backup_plan_templates(&self) -> ListBackupPlanTemplatesFluentBuilder

Constructs a fluent builder for the ListBackupPlanTemplates operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_backup_plan_versions(&self) -> ListBackupPlanVersionsFluentBuilder

Constructs a fluent builder for the ListBackupPlanVersions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_backup_plans(&self) -> ListBackupPlansFluentBuilder

Constructs a fluent builder for the ListBackupPlans operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_backup_selections(&self) -> ListBackupSelectionsFluentBuilder

Constructs a fluent builder for the ListBackupSelections operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_backup_vaults(&self) -> ListBackupVaultsFluentBuilder

Constructs a fluent builder for the ListBackupVaults operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_copy_job_summaries(&self) -> ListCopyJobSummariesFluentBuilder

Constructs a fluent builder for the ListCopyJobSummaries operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: false

      Returns the job count for the specified account.

      If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor’s account will be returned.

      Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.

      AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum.


    • state(CopyJobStatus) / set_state(Option<CopyJobStatus>):
      required: false

      This parameter returns the job count for jobs with the specified state.

      The the value ANY returns count of all states.

      AGGREGATE_ALL aggregates job counts for all states and returns the sum.


    • resource_type(impl Into<String>) / set_resource_type(Option<String>):
      required: false

      Returns the job count for the specified resource type. Use request GetSupportedResourceTypes to obtain strings for supported resource types.

      The the value ANY returns count of all resource types.

      AGGREGATE_ALL aggregates job counts for all resource types and returns the sum.

      The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.


    • message_category(impl Into<String>) / set_message_category(Option<String>):
      required: false

      This parameter returns the job count for the specified message category.

      Example accepted strings include AccessDenied, Success, and InvalidParameters. See Monitoring for a list of accepted MessageCategory strings.

      The the value ANY returns count of all message categories.

      AGGREGATE_ALL aggregates job counts for all message categories and returns the sum.


    • aggregation_period(AggregationPeriod) / set_aggregation_period(Option<AggregationPeriod>):
      required: false

      This is the period that sets the boundaries for returned results.

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      This parameter sets the maximum number of items to be returned.

      The value is an integer. Range of accepted values is from 1 to 500.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

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


  • On success, responds with ListCopyJobSummariesOutput with field(s):
    • copy_job_summaries(Option<Vec::<CopyJobSummary>>):

      This return shows a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.

    • aggregation_period(Option<String>):

      This is the period that sets the boundaries for returned results.

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.

    • next_token(Option<String>):

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

  • On failure, responds with SdkError<ListCopyJobSummariesError>
source§

impl Client

source

pub fn list_copy_jobs(&self) -> ListCopyJobsFluentBuilder

Constructs a fluent builder for the ListCopyJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_frameworks(&self) -> ListFrameworksFluentBuilder

Constructs a fluent builder for the ListFrameworks operation. This operation supports pagination; See into_paginator().

source§

impl Client

Constructs a fluent builder for the ListLegalHolds operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_protected_resources(&self) -> ListProtectedResourcesFluentBuilder

Constructs a fluent builder for the ListProtectedResources operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_protected_resources_by_backup_vault( &self ) -> ListProtectedResourcesByBackupVaultFluentBuilder

Constructs a fluent builder for the ListProtectedResourcesByBackupVault operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_recovery_points_by_backup_vault( &self ) -> ListRecoveryPointsByBackupVaultFluentBuilder

Constructs a fluent builder for the ListRecoveryPointsByBackupVault operation. This operation supports pagination; See into_paginator().

source§

impl Client

Constructs a fluent builder for the ListRecoveryPointsByLegalHold operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_recovery_points_by_resource( &self ) -> ListRecoveryPointsByResourceFluentBuilder

Constructs a fluent builder for the ListRecoveryPointsByResource operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_report_jobs(&self) -> ListReportJobsFluentBuilder

Constructs a fluent builder for the ListReportJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_report_plans(&self) -> ListReportPlansFluentBuilder

Constructs a fluent builder for the ListReportPlans operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_restore_job_summaries(&self) -> ListRestoreJobSummariesFluentBuilder

Constructs a fluent builder for the ListRestoreJobSummaries operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: false

      Returns the job count for the specified account.

      If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor’s account will be returned.

      Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.

      AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum.


    • state(RestoreJobState) / set_state(Option<RestoreJobState>):
      required: false

      This parameter returns the job count for jobs with the specified state.

      The the value ANY returns count of all states.

      AGGREGATE_ALL aggregates job counts for all states and returns the sum.


    • resource_type(impl Into<String>) / set_resource_type(Option<String>):
      required: false

      Returns the job count for the specified resource type. Use request GetSupportedResourceTypes to obtain strings for supported resource types.

      The the value ANY returns count of all resource types.

      AGGREGATE_ALL aggregates job counts for all resource types and returns the sum.

      The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.


    • aggregation_period(AggregationPeriod) / set_aggregation_period(Option<AggregationPeriod>):
      required: false

      This is the period that sets the boundaries for returned results.

      Acceptable values include

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      This parameter sets the maximum number of items to be returned.

      The value is an integer. Range of accepted values is from 1 to 500.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

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


  • On success, responds with ListRestoreJobSummariesOutput with field(s):
    • restore_job_summaries(Option<Vec::<RestoreJobSummary>>):

      This return contains a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.

    • aggregation_period(Option<String>):

      This is the period that sets the boundaries for returned results.

      • ONE_DAY for daily job count for the prior 14 days.

      • SEVEN_DAYS for the aggregated job count for the prior 7 days.

      • FOURTEEN_DAYS for aggregated job count for prior 14 days.

    • next_token(Option<String>):

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

  • On failure, responds with SdkError<ListRestoreJobSummariesError>
source§

impl Client

source

pub fn list_restore_jobs(&self) -> ListRestoreJobsFluentBuilder

Constructs a fluent builder for the ListRestoreJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_restore_jobs_by_protected_resource( &self ) -> ListRestoreJobsByProtectedResourceFluentBuilder

Constructs a fluent builder for the ListRestoreJobsByProtectedResource operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_restore_testing_plans(&self) -> ListRestoreTestingPlansFluentBuilder

Constructs a fluent builder for the ListRestoreTestingPlans operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_restore_testing_selections( &self ) -> ListRestoreTestingSelectionsFluentBuilder

Constructs a fluent builder for the ListRestoreTestingSelections operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_tags(&self) -> ListTagsFluentBuilder

Constructs a fluent builder for the ListTags operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn put_backup_vault_access_policy( &self ) -> PutBackupVaultAccessPolicyFluentBuilder

Constructs a fluent builder for the PutBackupVaultAccessPolicy operation.

source§

impl Client

source

pub fn put_backup_vault_lock_configuration( &self ) -> PutBackupVaultLockConfigurationFluentBuilder

Constructs a fluent builder for the PutBackupVaultLockConfiguration operation.

  • The fluent builder is configurable:
    • backup_vault_name(impl Into<String>) / set_backup_vault_name(Option<String>):
      required: true

      The Backup Vault Lock configuration that specifies the name of the backup vault it protects.


    • min_retention_days(i64) / set_min_retention_days(Option<i64>):
      required: false

      The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization’s policies require you to retain certain data for at least seven years (2555 days).

      If this parameter is not specified, Vault Lock will not enforce a minimum retention period.

      If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job’s retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected.


    • max_retention_days(i64) / set_max_retention_days(Option<i64>):
      required: false

      The Backup Vault Lock configuration that specifies the maximum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization’s policies require you to destroy certain data after retaining it for four years (1460 days).

      If this parameter is not included, Vault Lock does not enforce a maximum retention period on the recovery points in the vault. If this parameter is included without a value, Vault Lock will not enforce a maximum retention period.

      If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job’s retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. The longest maximum retention period you can specify is 36500 days (approximately 100 years). Recovery points already saved in the vault prior to Vault Lock are not affected.


    • changeable_for_days(i64) / set_changeable_for_days(Option<i64>):
      required: false

      The Backup Vault Lock configuration that specifies the number of days before the lock date. For example, setting ChangeableForDays to 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at 8pm UTC.

      Backup enforces a 72-hour cooling-off period before Vault Lock takes effect and becomes immutable. Therefore, you must set ChangeableForDays to 3 or greater.

      Before the lock date, you can delete Vault Lock from the vault using DeleteBackupVaultLockConfiguration or change the Vault Lock configuration using PutBackupVaultLockConfiguration. On and after the lock date, the Vault Lock becomes immutable and cannot be changed or deleted.

      If this parameter is not specified, you can delete Vault Lock from the vault using DeleteBackupVaultLockConfiguration or change the Vault Lock configuration using PutBackupVaultLockConfiguration at any time.


  • On success, responds with PutBackupVaultLockConfigurationOutput
  • On failure, responds with SdkError<PutBackupVaultLockConfigurationError>
source§

impl Client

source

pub fn put_backup_vault_notifications( &self ) -> PutBackupVaultNotificationsFluentBuilder

Constructs a fluent builder for the PutBackupVaultNotifications operation.

source§

impl Client

source

pub fn put_restore_validation_result( &self ) -> PutRestoreValidationResultFluentBuilder

Constructs a fluent builder for the PutRestoreValidationResult operation.

source§

impl Client

source

pub fn start_backup_job(&self) -> StartBackupJobFluentBuilder

Constructs a fluent builder for the StartBackupJob operation.

  • The fluent builder is configurable:
    • backup_vault_name(impl Into<String>) / set_backup_vault_name(Option<String>):
      required: true

      The name of a logical container where backups are stored. 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.


    • resource_arn(impl Into<String>) / set_resource_arn(Option<String>):
      required: true

      An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.


    • iam_role_arn(impl Into<String>) / set_iam_role_arn(Option<String>):
      required: true

      Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access.


    • idempotency_token(impl Into<String>) / set_idempotency_token(Option<String>):
      required: false

      A customer-chosen string that you can use to distinguish between otherwise identical calls to StartBackupJob. Retrying a successful request with the same idempotency token results in a success message with no action taken.


    • start_window_minutes(i64) / set_start_window_minutes(Option<i64>):
      required: false

      A value in minutes after a backup is scheduled before a job will be canceled if it doesn’t start successfully. This value is optional, and the default is 8 hours. If this value is included, it must be at least 60 minutes to avoid errors.

      This parameter has a maximum value of 100 years (52,560,000 minutes).

      During the start window, the backup job status remains in CREATED status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes to RUNNING) or until the job status changes to EXPIRED (which is expected to occur when the start window time is over).


    • complete_window_minutes(i64) / set_complete_window_minutes(Option<i64>):
      required: false

      A value in minutes during which a successfully started backup must complete, or else Backup will cancel the job. This value is optional. This value begins counting down from when the backup was scheduled. It does not add additional time for StartWindowMinutes, or if the backup started later than scheduled.

      Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes).


    • lifecycle(Lifecycle) / set_lifecycle(Option<Lifecycle>):
      required: false

      The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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 “retention” 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.

      Resource types that are able to be transitioned to cold storage are listed in the “Lifecycle to cold storage” section of the Feature availability by resource table. Backup ignores this expression for other resource types.

      This parameter has a maximum value of 100 years (36,500 days).


    • recovery_point_tags(impl Into<String>, impl Into<String>) / set_recovery_point_tags(Option<HashMap::<String, String>>):
      required: false

      To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.


    • backup_options(impl Into<String>, impl Into<String>) / set_backup_options(Option<HashMap::<String, String>>):
      required: false

      Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.

      Valid values: Set to “WindowsVSS”:“enabled” to enable the WindowsVSS backup option and create a Windows VSS backup. Set to “WindowsVSS”“disabled” to create a regular backup. The WindowsVSS option is not enabled by default.


  • On success, responds with StartBackupJobOutput with field(s):
    • backup_job_id(Option<String>):

      Uniquely identifies a request to Backup to back up a resource.

    • recovery_point_arn(Option<String>):

      Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.

      An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • creation_date(Option<DateTime>):

      The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • is_parent(bool):

      This is a returned boolean value indicating this is a parent (composite) backup job.

  • On failure, responds with SdkError<StartBackupJobError>
source§

impl Client

source

pub fn start_copy_job(&self) -> StartCopyJobFluentBuilder

Constructs a fluent builder for the StartCopyJob operation.

source§

impl Client

source

pub fn start_report_job(&self) -> StartReportJobFluentBuilder

Constructs a fluent builder for the StartReportJob operation.

source§

impl Client

source

pub fn start_restore_job(&self) -> StartRestoreJobFluentBuilder

Constructs a fluent builder for the StartRestoreJob operation.

  • The fluent builder is configurable:
    • recovery_point_arn(impl Into<String>) / set_recovery_point_arn(Option<String>):
      required: true

      An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.


    • metadata(impl Into<String>, impl Into<String>) / set_metadata(Option<HashMap::<String, String>>):
      required: true

      A set of metadata key-value pairs. Contains information, such as a resource name, required to restore a recovery point.

      You can get configuration metadata about a resource at the time it was backed up by calling GetRecoveryPointRestoreMetadata. However, values in addition to those provided by GetRecoveryPointRestoreMetadata might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.

      You need to specify specific metadata to restore an Amazon Elastic File System (Amazon EFS) instance:

      • file-system-id: The ID of the Amazon EFS file system that is backed up by Backup. Returned in GetRecoveryPointRestoreMetadata.

      • Encrypted: A Boolean value that, if true, specifies that the file system is encrypted. If KmsKeyId is specified, Encrypted must be set to true.

      • KmsKeyId: Specifies the Amazon Web Services KMS key that is used to encrypt the restored file system. You can specify a key from another Amazon Web Services account provided that key it is properly shared with your account via Amazon Web Services KMS.

      • PerformanceMode: Specifies the throughput mode of the file system.

      • CreationToken: A user-supplied value that ensures the uniqueness (idempotency) of the request.

      • newFileSystem: A Boolean value that, if true, specifies that the recovery point is restored to a new Amazon EFS file system.

      • ItemsToRestore: An array of one to five strings where each string is a file path. Use ItemsToRestore to restore specific files or directories rather than the entire file system. This parameter is optional. For example, “itemsToRestore”:“["/my.test"]”.


    • iam_role_arn(impl Into<String>) / set_iam_role_arn(Option<String>):
      required: false

      The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access.


    • idempotency_token(impl Into<String>) / set_idempotency_token(Option<String>):
      required: false

      A customer-chosen string that you can use to distinguish between otherwise identical calls to StartRestoreJob. Retrying a successful request with the same idempotency token results in a success message with no action taken.


    • resource_type(impl Into<String>) / set_resource_type(Option<String>):
      required: false

      Starts a job to restore a recovery point for one of the following resources:

      • Aurora for Amazon Aurora

      • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

      • CloudFormation for CloudFormation

      • 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

      • Redshift for Amazon Redshift

      • Storage Gateway for Storage Gateway

      • S3 for Amazon S3

      • Timestream for Amazon Timestream

      • VirtualMachine for virtual machines


    • copy_source_tags_to_restored_resource(bool) / set_copy_source_tags_to_restored_resource(Option<bool>):
      required: false

      This is an optional parameter. If this equals True, tags included in the backup will be copied to the restored resource.

      This can only be applied to backups created through Backup.


  • On success, responds with StartRestoreJobOutput with field(s):
  • On failure, responds with SdkError<StartRestoreJobError>
source§

impl Client

source

pub fn stop_backup_job(&self) -> StopBackupJobFluentBuilder

Constructs a fluent builder for the StopBackupJob operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_backup_plan(&self) -> UpdateBackupPlanFluentBuilder

Constructs a fluent builder for the UpdateBackupPlan operation.

source§

impl Client

source

pub fn update_framework(&self) -> UpdateFrameworkFluentBuilder

Constructs a fluent builder for the UpdateFramework operation.

source§

impl Client

source

pub fn update_global_settings(&self) -> UpdateGlobalSettingsFluentBuilder

Constructs a fluent builder for the UpdateGlobalSettings operation.

source§

impl Client

source

pub fn update_recovery_point_lifecycle( &self ) -> UpdateRecoveryPointLifecycleFluentBuilder

Constructs a fluent builder for the UpdateRecoveryPointLifecycle operation.

  • The fluent builder is configurable:
    • backup_vault_name(impl Into<String>) / set_backup_vault_name(Option<String>):
      required: true

      The name of a logical container where backups are stored. 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.


    • recovery_point_arn(impl Into<String>) / set_recovery_point_arn(Option<String>):
      required: true

      An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.


    • lifecycle(Lifecycle) / set_lifecycle(Option<Lifecycle>):
      required: false

      The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. 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 “retention” 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.


  • On success, responds with UpdateRecoveryPointLifecycleOutput with field(s):
    • backup_vault_arn(Option<String>):

      An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

    • recovery_point_arn(Option<String>):

      An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • lifecycle(Option<Lifecycle>):

      The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. 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 “retention” 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.

      Resource types that are able to be transitioned to cold storage are listed in the “Lifecycle to cold storage” section of the Feature availability by resource table. Backup ignores this expression for other resource types.

    • calculated_lifecycle(Option<CalculatedLifecycle>):

      A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

  • On failure, responds with SdkError<UpdateRecoveryPointLifecycleError>
source§

impl Client

source

pub fn update_region_settings(&self) -> UpdateRegionSettingsFluentBuilder

Constructs a fluent builder for the UpdateRegionSettings operation.

source§

impl Client

source

pub fn update_report_plan(&self) -> UpdateReportPlanFluentBuilder

Constructs a fluent builder for the UpdateReportPlan operation.

source§

impl Client

source

pub fn update_restore_testing_plan( &self ) -> UpdateRestoreTestingPlanFluentBuilder

Constructs a fluent builder for the UpdateRestoreTestingPlan operation.

source§

impl Client

source

pub fn update_restore_testing_selection( &self ) -> UpdateRestoreTestingSelectionFluentBuilder

Constructs a fluent builder for the UpdateRestoreTestingSelection operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more