Snow Device Management
This page documents function available when using the Snow_Device_Management
module, created with @service Snow_Device_Management
.
Index
Main.Snow_Device_Management.cancel_task
Main.Snow_Device_Management.create_task
Main.Snow_Device_Management.describe_device
Main.Snow_Device_Management.describe_device_ec2_instances
Main.Snow_Device_Management.describe_execution
Main.Snow_Device_Management.describe_task
Main.Snow_Device_Management.list_device_resources
Main.Snow_Device_Management.list_devices
Main.Snow_Device_Management.list_executions
Main.Snow_Device_Management.list_tags_for_resource
Main.Snow_Device_Management.list_tasks
Main.Snow_Device_Management.tag_resource
Main.Snow_Device_Management.untag_resource
Documentation
Main.Snow_Device_Management.cancel_task
— Methodcancel_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.
Main.Snow_Device_Management.create_task
— Methodcreate_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.
Main.Snow_Device_Management.describe_device
— Methoddescribe_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.
Main.Snow_Device_Management.describe_device_ec2_instances
— Methoddescribe_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.
Main.Snow_Device_Management.describe_execution
— Methoddescribe_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.
Main.Snow_Device_Management.describe_task
— Methoddescribe_task(task_id)
describe_task(task_id, params::Dict{String,<:Any})
Checks the metadata for a given task on a device.
Arguments
task_id
: The ID of the task to be described.
Main.Snow_Device_Management.list_device_resources
— Methodlist_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.
Main.Snow_Device_Management.list_devices
— Methodlist_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.
Main.Snow_Device_Management.list_executions
— Methodlist_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.
Main.Snow_Device_Management.list_tags_for_resource
— Methodlist_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.
Main.Snow_Device_Management.list_tasks
— Methodlist_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.
Main.Snow_Device_Management.tag_resource
— Methodtag_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.
Main.Snow_Device_Management.untag_resource
— Methoduntag_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.