Snow Device Management

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

Index

Documentation

Main.Snow_Device_Management.cancel_taskMethod
cancel_task(task_id)
cancel_task(task_id, params::Dict{String,<:Any})

Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled. A task might still run if it's processed from the queue before the CancelTask operation changes the task's state.

Arguments

  • task_id: The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation.
source
Main.Snow_Device_Management.create_taskMethod
create_task(command, targets)
create_task(command, targets, params::Dict{String,<:Any})

Instructs one or more devices to start a task, such as unlocking or rebooting.

Arguments

  • command: The task to be performed. Only one task is executed on a device at a time.
  • targets: A list of managed device IDs.

Optional Parameters

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

  • "clientToken": A token ensuring that the action is called only once with the specified details.
  • "description": A description of the task and its targets.
  • "tags": Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
source
Main.Snow_Device_Management.describe_deviceMethod
describe_device(managed_device_id)
describe_device(managed_device_id, params::Dict{String,<:Any})

Checks device-specific information, such as the device type, software version, IP addresses, and lock status.

Arguments

  • managed_device_id: The ID of the device that you are checking the information of.
source
Main.Snow_Device_Management.describe_device_ec2_instancesMethod
describe_device_ec2_instances(instance_ids, managed_device_id)
describe_device_ec2_instances(instance_ids, managed_device_id, params::Dict{String,<:Any})

Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice, but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields.

Arguments

  • instance_ids: A list of instance IDs associated with the managed device.
  • managed_device_id: The ID of the managed device.
source
Main.Snow_Device_Management.describe_executionMethod
describe_execution(managed_device_id, task_id)
describe_execution(managed_device_id, task_id, params::Dict{String,<:Any})

Checks the status of a remote task running on one or more target devices.

Arguments

  • managed_device_id: The ID of the managed device.
  • task_id: The ID of the task that the action is describing.
source
Main.Snow_Device_Management.list_device_resourcesMethod
list_device_resources(managed_device_id)
list_device_resources(managed_device_id, params::Dict{String,<:Any})

Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.

Arguments

  • managed_device_id: The ID of the managed device that you are listing the resources of.

Optional Parameters

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

  • "maxResults": The maximum number of resources per page.
  • "nextToken": A pagination token to continue to the next page of results.
  • "type": A structure used to filter the results by type of resource.
source
Main.Snow_Device_Management.list_devicesMethod
list_devices()
list_devices(params::Dict{String,<:Any})

Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run.

Optional Parameters

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

  • "jobId": The ID of the job used to order the device.
  • "maxResults": The maximum number of devices to list per page.
  • "nextToken": A pagination token to continue to the next page of results.
source
Main.Snow_Device_Management.list_executionsMethod
list_executions(task_id)
list_executions(task_id, params::Dict{String,<:Any})

Returns the status of tasks for one or more target devices.

Arguments

  • task_id: The ID of the task.

Optional Parameters

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

  • "maxResults": The maximum number of tasks to list per page.
  • "nextToken": A pagination token to continue to the next page of tasks.
  • "state": A structure used to filter the tasks by their current state.
source
Main.Snow_Device_Management.list_tags_for_resourceMethod
list_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})

Returns a list of tags for a managed device or task.

Arguments

  • resource_arn: The Amazon Resource Name (ARN) of the device or task.
source
Main.Snow_Device_Management.list_tasksMethod
list_tasks()
list_tasks(params::Dict{String,<:Any})

Returns a list of tasks that can be filtered by state.

Optional Parameters

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

  • "maxResults": The maximum number of tasks per page.
  • "nextToken": A pagination token to continue to the next page of tasks.
  • "state": A structure used to filter the list of tasks.
source
Main.Snow_Device_Management.tag_resourceMethod
tag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})

Adds or replaces tags on a device or task.

Arguments

  • resource_arn: The Amazon Resource Name (ARN) of the device or task.
  • tags: Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
source
Main.Snow_Device_Management.untag_resourceMethod
untag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})

Removes a tag from a device or task.

Arguments

  • resource_arn: The Amazon Resource Name (ARN) of the device or task.
  • tag_keys: Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
source