AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . iot-jobs-data ]
Using the command created with the CreateCommand
API, start a command execution on a specific device.
See also: AWS API Documentation
start-command-execution
--target-arn <value>
--command-arn <value>
[--parameters <value>]
[--execution-timeout-seconds <value>]
[--client-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
--target-arn
(string)
The Amazon Resource Number (ARN) of the device where the command execution is occurring.
--command-arn
(string)
The Amazon Resource Number (ARN) of the command. For example,arn:aws:iot:<region>:<accountid>:command/<commandName>
--parameters
(map)
A list of parameters that are required by the
StartCommandExecution
API when performing the command on a device.key -> (string)
value -> (structure)
The list of values used to describe a specific command parameter.
S -> (string)
An attribute of type String. For example:
"S": "Hello"
B -> (boolean)
An attribute of type Boolean. For example:
"BOOL": true
I -> (integer)
An attribute of type Integer (Thirty-Two Bits).L -> (long)
An attribute of type Long.D -> (double)
An attribute of type Double (Sixty-Four Bits).BIN -> (blob)
An attribute of type Binary.UL -> (string)
An attribute of type Unsigned Long.
Shorthand Syntax:
KeyName1=S=string,B=boolean,I=integer,L=long,D=double,BIN=blob,UL=string,KeyName2=S=string,B=boolean,I=integer,L=long,D=double,BIN=blob,UL=string
JSON Syntax:
{"string": {
"S": "string",
"B": true|false,
"I": integer,
"L": long,
"D": double,
"BIN": blob,
"UL": "string"
}
...}
--execution-timeout-seconds
(long)
Specifies the amount of time in second the device has to finish the command execution. A timer is started as soon as the command execution is created. If the command execution status is not set to another terminal state before the timer expires, it will automatically update toTIMED_OUT
.
--client-token
(string)
The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you retry the request using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
--cli-input-json
(string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command's default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.