Struct aws_sdk_iot::input::CreateTopicRuleInput
source · #[non_exhaustive]pub struct CreateTopicRuleInput { /* private fields */ }
Expand description
The input for the CreateTopicRule operation.
Implementations§
source§impl CreateTopicRuleInput
impl CreateTopicRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTopicRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTopicRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTopicRule
>
Examples found in repository?
src/client.rs (line 8635)
8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTopicRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTopicRuleError>,
> {
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::CreateTopicRuleOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTopicRuleError>,
> {
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 CreateTopicRuleInput
.
source§impl CreateTopicRuleInput
impl CreateTopicRuleInput
sourcepub fn topic_rule_payload(&self) -> Option<&TopicRulePayload>
pub fn topic_rule_payload(&self) -> Option<&TopicRulePayload>
The rule payload.
Metadata which can be used to manage the topic rule.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Trait Implementations§
source§impl Clone for CreateTopicRuleInput
impl Clone for CreateTopicRuleInput
source§fn clone(&self) -> CreateTopicRuleInput
fn clone(&self) -> CreateTopicRuleInput
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