SnowDeviceManagement.Client.create_task(**kwargs)¶Instructs one or more devices to start a task, such as unlocking or rebooting.
See also: AWS API Documentation
Request Syntax
response = client.create_task(
    clientToken='string',
    command={
        'reboot': {}
        ,
        'unlock': {}
    },
    description='string',
    tags={
        'string': 'string'
    },
    targets=[
        'string',
    ]
)
A token ensuring that the action is called only once with the specified details.
This field is autopopulated if not provided.
[REQUIRED]
The task to be performed. Only one task is executed on a device at a time.
Note
This is a Tagged Union structure. Only one of the     following top level keys can be set: reboot, unlock.
Reboots the device.
Unlocks the device.
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.
[REQUIRED]
A list of managed device IDs.
dict
Response Syntax
{
    'taskArn': 'string',
    'taskId': 'string'
}
Response Structure
(dict) --
taskArn (string) --
The Amazon Resource Name (ARN) of the task that you created.
taskId (string) --
The ID of the task that you created.
Exceptions
SnowDeviceManagement.Client.exceptions.ServiceQuotaExceededExceptionSnowDeviceManagement.Client.exceptions.ThrottlingExceptionSnowDeviceManagement.Client.exceptions.InternalServerExceptionSnowDeviceManagement.Client.exceptions.ResourceNotFoundExceptionSnowDeviceManagement.Client.exceptions.ValidationExceptionSnowDeviceManagement.Client.exceptions.AccessDeniedException