Struct aws_sdk_iot::input::AddThingToThingGroupInput
source · #[non_exhaustive]pub struct AddThingToThingGroupInput { /* private fields */ }
Implementations§
source§impl AddThingToThingGroupInput
impl AddThingToThingGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AddThingToThingGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AddThingToThingGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AddThingToThingGroup
>
Examples found in repository?
src/client.rs (line 3608)
3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AddThingToThingGroup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AddThingToThingGroupError>,
> {
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::AddThingToThingGroupOutput,
aws_smithy_http::result::SdkError<crate::error::AddThingToThingGroupError>,
> {
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 AddThingToThingGroupInput
.
source§impl AddThingToThingGroupInput
impl AddThingToThingGroupInput
sourcepub fn thing_group_name(&self) -> Option<&str>
pub fn thing_group_name(&self) -> Option<&str>
The name of the group to which you are adding a thing.
sourcepub fn thing_group_arn(&self) -> Option<&str>
pub fn thing_group_arn(&self) -> Option<&str>
The ARN of the group to which you are adding a thing.
sourcepub fn thing_name(&self) -> Option<&str>
pub fn thing_name(&self) -> Option<&str>
The name of the thing to add to a group.
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 AddThingToThingGroupInput
impl Clone for AddThingToThingGroupInput
source§fn clone(&self) -> AddThingToThingGroupInput
fn clone(&self) -> AddThingToThingGroupInput
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