#[non_exhaustive]pub struct PutBucketNotificationConfigurationInput { /* private fields */ }
Implementations§
source§impl PutBucketNotificationConfigurationInput
impl PutBucketNotificationConfigurationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketNotificationConfiguration, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketNotificationConfiguration, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutBucketNotificationConfiguration
>
Examples found in repository?
src/client.rs (line 12290)
12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutBucketNotificationConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::PutBucketNotificationConfigurationError,
>,
> {
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::PutBucketNotificationConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::PutBucketNotificationConfigurationError,
>,
> {
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 PutBucketNotificationConfigurationInput
.
source§impl PutBucketNotificationConfigurationInput
impl PutBucketNotificationConfigurationInput
sourcepub fn notification_configuration(&self) -> Option<&NotificationConfiguration>
pub fn notification_configuration(&self) -> Option<&NotificationConfiguration>
A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn skip_destination_validation(&self) -> bool
pub fn skip_destination_validation(&self) -> bool
Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.
Trait Implementations§
source§impl Clone for PutBucketNotificationConfigurationInput
impl Clone for PutBucketNotificationConfigurationInput
source§fn clone(&self) -> PutBucketNotificationConfigurationInput
fn clone(&self) -> PutBucketNotificationConfigurationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more