pub struct AssociateEntityToThing<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to AssociateEntityToThing
.
Associates a device with a concrete thing that is in the user's registry.
A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.
Implementations
impl<C, M, R> AssociateEntityToThing<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AssociateEntityToThing<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError>> where
R::Policy: SmithyRetryPolicy<AssociateEntityToThingInputOperationOutputAlias, AssociateEntityToThingOutput, AssociateEntityToThingError, AssociateEntityToThingInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError>> where
R::Policy: SmithyRetryPolicy<AssociateEntityToThingInputOperationOutputAlias, AssociateEntityToThingOutput, AssociateEntityToThingError, AssociateEntityToThingInputOperationRetryAlias>,
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.
The name of the thing to which the entity is to be associated.
The name of the thing to which the entity is to be associated.
The ID of the device to be associated with the thing.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
The ID of the device to be associated with the thing.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
The version of the user's namespace. Defaults to the latest version of the user's namespace.
The version of the user's namespace. Defaults to the latest version of the user's namespace.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for AssociateEntityToThing<C, M, R>
impl<C, M, R> Send for AssociateEntityToThing<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AssociateEntityToThing<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AssociateEntityToThing<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for AssociateEntityToThing<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more