CreateCommandRequest
¶
Source code in docs_src/capo_iot/types/create_command_request.py
command_id
instance-attribute
¶
command_id: CommandId
A unique identifier for the command. We recommend using UUID. Alpha-numeric characters, hyphens, and underscores are valid for use here.
description
instance-attribute
¶
description: NotRequired[CommandDescription]
A short text decription of the command.
display_name
instance-attribute
¶
display_name: NotRequired[DisplayName]
The user-friendly name in the console for the command. This name doesn't have to be unique. You can update the user-friendly name after you define it.
mandatory_parameters
instance-attribute
¶
mandatory_parameters: NotRequired[CommandParameterList]
A list of parameters that are used by StartCommandExecution API for execution payload generation.
namespace
instance-attribute
¶
namespace: NotRequired[CommandNamespace]
The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.
payload
instance-attribute
¶
payload: NotRequired[CommandPayload]
The payload object for the static command.
You can upload a static payload file from your local storage that contains the instructions for the device to process. The payload file can use any format. To make sure that the device correctly interprets the payload, we recommend you to specify the payload content type.
payload_template
instance-attribute
¶
payload_template: NotRequired[CommandPayloadTemplateString]
The payload template for the dynamic command.
This parameter is required for dynamic commands where the command execution placeholders are supplied either from mandatoryParameters or when StartCommandExecution is invoked.
preprocessor
instance-attribute
¶
preprocessor: NotRequired[CommandPreprocessor]
Configuration that determines how payloadTemplate is processed to generate command execution payload.
This parameter is required for dynamic commands, along with payloadTemplate, and mandatoryParameters.
role_arn
instance-attribute
¶
role_arn: NotRequired[RoleArn]
The IAM role that you must provide when using the AWS-IoT-FleetWise namespace. The role grants IoT Device Management the permission to access IoT FleetWise resources for generating the payload for the command. This field is not supported when you use the AWS-IoT namespace.