aws_sdk_backup/client/put_backup_vault_notifications.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`PutBackupVaultNotifications`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`backup_vault_name(impl Into<String>)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::backup_vault_name) / [`set_backup_vault_name(Option<String>)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::set_backup_vault_name):<br>required: **true**<br><p>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.</p><br>
7 /// - [`sns_topic_arn(impl Into<String>)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::sns_topic_arn) / [`set_sns_topic_arn(Option<String>)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::set_sns_topic_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example, <code>arn:aws:sns:us-west-2:111122223333:MyVaultTopic</code>.</p><br>
8 /// - [`backup_vault_events(BackupVaultEvent)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::backup_vault_events) / [`set_backup_vault_events(Option<Vec::<BackupVaultEvent>>)`](crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::set_backup_vault_events):<br>required: **true**<br><p>An array of events that indicate the status of jobs to back up resources to the backup vault.</p> <p>For common use cases and code samples, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html">Using Amazon SNS to track Backup events</a>.</p> <p>The following events are supported:</p> <ul> <li> <p><code>BACKUP_JOB_STARTED</code> | <code>BACKUP_JOB_COMPLETED</code> | <code>BACKUP_JOB_FAILED</code></p></li> <li> <p><code>COPY_JOB_STARTED</code> | <code>COPY_JOB_SUCCESSFUL</code> | <code>COPY_JOB_FAILED</code></p></li> <li> <p><code>RESTORE_JOB_STARTED</code> | <code>RESTORE_JOB_COMPLETED</code> | <code>RECOVERY_POINT_MODIFIED</code></p></li> <li> <p><code>S3_BACKUP_OBJECT_FAILED</code> | <code>S3_RESTORE_OBJECT_FAILED</code></p></li> <li> <p><code>RECOVERY_POINT_INDEX_COMPLETED</code> | <code>RECOVERY_POINT_INDEX_DELETED</code> | <code>RECOVERY_POINT_INDEXING_FAILED</code></p></li> </ul><note> <p>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.</p> </note><br>
9 /// - On success, responds with [`PutBackupVaultNotificationsOutput`](crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsOutput)
10 /// - On failure, responds with [`SdkError<PutBackupVaultNotificationsError>`](crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError)
11 pub fn put_backup_vault_notifications(
12 &self,
13 ) -> crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder {
14 crate::operation::put_backup_vault_notifications::builders::PutBackupVaultNotificationsFluentBuilder::new(self.handle.clone())
15 }
16}