Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UpdateThingRequest

import type { UpdateThingRequest } from "https://aws-api.deno.dev/v0.3/services/iot.ts?docs=full";

The input for the UpdateThing operation.

interface UpdateThingRequest {
attributePayload?: AttributePayload | null;
expectedVersion?: number | null;
removeThingType?: boolean | null;
thingName: string;
thingTypeName?: string | null;
}

§Properties

§
attributePayload?: AttributePayload | null
[src]

A list of thing attributes, a JSON string containing name-value pairs. For example:

{\"attributes\":{\"name1\":\"value2\"}}

This data is used to add new attributes or update existing attributes.

§
expectedVersion?: number | null
[src]

The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException.

§
removeThingType?: boolean | null
[src]

Remove a thing type association. If true, the association is removed.

§
thingName: string
[src]

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

§
thingTypeName?: string | null
[src]

The name of the thing type.