[−][src]Struct rusoto_iot1click_devices::Iot1ClickDevicesClient
A client for the AWS IoT 1-Click Devices Service API.
Implementations
impl Iot1ClickDevicesClient
[src]
pub fn new(region: Region) -> Iot1ClickDevicesClient
[src]
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,
[src]
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
[src]
Trait Implementations
impl Clone for Iot1ClickDevicesClient
[src]
pub fn clone(&self) -> Iot1ClickDevicesClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Iot1ClickDevices for Iot1ClickDevicesClient
[src]
pub 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,
[src]
&'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).
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub fn list_tags_for_resource<'life0, 'async_trait>(
&'life0 self,
input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the tags associated with the specified resource ARN.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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.
pub 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,
[src]
&'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
[src]
impl Send for Iot1ClickDevicesClient
[src]
impl Sync for Iot1ClickDevicesClient
[src]
impl Unpin for Iot1ClickDevicesClient
[src]
impl !UnwindSafe for Iot1ClickDevicesClient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,