Enum SubscriptionProtocol
- All Implemented Interfaces:
Serializable
,Comparable<SubscriptionProtocol>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.197Z")
@Stability(Stable)
public enum SubscriptionProtocol
extends Enum<SubscriptionProtocol>
The type of subscription, controlling the type of the endpoint parameter.
Example:
import software.amazon.awscdk.services.kinesisfirehose.DeliveryStream; DeliveryStream stream; Topic topic = new Topic(this, "Topic"); Subscription.Builder.create(this, "Subscription") .topic(topic) .endpoint(stream.getDeliveryStreamArn()) .protocol(SubscriptionProtocol.FIREHOSE) .subscriptionRoleArn("SAMPLE_ARN") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJSON-encoded notifications are sent to a mobile app endpoint.Notifications are sent via email.Notifications are JSON-encoded and sent via mail.Notifications put records into a firehose delivery stream.JSON-encoded message is POSTED to an HTTP url.JSON-encoded message is POSTed to an HTTPS url.Notifications trigger a Lambda function.Notification is delivered by SMS.Notifications are enqueued into an SQS queue. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionProtocol
Returns the enum constant of this type with the specified name.static SubscriptionProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTTP
JSON-encoded message is POSTED to an HTTP url. -
HTTPS
JSON-encoded message is POSTed to an HTTPS url. -
EMAIL
Notifications are sent via email. -
EMAIL_JSON
Notifications are JSON-encoded and sent via mail. -
SMS
Notification is delivered by SMS. -
SQS
Notifications are enqueued into an SQS queue. -
APPLICATION
JSON-encoded notifications are sent to a mobile app endpoint. -
LAMBDA
Notifications trigger a Lambda function. -
FIREHOSE
Notifications put records into a firehose delivery stream.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-