pub struct Iot1ClickDevicesClient { /* private fields */ }
Expand description
A client for the AWS IoT 1-Click Devices Service API.
Implementations
sourceimpl Iot1ClickDevicesClient
impl Iot1ClickDevicesClient
sourcepub fn new(region: Region) -> Iot1ClickDevicesClient
pub fn new(region: Region) -> Iot1ClickDevicesClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> Iot1ClickDevicesClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> Iot1ClickDevicesClient
Trait Implementations
sourceimpl Clone for Iot1ClickDevicesClient
impl Clone for Iot1ClickDevicesClient
sourcefn clone(&self) -> Iot1ClickDevicesClient
fn clone(&self) -> Iot1ClickDevicesClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Iot1ClickDevices for Iot1ClickDevicesClient
impl Iot1ClickDevices for Iot1ClickDevicesClient
sourcefn claim_devices_by_claim_code<'life0, 'async_trait>(
&'life0 self,
input: ClaimDevicesByClaimCodeRequest
) -> Pin<Box<dyn Future<Output = Result<ClaimDevicesByClaimCodeResponse, RusotoError<ClaimDevicesByClaimCodeError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn claim_devices_by_claim_code<'life0, 'async_trait>(
&'life0 self,
input: ClaimDevicesByClaimCodeRequest
) -> Pin<Box<dyn Future<Output = Result<ClaimDevicesByClaimCodeResponse, RusotoError<ClaimDevicesByClaimCodeError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s).
sourcefn describe_device<'life0, 'async_trait>(
&'life0 self,
input: DescribeDeviceRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeDeviceResponse, RusotoError<DescribeDeviceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_device<'life0, 'async_trait>(
&'life0 self,
input: DescribeDeviceRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeDeviceResponse, RusotoError<DescribeDeviceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.
sourcefn finalize_device_claim<'life0, 'async_trait>(
&'life0 self,
input: FinalizeDeviceClaimRequest
) -> Pin<Box<dyn Future<Output = Result<FinalizeDeviceClaimResponse, RusotoError<FinalizeDeviceClaimError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn finalize_device_claim<'life0, 'async_trait>(
&'life0 self,
input: FinalizeDeviceClaimRequest
) -> Pin<Box<dyn Future<Output = Result<FinalizeDeviceClaimResponse, RusotoError<FinalizeDeviceClaimError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Given a device ID, finalizes the claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device.
sourcefn get_device_methods<'life0, 'async_trait>(
&'life0 self,
input: GetDeviceMethodsRequest
) -> Pin<Box<dyn Future<Output = Result<GetDeviceMethodsResponse, RusotoError<GetDeviceMethodsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_device_methods<'life0, 'async_trait>(
&'life0 self,
input: GetDeviceMethodsRequest
) -> Pin<Box<dyn Future<Output = Result<GetDeviceMethodsResponse, RusotoError<GetDeviceMethodsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Given a device ID, returns the invokable methods associated with the device.
sourcefn initiate_device_claim<'life0, 'async_trait>(
&'life0 self,
input: InitiateDeviceClaimRequest
) -> Pin<Box<dyn Future<Output = Result<InitiateDeviceClaimResponse, RusotoError<InitiateDeviceClaimError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn initiate_device_claim<'life0, 'async_trait>(
&'life0 self,
input: InitiateDeviceClaimRequest
) -> Pin<Box<dyn Future<Output = Result<InitiateDeviceClaimResponse, RusotoError<InitiateDeviceClaimError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Given a device ID, initiates a claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device.
sourcefn invoke_device_method<'life0, 'async_trait>(
&'life0 self,
input: InvokeDeviceMethodRequest
) -> Pin<Box<dyn Future<Output = Result<InvokeDeviceMethodResponse, RusotoError<InvokeDeviceMethodError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn invoke_device_method<'life0, 'async_trait>(
&'life0 self,
input: InvokeDeviceMethodRequest
) -> Pin<Box<dyn Future<Output = Result<InvokeDeviceMethodResponse, RusotoError<InvokeDeviceMethodError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below.
sourcefn list_device_events<'life0, 'async_trait>(
&'life0 self,
input: ListDeviceEventsRequest
) -> Pin<Box<dyn Future<Output = Result<ListDeviceEventsResponse, RusotoError<ListDeviceEventsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_device_events<'life0, 'async_trait>(
&'life0 self,
input: ListDeviceEventsRequest
) -> Pin<Box<dyn Future<Output = Result<ListDeviceEventsResponse, RusotoError<ListDeviceEventsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
sourcefn list_devices<'life0, 'async_trait>(
&'life0 self,
input: ListDevicesRequest
) -> Pin<Box<dyn Future<Output = Result<ListDevicesResponse, RusotoError<ListDevicesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_devices<'life0, 'async_trait>(
&'life0 self,
input: ListDevicesRequest
) -> Pin<Box<dyn Future<Output = Result<ListDevicesResponse, RusotoError<ListDevicesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the 1-Click compatible devices associated with your AWS account.
Lists the tags associated with the specified resource ARN.
sourcefn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.
sourcefn unclaim_device<'life0, 'async_trait>(
&'life0 self,
input: UnclaimDeviceRequest
) -> Pin<Box<dyn Future<Output = Result<UnclaimDeviceResponse, RusotoError<UnclaimDeviceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn unclaim_device<'life0, 'async_trait>(
&'life0 self,
input: UnclaimDeviceRequest
) -> Pin<Box<dyn Future<Output = Result<UnclaimDeviceResponse, RusotoError<UnclaimDeviceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Disassociates a device from your AWS account using its device ID.
sourcefn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Using tag keys, deletes the tags (key/value pairs) associated with the specified resource ARN.
sourcefn update_device_state<'life0, 'async_trait>(
&'life0 self,
input: UpdateDeviceStateRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateDeviceStateResponse, RusotoError<UpdateDeviceStateError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_device_state<'life0, 'async_trait>(
&'life0 self,
input: UpdateDeviceStateRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateDeviceStateResponse, RusotoError<UpdateDeviceStateError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Using a Boolean value (true or false), this operation enables or disables the device given a device ID.
Auto Trait Implementations
impl !RefUnwindSafe for Iot1ClickDevicesClient
impl Send for Iot1ClickDevicesClient
impl Sync for Iot1ClickDevicesClient
impl Unpin for Iot1ClickDevicesClient
impl !UnwindSafe for Iot1ClickDevicesClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more