-
Notifications
You must be signed in to change notification settings - Fork 17
/
awssns_SubscriptionProtocol.go
43 lines (39 loc) · 1.63 KB
/
awssns_SubscriptionProtocol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package awssns
// The type of subscription, controlling the type of the endpoint parameter.
//
// Example:
// // Example automatically generated from non-compiling source. May contain errors.
// import "github.com/aws-samples/dummy/awscdklibawskinesisfirehose"
// var stream DeliveryStream
//
//
// topic := sns.NewTopic(this, jsii.String("Topic"))
//
// sns.NewSubscription(this, jsii.String("Subscription"), &subscriptionProps{
// topic: topic,
// endpoint: stream.deliveryStreamArn,
// protocol: sns.subscriptionProtocol_FIREHOSE,
// subscriptionRoleArn: jsii.String("SAMPLE_ARN"),
// })
//
type SubscriptionProtocol string
const (
// JSON-encoded message is POSTED to an HTTP url.
SubscriptionProtocol_HTTP SubscriptionProtocol = "HTTP"
// JSON-encoded message is POSTed to an HTTPS url.
SubscriptionProtocol_HTTPS SubscriptionProtocol = "HTTPS"
// Notifications are sent via email.
SubscriptionProtocol_EMAIL SubscriptionProtocol = "EMAIL"
// Notifications are JSON-encoded and sent via mail.
SubscriptionProtocol_EMAIL_JSON SubscriptionProtocol = "EMAIL_JSON"
// Notification is delivered by SMS.
SubscriptionProtocol_SMS SubscriptionProtocol = "SMS"
// Notifications are enqueued into an SQS queue.
SubscriptionProtocol_SQS SubscriptionProtocol = "SQS"
// JSON-encoded notifications are sent to a mobile app endpoint.
SubscriptionProtocol_APPLICATION SubscriptionProtocol = "APPLICATION"
// Notifications trigger a Lambda function.
SubscriptionProtocol_LAMBDA SubscriptionProtocol = "LAMBDA"
// Notifications put records into a firehose delivery stream.
SubscriptionProtocol_FIREHOSE SubscriptionProtocol = "FIREHOSE"
)