1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. iot
  6. getCommand

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi

    Represents the resource definition of AWS IoT Command.

    Using getCommand

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCommand(args: GetCommandArgs, opts?: InvokeOptions): Promise<GetCommandResult>
    function getCommandOutput(args: GetCommandOutputArgs, opts?: InvokeOutputOptions): Output<GetCommandResult>
    def get_command(command_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetCommandResult
    def get_command_output(command_id: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetCommandResult]
    func LookupCommand(ctx *Context, args *LookupCommandArgs, opts ...InvokeOption) (*LookupCommandResult, error)
    func LookupCommandOutput(ctx *Context, args *LookupCommandOutputArgs, opts ...InvokeOption) LookupCommandResultOutput

    > Note: This function is named LookupCommand in the Go SDK.

    public static class GetCommand 
    {
        public static Task<GetCommandResult> InvokeAsync(GetCommandArgs args, InvokeOptions? opts = null)
        public static Output<GetCommandResult> Invoke(GetCommandInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCommandResult> Invoke(GetCommandInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCommandResult> getCommand(GetCommandArgs args, InvokeOptions options)
    public static Output<GetCommandResult> getCommand(GetCommandArgs args, InvokeOptions options)
    public static Output<GetCommandResult> getCommand(GetCommandArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:iot:getCommand
      arguments:
        # arguments dictionary
    data "aws-native_iot_get_command" "name" {
        # arguments
    }

    The following arguments are supported:

    CommandId string
    The unique identifier for the command.
    CommandId string
    The unique identifier for the command.
    command_id string
    The unique identifier for the command.
    commandId String
    The unique identifier for the command.
    commandId string
    The unique identifier for the command.
    command_id str
    The unique identifier for the command.
    commandId String
    The unique identifier for the command.

    getCommand Result

    The following output properties are available:

    CommandArn string
    The Amazon Resource Name (ARN) of the command.
    CreatedAt string
    The date and time when the command was created.
    Deprecated bool
    A flag indicating whether the command is deprecated.
    Description string
    The description of the command.
    DisplayName string
    The display name for the command.
    MandatoryParameters List<Pulumi.AwsNative.IoT.Outputs.CommandParameter>
    The list of mandatory parameters for the command.
    Namespace Pulumi.AwsNative.IoT.CommandNamespace
    The namespace to which the command belongs.
    Payload Pulumi.AwsNative.IoT.Outputs.CommandPayload
    The payload associated with the command.
    PendingDeletion bool
    A flag indicating whether the command is pending deletion.
    RoleArn string
    The customer role associated with the command.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags to be associated with the command.
    CommandArn string
    The Amazon Resource Name (ARN) of the command.
    CreatedAt string
    The date and time when the command was created.
    Deprecated bool
    A flag indicating whether the command is deprecated.
    Description string
    The description of the command.
    DisplayName string
    The display name for the command.
    MandatoryParameters []CommandParameter
    The list of mandatory parameters for the command.
    Namespace CommandNamespace
    The namespace to which the command belongs.
    Payload CommandPayload
    The payload associated with the command.
    PendingDeletion bool
    A flag indicating whether the command is pending deletion.
    RoleArn string
    The customer role associated with the command.
    Tags Tag
    The tags to be associated with the command.
    command_arn string
    The Amazon Resource Name (ARN) of the command.
    created_at string
    The date and time when the command was created.
    deprecated bool
    A flag indicating whether the command is deprecated.
    description string
    The description of the command.
    display_name string
    The display name for the command.
    mandatory_parameters list(object)
    The list of mandatory parameters for the command.
    namespace "AWS-IoT" | "AWS-IoT-FleetWise"
    The namespace to which the command belongs.
    payload object
    The payload associated with the command.
    pending_deletion bool
    A flag indicating whether the command is pending deletion.
    role_arn string
    The customer role associated with the command.
    tags list(object)
    The tags to be associated with the command.
    commandArn String
    The Amazon Resource Name (ARN) of the command.
    createdAt String
    The date and time when the command was created.
    deprecated Boolean
    A flag indicating whether the command is deprecated.
    description String
    The description of the command.
    displayName String
    The display name for the command.
    mandatoryParameters List<CommandParameter>
    The list of mandatory parameters for the command.
    namespace CommandNamespace
    The namespace to which the command belongs.
    payload CommandPayload
    The payload associated with the command.
    pendingDeletion Boolean
    A flag indicating whether the command is pending deletion.
    roleArn String
    The customer role associated with the command.
    tags List<Tag>
    The tags to be associated with the command.
    commandArn string
    The Amazon Resource Name (ARN) of the command.
    createdAt string
    The date and time when the command was created.
    deprecated boolean
    A flag indicating whether the command is deprecated.
    description string
    The description of the command.
    displayName string
    The display name for the command.
    mandatoryParameters CommandParameter[]
    The list of mandatory parameters for the command.
    namespace CommandNamespace
    The namespace to which the command belongs.
    payload CommandPayload
    The payload associated with the command.
    pendingDeletion boolean
    A flag indicating whether the command is pending deletion.
    roleArn string
    The customer role associated with the command.
    tags Tag[]
    The tags to be associated with the command.
    command_arn str
    The Amazon Resource Name (ARN) of the command.
    created_at str
    The date and time when the command was created.
    deprecated bool
    A flag indicating whether the command is deprecated.
    description str
    The description of the command.
    display_name str
    The display name for the command.
    mandatory_parameters Sequence[CommandParameter]
    The list of mandatory parameters for the command.
    namespace CommandNamespace
    The namespace to which the command belongs.
    payload CommandPayload
    The payload associated with the command.
    pending_deletion bool
    A flag indicating whether the command is pending deletion.
    role_arn str
    The customer role associated with the command.
    tags Sequence[root_Tag]
    The tags to be associated with the command.
    commandArn String
    The Amazon Resource Name (ARN) of the command.
    createdAt String
    The date and time when the command was created.
    deprecated Boolean
    A flag indicating whether the command is deprecated.
    description String
    The description of the command.
    displayName String
    The display name for the command.
    mandatoryParameters List<Property Map>
    The list of mandatory parameters for the command.
    namespace "AWS-IoT" | "AWS-IoT-FleetWise"
    The namespace to which the command belongs.
    payload Property Map
    The payload associated with the command.
    pendingDeletion Boolean
    A flag indicating whether the command is pending deletion.
    roleArn String
    The customer role associated with the command.
    tags List<Property Map>
    The tags to be associated with the command.

    Supporting Types

    CommandNamespace

    AwsIoT
    AWS-IoT
    AwsIoTFleetWise
    AWS-IoT-FleetWise
    CommandNamespaceAwsIoT
    AWS-IoT
    CommandNamespaceAwsIoTFleetWise
    AWS-IoT-FleetWise
    "AWS-IoT"
    AWS-IoT
    "AWS-IoT-FleetWise"
    AWS-IoT-FleetWise
    AwsIoT
    AWS-IoT
    AwsIoTFleetWise
    AWS-IoT-FleetWise
    AwsIoT
    AWS-IoT
    AwsIoTFleetWise
    AWS-IoT-FleetWise
    AWS_IO_T
    AWS-IoT
    AWS_IO_T_FLEET_WISE
    AWS-IoT-FleetWise
    "AWS-IoT"
    AWS-IoT
    "AWS-IoT-FleetWise"
    AWS-IoT-FleetWise

    CommandParameter

    CommandParameterType

    String
    STRING
    Integer
    INTEGER
    Double
    DOUBLE
    Long
    LONG
    Unsignedlong
    UNSIGNEDLONG
    Boolean
    BOOLEAN
    Binary
    BINARY
    CommandParameterTypeString
    STRING
    CommandParameterTypeInteger
    INTEGER
    CommandParameterTypeDouble
    DOUBLE
    CommandParameterTypeLong
    LONG
    CommandParameterTypeUnsignedlong
    UNSIGNEDLONG
    CommandParameterTypeBoolean
    BOOLEAN
    CommandParameterTypeBinary
    BINARY
    "STRING"
    STRING
    "INTEGER"
    INTEGER
    "DOUBLE"
    DOUBLE
    "LONG"
    LONG
    "UNSIGNEDLONG"
    UNSIGNEDLONG
    "BOOLEAN"
    BOOLEAN
    "BINARY"
    BINARY
    String
    STRING
    Integer
    INTEGER
    Double
    DOUBLE
    Long
    LONG
    Unsignedlong
    UNSIGNEDLONG
    Boolean
    BOOLEAN
    Binary
    BINARY
    String
    STRING
    Integer
    INTEGER
    Double
    DOUBLE
    Long
    LONG
    Unsignedlong
    UNSIGNEDLONG
    Boolean
    BOOLEAN
    Binary
    BINARY
    STRING
    STRING
    INTEGER
    INTEGER
    DOUBLE
    DOUBLE
    LONG
    LONG
    UNSIGNEDLONG
    UNSIGNEDLONG
    BOOLEAN
    BOOLEAN
    BINARY
    BINARY
    "STRING"
    STRING
    "INTEGER"
    INTEGER
    "DOUBLE"
    DOUBLE
    "LONG"
    LONG
    "UNSIGNEDLONG"
    UNSIGNEDLONG
    "BOOLEAN"
    BOOLEAN
    "BINARY"
    BINARY

    CommandParameterValue

    B bool
    Bin string
    D double
    I int
    L string
    S string
    Ul string
    B bool
    Bin string
    D float64
    I int
    L string
    S string
    Ul string
    b bool
    bin string
    d number
    i number
    l string
    s string
    ul string
    b Boolean
    bin String
    d Double
    i Integer
    l String
    s String
    ul String
    b boolean
    bin string
    d number
    i number
    l string
    s string
    ul string
    b bool
    bin str
    d float
    i int
    l str
    s str
    ul str
    b Boolean
    bin String
    d Number
    i Number
    l String
    s String
    ul String

    CommandParameterValueComparisonOperand

    number string
    number_range object
    numbers list(string)
    string string
    strings list(string)
    number String
    numberRange Property Map
    numbers List<String>
    string String
    strings List<String>

    CommandParameterValueComparisonOperator

    EqualsValue
    EQUALS
    NotEquals
    NOT_EQUALS
    LessThan
    LESS_THAN
    LessThanEquals
    LESS_THAN_EQUALS
    GreaterThan
    GREATER_THAN
    GreaterThanEquals
    GREATER_THAN_EQUALS
    InSet
    IN_SET
    NotInSet
    NOT_IN_SET
    InRange
    IN_RANGE
    NotInRange
    NOT_IN_RANGE
    CommandParameterValueComparisonOperatorEquals
    EQUALS
    CommandParameterValueComparisonOperatorNotEquals
    NOT_EQUALS
    CommandParameterValueComparisonOperatorLessThan
    LESS_THAN
    CommandParameterValueComparisonOperatorLessThanEquals
    LESS_THAN_EQUALS
    CommandParameterValueComparisonOperatorGreaterThan
    GREATER_THAN
    CommandParameterValueComparisonOperatorGreaterThanEquals
    GREATER_THAN_EQUALS
    CommandParameterValueComparisonOperatorInSet
    IN_SET
    CommandParameterValueComparisonOperatorNotInSet
    NOT_IN_SET
    CommandParameterValueComparisonOperatorInRange
    IN_RANGE
    CommandParameterValueComparisonOperatorNotInRange
    NOT_IN_RANGE
    "EQUALS"
    EQUALS
    "NOT_EQUALS"
    NOT_EQUALS
    "LESS_THAN"
    LESS_THAN
    "LESS_THAN_EQUALS"
    LESS_THAN_EQUALS
    "GREATER_THAN"
    GREATER_THAN
    "GREATER_THAN_EQUALS"
    GREATER_THAN_EQUALS
    "IN_SET"
    IN_SET
    "NOT_IN_SET"
    NOT_IN_SET
    "IN_RANGE"
    IN_RANGE
    "NOT_IN_RANGE"
    NOT_IN_RANGE
    Equals
    EQUALS
    NotEquals
    NOT_EQUALS
    LessThan
    LESS_THAN
    LessThanEquals
    LESS_THAN_EQUALS
    GreaterThan
    GREATER_THAN
    GreaterThanEquals
    GREATER_THAN_EQUALS
    InSet
    IN_SET
    NotInSet
    NOT_IN_SET
    InRange
    IN_RANGE
    NotInRange
    NOT_IN_RANGE
    Equals
    EQUALS
    NotEquals
    NOT_EQUALS
    LessThan
    LESS_THAN
    LessThanEquals
    LESS_THAN_EQUALS
    GreaterThan
    GREATER_THAN
    GreaterThanEquals
    GREATER_THAN_EQUALS
    InSet
    IN_SET
    NotInSet
    NOT_IN_SET
    InRange
    IN_RANGE
    NotInRange
    NOT_IN_RANGE
    EQUALS
    EQUALS
    NOT_EQUALS
    NOT_EQUALS
    LESS_THAN
    LESS_THAN
    LESS_THAN_EQUALS
    LESS_THAN_EQUALS
    GREATER_THAN
    GREATER_THAN
    GREATER_THAN_EQUALS
    GREATER_THAN_EQUALS
    IN_SET
    IN_SET
    NOT_IN_SET
    NOT_IN_SET
    IN_RANGE
    IN_RANGE
    NOT_IN_RANGE
    NOT_IN_RANGE
    "EQUALS"
    EQUALS
    "NOT_EQUALS"
    NOT_EQUALS
    "LESS_THAN"
    LESS_THAN
    "LESS_THAN_EQUALS"
    LESS_THAN_EQUALS
    "GREATER_THAN"
    GREATER_THAN
    "GREATER_THAN_EQUALS"
    GREATER_THAN_EQUALS
    "IN_SET"
    IN_SET
    "NOT_IN_SET"
    NOT_IN_SET
    "IN_RANGE"
    IN_RANGE
    "NOT_IN_RANGE"
    NOT_IN_RANGE

    CommandParameterValueCondition

    CommandParameterValueNumberRange

    Max string
    Min string
    Max string
    Min string
    max string
    min string
    max String
    min String
    max string
    min string
    max str
    min str
    max String
    min String

    CommandPayload

    Content string
    ContentType string
    Content string
    ContentType string
    content string
    content_type string
    content String
    contentType String
    content string
    contentType string
    content String
    contentType String

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial