pub struct UpdateThingGroupsForThing { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateThingGroupsForThing
.
Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
Implementations§
source§impl UpdateThingGroupsForThing
impl UpdateThingGroupsForThing
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateThingGroupsForThing, AwsResponseRetryClassifier>, SdkError<UpdateThingGroupsForThingError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateThingGroupsForThing, AwsResponseRetryClassifier>, SdkError<UpdateThingGroupsForThingError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateThingGroupsForThingOutput, SdkError<UpdateThingGroupsForThingError>>
pub async fn send(
self
) -> Result<UpdateThingGroupsForThingOutput, SdkError<UpdateThingGroupsForThingError>>
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, which can be set when configuring the client.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The thing whose group memberships will be updated.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The thing whose group memberships will be updated.
sourcepub fn thing_groups_to_add(self, input: impl Into<String>) -> Self
pub fn thing_groups_to_add(self, input: impl Into<String>) -> Self
Appends an item to thingGroupsToAdd
.
To override the contents of this collection use set_thing_groups_to_add
.
The groups to which the thing will be added.
sourcepub fn set_thing_groups_to_add(self, input: Option<Vec<String>>) -> Self
pub fn set_thing_groups_to_add(self, input: Option<Vec<String>>) -> Self
The groups to which the thing will be added.
sourcepub fn thing_groups_to_remove(self, input: impl Into<String>) -> Self
pub fn thing_groups_to_remove(self, input: impl Into<String>) -> Self
Appends an item to thingGroupsToRemove
.
To override the contents of this collection use set_thing_groups_to_remove
.
The groups from which the thing will be removed.
sourcepub fn set_thing_groups_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_thing_groups_to_remove(self, input: Option<Vec<String>>) -> Self
The groups from which the thing will be removed.
sourcepub fn override_dynamic_groups(self, input: bool) -> Self
pub fn override_dynamic_groups(self, input: bool) -> Self
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.
sourcepub fn set_override_dynamic_groups(self, input: Option<bool>) -> Self
pub fn set_override_dynamic_groups(self, input: Option<bool>) -> Self
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 UpdateThingGroupsForThing
impl Clone for UpdateThingGroupsForThing
source§fn clone(&self) -> UpdateThingGroupsForThing
fn clone(&self) -> UpdateThingGroupsForThing
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more