Struct aws_sdk_backup::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsInputBuilder
source · #[non_exhaustive]pub struct PutBackupVaultNotificationsInputBuilder { /* private fields */ }
Expand description
A builder for PutBackupVaultNotificationsInput
.
Implementations§
source§impl PutBackupVaultNotificationsInputBuilder
impl PutBackupVaultNotificationsInputBuilder
sourcepub fn backup_vault_name(self, input: impl Into<String>) -> Self
pub fn backup_vault_name(self, input: impl Into<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn set_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_backup_vault_name(self, input: Option<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example, arn:aws:sns:us-west-2:111122223333:MyVaultTopic
.
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example, arn:aws:sns:us-west-2:111122223333:MyVaultTopic
.
sourcepub fn backup_vault_events(self, input: BackupVaultEvent) -> Self
pub fn backup_vault_events(self, input: BackupVaultEvent) -> Self
Appends an item to backup_vault_events
.
To override the contents of this collection use set_backup_vault_events
.
An 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 shows items that are deprecated events (for reference) and are no longer in use. They are no longer supported and will not return statuses or notifications. Refer to the list above for current supported events.
sourcepub fn set_backup_vault_events(
self,
input: Option<Vec<BackupVaultEvent>>
) -> Self
pub fn set_backup_vault_events( self, input: Option<Vec<BackupVaultEvent>> ) -> Self
An 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 shows items that are deprecated events (for reference) and are no longer in use. They are no longer supported and will not return statuses or notifications. Refer to the list above for current supported events.
sourcepub fn build(self) -> Result<PutBackupVaultNotificationsInput, BuildError>
pub fn build(self) -> Result<PutBackupVaultNotificationsInput, BuildError>
Consumes the builder and constructs a PutBackupVaultNotificationsInput
.
Trait Implementations§
source§impl Clone for PutBackupVaultNotificationsInputBuilder
impl Clone for PutBackupVaultNotificationsInputBuilder
source§fn clone(&self) -> PutBackupVaultNotificationsInputBuilder
fn clone(&self) -> PutBackupVaultNotificationsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutBackupVaultNotificationsInputBuilder
impl Default for PutBackupVaultNotificationsInputBuilder
source§fn default() -> PutBackupVaultNotificationsInputBuilder
fn default() -> PutBackupVaultNotificationsInputBuilder
source§impl PartialEq<PutBackupVaultNotificationsInputBuilder> for PutBackupVaultNotificationsInputBuilder
impl PartialEq<PutBackupVaultNotificationsInputBuilder> for PutBackupVaultNotificationsInputBuilder
source§fn eq(&self, other: &PutBackupVaultNotificationsInputBuilder) -> bool
fn eq(&self, other: &PutBackupVaultNotificationsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.