Interface SnsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SnsProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.965Z")
@Stability(Stable)
public interface SnsProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for a SNS action.
Example:
import software.amazon.awscdk.services.s3.*; import software.amazon.awscdk.services.ses.actions.*; Bucket bucket = new Bucket(this, "Bucket"); Topic topic = new Topic(this, "Topic"); ReceiptRuleSet.Builder.create(this, "RuleSet") .rules(List.of(ReceiptRuleOptions.builder() .recipients(List.of("hello@aws.com")) .actions(List.of( AddHeader.Builder.create() .name("X-Special-Header") .value("aws") .build(), S3.Builder.create() .bucket(bucket) .objectKeyPrefix("emails/") .topic(topic) .build())) .build(), ReceiptRuleOptions.builder() .recipients(List.of("aws.com")) .actions(List.of( Sns.Builder.create() .topic(topic) .build())) .build())) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SnsProps.Builder
builder()
default EmailEncoding
The encoding to use for the email within the Amazon SNS notification.getTopic()
The SNS topic to notify.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTopic
The SNS topic to notify. -
getEncoding
The encoding to use for the email within the Amazon SNS notification.Default: UTF-8
-
builder
- Returns:
- a
SnsProps.Builder
ofSnsProps
-