Struct aws_sdk_iot::input::DisableTopicRuleInput
source · #[non_exhaustive]pub struct DisableTopicRuleInput { /* private fields */ }
Expand description
The input for the DisableTopicRuleRequest operation.
Implementations§
source§impl DisableTopicRuleInput
impl DisableTopicRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DisableTopicRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DisableTopicRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DisableTopicRule
>
Examples found in repository?
src/client.rs (line 14366)
14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DisableTopicRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DisableTopicRuleError>,
> {
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::DisableTopicRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DisableTopicRuleError>,
> {
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 DisableTopicRuleInput
.
Trait Implementations§
source§impl Clone for DisableTopicRuleInput
impl Clone for DisableTopicRuleInput
source§fn clone(&self) -> DisableTopicRuleInput
fn clone(&self) -> DisableTopicRuleInput
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