AWSIoTCreateThingRequest

Objective-C

@interface AWSIoTCreateThingRequest

Swift

class AWSIoTCreateThingRequest

The input for the CreateThing operation.

Required parameters: [thingName]

  • The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

    {\"attributes\":{\"string1\":\"string2\"}}

    Declaration

    Objective-C

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

    Swift

    var attributePayload: AWSIoTAttributePayload? { get set }
  • The name of the billing group the thing will be added to.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable billingGroupName;

    Swift

    var billingGroupName: String? { get set }
  • The name of the thing to create.

    You can’t change a thing’s name after you create it. 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 associated with the new thing.

    Declaration

    Objective-C

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

    Swift

    var thingTypeName: String? { get set }