---
type: resource-type
title: Command
description: aws resource type AWS::IoT::Command
name: Command
lexicon: aws
resource_type: AWS::IoT::Command
---
`AWS::IoT::Command`, a resource type of the aws lexicon.

## Properties

- `CommandId` (`string`, required): The unique identifier for the command.
- `CommandArn` (`string`, optional): The Amazon Resource Name (ARN) of the command.
- `CreatedAt` (`string`, optional): The date and time when the command was created.
- `Deprecated` (`boolean`, optional): A flag indicating whether the command is deprecated.
- `Description` (`string`, optional): The description of the command.
- `DisplayName` (`string`, optional): The display name for the command.
- `LastUpdatedAt` (`string`, optional): The date and time when the command was last updated.
- `MandatoryParameters` (`any`, optional): The list of mandatory parameters for the command.
- `Namespace` (`"AWS-IoT" | "AWS-IoT-FleetWise"`, optional): The namespace to which the command belongs.
- `Payload` (`Command_CommandPayload`, optional): The payload associated with the command.
- `PayloadTemplate` (`string`, optional): The payload template associated with the command.
- `PendingDeletion` (`boolean`, optional): A flag indicating whether the command is pending deletion.
- `Preprocessor` (`Command_CommandPreprocessor`, optional): The command preprocessor configuration.
- `RoleArn` (`string`, optional): The customer role associated with the command.
- `Tags` (`Command_Tag[]`, optional): The tags to be associated with the command.

## Attributes

- `CommandArn`
