Struct aws_sdk_iot::input::CreateThingTypeInput
source · #[non_exhaustive]pub struct CreateThingTypeInput { /* private fields */ }
Expand description
The input for the CreateThingType operation.
Implementations§
source§impl CreateThingTypeInput
impl CreateThingTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateThingType, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateThingType, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateThingType
>
Examples found in repository?
src/client.rs (line 8528)
8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateThingType,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateThingTypeError>,
> {
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::CreateThingTypeOutput,
aws_smithy_http::result::SdkError<crate::error::CreateThingTypeError>,
> {
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 CreateThingTypeInput
.
source§impl CreateThingTypeInput
impl CreateThingTypeInput
sourcepub fn thing_type_name(&self) -> Option<&str>
pub fn thing_type_name(&self) -> Option<&str>
The name of the thing type.
sourcepub fn thing_type_properties(&self) -> Option<&ThingTypeProperties>
pub fn thing_type_properties(&self) -> Option<&ThingTypeProperties>
The ThingTypeProperties for the thing type to create. It contains information about the new thing type including a description, and a list of searchable thing attribute names.
Metadata which can be used to manage the thing type.
Trait Implementations§
source§impl Clone for CreateThingTypeInput
impl Clone for CreateThingTypeInput
source§fn clone(&self) -> CreateThingTypeInput
fn clone(&self) -> CreateThingTypeInput
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