Struct aws_sdk_iot::input::UpdateThingGroupInput
source · #[non_exhaustive]pub struct UpdateThingGroupInput { /* private fields */ }
Implementations§
source§impl UpdateThingGroupInput
impl UpdateThingGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateThingGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateThingGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateThingGroup
>
Examples found in repository?
src/client.rs (line 27481)
27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateThingGroup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateThingGroupError>,
> {
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::UpdateThingGroupOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateThingGroupError>,
> {
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 UpdateThingGroupInput
.
source§impl UpdateThingGroupInput
impl UpdateThingGroupInput
sourcepub fn thing_group_name(&self) -> Option<&str>
pub fn thing_group_name(&self) -> Option<&str>
The thing group to update.
sourcepub fn thing_group_properties(&self) -> Option<&ThingGroupProperties>
pub fn thing_group_properties(&self) -> Option<&ThingGroupProperties>
The thing group properties.
sourcepub fn expected_version(&self) -> Option<i64>
pub fn expected_version(&self) -> Option<i64>
The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail.
Trait Implementations§
source§impl Clone for UpdateThingGroupInput
impl Clone for UpdateThingGroupInput
source§fn clone(&self) -> UpdateThingGroupInput
fn clone(&self) -> UpdateThingGroupInput
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