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
impl Client
Sourcepub fn cancel_legal_hold(&self) -> CancelLegalHoldFluentBuilder
pub fn cancel_legal_hold(&self) -> CancelLegalHoldFluentBuilder
Constructs a fluent builder for the CancelLegalHold
operation.
- The fluent builder is configurable:
legal_hold_id(impl Into<String>)
/set_legal_hold_id(Option<String>)
:
required: trueThe ID of the legal hold.
cancel_description(impl Into<String>)
/set_cancel_description(Option<String>)
:
required: trueA string the describes the reason for removing the legal hold.
retain_record_in_days(i64)
/set_retain_record_in_days(Option<i64>)
:
required: falseThe integer amount, in days, after which to remove legal hold.
- On success, responds with
CancelLegalHoldOutput
- On failure, responds with
SdkError<CancelLegalHoldError>
Source§impl Client
impl Client
Sourcepub fn create_backup_plan(&self) -> CreateBackupPlanFluentBuilder
pub fn create_backup_plan(&self) -> CreateBackupPlanFluentBuilder
Constructs a fluent builder for the CreateBackupPlan
operation.
- The fluent builder is configurable:
backup_plan(BackupPlanInput)
/set_backup_plan(Option<BackupPlanInput>)
:
required: trueThe body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.backup_plan_tags(impl Into<String>, impl Into<String>)
/set_backup_plan_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the backup plan.
creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseIdentifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or ‘-_.’ characters.
- On success, responds with
CreateBackupPlanOutput
with field(s):backup_plan_id(Option<String>)
:The ID of the backup plan.
backup_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.creation_date(Option<DateTime>)
:The date and time that a backup plan 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.version_id(Option<String>)
:Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
advanced_backup_settings(Option<Vec::<AdvancedBackupSetting>>)
:The settings for a resource type. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
- On failure, responds with
SdkError<CreateBackupPlanError>
Source§impl Client
impl Client
Sourcepub fn create_backup_selection(&self) -> CreateBackupSelectionFluentBuilder
pub fn create_backup_selection(&self) -> CreateBackupSelectionFluentBuilder
Constructs a fluent builder for the CreateBackupSelection
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueThe ID of the backup plan.
backup_selection(BackupSelection)
/set_backup_selection(Option<BackupSelection>)
:
required: trueThe body of a request to assign a set of resources to a backup plan.
creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseA 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.
- On success, responds with
CreateBackupSelectionOutput
with field(s):selection_id(Option<String>)
:Uniquely identifies the body of a request to assign a set of resources to a backup plan.
backup_plan_id(Option<String>)
:The ID of the backup plan.
creation_date(Option<DateTime>)
:The date and time a backup selection 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.
- On failure, responds with
SdkError<CreateBackupSelectionError>
Source§impl Client
impl Client
Sourcepub fn create_backup_vault(&self) -> CreateBackupVaultFluentBuilder
pub fn create_backup_vault(&self) -> CreateBackupVaultFluentBuilder
Constructs a fluent builder for the CreateBackupVault
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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 letters, numbers, and hyphens.
backup_vault_tags(impl Into<String>, impl Into<String>)
/set_backup_vault_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the backup vault.
encryption_key_arn(impl Into<String>)
/set_encryption_key_arn(Option<String>)
:
required: falseThe 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
.creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseA 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.
- On success, responds with
CreateBackupVaultOutput
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:backup-vault:aBackupVault
.creation_date(Option<DateTime>)
:The date and time 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.
- On failure, responds with
SdkError<CreateBackupVaultError>
Source§impl Client
impl Client
Sourcepub fn create_framework(&self) -> CreateFrameworkFluentBuilder
pub fn create_framework(&self) -> CreateFrameworkFluentBuilder
Constructs a fluent builder for the CreateFramework
operation.
- The fluent builder is configurable:
framework_name(impl Into<String>)
/set_framework_name(Option<String>)
:
required: trueThe unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
framework_description(impl Into<String>)
/set_framework_description(Option<String>)
:
required: falseAn optional description of the framework with a maximum of 1,024 characters.
framework_controls(FrameworkControl)
/set_framework_controls(Option<Vec::<FrameworkControl>>)
:
required: trueThe controls that make up the framework. Each control in the list has a name, input parameters, and scope.
idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.framework_tags(impl Into<String>, impl Into<String>)
/set_framework_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the framework.
- On success, responds with
CreateFrameworkOutput
with field(s):framework_name(Option<String>)
:The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
framework_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
- On failure, responds with
SdkError<CreateFrameworkError>
Source§impl Client
impl Client
Sourcepub fn create_legal_hold(&self) -> CreateLegalHoldFluentBuilder
pub fn create_legal_hold(&self) -> CreateLegalHoldFluentBuilder
Constructs a fluent builder for the CreateLegalHold
operation.
- The fluent builder is configurable:
title(impl Into<String>)
/set_title(Option<String>)
:
required: trueThe title of the legal hold.
description(impl Into<String>)
/set_description(Option<String>)
:
required: trueThe description of the legal hold.
idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseThis is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
recovery_point_selection(RecoveryPointSelection)
/set_recovery_point_selection(Option<RecoveryPointSelection>)
:
required: falseThe criteria to assign a set of resources, such as resource types or backup vaults.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseOptional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
- On success, responds with
CreateLegalHoldOutput
with field(s):title(Option<String>)
:The title of the legal hold.
status(Option<LegalHoldStatus>)
:The status of the legal hold.
description(Option<String>)
:The description of the legal hold.
legal_hold_id(Option<String>)
:The ID of the legal hold.
legal_hold_arn(Option<String>)
:The Amazon Resource Name (ARN) of the legal hold.
creation_date(Option<DateTime>)
:The time when the legal hold was created.
recovery_point_selection(Option<RecoveryPointSelection>)
:The criteria to assign to a set of resources, such as resource types or backup vaults.
- On failure, responds with
SdkError<CreateLegalHoldError>
Source§impl Client
impl Client
Sourcepub fn create_logically_air_gapped_backup_vault(
&self,
) -> CreateLogicallyAirGappedBackupVaultFluentBuilder
pub fn create_logically_air_gapped_backup_vault( &self, ) -> CreateLogicallyAirGappedBackupVaultFluentBuilder
Constructs a fluent builder for the CreateLogicallyAirGappedBackupVault
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe name of a logical container where backups are stored. Logically air-gapped 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_tags(impl Into<String>, impl Into<String>)
/set_backup_vault_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the vault.
creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseThe ID of the creation request.
This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or ‘-_.’ characters.
min_retention_days(i64)
/set_min_retention_days(Option<i64>)
:
required: trueThis setting specifies the minimum retention period that the vault retains its recovery points.
The minimum value accepted is 7 days.
max_retention_days(i64)
/set_max_retention_days(Option<i64>)
:
required: trueThe maximum retention period that the vault retains its recovery points.
- On success, responds with
CreateLogicallyAirGappedBackupVaultOutput
with field(s):backup_vault_name(Option<String>)
:The name of a logical container where backups are stored. Logically air-gapped 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>)
:The ARN (Amazon Resource Name) of the vault.
creation_date(Option<DateTime>)
:The date and time when the vault was created.
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.
vault_state(Option<VaultState>)
:The current state of the vault.
- On failure, responds with
SdkError<CreateLogicallyAirGappedBackupVaultError>
Source§impl Client
impl Client
Sourcepub fn create_report_plan(&self) -> CreateReportPlanFluentBuilder
pub fn create_report_plan(&self) -> CreateReportPlanFluentBuilder
Constructs a fluent builder for the CreateReportPlan
operation.
- The fluent builder is configurable:
report_plan_name(impl Into<String>)
/set_report_plan_name(Option<String>)
:
required: trueThe unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
report_plan_description(impl Into<String>)
/set_report_plan_description(Option<String>)
:
required: falseAn optional description of the report plan with a maximum of 1,024 characters.
report_delivery_channel(ReportDeliveryChannel)
/set_report_delivery_channel(Option<ReportDeliveryChannel>)
:
required: trueA structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
report_setting(ReportSetting)
/set_report_setting(Option<ReportSetting>)
:
required: trueIdentifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.report_plan_tags(impl Into<String>, impl Into<String>)
/set_report_plan_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the report plan.
idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
CreateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
- On success, responds with
CreateReportPlanOutput
with field(s):report_plan_name(Option<String>)
:The unique name of the report plan.
report_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
creation_time(Option<DateTime>)
:The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- On failure, responds with
SdkError<CreateReportPlanError>
Source§impl Client
impl Client
Sourcepub fn create_restore_testing_plan(
&self,
) -> CreateRestoreTestingPlanFluentBuilder
pub fn create_restore_testing_plan( &self, ) -> CreateRestoreTestingPlanFluentBuilder
Constructs a fluent builder for the CreateRestoreTestingPlan
operation.
- The fluent builder is configurable:
creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseThis is a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or ‘-_.’ characters.
restore_testing_plan(RestoreTestingPlanForCreate)
/set_restore_testing_plan(Option<RestoreTestingPlanForCreate>)
:
required: trueA restore testing plan must contain a unique
RestoreTestingPlanName
string you create and must contain aScheduleExpression
cron. You may optionally include aStartWindowHours
integer and aCreatorRequestId
string.The
RestoreTestingPlanName
is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to assign to the restore testing plan.
- On success, responds with
CreateRestoreTestingPlanOutput
with field(s):creation_time(DateTime)
:The date and time a restore testing plan was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087AM.restore_testing_plan_arn(String)
:An Amazon Resource Name (ARN) that uniquely identifies the created restore testing plan.
restore_testing_plan_name(String)
:This unique string is the name of the restore testing plan.
The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
- On failure, responds with
SdkError<CreateRestoreTestingPlanError>
Source§impl Client
impl Client
Sourcepub fn create_restore_testing_selection(
&self,
) -> CreateRestoreTestingSelectionFluentBuilder
pub fn create_restore_testing_selection( &self, ) -> CreateRestoreTestingSelectionFluentBuilder
Constructs a fluent builder for the CreateRestoreTestingSelection
operation.
- The fluent builder is configurable:
creator_request_id(impl Into<String>)
/set_creator_request_id(Option<String>)
:
required: falseThis is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or ‘-_.’ characters.
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueInput the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
restore_testing_selection(RestoreTestingSelectionForCreate)
/set_restore_testing_selection(Option<RestoreTestingSelectionForCreate>)
:
required: trueThis consists of
RestoreTestingSelectionName
,ProtectedResourceType
, and one of the following:-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value (“*”) for
ProtectedResourceArns
along withProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs inProtectedResourceArns
.-
- On success, responds with
CreateRestoreTestingSelectionOutput
with field(s):creation_time(DateTime)
:The time that the resource testing selection was created.
restore_testing_plan_arn(String)
:The ARN of the restore testing plan with which the restore testing selection is associated.
restore_testing_plan_name(String)
:The name of the restore testing plan.
The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
restore_testing_selection_name(String)
:The name of the restore testing selection for the related restore testing plan.
- On failure, responds with
SdkError<CreateRestoreTestingSelectionError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_plan(&self) -> DeleteBackupPlanFluentBuilder
pub fn delete_backup_plan(&self) -> DeleteBackupPlanFluentBuilder
Constructs a fluent builder for the DeleteBackupPlan
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
- On success, responds with
DeleteBackupPlanOutput
with field(s):backup_plan_id(Option<String>)
:Uniquely identifies a backup plan.
backup_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.deletion_date(Option<DateTime>)
:The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.version_id(Option<String>)
:Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
- On failure, responds with
SdkError<DeleteBackupPlanError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_selection(&self) -> DeleteBackupSelectionFluentBuilder
pub fn delete_backup_selection(&self) -> DeleteBackupSelectionFluentBuilder
Constructs a fluent builder for the DeleteBackupSelection
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
selection_id(impl Into<String>)
/set_selection_id(Option<String>)
:
required: trueUniquely identifies the body of a request to assign a set of resources to a backup plan.
- On success, responds with
DeleteBackupSelectionOutput
- On failure, responds with
SdkError<DeleteBackupSelectionError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_vault(&self) -> DeleteBackupVaultFluentBuilder
pub fn delete_backup_vault(&self) -> DeleteBackupVaultFluentBuilder
Constructs a fluent builder for the DeleteBackupVault
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
- On success, responds with
DeleteBackupVaultOutput
- On failure, responds with
SdkError<DeleteBackupVaultError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_vault_access_policy(
&self,
) -> DeleteBackupVaultAccessPolicyFluentBuilder
pub fn delete_backup_vault_access_policy( &self, ) -> DeleteBackupVaultAccessPolicyFluentBuilder
Constructs a fluent builder for the DeleteBackupVaultAccessPolicy
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
- On success, responds with
DeleteBackupVaultAccessPolicyOutput
- On failure, responds with
SdkError<DeleteBackupVaultAccessPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_vault_lock_configuration(
&self,
) -> DeleteBackupVaultLockConfigurationFluentBuilder
pub fn delete_backup_vault_lock_configuration( &self, ) -> DeleteBackupVaultLockConfigurationFluentBuilder
Constructs a fluent builder for the DeleteBackupVaultLockConfiguration
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe name of the backup vault from which to delete Backup Vault Lock.
- On success, responds with
DeleteBackupVaultLockConfigurationOutput
- On failure, responds with
SdkError<DeleteBackupVaultLockConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_backup_vault_notifications(
&self,
) -> DeleteBackupVaultNotificationsFluentBuilder
pub fn delete_backup_vault_notifications( &self, ) -> DeleteBackupVaultNotificationsFluentBuilder
Constructs a fluent builder for the DeleteBackupVaultNotifications
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
- On success, responds with
DeleteBackupVaultNotificationsOutput
- On failure, responds with
SdkError<DeleteBackupVaultNotificationsError>
Source§impl Client
impl Client
Sourcepub fn delete_framework(&self) -> DeleteFrameworkFluentBuilder
pub fn delete_framework(&self) -> DeleteFrameworkFluentBuilder
Constructs a fluent builder for the DeleteFramework
operation.
- The fluent builder is configurable:
framework_name(impl Into<String>)
/set_framework_name(Option<String>)
:
required: trueThe unique name of a framework.
- On success, responds with
DeleteFrameworkOutput
- On failure, responds with
SdkError<DeleteFrameworkError>
Source§impl Client
impl Client
Sourcepub fn delete_recovery_point(&self) -> DeleteRecoveryPointFluentBuilder
pub fn delete_recovery_point(&self) -> DeleteRecoveryPointFluentBuilder
Constructs a fluent builder for the DeleteRecoveryPoint
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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: trueAn 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
.
- On success, responds with
DeleteRecoveryPointOutput
- On failure, responds with
SdkError<DeleteRecoveryPointError>
Source§impl Client
impl Client
Sourcepub fn delete_report_plan(&self) -> DeleteReportPlanFluentBuilder
pub fn delete_report_plan(&self) -> DeleteReportPlanFluentBuilder
Constructs a fluent builder for the DeleteReportPlan
operation.
- The fluent builder is configurable:
report_plan_name(impl Into<String>)
/set_report_plan_name(Option<String>)
:
required: trueThe unique name of a report plan.
- On success, responds with
DeleteReportPlanOutput
- On failure, responds with
SdkError<DeleteReportPlanError>
Source§impl Client
impl Client
Sourcepub fn delete_restore_testing_plan(
&self,
) -> DeleteRestoreTestingPlanFluentBuilder
pub fn delete_restore_testing_plan( &self, ) -> DeleteRestoreTestingPlanFluentBuilder
Constructs a fluent builder for the DeleteRestoreTestingPlan
operation.
- The fluent builder is configurable:
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueRequired unique name of the restore testing plan you wish to delete.
- On success, responds with
DeleteRestoreTestingPlanOutput
- On failure, responds with
SdkError<DeleteRestoreTestingPlanError>
Source§impl Client
impl Client
Sourcepub fn delete_restore_testing_selection(
&self,
) -> DeleteRestoreTestingSelectionFluentBuilder
pub fn delete_restore_testing_selection( &self, ) -> DeleteRestoreTestingSelectionFluentBuilder
Constructs a fluent builder for the DeleteRestoreTestingSelection
operation.
- The fluent builder is configurable:
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueRequired unique name of the restore testing plan that contains the restore testing selection you wish to delete.
restore_testing_selection_name(impl Into<String>)
/set_restore_testing_selection_name(Option<String>)
:
required: trueRequired unique name of the restore testing selection you wish to delete.
- On success, responds with
DeleteRestoreTestingSelectionOutput
- On failure, responds with
SdkError<DeleteRestoreTestingSelectionError>
Source§impl Client
impl Client
Sourcepub fn describe_backup_job(&self) -> DescribeBackupJobFluentBuilder
pub fn describe_backup_job(&self) -> DescribeBackupJobFluentBuilder
Constructs a fluent builder for the DescribeBackupJob
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
:
required: trueUniquely identifies a request to Backup to back up a resource.
- 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.
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
.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
, andBackupRuleId
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 ofStartBy
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”
. IfBackupType
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>)
:The non-unique name of the resource that belongs to the specified backup.
initiation_date(Option<DateTime>)
:The date a backup job was initiated.
message_category(Option<String>)
:The job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andINVALIDPARAMETERS
. View Monitoring for a list of accepted MessageCategory strings.
- On failure, responds with
SdkError<DescribeBackupJobError>
Source§impl Client
impl Client
Sourcepub fn describe_backup_vault(&self) -> DescribeBackupVaultFluentBuilder
pub fn describe_backup_vault(&self) -> DescribeBackupVaultFluentBuilder
Constructs a fluent builder for the DescribeBackupVault
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThe account ID of the specified backup vault.
- 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
impl Client
Sourcepub fn describe_copy_job(&self) -> DescribeCopyJobFluentBuilder
pub fn describe_copy_job(&self) -> DescribeCopyJobFluentBuilder
Constructs a fluent builder for the DescribeCopyJob
operation.
- The fluent builder is configurable:
copy_job_id(impl Into<String>)
/set_copy_job_id(Option<String>)
:
required: trueUniquely identifies a copy job.
- On success, responds with
DescribeCopyJobOutput
with field(s):copy_job(Option<CopyJob>)
:Contains detailed information about a copy job.
- On failure, responds with
SdkError<DescribeCopyJobError>
Source§impl Client
impl Client
Sourcepub fn describe_framework(&self) -> DescribeFrameworkFluentBuilder
pub fn describe_framework(&self) -> DescribeFrameworkFluentBuilder
Constructs a fluent builder for the DescribeFramework
operation.
- The fluent builder is configurable:
framework_name(impl Into<String>)
/set_framework_name(Option<String>)
:
required: trueThe unique name of a framework.
- 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
impl Client
Sourcepub fn describe_global_settings(&self) -> DescribeGlobalSettingsFluentBuilder
pub fn describe_global_settings(&self) -> DescribeGlobalSettingsFluentBuilder
Constructs a fluent builder for the DescribeGlobalSettings
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeGlobalSettingsOutput
with field(s):global_settings(Option<HashMap::<String, String>>)
:The status of the flag
isCrossAccountBackupEnabled
.last_update_time(Option<DateTime>)
:The date and time that the flag
isCrossAccountBackupEnabled
was last updated. This update is in Unix format and Coordinated Universal Time (UTC). The value ofLastUpdateTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- On failure, responds with
SdkError<DescribeGlobalSettingsError>
Source§impl Client
impl Client
Sourcepub fn describe_protected_resource(
&self,
) -> DescribeProtectedResourceFluentBuilder
pub fn describe_protected_resource( &self, ) -> DescribeProtectedResourceFluentBuilder
Constructs a fluent builder for the DescribeProtectedResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
- On success, responds with
DescribeProtectedResourceOutput
with field(s):resource_arn(Option<String>)
:An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
resource_type(Option<String>)
:The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database.
last_backup_time(Option<DateTime>)
:The date and time that a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of
LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.resource_name(Option<String>)
:The name of the resource that belongs to the specified backup.
last_backup_vault_arn(Option<String>)
:The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
last_recovery_point_arn(Option<String>)
:The ARN (Amazon Resource Name) of the most recent recovery point.
latest_restore_execution_time_minutes(Option<i64>)
:The time, in minutes, that the most recent restore job took to complete.
latest_restore_job_creation_date(Option<DateTime>)
:The creation date of the most recent restore job.
latest_restore_recovery_point_creation_date(Option<DateTime>)
:The date the most recent recovery point was created.
- On failure, responds with
SdkError<DescribeProtectedResourceError>
Source§impl Client
impl Client
Sourcepub fn describe_recovery_point(&self) -> DescribeRecoveryPointFluentBuilder
pub fn describe_recovery_point(&self) -> DescribeRecoveryPointFluentBuilder
Constructs a fluent builder for the DescribeRecoveryPoint
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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: trueAn 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
.backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThe account ID of the specified backup vault.
- 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 benull
.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
, andBackupRuleId
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 containingDeleteAt
andMoveToColdStorageAt
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, orFALSE
if the recovery point is not encrypted.storage_class(Option<StorageClass>)
:Specifies the storage class of the recovery point. Valid values are
WARM
orCOLD
.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
impl Client
Sourcepub fn describe_region_settings(&self) -> DescribeRegionSettingsFluentBuilder
pub fn describe_region_settings(&self) -> DescribeRegionSettingsFluentBuilder
Constructs a fluent builder for the DescribeRegionSettings
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeRegionSettingsOutput
with field(s):resource_type_opt_in_preference(Option<HashMap::<String, bool>>)
:The services along with the opt-in preferences in the Region.
resource_type_management_preference(Option<HashMap::<String, bool>>)
:Returns whether Backup fully manages the backups for a resource type.
For the benefits of full Backup management, see Full Backup management.
For a list of resource types and whether each supports full Backup management, see the Feature availability by resource table.
If
“DynamoDB”:false
, you can enable full Backup management for DynamoDB backup by enabling Backup’s advanced DynamoDB backup features.
- On failure, responds with
SdkError<DescribeRegionSettingsError>
Source§impl Client
impl Client
Sourcepub fn describe_report_job(&self) -> DescribeReportJobFluentBuilder
pub fn describe_report_job(&self) -> DescribeReportJobFluentBuilder
Constructs a fluent builder for the DescribeReportJob
operation.
- The fluent builder is configurable:
report_job_id(impl Into<String>)
/set_report_job_id(Option<String>)
:
required: trueThe identifier of the report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. The report job ID cannot be edited.
- On success, responds with
DescribeReportJobOutput
with field(s):report_job(Option<ReportJob>)
:The information about a report job, including its completion and creation times, report destination, unique report job ID, Amazon Resource Name (ARN), report template, status, and status message.
- On failure, responds with
SdkError<DescribeReportJobError>
Source§impl Client
impl Client
Sourcepub fn describe_report_plan(&self) -> DescribeReportPlanFluentBuilder
pub fn describe_report_plan(&self) -> DescribeReportPlanFluentBuilder
Constructs a fluent builder for the DescribeReportPlan
operation.
- The fluent builder is configurable:
report_plan_name(impl Into<String>)
/set_report_plan_name(Option<String>)
:
required: trueThe unique name of a report plan.
- On success, responds with
DescribeReportPlanOutput
with field(s):report_plan(Option<ReportPlan>)
:Returns details about the report plan that is specified by its name. These details include the report plan’s Amazon Resource Name (ARN), description, settings, delivery channel, deployment status, creation time, and last attempted and successful run times.
- On failure, responds with
SdkError<DescribeReportPlanError>
Source§impl Client
impl Client
Sourcepub fn describe_restore_job(&self) -> DescribeRestoreJobFluentBuilder
pub fn describe_restore_job(&self) -> DescribeRestoreJobFluentBuilder
Constructs a fluent builder for the DescribeRestoreJob
operation.
- The fluent builder is configurable:
restore_job_id(impl Into<String>)
/set_restore_job_id(Option<String>)
:
required: trueUniquely identifies the job that restores a recovery point.
- On success, responds with
DescribeRestoreJobOutput
with field(s):account_id(Option<String>)
:Returns the account ID that owns the restore job.
restore_job_id(Option<String>)
:Uniquely identifies the job that restores a recovery point.
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
.creation_date(Option<DateTime>)
:The date and time that a restore 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 restore 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.status(Option<RestoreJobStatus>)
:Status code specifying the state of the job that is initiated by Backup to restore a recovery point.
status_message(Option<String>)
:A message showing the status of a job to restore a recovery point.
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 the restored resource.
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
.expected_completion_time_minutes(Option<i64>)
:The amount of time in minutes that a job restoring a recovery point is expected to take.
created_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource that was created by the restore job.
The format of the ARN depends on the resource type of the backed-up resource.
resource_type(Option<String>)
:Returns metadata associated with a restore job listed by resource type.
recovery_point_creation_date(Option<DateTime>)
:The creation date of the recovery point made by the specifed restore job.
created_by(Option<RestoreJobCreator>)
:Contains identifying information about the creation of a restore job.
validation_status(Option<RestoreValidationStatus>)
:The status of validation run on the indicated restore job.
validation_status_message(Option<String>)
:The status message.
deletion_status(Option<RestoreDeletionStatus>)
:The status of the data generated by the restore test.
deletion_status_message(Option<String>)
:This describes the restore job deletion status.
- On failure, responds with
SdkError<DescribeRestoreJobError>
Source§impl Client
impl Client
Sourcepub fn disassociate_recovery_point(
&self,
) -> DisassociateRecoveryPointFluentBuilder
pub fn disassociate_recovery_point( &self, ) -> DisassociateRecoveryPointFluentBuilder
Constructs a fluent builder for the DisassociateRecoveryPoint
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe unique name of an Backup vault.
recovery_point_arn(impl Into<String>)
/set_recovery_point_arn(Option<String>)
:
required: trueAn Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.
- On success, responds with
DisassociateRecoveryPointOutput
- On failure, responds with
SdkError<DisassociateRecoveryPointError>
Source§impl Client
impl Client
Sourcepub fn disassociate_recovery_point_from_parent(
&self,
) -> DisassociateRecoveryPointFromParentFluentBuilder
pub fn disassociate_recovery_point_from_parent( &self, ) -> DisassociateRecoveryPointFromParentFluentBuilder
Constructs a fluent builder for the DisassociateRecoveryPointFromParent
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe name of a logical container where the child (nested) recovery point is 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: trueThe Amazon Resource Name (ARN) that uniquely identifies the child (nested) recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
- On success, responds with
DisassociateRecoveryPointFromParentOutput
- On failure, responds with
SdkError<DisassociateRecoveryPointFromParentError>
Source§impl Client
impl Client
Sourcepub fn export_backup_plan_template(
&self,
) -> ExportBackupPlanTemplateFluentBuilder
pub fn export_backup_plan_template( &self, ) -> ExportBackupPlanTemplateFluentBuilder
Constructs a fluent builder for the ExportBackupPlanTemplate
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
- On success, responds with
ExportBackupPlanTemplateOutput
with field(s):backup_plan_template_json(Option<String>)
:The body of a backup plan template in JSON format.
This is a signed JSON document that cannot be modified before being passed to
GetBackupPlanFromJSON.
- On failure, responds with
SdkError<ExportBackupPlanTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_backup_plan(&self) -> GetBackupPlanFluentBuilder
pub fn get_backup_plan(&self) -> GetBackupPlanFluentBuilder
Constructs a fluent builder for the GetBackupPlan
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:
required: falseUnique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
- On success, responds with
GetBackupPlanOutput
with field(s):backup_plan(Option<BackupPlan>)
:Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.backup_plan_id(Option<String>)
:Uniquely identifies a backup plan.
backup_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.version_id(Option<String>)
:Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
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.
creation_date(Option<DateTime>)
:The date and time that a backup plan 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.deletion_date(Option<DateTime>)
:The date and time that a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.last_execution_date(Option<DateTime>)
:The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.advanced_backup_settings(Option<Vec::<AdvancedBackupSetting>>)
:Contains a list of
BackupOptions
for each resource type. The list is populated only if the advanced option is set for the backup plan.
- On failure, responds with
SdkError<GetBackupPlanError>
Source§impl Client
impl Client
Sourcepub fn get_backup_plan_from_json(&self) -> GetBackupPlanFromJSONFluentBuilder
pub fn get_backup_plan_from_json(&self) -> GetBackupPlanFromJSONFluentBuilder
Constructs a fluent builder for the GetBackupPlanFromJSON
operation.
- The fluent builder is configurable:
backup_plan_template_json(impl Into<String>)
/set_backup_plan_template_json(Option<String>)
:
required: trueA customer-supplied backup plan document in JSON format.
- On success, responds with
GetBackupPlanFromJsonOutput
with field(s):backup_plan(Option<BackupPlan>)
:Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.
- On failure, responds with
SdkError<GetBackupPlanFromJSONError>
Source§impl Client
impl Client
Sourcepub fn get_backup_plan_from_template(
&self,
) -> GetBackupPlanFromTemplateFluentBuilder
pub fn get_backup_plan_from_template( &self, ) -> GetBackupPlanFromTemplateFluentBuilder
Constructs a fluent builder for the GetBackupPlanFromTemplate
operation.
- The fluent builder is configurable:
backup_plan_template_id(impl Into<String>)
/set_backup_plan_template_id(Option<String>)
:
required: trueUniquely identifies a stored backup plan template.
- On success, responds with
GetBackupPlanFromTemplateOutput
with field(s):backup_plan_document(Option<BackupPlan>)
:Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.
- On failure, responds with
SdkError<GetBackupPlanFromTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_backup_selection(&self) -> GetBackupSelectionFluentBuilder
pub fn get_backup_selection(&self) -> GetBackupSelectionFluentBuilder
Constructs a fluent builder for the GetBackupSelection
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
selection_id(impl Into<String>)
/set_selection_id(Option<String>)
:
required: trueUniquely identifies the body of a request to assign a set of resources to a backup plan.
- On success, responds with
GetBackupSelectionOutput
with field(s):backup_selection(Option<BackupSelection>)
:Specifies the body of a request to assign a set of resources to a backup plan.
selection_id(Option<String>)
:Uniquely identifies the body of a request to assign a set of resources to a backup plan.
backup_plan_id(Option<String>)
:Uniquely identifies a backup plan.
creation_date(Option<DateTime>)
:The date and time a backup selection 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.
- On failure, responds with
SdkError<GetBackupSelectionError>
Source§impl Client
impl Client
Sourcepub fn get_backup_vault_access_policy(
&self,
) -> GetBackupVaultAccessPolicyFluentBuilder
pub fn get_backup_vault_access_policy( &self, ) -> GetBackupVaultAccessPolicyFluentBuilder
Constructs a fluent builder for the GetBackupVaultAccessPolicy
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
- On success, responds with
GetBackupVaultAccessPolicyOutput
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
.policy(Option<String>)
:The backup vault access policy document in JSON format.
- On failure, responds with
SdkError<GetBackupVaultAccessPolicyError>
Source§impl Client
impl Client
Sourcepub fn get_backup_vault_notifications(
&self,
) -> GetBackupVaultNotificationsFluentBuilder
pub fn get_backup_vault_notifications( &self, ) -> GetBackupVaultNotificationsFluentBuilder
Constructs a fluent builder for the GetBackupVaultNotifications
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
- On success, responds with
GetBackupVaultNotificationsOutput
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
.sns_topic_arn(Option<String>)
:An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic; for example,
arn:aws:sns:us-west-2:111122223333:MyTopic
.backup_vault_events(Option<Vec::<BackupVaultEvent>>)
:An array of events that indicate the status of jobs to back up resources to the backup vault.
- On failure, responds with
SdkError<GetBackupVaultNotificationsError>
Source§impl Client
impl Client
Sourcepub fn get_legal_hold(&self) -> GetLegalHoldFluentBuilder
pub fn get_legal_hold(&self) -> GetLegalHoldFluentBuilder
Constructs a fluent builder for the GetLegalHold
operation.
- The fluent builder is configurable:
legal_hold_id(impl Into<String>)
/set_legal_hold_id(Option<String>)
:
required: trueThe ID of the legal hold.
- On success, responds with
GetLegalHoldOutput
with field(s):title(Option<String>)
:The title of the legal hold.
status(Option<LegalHoldStatus>)
:The status of the legal hold.
description(Option<String>)
:The description of the legal hold.
cancel_description(Option<String>)
:The reason for removing the legal hold.
legal_hold_id(Option<String>)
:The ID of the legal hold.
legal_hold_arn(Option<String>)
:The framework ARN for the specified legal hold. The format of the ARN depends on the resource type.
creation_date(Option<DateTime>)
:The time when the legal hold was created.
cancellation_date(Option<DateTime>)
:The time when the legal hold was cancelled.
retain_record_until(Option<DateTime>)
:The date and time until which the legal hold record is retained.
recovery_point_selection(Option<RecoveryPointSelection>)
:The criteria to assign a set of resources, such as resource types or backup vaults.
- On failure, responds with
SdkError<GetLegalHoldError>
Source§impl Client
impl Client
Sourcepub fn get_recovery_point_index_details(
&self,
) -> GetRecoveryPointIndexDetailsFluentBuilder
pub fn get_recovery_point_index_details( &self, ) -> GetRecoveryPointIndexDetailsFluentBuilder
Constructs a fluent builder for the GetRecoveryPointIndexDetails
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
Accepted characters include lowercase letters, numbers, and hyphens.
recovery_point_arn(impl Into<String>)
/set_recovery_point_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
- On success, responds with
GetRecoveryPointIndexDetailsOutput
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_arn(Option<String>)
:An ARN that uniquely identifies the backup vault where the recovery point index is stored.
For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.source_resource_arn(Option<String>)
:A string of the Amazon Resource Name (ARN) that uniquely identifies the source resource.
index_creation_date(Option<DateTime>)
:The date and time that a backup index was 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.index_deletion_date(Option<DateTime>)
:The date and time that a backup index was deleted, 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.index_completion_date(Option<DateTime>)
:The date and time that a backup index finished creation, 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.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 detailed message explaining the status of a backup index associated with the recovery point.
total_items_indexed(Option<i64>)
:Count of items within the backup index associated with the recovery point.
- On failure, responds with
SdkError<GetRecoveryPointIndexDetailsError>
Source§impl Client
impl Client
Sourcepub fn get_recovery_point_restore_metadata(
&self,
) -> GetRecoveryPointRestoreMetadataFluentBuilder
pub fn get_recovery_point_restore_metadata( &self, ) -> GetRecoveryPointRestoreMetadataFluentBuilder
Constructs a fluent builder for the GetRecoveryPointRestoreMetadata
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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: trueAn 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
.backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThe account ID of the specified backup vault.
- On success, responds with
GetRecoveryPointRestoreMetadataOutput
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 ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.restore_metadata(Option<HashMap::<String, String>>)
:The set of metadata key-value pairs that describe the original configuration of the backed-up resource. These values vary depending on the service that is being restored.
resource_type(Option<String>)
:The resource type of the recovery point.
- On failure, responds with
SdkError<GetRecoveryPointRestoreMetadataError>
Source§impl Client
impl Client
Sourcepub fn get_restore_job_metadata(&self) -> GetRestoreJobMetadataFluentBuilder
pub fn get_restore_job_metadata(&self) -> GetRestoreJobMetadataFluentBuilder
Constructs a fluent builder for the GetRestoreJobMetadata
operation.
- The fluent builder is configurable:
restore_job_id(impl Into<String>)
/set_restore_job_id(Option<String>)
:
required: trueThis is a unique identifier of a restore job within Backup.
- On success, responds with
GetRestoreJobMetadataOutput
with field(s):restore_job_id(Option<String>)
:This is a unique identifier of a restore job within Backup.
metadata(Option<HashMap::<String, String>>)
:This contains the metadata of the specified backup job.
- On failure, responds with
SdkError<GetRestoreJobMetadataError>
Source§impl Client
impl Client
Sourcepub fn get_restore_testing_inferred_metadata(
&self,
) -> GetRestoreTestingInferredMetadataFluentBuilder
pub fn get_restore_testing_inferred_metadata( &self, ) -> GetRestoreTestingInferredMetadataFluentBuilder
Constructs a fluent builder for the GetRestoreTestingInferredMetadata
operation.
- The fluent builder is configurable:
backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThe account ID of the specified backup vault.
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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 ServicesRegion where they are created. They consist of letters, numbers, and hyphens.
recovery_point_arn(impl Into<String>)
/set_recovery_point_arn(Option<String>)
:
required: trueAn 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
.
- On success, responds with
GetRestoreTestingInferredMetadataOutput
with field(s):inferred_metadata(HashMap::<String, String>)
:This is a string map of the metadata inferred from the request.
- On failure, responds with
SdkError<GetRestoreTestingInferredMetadataError>
Source§impl Client
impl Client
Sourcepub fn get_restore_testing_plan(&self) -> GetRestoreTestingPlanFluentBuilder
pub fn get_restore_testing_plan(&self) -> GetRestoreTestingPlanFluentBuilder
Constructs a fluent builder for the GetRestoreTestingPlan
operation.
- The fluent builder is configurable:
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueRequired unique name of the restore testing plan.
- On success, responds with
GetRestoreTestingPlanOutput
with field(s):restore_testing_plan(Option<RestoreTestingPlanForGet>)
:Specifies the body of a restore testing plan. Includes
RestoreTestingPlanName
.
- On failure, responds with
SdkError<GetRestoreTestingPlanError>
Source§impl Client
impl Client
Sourcepub fn get_restore_testing_selection(
&self,
) -> GetRestoreTestingSelectionFluentBuilder
pub fn get_restore_testing_selection( &self, ) -> GetRestoreTestingSelectionFluentBuilder
Constructs a fluent builder for the GetRestoreTestingSelection
operation.
- The fluent builder is configurable:
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueRequired unique name of the restore testing plan.
restore_testing_selection_name(impl Into<String>)
/set_restore_testing_selection_name(Option<String>)
:
required: trueRequired unique name of the restore testing selection.
- On success, responds with
GetRestoreTestingSelectionOutput
with field(s):restore_testing_selection(Option<RestoreTestingSelectionForGet>)
:Unique name of the restore testing selection.
- On failure, responds with
SdkError<GetRestoreTestingSelectionError>
Source§impl Client
impl Client
Sourcepub fn get_supported_resource_types(
&self,
) -> GetSupportedResourceTypesFluentBuilder
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
impl Client
Sourcepub fn list_backup_job_summaries(&self) -> ListBackupJobSummariesFluentBuilder
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: falseReturns 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: falseThis 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 ofCOMPLETED
and aMessageCategory
with a value other thanSUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count forCompleted 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: falseReturns 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: falseThis parameter returns the job count for the specified message category.
Example accepted strings include
AccessDenied
,Success
, andInvalidParameters
. 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: falseThe 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: falseThe 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: falseThe 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
impl Client
Sourcepub fn list_backup_jobs(&self) -> ListBackupJobsFluentBuilder
pub fn list_backup_jobs(&self) -> ListBackupJobsFluentBuilder
Constructs a fluent builder for the ListBackupJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
by_resource_arn(impl Into<String>)
/set_by_resource_arn(Option<String>)
:
required: falseReturns only backup jobs that match the specified resource Amazon Resource Name (ARN).
by_state(BackupJobState)
/set_by_state(Option<BackupJobState>)
:
required: falseReturns only backup jobs that are in the specified state.
Completed with issues
is a status found only in the Backup console. For API, this status refers to jobs with a state ofCOMPLETED
and aMessageCategory
with a value other thanSUCCESS
; 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 /backup-jobs/?state=COMPLETED
GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED
by_backup_vault_name(impl Into<String>)
/set_by_backup_vault_name(Option<String>)
:
required: falseReturns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
by_created_before(DateTime)
/set_by_created_before(Option<DateTime>)
:
required: falseReturns only backup jobs that were created before the specified date.
by_created_after(DateTime)
/set_by_created_after(Option<DateTime>)
:
required: falseReturns only backup jobs that were created after the specified date.
by_resource_type(impl Into<String>)
/set_by_resource_type(Option<String>)
:
required: falseReturns only backup jobs for the specified resources:
-
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
-
by_account_id(impl Into<String>)
/set_by_account_id(Option<String>)
:
required: falseThe account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Organizations management account, passing
*
returns all jobs across the organization.by_complete_after(DateTime)
/set_by_complete_after(Option<DateTime>)
:
required: falseReturns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
by_complete_before(DateTime)
/set_by_complete_before(Option<DateTime>)
:
required: falseReturns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
by_parent_job_id(impl Into<String>)
/set_by_parent_job_id(Option<String>)
:
required: falseThis is a filter to list child (nested) jobs based on parent job ID.
by_message_category(impl Into<String>)
/set_by_message_category(Option<String>)
:
required: falseThis is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
.View Monitoring
The wildcard () returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
- On success, responds with
ListBackupJobsOutput
with field(s):backup_jobs(Option<Vec::<BackupJob>>)
:An array of structures containing metadata about your backup jobs returned in JSON format.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListBackupJobsError>
Source§impl Client
impl Client
Sourcepub fn list_backup_plan_templates(&self) -> ListBackupPlanTemplatesFluentBuilder
pub fn list_backup_plan_templates(&self) -> ListBackupPlanTemplatesFluentBuilder
Constructs a fluent builder for the ListBackupPlanTemplates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to return.
- On success, responds with
ListBackupPlanTemplatesOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.backup_plan_templates_list(Option<Vec::<BackupPlanTemplatesListMember>>)
:An array of template list items containing metadata about your saved templates.
- On failure, responds with
SdkError<ListBackupPlanTemplatesError>
Source§impl Client
impl Client
Sourcepub fn list_backup_plan_versions(&self) -> ListBackupPlanVersionsFluentBuilder
pub fn list_backup_plan_versions(&self) -> ListBackupPlanVersionsFluentBuilder
Constructs a fluent builder for the ListBackupPlanVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListBackupPlanVersionsOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.backup_plan_versions_list(Option<Vec::<BackupPlansListMember>>)
:An array of version list items containing metadata about your backup plans.
- On failure, responds with
SdkError<ListBackupPlanVersionsError>
Source§impl Client
impl Client
Sourcepub fn list_backup_plans(&self) -> ListBackupPlansFluentBuilder
pub fn list_backup_plans(&self) -> ListBackupPlansFluentBuilder
Constructs a fluent builder for the ListBackupPlans
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
include_deleted(bool)
/set_include_deleted(Option<bool>)
:
required: falseA Boolean value with a default value of
FALSE
that returns deleted backup plans when set toTRUE
.
- On success, responds with
ListBackupPlansOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.backup_plans_list(Option<Vec::<BackupPlansListMember>>)
:Information about the backup plans.
- On failure, responds with
SdkError<ListBackupPlansError>
Source§impl Client
impl Client
Sourcepub fn list_backup_selections(&self) -> ListBackupSelectionsFluentBuilder
pub fn list_backup_selections(&self) -> ListBackupSelectionsFluentBuilder
Constructs a fluent builder for the ListBackupSelections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueUniquely identifies a backup plan.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListBackupSelectionsOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.backup_selections_list(Option<Vec::<BackupSelectionsListMember>>)
:An array of backup selection list items containing metadata about each resource in the list.
- On failure, responds with
SdkError<ListBackupSelectionsError>
Source§impl Client
impl Client
Sourcepub fn list_backup_vaults(&self) -> ListBackupVaultsFluentBuilder
pub fn list_backup_vaults(&self) -> ListBackupVaultsFluentBuilder
Constructs a fluent builder for the ListBackupVaults
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
by_vault_type(VaultType)
/set_by_vault_type(Option<VaultType>)
:
required: falseThis parameter will sort the list of vaults by vault type.
by_shared(bool)
/set_by_shared(Option<bool>)
:
required: falseThis parameter will sort the list of vaults by shared vaults.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListBackupVaultsOutput
with field(s):backup_vault_list(Option<Vec::<BackupVaultListMember>>)
:An array of backup vault list members containing vault metadata, including Amazon Resource Name (ARN), display name, creation date, number of saved recovery points, and encryption information if the resources saved in the backup vault are encrypted.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListBackupVaultsError>
Source§impl Client
impl Client
Sourcepub fn list_copy_job_summaries(&self) -> ListCopyJobSummariesFluentBuilder
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: falseReturns 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: falseThis 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: falseReturns 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: falseThis parameter returns the job count for the specified message category.
Example accepted strings include
AccessDenied
,Success
, andInvalidParameters
. 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: falseThe 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: falseThis 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: falseThe 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
impl Client
Sourcepub fn list_copy_jobs(&self) -> ListCopyJobsFluentBuilder
pub fn list_copy_jobs(&self) -> ListCopyJobsFluentBuilder
Constructs a fluent builder for the ListCopyJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
by_resource_arn(impl Into<String>)
/set_by_resource_arn(Option<String>)
:
required: falseReturns only copy jobs that match the specified resource Amazon Resource Name (ARN).
by_state(CopyJobState)
/set_by_state(Option<CopyJobState>)
:
required: falseReturns only copy jobs that are in the specified state.
by_created_before(DateTime)
/set_by_created_before(Option<DateTime>)
:
required: falseReturns only copy jobs that were created before the specified date.
by_created_after(DateTime)
/set_by_created_after(Option<DateTime>)
:
required: falseReturns only copy jobs that were created after the specified date.
by_resource_type(impl Into<String>)
/set_by_resource_type(Option<String>)
:
required: falseReturns only backup jobs for the specified resources:
-
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
-
by_destination_vault_arn(impl Into<String>)
/set_by_destination_vault_arn(Option<String>)
:
required: falseAn Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.by_account_id(impl Into<String>)
/set_by_account_id(Option<String>)
:
required: falseThe account ID to list the jobs from. Returns only copy jobs associated with the specified account ID.
by_complete_before(DateTime)
/set_by_complete_before(Option<DateTime>)
:
required: falseReturns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
by_complete_after(DateTime)
/set_by_complete_after(Option<DateTime>)
:
required: falseReturns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
by_parent_job_id(impl Into<String>)
/set_by_parent_job_id(Option<String>)
:
required: falseThis is a filter to list child (nested) jobs based on parent job ID.
by_message_category(impl Into<String>)
/set_by_message_category(Option<String>)
:
required: falseThis is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andINVALIDPARAMETERS
.View Monitoring for a list of accepted strings.
The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
- On success, responds with
ListCopyJobsOutput
with field(s):copy_jobs(Option<Vec::<CopyJob>>)
:An array of structures containing metadata about your copy jobs returned in JSON format.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListCopyJobsError>
Source§impl Client
impl Client
Sourcepub fn list_frameworks(&self) -> ListFrameworksFluentBuilder
pub fn list_frameworks(&self) -> ListFrameworksFluentBuilder
Constructs a fluent builder for the ListFrameworks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On success, responds with
ListFrameworksOutput
with field(s):frameworks(Option<Vec::<Framework>>)
:The frameworks with details for each framework, including the framework name, Amazon Resource Name (ARN), description, number of controls, creation time, and deployment status.
next_token(Option<String>)
:An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On failure, responds with
SdkError<ListFrameworksError>
Source§impl Client
impl Client
Sourcepub fn list_indexed_recovery_points(
&self,
) -> ListIndexedRecoveryPointsFluentBuilder
pub fn list_indexed_recovery_points( &self, ) -> ListIndexedRecoveryPointsFluentBuilder
Constructs a fluent builder for the ListIndexedRecoveryPoints
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned recovery points.
For example, if a request is made to return
MaxResults
number of indexed recovery points,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of resource list items to be returned.
source_resource_arn(impl Into<String>)
/set_source_resource_arn(Option<String>)
:
required: falseA string of the Amazon Resource Name (ARN) that uniquely identifies the source resource.
created_before(DateTime)
/set_created_before(Option<DateTime>)
:
required: falseReturns only indexed recovery points that were created before the specified date.
created_after(DateTime)
/set_created_after(Option<DateTime>)
:
required: falseReturns only indexed recovery points that were created after the specified date.
resource_type(impl Into<String>)
/set_resource_type(Option<String>)
:
required: falseReturns a list of indexed recovery points for the specified resource type(s).
Accepted values include:
-
EBS
for Amazon Elastic Block Store -
S3
for Amazon Simple Storage Service (Amazon S3)
-
index_status(IndexStatus)
/set_index_status(Option<IndexStatus>)
:
required: falseInclude this parameter to filter the returned list by the indicated statuses.
Accepted values:
PENDING
|ACTIVE
|FAILED
|DELETING
A recovery point with an index that has the status of
ACTIVE
can be included in a search.
- On success, responds with
ListIndexedRecoveryPointsOutput
with field(s):indexed_recovery_points(Option<Vec::<IndexedRecoveryPoint>>)
:This is a list of recovery points that have an associated index, belonging to the specified account.
next_token(Option<String>)
:The next item following a partial list of returned recovery points.
For example, if a request is made to return
MaxResults
number of indexed recovery points,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<ListIndexedRecoveryPointsError>
Source§impl Client
impl Client
Sourcepub fn list_legal_holds(&self) -> ListLegalHoldsFluentBuilder
pub fn list_legal_holds(&self) -> ListLegalHoldsFluentBuilder
Constructs a fluent builder for the ListLegalHolds
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of resource list items to be returned.
- On success, responds with
ListLegalHoldsOutput
with field(s):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.legal_holds(Option<Vec::<LegalHold>>)
:This is an array of returned legal holds, both active and previous.
- On failure, responds with
SdkError<ListLegalHoldsError>
Source§impl Client
impl Client
Sourcepub fn list_protected_resources(&self) -> ListProtectedResourcesFluentBuilder
pub fn list_protected_resources(&self) -> ListProtectedResourcesFluentBuilder
Constructs a fluent builder for the ListProtectedResources
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListProtectedResourcesOutput
with field(s):results(Option<Vec::<ProtectedResource>>)
:An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListProtectedResourcesError>
Source§impl Client
impl Client
Sourcepub fn list_protected_resources_by_backup_vault(
&self,
) -> ListProtectedResourcesByBackupVaultFluentBuilder
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()
.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe list of protected resources by backup vault within the vault(s) you specify by name.
backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThe list of protected resources by backup vault within the vault(s) you specify by account ID.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListProtectedResourcesByBackupVaultOutput
with field(s):results(Option<Vec::<ProtectedResource>>)
:These are the results returned for the request ListProtectedResourcesByBackupVault.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListProtectedResourcesByBackupVaultError>
Source§impl Client
impl Client
Sourcepub fn list_recovery_points_by_backup_vault(
&self,
) -> ListRecoveryPointsByBackupVaultFluentBuilder
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()
.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
Backup vault name might not be available when a supported service creates the backup.
backup_vault_account_id(impl Into<String>)
/set_backup_vault_account_id(Option<String>)
:
required: falseThis parameter will sort the list of recovery points by account ID.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
by_resource_arn(impl Into<String>)
/set_by_resource_arn(Option<String>)
:
required: falseReturns only recovery points that match the specified resource Amazon Resource Name (ARN).
by_resource_type(impl Into<String>)
/set_by_resource_type(Option<String>)
:
required: falseReturns only recovery points that match the specified resource type(s):
-
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
-
by_backup_plan_id(impl Into<String>)
/set_by_backup_plan_id(Option<String>)
:
required: falseReturns only recovery points that match the specified backup plan ID.
by_created_before(DateTime)
/set_by_created_before(Option<DateTime>)
:
required: falseReturns only recovery points that were created before the specified timestamp.
by_created_after(DateTime)
/set_by_created_after(Option<DateTime>)
:
required: falseReturns only recovery points that were created after the specified timestamp.
by_parent_recovery_point_arn(impl Into<String>)
/set_by_parent_recovery_point_arn(Option<String>)
:
required: falseThis returns only recovery points that match the specified parent (composite) recovery point Amazon Resource Name (ARN).
- On success, responds with
ListRecoveryPointsByBackupVaultOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.recovery_points(Option<Vec::<RecoveryPointByBackupVault>>)
:An array of objects that contain detailed information about recovery points saved in a backup vault.
- On failure, responds with
SdkError<ListRecoveryPointsByBackupVaultError>
Source§impl Client
impl Client
Sourcepub fn list_recovery_points_by_legal_hold(
&self,
) -> ListRecoveryPointsByLegalHoldFluentBuilder
pub fn list_recovery_points_by_legal_hold( &self, ) -> ListRecoveryPointsByLegalHoldFluentBuilder
Constructs a fluent builder for the ListRecoveryPointsByLegalHold
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
legal_hold_id(impl Into<String>)
/set_legal_hold_id(Option<String>)
:
required: trueThe ID of the legal hold.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of resource list items to be returned.
- On success, responds with
ListRecoveryPointsByLegalHoldOutput
with field(s):recovery_points(Option<Vec::<RecoveryPointMember>>)
:The recovery points.
next_token(Option<String>)
:The next item following a partial list of returned resources.
- On failure, responds with
SdkError<ListRecoveryPointsByLegalHoldError>
Source§impl Client
impl Client
Sourcepub fn list_recovery_points_by_resource(
&self,
) -> ListRecoveryPointsByResourceFluentBuilder
pub fn list_recovery_points_by_resource( &self, ) -> ListRecoveryPointsByResourceFluentBuilder
Constructs a fluent builder for the ListRecoveryPointsByResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
Amazon RDS requires a value of at least 20.
managed_by_aws_backup_only(bool)
/set_managed_by_aws_backup_only(Option<bool>)
:
required: falseThis attribute filters recovery points based on ownership.
If this is set to
TRUE
, the response will contain recovery points associated with the selected resources that are managed by Backup.If this is set to
FALSE
, the response will contain all recovery points associated with the selected resource.Type: Boolean
- On success, responds with
ListRecoveryPointsByResourceOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.recovery_points(Option<Vec::<RecoveryPointByResource>>)
:An array of objects that contain detailed information about recovery points of the specified resource type.
Only Amazon EFS and Amazon EC2 recovery points return BackupVaultName.
- On failure, responds with
SdkError<ListRecoveryPointsByResourceError>
Source§impl Client
impl Client
Sourcepub fn list_report_jobs(&self) -> ListReportJobsFluentBuilder
pub fn list_report_jobs(&self) -> ListReportJobsFluentBuilder
Constructs a fluent builder for the ListReportJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
by_report_plan_name(impl Into<String>)
/set_by_report_plan_name(Option<String>)
:
required: falseReturns only report jobs with the specified report plan name.
by_creation_before(DateTime)
/set_by_creation_before(Option<DateTime>)
:
required: falseReturns only report jobs that were created before the date and time specified in Unix format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents Friday, January 26, 2018 12:11:30 AM.
by_creation_after(DateTime)
/set_by_creation_after(Option<DateTime>)
:
required: falseReturns only report jobs that were created after the date and time specified in Unix format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents Friday, January 26, 2018 12:11:30 AM.
by_status(impl Into<String>)
/set_by_status(Option<String>)
:
required: falseReturns only report jobs that are in the specified status. The statuses are:
CREATED | RUNNING | COMPLETED | FAILED
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On success, responds with
ListReportJobsOutput
with field(s):report_jobs(Option<Vec::<ReportJob>>)
:Details about your report jobs in JSON format.
next_token(Option<String>)
:An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On failure, responds with
SdkError<ListReportJobsError>
Source§impl Client
impl Client
Sourcepub fn list_report_plans(&self) -> ListReportPlansFluentBuilder
pub fn list_report_plans(&self) -> ListReportPlansFluentBuilder
Constructs a fluent builder for the ListReportPlans
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On success, responds with
ListReportPlansOutput
with field(s):report_plans(Option<Vec::<ReportPlan>>)
:The report plans with detailed information for each plan. This information includes the Amazon Resource Name (ARN), report plan name, description, settings, delivery channel, deployment status, creation time, and last times the report plan attempted to and successfully ran.
next_token(Option<String>)
:An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- On failure, responds with
SdkError<ListReportPlansError>
Source§impl Client
impl Client
Sourcepub fn list_restore_job_summaries(&self) -> ListRestoreJobSummariesFluentBuilder
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: falseReturns 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: falseThis 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: falseReturns 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: falseThe 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: falseThis 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: falseThe 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
impl Client
Sourcepub fn list_restore_jobs(&self) -> ListRestoreJobsFluentBuilder
pub fn list_restore_jobs(&self) -> ListRestoreJobsFluentBuilder
Constructs a fluent builder for the ListRestoreJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
by_account_id(impl Into<String>)
/set_by_account_id(Option<String>)
:
required: falseThe account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.
by_resource_type(impl Into<String>)
/set_by_resource_type(Option<String>)
:
required: falseInclude this parameter to return only restore jobs for the specified resources:
-
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
-
by_created_before(DateTime)
/set_by_created_before(Option<DateTime>)
:
required: falseReturns only restore jobs that were created before the specified date.
by_created_after(DateTime)
/set_by_created_after(Option<DateTime>)
:
required: falseReturns only restore jobs that were created after the specified date.
by_status(RestoreJobStatus)
/set_by_status(Option<RestoreJobStatus>)
:
required: falseReturns only restore jobs associated with the specified job status.
by_complete_before(DateTime)
/set_by_complete_before(Option<DateTime>)
:
required: falseReturns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
by_complete_after(DateTime)
/set_by_complete_after(Option<DateTime>)
:
required: falseReturns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
by_restore_testing_plan_arn(impl Into<String>)
/set_by_restore_testing_plan_arn(Option<String>)
:
required: falseThis returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN).
- On success, responds with
ListRestoreJobsOutput
with field(s):restore_jobs(Option<Vec::<RestoreJobsListMember>>)
:An array of objects that contain detailed information about jobs to restore saved resources.
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListRestoreJobsError>
Source§impl Client
impl Client
Sourcepub fn list_restore_jobs_by_protected_resource(
&self,
) -> ListRestoreJobsByProtectedResourceFluentBuilder
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()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueReturns only restore jobs that match the specified resource Amazon Resource Name (ARN).
by_status(RestoreJobStatus)
/set_by_status(Option<RestoreJobStatus>)
:
required: falseReturns only restore jobs associated with the specified job status.
by_recovery_point_creation_date_after(DateTime)
/set_by_recovery_point_creation_date_after(Option<DateTime>)
:
required: falseReturns only restore jobs of recovery points that were created after the specified date.
by_recovery_point_creation_date_before(DateTime)
/set_by_recovery_point_creation_date_before(Option<DateTime>)
:
required: falseReturns only restore jobs of recovery points that were created before the specified date.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request ismade to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListRestoreJobsByProtectedResourceOutput
with field(s):restore_jobs(Option<Vec::<RestoreJobsListMember>>)
:An array of objects that contain detailed information about jobs to restore saved resources.>
next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows youto return more items in your list starting at the location pointed to by the next token
- On failure, responds with
SdkError<ListRestoreJobsByProtectedResourceError>
Source§impl Client
impl Client
Sourcepub fn list_restore_testing_plans(&self) -> ListRestoreTestingPlansFluentBuilder
pub fn list_restore_testing_plans(&self) -> ListRestoreTestingPlansFluentBuilder
Constructs a fluent builder for the ListRestoreTestingPlans
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.
- On success, responds with
ListRestoreTestingPlansOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.restore_testing_plans(Vec::<RestoreTestingPlanForList>)
:This is a returned list of restore testing plans.
- On failure, responds with
SdkError<ListRestoreTestingPlansError>
Source§impl Client
impl Client
Sourcepub fn list_restore_testing_selections(
&self,
) -> ListRestoreTestingSelectionsFluentBuilder
pub fn list_restore_testing_selections( &self, ) -> ListRestoreTestingSelectionsFluentBuilder
Constructs a fluent builder for the ListRestoreTestingSelections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueReturns restore testing selections by the specified restore testing plan name.
- On success, responds with
ListRestoreTestingSelectionsOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.restore_testing_selections(Vec::<RestoreTestingSelectionForList>)
:The returned restore testing selections associated with the restore testing plan.
- On failure, responds with
SdkError<ListRestoreTestingSelectionsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTags
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the type of resource. Valid targets for
ListTags
are recovery points, backup plans, and backup vaults.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of items to be returned.
- On success, responds with
ListTagsOutput
with field(s):next_token(Option<String>)
:The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.tags(Option<HashMap::<String, String>>)
:Information about the tags.
- On failure, responds with
SdkError<ListTagsError>
Source§impl Client
impl Client
Sourcepub fn put_backup_vault_access_policy(
&self,
) -> PutBackupVaultAccessPolicyFluentBuilder
pub fn put_backup_vault_access_policy( &self, ) -> PutBackupVaultAccessPolicyFluentBuilder
Constructs a fluent builder for the PutBackupVaultAccessPolicy
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
policy(impl Into<String>)
/set_policy(Option<String>)
:
required: falseThe backup vault access policy document in JSON format.
- On success, responds with
PutBackupVaultAccessPolicyOutput
- On failure, responds with
SdkError<PutBackupVaultAccessPolicyError>
Source§impl Client
impl Client
Sourcepub fn put_backup_vault_lock_configuration(
&self,
) -> PutBackupVaultLockConfigurationFluentBuilder
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: trueThe 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: falseThe 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: falseThe 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: falseThe 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 usingPutBackupVaultLockConfiguration
. 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 usingPutBackupVaultLockConfiguration
at any time.
- On success, responds with
PutBackupVaultLockConfigurationOutput
- On failure, responds with
SdkError<PutBackupVaultLockConfigurationError>
Source§impl Client
impl Client
Sourcepub fn put_backup_vault_notifications(
&self,
) -> PutBackupVaultNotificationsFluentBuilder
pub fn put_backup_vault_notifications( &self, ) -> PutBackupVaultNotificationsFluentBuilder
Constructs a fluent builder for the PutBackupVaultNotifications
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
sns_topic_arn(impl Into<String>)
/set_sns_topic_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example,
arn:aws:sns:us-west-2:111122223333:MyVaultTopic
.backup_vault_events(BackupVaultEvent)
/set_backup_vault_events(Option<Vec::<BackupVaultEvent>>)
:
required: trueAn array of events that indicate the status of jobs to back up resources to the backup vault.
For common use cases and code samples, see Using Amazon SNS to track Backup events.
The following events are supported:
-
BACKUP_JOB_STARTED
|BACKUP_JOB_COMPLETED
-
COPY_JOB_STARTED
|COPY_JOB_SUCCESSFUL
|COPY_JOB_FAILED
-
RESTORE_JOB_STARTED
|RESTORE_JOB_COMPLETED
|RECOVERY_POINT_MODIFIED
-
S3_BACKUP_OBJECT_FAILED
|S3_RESTORE_OBJECT_FAILED
The list below includes both supported events and deprecated events that are no longer in use (for reference). Deprecated events do not return statuses or notifications. Refer to the list above for the supported events.
-
- On success, responds with
PutBackupVaultNotificationsOutput
- On failure, responds with
SdkError<PutBackupVaultNotificationsError>
Source§impl Client
impl Client
Sourcepub fn put_restore_validation_result(
&self,
) -> PutRestoreValidationResultFluentBuilder
pub fn put_restore_validation_result( &self, ) -> PutRestoreValidationResultFluentBuilder
Constructs a fluent builder for the PutRestoreValidationResult
operation.
- The fluent builder is configurable:
restore_job_id(impl Into<String>)
/set_restore_job_id(Option<String>)
:
required: trueThis is a unique identifier of a restore job within Backup.
validation_status(RestoreValidationStatus)
/set_validation_status(Option<RestoreValidationStatus>)
:
required: trueThe status of your restore validation.
validation_status_message(impl Into<String>)
/set_validation_status_message(Option<String>)
:
required: falseThis is an optional message string you can input to describe the validation status for the restore test validation.
- On success, responds with
PutRestoreValidationResultOutput
- On failure, responds with
SdkError<PutRestoreValidationResultError>
Source§impl Client
impl Client
Sourcepub fn start_backup_job(&self) -> StartBackupJobFluentBuilder
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: trueThe 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: trueAn 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: trueSpecifies 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: falseA 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: falseA 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 toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).complete_window_minutes(i64)
/set_complete_window_minutes(Option<i64>)
:
required: falseA 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: falseThe 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: falseThe tags to assign to the resources.
backup_options(impl Into<String>, impl Into<String>)
/set_backup_options(Option<HashMap::<String, String>>)
:
required: falseThe 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 theWindowsVSS
backup option and create a Windows VSS backup. Set to“WindowsVSS”“disabled”
to create a regular backup. TheWindowsVSS
option is not enabled by default.index(Index)
/set_index(Option<Index>)
:
required: falseInclude 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
orDISABLED
.To create a backup index for an eligible
ACTIVE
recovery point that does not yet have a backup index, set value toENABLED
.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
impl Client
Sourcepub fn start_copy_job(&self) -> StartCopyJobFluentBuilder
pub fn start_copy_job(&self) -> StartCopyJobFluentBuilder
Constructs a fluent builder for the StartCopyJob
operation.
- The fluent builder is configurable:
recovery_point_arn(impl Into<String>)
/set_recovery_point_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
source_backup_vault_name(impl Into<String>)
/set_source_backup_vault_name(Option<String>)
:
required: trueThe name of a logical source 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.
destination_backup_vault_arn(impl Into<String>)
/set_destination_backup_vault_arn(Option<String>)
:
required: trueAn Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: trueSpecifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
StartCopyJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.lifecycle(Lifecycle)
/set_lifecycle(Option<Lifecycle>)
:
required: falseSpecifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can’t 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.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.
- On success, responds with
StartCopyJobOutput
with field(s):copy_job_id(Option<String>)
:Uniquely identifies a copy job.
creation_date(Option<DateTime>)
:The date and time that a copy 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) copy job.
- On failure, responds with
SdkError<StartCopyJobError>
Source§impl Client
impl Client
Sourcepub fn start_report_job(&self) -> StartReportJobFluentBuilder
pub fn start_report_job(&self) -> StartReportJobFluentBuilder
Constructs a fluent builder for the StartReportJob
operation.
- The fluent builder is configurable:
report_plan_name(impl Into<String>)
/set_report_plan_name(Option<String>)
:
required: trueThe unique name of a report plan.
idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
StartReportJobInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
- On success, responds with
StartReportJobOutput
with field(s):report_job_id(Option<String>)
:The identifier of the report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. The report job ID cannot be edited.
- On failure, responds with
SdkError<StartReportJobError>
Source§impl Client
impl Client
Sourcepub fn start_restore_job(&self) -> StartRestoreJobFluentBuilder
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: trueAn 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: trueA set of metadata key-value pairs.
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 byGetRecoveryPointRestoreMetadata
might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.For more information about the metadata for each resource, see the following:
iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: falseThe 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: falseA 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: falseStarts a job to restore a recovery point for one of the following resources:
-
Aurora
- Amazon Aurora -
DocumentDB
- Amazon DocumentDB -
CloudFormation
- CloudFormation -
DynamoDB
- Amazon DynamoDB -
EBS
- Amazon Elastic Block Store -
EC2
- Amazon Elastic Compute Cloud -
EFS
- Amazon Elastic File System -
FSx
- Amazon FSx -
Neptune
- Amazon Neptune -
RDS
- Amazon Relational Database Service -
Redshift
- Amazon Redshift -
Storage Gateway
- Storage Gateway -
S3
- Amazon Simple Storage Service -
Timestream
- Amazon Timestream -
VirtualMachine
- Virtual machines
-
copy_source_tags_to_restored_resource(bool)
/set_copy_source_tags_to_restored_resource(Option<bool>)
:
required: falseThis 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):restore_job_id(Option<String>)
:Uniquely identifies the job that restores a recovery point.
- On failure, responds with
SdkError<StartRestoreJobError>
Source§impl Client
impl Client
Sourcepub fn stop_backup_job(&self) -> StopBackupJobFluentBuilder
pub fn stop_backup_job(&self) -> StopBackupJobFluentBuilder
Constructs a fluent builder for the StopBackupJob
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
:
required: trueUniquely identifies a request to Backup to back up a resource.
- On success, responds with
StopBackupJobOutput
- On failure, responds with
SdkError<StopBackupJobError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.
ARNs that do not include
backup
are incompatible with tagging.TagResource
andUntagResource
with invalid ARNs will result in an error. Acceptable ARN content can includearn:aws:backup:us-east
. Invalid ARN content may look likearn:aws:ec2:us-east
.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: trueKey-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags:
[{“Key”:“string”,“Value”:“string”}]
.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.
ARNs that do not include
backup
are incompatible with tagging.TagResource
andUntagResource
with invalid ARNs will result in an error. Acceptable ARN content can includearn:aws:backup:us-east
. Invalid ARN content may look likearn:aws:ec2:us-east
.tag_key_list(impl Into<String>)
/set_tag_key_list(Option<Vec::<String>>)
:
required: trueThe keys to identify which key-value tags to remove from a resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_backup_plan(&self) -> UpdateBackupPlanFluentBuilder
pub fn update_backup_plan(&self) -> UpdateBackupPlanFluentBuilder
Constructs a fluent builder for the UpdateBackupPlan
operation.
- The fluent builder is configurable:
backup_plan_id(impl Into<String>)
/set_backup_plan_id(Option<String>)
:
required: trueThe ID of the backup plan.
backup_plan(BackupPlanInput)
/set_backup_plan(Option<BackupPlanInput>)
:
required: trueThe body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.
- On success, responds with
UpdateBackupPlanOutput
with field(s):backup_plan_id(Option<String>)
:Uniquely identifies a backup plan.
backup_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.creation_date(Option<DateTime>)
:The date and time a backup plan 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.version_id(Option<String>)
:Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.
advanced_backup_settings(Option<Vec::<AdvancedBackupSetting>>)
:Contains a list of
BackupOptions
for each resource type.
- On failure, responds with
SdkError<UpdateBackupPlanError>
Source§impl Client
impl Client
Sourcepub fn update_framework(&self) -> UpdateFrameworkFluentBuilder
pub fn update_framework(&self) -> UpdateFrameworkFluentBuilder
Constructs a fluent builder for the UpdateFramework
operation.
- The fluent builder is configurable:
framework_name(impl Into<String>)
/set_framework_name(Option<String>)
:
required: trueThe unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
framework_description(impl Into<String>)
/set_framework_description(Option<String>)
:
required: falseAn optional description of the framework with a maximum 1,024 characters.
framework_controls(FrameworkControl)
/set_framework_controls(Option<Vec::<FrameworkControl>>)
:
required: falseThe controls that make up the framework. Each control in the list has a name, input parameters, and scope.
idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
UpdateFrameworkInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
- On success, responds with
UpdateFrameworkOutput
with field(s):framework_name(Option<String>)
:The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
framework_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
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.
- On failure, responds with
SdkError<UpdateFrameworkError>
Source§impl Client
impl Client
Sourcepub fn update_global_settings(&self) -> UpdateGlobalSettingsFluentBuilder
pub fn update_global_settings(&self) -> UpdateGlobalSettingsFluentBuilder
Constructs a fluent builder for the UpdateGlobalSettings
operation.
- The fluent builder is configurable:
global_settings(impl Into<String>, impl Into<String>)
/set_global_settings(Option<HashMap::<String, String>>)
:
required: falseA value for
isCrossAccountBackupEnabled
and a Region. Example:update-global-settings –global-settings isCrossAccountBackupEnabled=false –region us-west-2
.
- On success, responds with
UpdateGlobalSettingsOutput
- On failure, responds with
SdkError<UpdateGlobalSettingsError>
Source§impl Client
impl Client
Sourcepub fn update_recovery_point_index_settings(
&self,
) -> UpdateRecoveryPointIndexSettingsFluentBuilder
pub fn update_recovery_point_index_settings( &self, ) -> UpdateRecoveryPointIndexSettingsFluentBuilder
Constructs a fluent builder for the UpdateRecoveryPointIndexSettings
operation.
- The fluent builder is configurable:
backup_vault_name(impl Into<String>)
/set_backup_vault_name(Option<String>)
:
required: trueThe 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.
Accepted characters include lowercase letters, numbers, and hyphens.
recovery_point_arn(impl Into<String>)
/set_recovery_point_arn(Option<String>)
:
required: trueAn ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: falseThis specifies the IAM role ARN used for this operation.
For example, arn:aws:iam::123456789012:role/S3Access
index(Index)
/set_index(Option<Index>)
:
required: trueIndex can have 1 of 2 possible values, either
ENABLED
orDISABLED
.To create a backup index for an eligible
ACTIVE
recovery point that does not yet have a backup index, set value toENABLED
.To delete a backup index, set value to
DISABLED
.
- On success, responds with
UpdateRecoveryPointIndexSettingsOutput
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.
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
.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(Option<Index>)
:Index can have 1 of 2 possible values, either
ENABLED
orDISABLED
.A value of
ENABLED
means a backup index for an eligibleACTIVE
recovery point has been created.A value of
DISABLED
means a backup index was deleted.
- On failure, responds with
SdkError<UpdateRecoveryPointIndexSettingsError>
Source§impl Client
impl Client
Sourcepub fn update_recovery_point_lifecycle(
&self,
) -> UpdateRecoveryPointLifecycleFluentBuilder
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: trueThe 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: trueAn 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: falseThe 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 containingDeleteAt
andMoveToColdStorageAt
timestamps.
- On failure, responds with
SdkError<UpdateRecoveryPointLifecycleError>
Source§impl Client
impl Client
Sourcepub fn update_region_settings(&self) -> UpdateRegionSettingsFluentBuilder
pub fn update_region_settings(&self) -> UpdateRegionSettingsFluentBuilder
Constructs a fluent builder for the UpdateRegionSettings
operation.
- The fluent builder is configurable:
resource_type_opt_in_preference(impl Into<String>, bool)
/set_resource_type_opt_in_preference(Option<HashMap::<String, bool>>)
:
required: falseUpdates the list of services along with the opt-in preferences for the Region.
If resource assignments are only based on tags, then service opt-in settings are applied. If a resource type is explicitly assigned to a backup plan, such as Amazon S3, Amazon EC2, or Amazon RDS, it will be included in the backup even if the opt-in is not enabled for that particular service. If both a resource type and tags are specified in a resource assignment, the resource type specified in the backup plan takes priority over the tag condition. Service opt-in settings are disregarded in this situation.
resource_type_management_preference(impl Into<String>, bool)
/set_resource_type_management_preference(Option<HashMap::<String, bool>>)
:
required: falseEnables or disables full Backup management of backups for a resource type. To enable full Backup management for DynamoDB along with Backup’s advanced DynamoDB backup features, follow the procedure to enable advanced DynamoDB backup programmatically.
- On success, responds with
UpdateRegionSettingsOutput
- On failure, responds with
SdkError<UpdateRegionSettingsError>
Source§impl Client
impl Client
Sourcepub fn update_report_plan(&self) -> UpdateReportPlanFluentBuilder
pub fn update_report_plan(&self) -> UpdateReportPlanFluentBuilder
Constructs a fluent builder for the UpdateReportPlan
operation.
- The fluent builder is configurable:
report_plan_name(impl Into<String>)
/set_report_plan_name(Option<String>)
:
required: trueThe unique name of the report plan. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
report_plan_description(impl Into<String>)
/set_report_plan_description(Option<String>)
:
required: falseAn optional description of the report plan with a maximum 1,024 characters.
report_delivery_channel(ReportDeliveryChannel)
/set_report_delivery_channel(Option<ReportDeliveryChannel>)
:
required: falseThe information about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
report_setting(ReportSetting)
/set_report_setting(Option<ReportSetting>)
:
required: falseThe report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.idempotency_token(impl Into<String>)
/set_idempotency_token(Option<String>)
:
required: falseA customer-chosen string that you can use to distinguish between otherwise identical calls to
UpdateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
- On success, responds with
UpdateReportPlanOutput
with field(s):report_plan_name(Option<String>)
:The unique name of the report plan.
report_plan_arn(Option<String>)
:An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
creation_time(Option<DateTime>)
:The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- On failure, responds with
SdkError<UpdateReportPlanError>
Source§impl Client
impl Client
Sourcepub fn update_restore_testing_plan(
&self,
) -> UpdateRestoreTestingPlanFluentBuilder
pub fn update_restore_testing_plan( &self, ) -> UpdateRestoreTestingPlanFluentBuilder
Constructs a fluent builder for the UpdateRestoreTestingPlan
operation.
- The fluent builder is configurable:
restore_testing_plan(RestoreTestingPlanForUpdate)
/set_restore_testing_plan(Option<RestoreTestingPlanForUpdate>)
:
required: trueSpecifies the body of a restore testing plan.
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueThe name of the restore testing plan name.
- On success, responds with
UpdateRestoreTestingPlanOutput
with field(s):creation_time(DateTime)
:The time the resource testing plan was created.
restore_testing_plan_arn(String)
:Unique ARN (Amazon Resource Name) of the restore testing plan.
restore_testing_plan_name(String)
:The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
update_time(DateTime)
:The time the update completed for the restore testing plan.
- On failure, responds with
SdkError<UpdateRestoreTestingPlanError>
Source§impl Client
impl Client
Sourcepub fn update_restore_testing_selection(
&self,
) -> UpdateRestoreTestingSelectionFluentBuilder
pub fn update_restore_testing_selection( &self, ) -> UpdateRestoreTestingSelectionFluentBuilder
Constructs a fluent builder for the UpdateRestoreTestingSelection
operation.
- The fluent builder is configurable:
restore_testing_plan_name(impl Into<String>)
/set_restore_testing_plan_name(Option<String>)
:
required: trueThe restore testing plan name is required to update the indicated testing plan.
restore_testing_selection(RestoreTestingSelectionForUpdate)
/set_restore_testing_selection(Option<RestoreTestingSelectionForUpdate>)
:
required: trueTo update your restore testing selection, you can use either protected resource ARNs or conditions, but not both. That is, if your selection has
ProtectedResourceArns
, requesting an update with the parameterProtectedResourceConditions
will be unsuccessful.restore_testing_selection_name(impl Into<String>)
/set_restore_testing_selection_name(Option<String>)
:
required: trueThe required restore testing selection name of the restore testing selection you wish to update.
- On success, responds with
UpdateRestoreTestingSelectionOutput
with field(s):creation_time(DateTime)
:The time the resource testing selection was updated successfully.
restore_testing_plan_arn(String)
:Unique string that is the name of the restore testing plan.
restore_testing_plan_name(String)
:The restore testing plan with which the updated restore testing selection is associated.
restore_testing_selection_name(String)
:The returned restore testing selection name.
update_time(DateTime)
:The time the update completed for the restore testing selection.
- On failure, responds with
SdkError<UpdateRestoreTestingSelectionError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
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
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
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 thesleep_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 thehttp_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, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
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 bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
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>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
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 rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
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 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.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
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);