SubscriptionProtocol

class aws_cdk.aws_sns.SubscriptionProtocol(value)

Bases: enum.Enum

The type of subscription, controlling the type of the endpoint parameter.

Example:

from aws_cdk.aws_kinesisfirehose import DeliveryStream
# stream is of type DeliveryStream


topic = sns.Topic(self, "Topic")

sns.Subscription(self, "Subscription",
    topic=topic,
    endpoint=stream.delivery_stream_arn,
    protocol=sns.SubscriptionProtocol.FIREHOSE,
    subscription_role_arn="SAMPLE_ARN"
)

Attributes

APPLICATION

JSON-encoded notifications are sent to a mobile app endpoint.

EMAIL

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.