create_task
¶
create_task(
targets: TargetList,
command: Command,
*,
config_overrides: Optional[SnowDeviceManagementClientConfig] = None,
description: Optional[TaskDescriptionString] = None,
tags: Optional[TagMap] = None,
client_token: Optional[IdempotencyToken] = None,
) -> CreateTaskOutput
Instructs one or more devices to start a task, such as unlocking or rebooting.
Parameters:
-
targets(TargetList) –A list of managed device IDs.
-
command(Command) –The task to be performed. Only one task is executed on a device at a time.
-
description(Optional[TaskDescriptionString], default:None) –A description of the task and its targets.
-
tags(Optional[TagMap], default:None) –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.
-
client_token(Optional[IdempotencyToken], default:None) –A token ensuring that the action is called only once with the specified details.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that doesn't exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.