Iot 1Click Projects

This page documents function available when using the Iot_1Click_Projects module, created with @service Iot_1Click_Projects.

Index

Documentation

Main.Iot_1Click_Projects.associate_device_with_placementMethod
associate_device_with_placement(device_id, device_template_name, placement_name, project_name)
associate_device_with_placement(device_id, device_template_name, placement_name, project_name, params::Dict{String,<:Any})

Associates a physical device with a placement.

Arguments

  • device_id: The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.
  • device_template_name: The device template name to associate with the device ID.
  • placement_name: The name of the placement in which to associate the device.
  • project_name: The name of the project containing the placement in which to associate the device.
source
Main.Iot_1Click_Projects.create_placementMethod
create_placement(placement_name, project_name)
create_placement(placement_name, project_name, params::Dict{String,<:Any})

Creates an empty placement.

Arguments

  • placement_name: The name of the placement to be created.
  • project_name: The name of the project in which to create the placement.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "attributes": Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
source
Main.Iot_1Click_Projects.create_projectMethod
create_project(project_name)
create_project(project_name, params::Dict{String,<:Any})

Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.

Arguments

  • project_name: The name of the project to create.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "description": An optional description for the project.
  • "placementTemplate": The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides for the device templates using the UpdateProject API.
  • "tags": Optional tags (metadata key/value pairs) to be associated with the project. For example, { {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.
source
Main.Iot_1Click_Projects.delete_placementMethod
delete_placement(placement_name, project_name)
delete_placement(placement_name, project_name, params::Dict{String,<:Any})

Deletes a placement. To delete a placement, it must not have any devices associated with it. When you delete a placement, all associated data becomes irretrievable.

Arguments

  • placement_name: The name of the empty placement to delete.
  • project_name: The project containing the empty placement to delete.
source
Main.Iot_1Click_Projects.delete_projectMethod
delete_project(project_name)
delete_project(project_name, params::Dict{String,<:Any})

Deletes a project. To delete a project, it must not have any placements associated with it. When you delete a project, all associated data becomes irretrievable.

Arguments

  • project_name: The name of the empty project to delete.
source
Main.Iot_1Click_Projects.describe_placementMethod
describe_placement(placement_name, project_name)
describe_placement(placement_name, project_name, params::Dict{String,<:Any})

Describes a placement in a project.

Arguments

  • placement_name: The name of the placement within a project.
  • project_name: The project containing the placement to be described.
source
Main.Iot_1Click_Projects.describe_projectMethod
describe_project(project_name)
describe_project(project_name, params::Dict{String,<:Any})

Returns an object describing a project.

Arguments

  • project_name: The name of the project to be described.
source
Main.Iot_1Click_Projects.disassociate_device_from_placementMethod
disassociate_device_from_placement(device_template_name, placement_name, project_name)
disassociate_device_from_placement(device_template_name, placement_name, project_name, params::Dict{String,<:Any})

Removes a physical device from a placement.

Arguments

  • device_template_name: The device ID that should be removed from the placement.
  • placement_name: The name of the placement that the device should be removed from.
  • project_name: The name of the project that contains the placement.
source
Main.Iot_1Click_Projects.get_devices_in_placementMethod
get_devices_in_placement(placement_name, project_name)
get_devices_in_placement(placement_name, project_name, params::Dict{String,<:Any})

Returns an object enumerating the devices in a placement.

Arguments

  • placement_name: The name of the placement to get the devices from.
  • project_name: The name of the project containing the placement.
source
Main.Iot_1Click_Projects.list_placementsMethod
list_placements(project_name)
list_placements(project_name, params::Dict{String,<:Any})

Lists the placement(s) of a project.

Arguments

  • project_name: The project containing the placements to be listed.

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.
source
Main.Iot_1Click_Projects.list_projectsMethod
list_projects()
list_projects(params::Dict{String,<:Any})

Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

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.
source
Main.Iot_1Click_Projects.list_tags_for_resourceMethod
list_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})

Lists the tags (metadata key/value pairs) which you have assigned to the resource.

Arguments

  • resource_arn: The ARN of the resource whose tags you want to list.
source
Main.Iot_1Click_Projects.tag_resourceMethod
tag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})

Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that can be used to manage a resource. For more information, see AWS Tagging Strategies.

Arguments

  • resource_arn: The ARN of the resouce for which tag(s) should be added or modified.
  • tags: The new or modifying tag(s) for the resource. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.
source
Main.Iot_1Click_Projects.untag_resourceMethod
untag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})

Removes one or more tags (metadata key/value pairs) from a resource.

Arguments

  • resource_arn: The ARN of the resource whose tag you want to remove.
  • tag_keys: The keys of those tags which you want to remove.
source
Main.Iot_1Click_Projects.update_placementMethod
update_placement(placement_name, project_name)
update_placement(placement_name, project_name, params::Dict{String,<:Any})

Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").

Arguments

  • placement_name: The name of the placement to update.
  • project_name: The name of the project containing the placement to be updated.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "attributes": The user-defined object of attributes used to update the placement. The maximum number of key/value pairs is 50.
source
Main.Iot_1Click_Projects.update_projectMethod
update_project(project_name)
update_project(project_name, params::Dict{String,<:Any})

Updates a project associated with your AWS account and region. With the exception of device template names, you can pass just the values that need to be updated because the update request will change only the values that are provided. To clear a value, pass the empty string (i.e., "").

Arguments

  • project_name: The name of the project to be updated.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "description": An optional user-defined description for the project.
  • "placementTemplate": An object defining the project update. Once a project has been created, you cannot add device template names to the project. However, for a given placementTemplate, you can update the associated callbackOverrides for the device definition using this API.
source