Skip to content

CreateCommandRequest

Source code in docs_src/capo_iot/types/create_command_request.py
class CreateCommandRequest(TypedDict, closed=True):
    command_id: "capo_iot.types.command_id.CommandId"
    """<p>A unique identifier for the command. We recommend using UUID. Alpha-numeric characters, hyphens, and underscores are valid for use here.</p>"""
    namespace: NotRequired["capo_iot.types.command_namespace.CommandNamespace"]
    """<p>The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.</p>"""
    display_name: NotRequired["capo_iot.types.display_name.DisplayName"]
    """<p>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.</p>"""
    description: NotRequired["capo_iot.types.command_description.CommandDescription"]
    """<p>A short text decription of the command.</p>"""
    payload: NotRequired["capo_iot.types.command_payload.CommandPayload"]
    """<p>The payload object for the static command.</p> <p>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.</p>"""
    payload_template: NotRequired[
        "capo_iot.types.command_payload_template_string.CommandPayloadTemplateString"
    ]
    """<p>The payload template for the dynamic command.</p> <note> <p>This parameter is required for dynamic commands where the command execution placeholders are supplied either from <code>mandatoryParameters</code> or when <code>StartCommandExecution</code> is invoked.</p> </note>"""
    preprocessor: NotRequired["capo_iot.types.command_preprocessor.CommandPreprocessor"]
    """<p>Configuration that determines how <code>payloadTemplate</code> is processed to generate command execution payload.</p> <note> <p>This parameter is required for dynamic commands, along with <code>payloadTemplate</code>, and <code>mandatoryParameters</code>.</p> </note>"""
    mandatory_parameters: NotRequired[
        "capo_iot.types.command_parameter_list.CommandParameterList"
    ]
    """<p>A list of parameters that are used by <code>StartCommandExecution</code> API for execution payload generation.</p>"""
    role_arn: NotRequired["capo_iot.types.role_arn.RoleArn"]
    """<p>The IAM role that you must provide when using the <code>AWS-IoT-FleetWise</code> 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 <code>AWS-IoT</code> namespace.</p>"""
    tags: NotRequired["capo_iot.types.tag_list.TagList"]
    """<p>Name-value pairs that are used as metadata to manage a command.</p>"""

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.

tags instance-attribute

tags: NotRequired[TagList]

Name-value pairs that are used as metadata to manage a command.