Struct aws_sdk_iot::input::EnableTopicRuleInput
source · #[non_exhaustive]pub struct EnableTopicRuleInput { /* private fields */ }
Expand description
The input for the EnableTopicRuleRequest operation.
Implementations§
source§impl EnableTopicRuleInput
impl EnableTopicRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableTopicRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableTopicRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableTopicRule
>
Examples found in repository?
src/client.rs (line 14440)
14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableTopicRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableTopicRuleError>,
> {
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::EnableTopicRuleOutput,
aws_smithy_http::result::SdkError<crate::error::EnableTopicRuleError>,
> {
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 EnableTopicRuleInput
.
Trait Implementations§
source§impl Clone for EnableTopicRuleInput
impl Clone for EnableTopicRuleInput
source§fn clone(&self) -> EnableTopicRuleInput
fn clone(&self) -> EnableTopicRuleInput
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