Skip to main content

BackupState

Struct BackupState 

Source
pub struct BackupState {
Show 20 fields pub vaults: HashMap<String, BackupVault>, pub backup_plans: HashMap<String, BackupPlanData>, pub backup_selections: HashMap<String, BackupSelectionData>, pub report_plans: HashMap<String, ReportPlanData>, pub recovery_points: HashMap<String, RecoveryPointData>, pub backup_jobs: HashMap<String, BackupJobData>, pub resource_tags: HashMap<String, HashMap<String, String>>, pub vault_access_policies: HashMap<String, VaultAccessPolicy>, pub vault_notifications: HashMap<String, VaultNotificationConfig>, pub frameworks: HashMap<String, FrameworkData>, pub global_settings: GlobalSettings, pub region_settings: RegionSettings, pub report_jobs: HashMap<String, ReportJobData>, pub scan_jobs: HashMap<String, ScanJobData>, pub tiering_configs: HashMap<String, TieringConfigData>, pub legal_holds: HashMap<String, LegalHoldData>, pub copy_jobs: HashMap<String, CopyJobData>, pub restore_jobs: HashMap<String, RestoreJobData>, pub restore_testing_plans: HashMap<String, RestoreTestingPlanData>, pub restore_testing_selections: HashMap<(String, String), RestoreTestingSelectionData>,
}

Fields§

§vaults: HashMap<String, BackupVault>§backup_plans: HashMap<String, BackupPlanData>§backup_selections: HashMap<String, BackupSelectionData>

Selections keyed by selection_id.

§report_plans: HashMap<String, ReportPlanData>§recovery_points: HashMap<String, RecoveryPointData>

Recovery points keyed by ARN.

§backup_jobs: HashMap<String, BackupJobData>

Backup jobs keyed by job_id.

§resource_tags: HashMap<String, HashMap<String, String>>

Tags keyed by resource ARN.

§vault_access_policies: HashMap<String, VaultAccessPolicy>

Vault access policies keyed by vault name.

§vault_notifications: HashMap<String, VaultNotificationConfig>

Vault notification configurations keyed by vault name.

§frameworks: HashMap<String, FrameworkData>

Audit frameworks keyed by framework name.

§global_settings: GlobalSettings

Global settings (account-level).

§region_settings: RegionSettings

Region settings.

§report_jobs: HashMap<String, ReportJobData>

Report jobs keyed by job_id.

§scan_jobs: HashMap<String, ScanJobData>

Scan jobs keyed by scan_job_id.

§tiering_configs: HashMap<String, TieringConfigData>

Tiering configurations keyed by configuration name.

§legal_holds: HashMap<String, LegalHoldData>

Legal holds keyed by legal_hold_id.

§copy_jobs: HashMap<String, CopyJobData>

Copy jobs keyed by copy_job_id.

§restore_jobs: HashMap<String, RestoreJobData>

Restore jobs keyed by restore_job_id.

§restore_testing_plans: HashMap<String, RestoreTestingPlanData>

Restore testing plans keyed by plan name.

§restore_testing_selections: HashMap<(String, String), RestoreTestingSelectionData>

Restore testing selections keyed by (plan_name, selection_name).

Implementations§

Source§

impl BackupState

Source

pub fn create_backup_vault( &mut self, name: &str, arn: &str, tags: HashMap<String, String>, ) -> Result<&BackupVault, BackupError>

Source

pub fn describe_backup_vault( &self, name: &str, ) -> Result<&BackupVault, BackupError>

Source

pub fn delete_backup_vault(&mut self, name: &str) -> Result<(), BackupError>

Source

pub fn list_backup_vaults(&self) -> Vec<&BackupVault>

Source

pub fn create_backup_plan( &mut self, name: &str, plan_json: &Value, region: &str, account_id: &str, tags: HashMap<String, String>, ) -> Result<&BackupPlanData, BackupError>

Source

pub fn get_backup_plan( &self, plan_id: &str, ) -> Result<&BackupPlanData, BackupError>

Source

pub fn delete_backup_plan( &mut self, plan_id: &str, ) -> Result<BackupPlanData, BackupError>

Source

pub fn list_backup_plans(&self) -> Vec<&BackupPlanData>

Source

pub fn create_report_plan( &mut self, name: &str, description: &str, delivery_channel: &Value, report_setting: &Value, region: &str, account_id: &str, tags: HashMap<String, String>, ) -> Result<&ReportPlanData, BackupError>

Source

pub fn describe_report_plan( &self, name: &str, ) -> Result<&ReportPlanData, BackupError>

Source

pub fn delete_report_plan(&mut self, name: &str) -> Result<(), BackupError>

Source

pub fn list_report_plans(&self) -> Vec<&ReportPlanData>

Source

pub fn put_backup_vault_lock_configuration( &mut self, vault_name: &str, min_retention_days: Option<i64>, max_retention_days: Option<i64>, ) -> Result<(), BackupError>

Source

pub fn delete_backup_vault_lock_configuration( &mut self, vault_name: &str, ) -> Result<(), BackupError>

Source

pub fn tag_resource( &mut self, resource_arn: &str, tags: HashMap<String, String>, ) -> Result<(), BackupError>

Source

pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<(), BackupError>

Source

pub fn list_tags(&self, resource_arn: &str) -> HashMap<String, String>

Source

pub fn create_backup_selection( &mut self, plan_id: &str, selection_name: &str, iam_role_arn: &str, resources: Vec<String>, selection_json: Value, ) -> Result<&BackupSelectionData, BackupError>

Source

pub fn get_backup_selection( &self, plan_id: &str, selection_id: &str, ) -> Result<&BackupSelectionData, BackupError>

Source

pub fn delete_backup_selection( &mut self, plan_id: &str, selection_id: &str, ) -> Result<(), BackupError>

Source

pub fn list_backup_selections(&self, plan_id: &str) -> Vec<&BackupSelectionData>

Source

pub fn create_recovery_point( &mut self, vault_name: &str, vault_arn: &str, resource_arn: &str, resource_type: &str, iam_role_arn: &str, account_id: &str, region: &str, ) -> Result<&RecoveryPointData, BackupError>

Source

pub fn describe_recovery_point( &self, vault_name: &str, recovery_point_arn: &str, ) -> Result<&RecoveryPointData, BackupError>

Source

pub fn delete_recovery_point( &mut self, vault_name: &str, recovery_point_arn: &str, ) -> Result<(), BackupError>

Source

pub fn list_recovery_points_by_backup_vault( &self, vault_name: &str, ) -> Vec<&RecoveryPointData>

Source

pub fn start_backup_job( &mut self, vault_name: &str, vault_arn: &str, resource_arn: &str, resource_type: &str, iam_role_arn: &str, account_id: &str, region: &str, ) -> Result<&BackupJobData, BackupError>

Source

pub fn describe_backup_job( &self, job_id: &str, ) -> Result<&BackupJobData, BackupError>

Source

pub fn stop_backup_job(&mut self, job_id: &str) -> Result<(), BackupError>

Source

pub fn list_backup_jobs(&self) -> Vec<&BackupJobData>

Source

pub fn put_backup_vault_access_policy( &mut self, vault_name: &str, vault_arn: &str, policy: &str, ) -> Result<(), BackupError>

Source

pub fn get_backup_vault_access_policy( &self, vault_name: &str, ) -> Result<&VaultAccessPolicy, BackupError>

Source

pub fn delete_backup_vault_access_policy( &mut self, vault_name: &str, ) -> Result<(), BackupError>

Source

pub fn put_backup_vault_notifications( &mut self, vault_name: &str, vault_arn: &str, sns_topic_arn: &str, backup_vault_events: Vec<String>, ) -> Result<(), BackupError>

Source

pub fn get_backup_vault_notifications( &self, vault_name: &str, ) -> Result<&VaultNotificationConfig, BackupError>

Source

pub fn delete_backup_vault_notifications( &mut self, vault_name: &str, ) -> Result<(), BackupError>

Source

pub fn create_framework( &mut self, name: &str, description: &str, controls: Value, region: &str, account_id: &str, tags: HashMap<String, String>, ) -> Result<&FrameworkData, BackupError>

Source

pub fn describe_framework( &self, name: &str, ) -> Result<&FrameworkData, BackupError>

Source

pub fn delete_framework(&mut self, name: &str) -> Result<(), BackupError>

Source

pub fn update_framework( &mut self, name: &str, description: Option<&str>, controls: Option<Value>, ) -> Result<&FrameworkData, BackupError>

Source

pub fn list_frameworks(&self) -> Vec<&FrameworkData>

Source

pub fn update_global_settings(&mut self, settings: HashMap<String, String>)

Source

pub fn describe_global_settings(&self) -> &GlobalSettings

Source

pub fn update_region_settings( &mut self, opt_in: Option<HashMap<String, bool>>, management: Option<HashMap<String, bool>>, )

Source

pub fn describe_region_settings(&self) -> &RegionSettings

Source

pub fn start_report_job( &mut self, report_plan_name: &str, region: &str, account_id: &str, ) -> Result<&ReportJobData, BackupError>

Source

pub fn describe_report_job( &self, job_id: &str, ) -> Result<&ReportJobData, BackupError>

Source

pub fn list_report_jobs( &self, report_plan_name: Option<&str>, ) -> Vec<&ReportJobData>

Source

pub fn start_scan_job( &mut self, vault_name: &str, vault_arn: &str, recovery_point_arn: &str, iam_role_arn: &str, malware_scanner: &str, scan_mode: &str, scanner_role_arn: &str, scan_base_recovery_point_arn: Option<String>, account_id: &str, region: &str, ) -> Result<&ScanJobData, BackupError>

Source

pub fn describe_scan_job( &self, scan_job_id: &str, ) -> Result<&ScanJobData, BackupError>

Source

pub fn list_scan_jobs(&self) -> Vec<&ScanJobData>

Source

pub fn create_tiering_configuration( &mut self, name: &str, vault_name: &str, resource_selection: Value, creator_request_id: Option<String>, region: &str, account_id: &str, tags: HashMap<String, String>, ) -> Result<&TieringConfigData, BackupError>

Source

pub fn get_tiering_configuration( &self, name: &str, ) -> Result<&TieringConfigData, BackupError>

Source

pub fn delete_tiering_configuration( &mut self, name: &str, ) -> Result<(), BackupError>

Source

pub fn list_tiering_configurations(&self) -> Vec<&TieringConfigData>

Source

pub fn update_tiering_configuration( &mut self, name: &str, vault_name: Option<&str>, resource_selection: Option<Value>, ) -> Result<&TieringConfigData, BackupError>

Source

pub fn update_report_plan( &mut self, name: &str, description: Option<&str>, delivery_channel: Option<Value>, report_setting: Option<Value>, ) -> Result<&ReportPlanData, BackupError>

Source

pub fn start_copy_job( &mut self, source_backup_vault_name: &str, source_recovery_point_arn: &str, destination_backup_vault_arn: &str, iam_role_arn: &str, account_id: &str, region: &str, ) -> Result<&CopyJobData, BackupError>

Source

pub fn describe_copy_job( &self, copy_job_id: &str, ) -> Result<&CopyJobData, BackupError>

Source

pub fn list_copy_jobs(&self) -> Vec<&CopyJobData>

Source

pub fn start_restore_job( &mut self, recovery_point_arn: &str, iam_role_arn: &str, resource_type: &str, metadata: HashMap<String, String>, account_id: &str, ) -> Result<&RestoreJobData, BackupError>

Source

pub fn describe_restore_job( &self, restore_job_id: &str, ) -> Result<&RestoreJobData, BackupError>

Source

pub fn list_restore_jobs(&self) -> Vec<&RestoreJobData>

Source

pub fn list_restore_jobs_by_recovery_point( &self, resource_arn: &str, ) -> Vec<&RestoreJobData>

Source

pub fn put_restore_validation_result( &mut self, restore_job_id: &str, validation_status: &str, validation_status_message: Option<&str>, ) -> Result<(), BackupError>

Source

pub fn get_restore_job_metadata( &self, restore_job_id: &str, ) -> Result<&RestoreJobData, BackupError>

Source

pub fn create_restore_testing_plan( &mut self, name: &str, schedule_expression: &str, schedule_expression_timezone: Option<String>, start_window_hours: Option<i32>, recovery_point_selection: Value, creator_request_id: Option<String>, region: &str, account_id: &str, tags: HashMap<String, String>, ) -> Result<&RestoreTestingPlanData, BackupError>

Source

pub fn get_restore_testing_plan( &self, name: &str, ) -> Result<&RestoreTestingPlanData, BackupError>

Source

pub fn delete_restore_testing_plan( &mut self, name: &str, ) -> Result<(), BackupError>

Source

pub fn list_restore_testing_plans(&self) -> Vec<&RestoreTestingPlanData>

Source

pub fn update_restore_testing_plan( &mut self, name: &str, schedule_expression: Option<&str>, schedule_expression_timezone: Option<String>, start_window_hours: Option<i32>, recovery_point_selection: Option<Value>, ) -> Result<&RestoreTestingPlanData, BackupError>

Source

pub fn create_restore_testing_selection( &mut self, plan_name: &str, selection_name: &str, iam_role_arn: &str, protected_resource_type: &str, protected_resource_arns: Vec<String>, protected_resource_conditions: Value, restore_metadata_overrides: HashMap<String, String>, validation_window_hours: Option<i32>, creator_request_id: Option<String>, ) -> Result<&RestoreTestingSelectionData, BackupError>

Source

pub fn get_restore_testing_selection( &self, plan_name: &str, selection_name: &str, ) -> Result<&RestoreTestingSelectionData, BackupError>

Source

pub fn delete_restore_testing_selection( &mut self, plan_name: &str, selection_name: &str, ) -> Result<(), BackupError>

Source

pub fn list_restore_testing_selections( &self, plan_name: &str, ) -> Vec<&RestoreTestingSelectionData>

Source

pub fn update_restore_testing_selection( &mut self, plan_name: &str, selection_name: &str, iam_role_arn: Option<&str>, protected_resource_arns: Option<Vec<String>>, protected_resource_conditions: Option<Value>, restore_metadata_overrides: Option<HashMap<String, String>>, validation_window_hours: Option<i32>, ) -> Result<&RestoreTestingSelectionData, BackupError>

Source

pub fn update_backup_plan( &mut self, plan_id: &str, backup_plan_json: &Value, ) -> Result<&BackupPlanData, BackupError>

Trait Implementations§

Source§

impl Debug for BackupState

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for BackupState

Source§

fn default() -> BackupState

Returns the “default value” for a type. Read more
Source§

impl From<&BackupState> for BackupStateView

Source§

fn from(s: &BackupState) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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

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

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

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

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

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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