AWSIoTHttpAction

Objective-C

@interface AWSIoTHttpAction

Swift

class AWSIoTHttpAction

Send data to an HTTPS endpoint.

Required parameters: [url]

  • The authentication method to use when sending data to an HTTPS endpoint.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSIoTHttpAuthorization *_Nullable auth;

    Swift

    var auth: AWSIoTHttpAuthorization? { get set }
  • The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.

    Declaration

    Objective-C

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

    Swift

    var confirmationUrl: String? { get set }
  • The HTTP headers to send with the message data.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSIoTHttpActionHeader *> *_Nullable headers;

    Swift

    var headers: [AWSIoTHttpActionHeader]? { get set }
  • url

    The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl. If this is a new destination, a new TopicRuleDestination is created if possible.

    Declaration

    Objective-C

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

    Swift

    var url: String? { get set }