[][src]Struct rusoto_iot1click_devices::Iot1ClickDevicesClient

pub struct Iot1ClickDevicesClient { /* fields omitted */ }

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]

pub fn new_with_client(client: Client, region: Region) -> Iot1ClickDevicesClient[src]

Trait Implementations

impl Clone for Iot1ClickDevicesClient[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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Using a Boolean value (true or false), this operation enables or disables the device given a device ID.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.