Struct aws_sdk_iot::input::GetTopicRuleDestinationInput
source · #[non_exhaustive]pub struct GetTopicRuleDestinationInput { /* private fields */ }
Implementations§
source§impl GetTopicRuleDestinationInput
impl GetTopicRuleDestinationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetTopicRuleDestination, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetTopicRuleDestination, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetTopicRuleDestination
>
Examples found in repository?
src/client.rs (line 15768)
15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetTopicRuleDestination,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetTopicRuleDestinationError>,
> {
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::GetTopicRuleDestinationOutput,
aws_smithy_http::result::SdkError<crate::error::GetTopicRuleDestinationError>,
> {
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 GetTopicRuleDestinationInput
.
Trait Implementations§
source§impl Clone for GetTopicRuleDestinationInput
impl Clone for GetTopicRuleDestinationInput
source§fn clone(&self) -> GetTopicRuleDestinationInput
fn clone(&self) -> GetTopicRuleDestinationInput
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