Class S3
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ses.actions.S3
- All Implemented Interfaces:
IReceiptRuleAction
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:09.836Z")
@Stability(Stable)
public class S3
extends software.amazon.jsii.JsiiObject
implements IReceiptRuleAction
Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.
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
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ses.IReceiptRuleAction
IReceiptRuleAction.Jsii$Default, IReceiptRuleAction.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(IReceiptRule rule) Returns the receipt rule action specification.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3
protected S3(software.amazon.jsii.JsiiObjectRef objRef) -
S3
protected S3(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bind
Returns the receipt rule action specification.- Specified by:
bind
in interfaceIReceiptRuleAction
- Parameters:
rule
- This parameter is required.
-