Skip to content

Cannot update --thing-type-properties with aws iot update-thing-type #9884

@AleksandarGT

Description

@AleksandarGT

Describe the bug

I wanted to update aws iot core thing type searchable attributes and I saw in the documentation that it is possible using the CLI, but running the following command

aws iot update-thing-type --thing-type-name "Test_type" --thing-type-properties searchableAttributes="product,environment"

yields the following output

An error occurred (InvalidRequestException) when calling the UpdateThingType operation: Can only update mqtt5Configuration.

According to the documentation here: https://docs.aws.amazon.com/cli/latest/reference/iot/update-thing-type.html we should be able to modify the searchable attributes

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Expected the command to succeed

Current Behavior

It failed with

An error occurred (InvalidRequestException) when calling the UpdateThingType operation: Can only update mqtt5Configuration.

Reproduction Steps

Run the above command

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.32.6

Environment details (OS name and version, etc.)

Windows 64bit

Metadata

Metadata

Assignees

Labels

iotp3This is a minor priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions