Class HttpsAction
(experimental) The action to send data from an MQTT message to a web application or service.
Inheritance
System.Object
HttpsAction
Implements
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public class HttpsAction : DeputyBase, IAction
Syntax (vb)
Public Class HttpsAction
Inherits DeputyBase
Implements IAction
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var topicRule = new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'")
});
topicRule.AddAction(
new HttpsAction("https://example.com/endpoint", new HttpsActionProps {
ConfirmationUrl = "https://example.com",
Headers = new [] { new HttpActionHeader { Key = "key0", Value = "value0" }, new HttpActionHeader { Key = "key1", Value = "value1" } },
Auth = new HttpActionSigV4Auth { ServiceName = "serviceName", SigningRegion = "us-east-1" }
}));
Synopsis
Constructors
HttpsAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpsAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpsAction(String, IHttpsActionProps) |
Constructors
HttpsAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpsAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpsAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpsAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpsAction(String, IHttpsActionProps)
public HttpsAction(string url, IHttpsActionProps props = null)
Parameters
- url System.String
The url to which to send post request.
- props IHttpsActionProps
Optional properties to not use default.
Remarks
Stability: Experimental