Iot 1Click Devices Service
This page documents function available when using the Iot_1Click_Devices_Service
module, created with @service Iot_1Click_Devices_Service
.
Index
Main.Iot_1Click_Devices_Service.claim_devices_by_claim_code
Main.Iot_1Click_Devices_Service.describe_device
Main.Iot_1Click_Devices_Service.finalize_device_claim
Main.Iot_1Click_Devices_Service.get_device_methods
Main.Iot_1Click_Devices_Service.initiate_device_claim
Main.Iot_1Click_Devices_Service.invoke_device_method
Main.Iot_1Click_Devices_Service.list_device_events
Main.Iot_1Click_Devices_Service.list_devices
Main.Iot_1Click_Devices_Service.list_tags_for_resource
Main.Iot_1Click_Devices_Service.tag_resource
Main.Iot_1Click_Devices_Service.unclaim_device
Main.Iot_1Click_Devices_Service.untag_resource
Main.Iot_1Click_Devices_Service.update_device_state
Documentation
Main.Iot_1Click_Devices_Service.claim_devices_by_claim_code
— Methodclaim_devices_by_claim_code(claim_code)
claim_devices_by_claim_code(claim_code, params::Dict{String,<:Any})
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).
Arguments
claim_code
: The claim code, starting with "C-", as provided by the device manufacturer.
Main.Iot_1Click_Devices_Service.describe_device
— Methoddescribe_device(device_id)
describe_device(device_id, params::Dict{String,<:Any})
Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.
Arguments
device_id
: The unique identifier of the device.
Main.Iot_1Click_Devices_Service.finalize_device_claim
— Methodfinalize_device_claim(device_id)
finalize_device_claim(device_id, params::Dict{String,<:Any})
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.
Arguments
device_id
: The unique identifier of the device.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"tags"
: A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.
Main.Iot_1Click_Devices_Service.get_device_methods
— Methodget_device_methods(device_id)
get_device_methods(device_id, params::Dict{String,<:Any})
Given a device ID, returns the invokable methods associated with the device.
Arguments
device_id
: The unique identifier of the device.
Main.Iot_1Click_Devices_Service.initiate_device_claim
— Methodinitiate_device_claim(device_id)
initiate_device_claim(device_id, params::Dict{String,<:Any})
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.
Arguments
device_id
: The unique identifier of the device.
Main.Iot_1Click_Devices_Service.invoke_device_method
— Methodinvoke_device_method(device_id)
invoke_device_method(device_id, params::Dict{String,<:Any})
Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below.
Arguments
device_id
: The unique identifier of the device.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"deviceMethod"
: The device method to invoke."deviceMethodParameters"
: A JSON encoded string containing the device method request parameters.
Main.Iot_1Click_Devices_Service.list_device_events
— Methodlist_device_events(device_id, from_time_stamp, to_time_stamp)
list_device_events(device_id, from_time_stamp, to_time_stamp, params::Dict{String,<:Any})
Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
Arguments
device_id
: The unique identifier of the device.from_time_stamp
: The start date for the device event query, in ISO8061 format. For example,
2018-03-28T15:45:12.880Z
to_time_stamp
: The end date for the device event query, in ISO8061 format. For example,
2018-03-28T15:45:12.880Z
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to return per request. If not set, a default value of
100 is used.
"nextToken"
: The token to retrieve the next set of results.
Main.Iot_1Click_Devices_Service.list_devices
— Methodlist_devices()
list_devices(params::Dict{String,<:Any})
Lists the 1-Click compatible devices associated with your AWS account.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"deviceType"
: The type of the device, such as "button"."maxResults"
: The maximum number of results to return per request. If not set, a default value of
100 is used.
"nextToken"
: The token to retrieve the next set of results.
Main.Iot_1Click_Devices_Service.list_tags_for_resource
— Methodlist_tags_for_resource(resource-arn)
list_tags_for_resource(resource-arn, params::Dict{String,<:Any})
Lists the tags associated with the specified resource ARN.
Arguments
resource-arn
: The ARN of the resource.
Main.Iot_1Click_Devices_Service.tag_resource
— Methodtag_resource(resource-arn, tags)
tag_resource(resource-arn, tags, params::Dict{String,<:Any})
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.
Arguments
resource-arn
: The ARN of the resource.tags
: A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.
Main.Iot_1Click_Devices_Service.unclaim_device
— Methodunclaim_device(device_id)
unclaim_device(device_id, params::Dict{String,<:Any})
Disassociates a device from your AWS account using its device ID.
Arguments
device_id
: The unique identifier of the device.
Main.Iot_1Click_Devices_Service.untag_resource
— Methoduntag_resource(resource-arn, tag_keys)
untag_resource(resource-arn, tag_keys, params::Dict{String,<:Any})
Using tag keys, deletes the tags (key/value pairs) associated with the specified resource ARN.
Arguments
resource-arn
: The ARN of the resource.tag_keys
: A collections of tag keys. For example, {"key1","key2"}
Main.Iot_1Click_Devices_Service.update_device_state
— Methodupdate_device_state(device_id)
update_device_state(device_id, params::Dict{String,<:Any})
Using a Boolean value (true or false), this operation enables or disables the device given a device ID.
Arguments
device_id
: The unique identifier of the device.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"enabled"
: If true, the device is enabled. If false, the device is
disabled.