Struct aws_sdk_iot::input::ReplaceTopicRuleInput
source · #[non_exhaustive]pub struct ReplaceTopicRuleInput { /* private fields */ }
Expand description
The input for the ReplaceTopicRule operation.
Implementations§
source§impl ReplaceTopicRuleInput
impl ReplaceTopicRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceTopicRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceTopicRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReplaceTopicRule
>
Examples found in repository?
src/client.rs (line 23103)
23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReplaceTopicRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ReplaceTopicRuleError>,
> {
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::ReplaceTopicRuleOutput,
aws_smithy_http::result::SdkError<crate::error::ReplaceTopicRuleError>,
> {
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 ReplaceTopicRuleInput
.
source§impl ReplaceTopicRuleInput
impl ReplaceTopicRuleInput
sourcepub fn topic_rule_payload(&self) -> Option<&TopicRulePayload>
pub fn topic_rule_payload(&self) -> Option<&TopicRulePayload>
The rule payload.
Trait Implementations§
source§impl Clone for ReplaceTopicRuleInput
impl Clone for ReplaceTopicRuleInput
source§fn clone(&self) -> ReplaceTopicRuleInput
fn clone(&self) -> ReplaceTopicRuleInput
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