#[non_exhaustive]pub struct PutBackupVaultNotificationsInput { /* private fields */ }
Implementations§
source§impl PutBackupVaultNotificationsInput
impl PutBackupVaultNotificationsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBackupVaultNotifications, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBackupVaultNotifications, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutBackupVaultNotifications
>
Examples found in repository?
6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutBackupVaultNotifications,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutBackupVaultNotificationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutBackupVaultNotificationsOutput,
aws_smithy_http::result::SdkError<crate::error::PutBackupVaultNotificationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutBackupVaultNotificationsInput
.
source§impl PutBackupVaultNotificationsInput
impl PutBackupVaultNotificationsInput
sourcepub fn backup_vault_name(&self) -> Option<&str>
pub fn backup_vault_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn sns_topic_arn(&self) -> Option<&str>
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) -> Option<&[BackupVaultEvent]>
pub fn backup_vault_events(&self) -> Option<&[BackupVaultEvent]>
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
Ignore the list below because it includes deprecated events. Refer to the list above.
Trait Implementations§
source§impl Clone for PutBackupVaultNotificationsInput
impl Clone for PutBackupVaultNotificationsInput
source§fn clone(&self) -> PutBackupVaultNotificationsInput
fn clone(&self) -> PutBackupVaultNotificationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more