Interface S3Props
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
S3Props.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.963Z")
@Stability(Stable)
public interface S3Props
extends software.amazon.jsii.JsiiSerializable
Construction properties for a S3 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 S3Props.Builder
builder()
The S3 bucket that incoming email will be saved to.default IKey
The master key that SES should use to encrypt your emails before saving them to the S3 bucket.default String
The key prefix of the S3 bucket.default ITopic
getTopic()
The SNS topic to notify when the S3 action is taken.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
The S3 bucket that incoming email will be saved to. -
getKmsKey
The master key that SES should use to encrypt your emails before saving them to the S3 bucket.Default: no encryption
-
getObjectKeyPrefix
The key prefix of the S3 bucket.Default: no prefix
-
getTopic
The SNS topic to notify when the S3 action is taken.Default: no notification
-
builder
- Returns:
- a
S3Props.Builder
ofS3Props
-