Class SubscriptionProtocol
The type of subscription, controlling the type of the endpoint parameter.
Inheritance
Namespace: Amazon.CDK.AWS.SNS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class SubscriptionProtocol : Enum
Syntax (vb)
Public NotInheritable Class SubscriptionProtocol
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.KinesisFirehose.Alpha;
DeliveryStream stream;
var topic = new Topic(this, "Topic");
new Subscription(this, "Subscription", new SubscriptionProps {
Topic = topic,
Endpoint = stream.DeliveryStreamArn,
Protocol = SubscriptionProtocol.FIREHOSE,
SubscriptionRoleArn = "SAMPLE_ARN"
});
Synopsis
Fields
APPLICATION | JSON-encoded notifications are sent to a mobile app endpoint. |
Notifications are sent via email. |
|
EMAIL_JSON | Notifications are JSON-encoded and sent via mail. |
FIREHOSE | Notifications put records into a firehose delivery stream. |
HTTP | JSON-encoded message is POSTED to an HTTP url. |
HTTPS | JSON-encoded message is POSTed to an HTTPS url. |
LAMBDA | Notifications trigger a Lambda function. |
SMS | Notification is delivered by SMS. |
SQS | Notifications are enqueued into an SQS queue. |
value__ |
Fields
APPLICATION
JSON-encoded notifications are sent to a mobile app endpoint.
public const SubscriptionProtocol APPLICATION
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
Notifications are sent via email.
public const SubscriptionProtocol EMAIL
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
EMAIL_JSON
Notifications are JSON-encoded and sent via mail.
public const SubscriptionProtocol EMAIL_JSON
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
FIREHOSE
Notifications put records into a firehose delivery stream.
public const SubscriptionProtocol FIREHOSE
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
HTTP
JSON-encoded message is POSTED to an HTTP url.
public const SubscriptionProtocol HTTP
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
HTTPS
JSON-encoded message is POSTed to an HTTPS url.
public const SubscriptionProtocol HTTPS
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
LAMBDA
Notifications trigger a Lambda function.
public const SubscriptionProtocol LAMBDA
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
SMS
Notification is delivered by SMS.
public const SubscriptionProtocol SMS
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
SQS
Notifications are enqueued into an SQS queue.
public const SubscriptionProtocol SQS
Field Value
Type | Description |
---|---|
SubscriptionProtocol |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |