Struct aws_sdk_iot::input::UpdateThingGroupsForThingInput
source · #[non_exhaustive]pub struct UpdateThingGroupsForThingInput { /* private fields */ }
Implementations§
source§impl UpdateThingGroupsForThingInput
impl UpdateThingGroupsForThingInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateThingGroupsForThing, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateThingGroupsForThing, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateThingGroupsForThing
>
Examples found in repository?
src/client.rs (line 27581)
27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateThingGroupsForThing,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateThingGroupsForThingError>,
> {
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::UpdateThingGroupsForThingOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateThingGroupsForThingError>,
> {
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 UpdateThingGroupsForThingInput
.
source§impl UpdateThingGroupsForThingInput
impl UpdateThingGroupsForThingInput
sourcepub fn thing_name(&self) -> Option<&str>
pub fn thing_name(&self) -> Option<&str>
The thing whose group memberships will be updated.
sourcepub fn thing_groups_to_add(&self) -> Option<&[String]>
pub fn thing_groups_to_add(&self) -> Option<&[String]>
The groups to which the thing will be added.
sourcepub fn thing_groups_to_remove(&self) -> Option<&[String]>
pub fn thing_groups_to_remove(&self) -> Option<&[String]>
The groups from which the thing will be removed.
sourcepub fn override_dynamic_groups(&self) -> bool
pub fn override_dynamic_groups(&self) -> bool
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Trait Implementations§
source§impl Clone for UpdateThingGroupsForThingInput
impl Clone for UpdateThingGroupsForThingInput
source§fn clone(&self) -> UpdateThingGroupsForThingInput
fn clone(&self) -> UpdateThingGroupsForThingInput
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