Struct 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 Builder 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.

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.

    • 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:backup-vault:aBackupVault.

    • vault_type(Option<VaultType>):

      The type of vault described.

    • vault_state(Option<VaultState>):

      The current state of the vault.->

    • 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 will 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>>):

      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.

    • backup_vault_arn(Option<String>):

      An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-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:backup-vault:aBackupVault. 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. For recovery points of Amazon S3, Amazon RDS, and Amazon Aurora resources, this status occurs when the retention period of a continuous backup rule is changed.

      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 can transition to cold storage are listed in 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>):

      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>):

      The name of the resource that belongs to the specified backup.

    • vault_type(Option<VaultType>):

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

    • index_status(Option<IndexStatus>):

      This is the current status for the backup index associated with the specified recovery point.

      Statuses are: PENDING | ACTIVE | FAILED | DELETING

      A recovery point with an index that has the status of ACTIVE can be included in a search.

    • index_status_message(Option<String>):

      A string in the form of a detailed message explaining the status of a backup index associated with the recovery point.

  • 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_index_details( &self, ) -> GetRecoveryPointIndexDetailsFluentBuilder

Constructs a fluent builder for the GetRecoveryPointIndexDetails 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

      • CloudFormation for CloudFormation

      • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

      • DynamoDB for Amazon DynamoDB

      • EBS for Amazon Elastic Block Store

      • EC2 for Amazon Elastic Compute Cloud

      • EFS for Amazon Elastic File System

      • FSx for Amazon FSx

      • Neptune for Amazon Neptune

      • RDS for Amazon Relational Database Service

      • Redshift for Amazon Redshift

      • S3 for Amazon Simple Storage Service (Amazon S3)

      • SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances

      • Storage Gateway for Storage Gateway

      • Timestream for Amazon Timestream

      • VirtualMachine for VMware virtual machines

  • 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

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The aggregated job count for prior 14 days.


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

      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>>):

      The summary information.

    • aggregation_period(Option<String>):

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The 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

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The 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>):

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The 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

Source

pub fn list_indexed_recovery_points( &self, ) -> ListIndexedRecoveryPointsFluentBuilder

Constructs a fluent builder for the ListIndexedRecoveryPoints 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

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The 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>):

      The period for the returned results.

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

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

      • FOURTEEN_DAYS - The 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).

      This parameter is required when a vault lock is created through CloudFormation; otherwise, this parameter is optional. 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.


    • 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 can transition to cold storage are listed in 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

      The tags to assign to the resources.


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

      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.


    • index(Index) / set_index(Option<Index>):
      required: false

      Include this parameter to enable index creation if your backup job has a resource type that supports backup indexes.

      Resource types that support backup indexes include:

      • EBS for Amazon Elastic Block Store

      • S3 for Amazon Simple Storage Service (Amazon S3)

      Index can have 1 of 2 possible values, either ENABLED or DISABLED.

      To create a backup index for an eligible ACTIVE recovery point that does not yet have a backup index, set value to ENABLED.

      To delete a backup index, set value to DISABLED.


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

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_index_settings( &self, ) -> UpdateRecoveryPointIndexSettingsFluentBuilder

Constructs a fluent builder for the UpdateRecoveryPointIndexSettings 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.


    • 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:backup-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 can transition to cold storage are listed in 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Paint for T
where T: ?Sized,

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

Source§

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

Source§

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,