Struct aws_sdk_iot::input::DeleteTopicRuleInput
source · #[non_exhaustive]pub struct DeleteTopicRuleInput { /* private fields */ }
Expand description
The input for the DeleteTopicRule operation.
Implementations§
source§impl DeleteTopicRuleInput
impl DeleteTopicRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTopicRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTopicRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteTopicRule
>
Examples found in repository?
src/client.rs (line 11147)
11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteTopicRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteTopicRuleError>,
> {
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::DeleteTopicRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTopicRuleError>,
> {
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 DeleteTopicRuleInput
.
Trait Implementations§
source§impl Clone for DeleteTopicRuleInput
impl Clone for DeleteTopicRuleInput
source§fn clone(&self) -> DeleteTopicRuleInput
fn clone(&self) -> DeleteTopicRuleInput
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