Struct aws_sdk_iot::input::DeleteThingTypeInput
source · #[non_exhaustive]pub struct DeleteThingTypeInput { /* private fields */ }
Expand description
The input for the DeleteThingType operation.
Implementations§
source§impl DeleteThingTypeInput
impl DeleteThingTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteThingType, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteThingType, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteThingType
>
Examples found in repository?
src/client.rs (line 11070)
11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteThingType,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteThingTypeError>,
> {
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::DeleteThingTypeOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteThingTypeError>,
> {
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 DeleteThingTypeInput
.
source§impl DeleteThingTypeInput
impl DeleteThingTypeInput
sourcepub fn thing_type_name(&self) -> Option<&str>
pub fn thing_type_name(&self) -> Option<&str>
The name of the thing type.
Trait Implementations§
source§impl Clone for DeleteThingTypeInput
impl Clone for DeleteThingTypeInput
source§fn clone(&self) -> DeleteThingTypeInput
fn clone(&self) -> DeleteThingTypeInput
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