AWSIoTUpdateThingRequest

@interface AWSIoTUpdateThingRequest

The input for the UpdateThing operation.

Required parameters: [thingName]

  • 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.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        AWSIoTAttributePayload *_Nullable attributePayload;

    Swift

    var attributePayload: AWSIoTAttributePayload? { get set }
  • 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.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable expectedVersion;

    Swift

    var expectedVersion: NSNumber? { get set }
  • Remove a thing type association. If true, the association is removed.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable removeThingType;

    Swift

    var removeThingType: NSNumber? { get set }
  • The name of the thing to update.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable thingName;

    Swift

    var thingName: String? { get set }
  • The name of the thing type.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable thingTypeName;

    Swift

    var thingTypeName: String? { get set }