AWSIoTUpdateThingRequest
Objective-C
@interface AWSIoTUpdateThingRequest
Swift
class 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 (nonatomic, strong) 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 aVersionConflictException
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable expectedVersion;
Swift
var expectedVersion: NSNumber? { get set }
-
Remove a thing type association. If true, the association is removed.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable removeThingType;
Swift
var removeThingType: NSNumber? { get set }
-
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.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable thingName;
Swift
var thingName: String? { get set }
-
The name of the thing type.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable thingTypeName;
Swift
var thingTypeName: String? { get set }