SubscriptionProtocol
- class aws_cdk.aws_sns.SubscriptionProtocol(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The type of subscription, controlling the type of the endpoint parameter.
- ExampleMetadata:
infused
Example:
from aws_cdk.aws_kinesisfirehose_alpha import DeliveryStream # stream: 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.