Class CfnReceiptRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.ses.CfnReceiptRule
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.385Z")
@Stability(Stable)
public class CfnReceiptRule
extends CfnResource
implements IInspectable
A CloudFormation
AWS::SES::ReceiptRule.
Specifies a receipt rule.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
CfnReceiptRule cfnReceiptRule = CfnReceiptRule.Builder.create(this, "MyCfnReceiptRule")
.rule(RuleProperty.builder()
.actions(List.of(ActionProperty.builder()
.addHeaderAction(AddHeaderActionProperty.builder()
.headerName("headerName")
.headerValue("headerValue")
.build())
.bounceAction(BounceActionProperty.builder()
.message("message")
.sender("sender")
.smtpReplyCode("smtpReplyCode")
// the properties below are optional
.statusCode("statusCode")
.topicArn("topicArn")
.build())
.lambdaAction(LambdaActionProperty.builder()
.functionArn("functionArn")
// the properties below are optional
.invocationType("invocationType")
.topicArn("topicArn")
.build())
.s3Action(S3ActionProperty.builder()
.bucketName("bucketName")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.objectKeyPrefix("objectKeyPrefix")
.topicArn("topicArn")
.build())
.snsAction(SNSActionProperty.builder()
.encoding("encoding")
.topicArn("topicArn")
.build())
.stopAction(StopActionProperty.builder()
.scope("scope")
// the properties below are optional
.topicArn("topicArn")
.build())
.workmailAction(WorkmailActionProperty.builder()
.organizationArn("organizationArn")
// the properties below are optional
.topicArn("topicArn")
.build())
.build()))
.enabled(false)
.name("name")
.recipients(List.of("recipients"))
.scanEnabled(false)
.tlsPolicy("tlsPolicy")
.build())
.ruleSetName("ruleSetName")
// the properties below are optional
.after("after")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn action that Amazon SES can take when it receives an email on behalf of one or more email addresses or domains that you own.static interfaceWhen included in a receipt rule, this action adds a header to the received email.static interfaceWhen included in a receipt rule, this action rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).static final classA fluent builder forCfnReceiptRule.static interfaceWhen included in a receipt rule, this action calls an AWS Lambda function and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).static interfaceReceipt rules enable you to specify which actions Amazon SES should take when it receives mail on behalf of one or more email addresses or domains that you own.static interfaceWhen included in a receipt rule, this action saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).static interfaceWhen included in a receipt rule, this action publishes a notification to Amazon Simple Notification Service (Amazon SNS).static interfaceWhen included in a receipt rule, this action terminates the evaluation of the receipt rule set and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).static interfaceWhen included in a receipt rule, this action calls Amazon WorkMail and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnReceiptRule(Construct scope, String id, CfnReceiptRuleProps props) Create a newAWS::SES::ReceiptRule.protectedCfnReceiptRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReceiptRule(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetAfter()The name of an existing rule after which the new rule is placed.getRule()A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.The name of the rule set where the receipt rule is added.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe name of an existing rule after which the new rule is placed.voidsetRule(IResolvable value) A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.voidA data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.voidsetRuleSetName(String value) The name of the rule set where the receipt rule is added.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnReceiptRule
protected CfnReceiptRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnReceiptRule
protected CfnReceiptRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnReceiptRule
@Stability(Stable) public CfnReceiptRule(@NotNull Construct scope, @NotNull String id, @NotNull CfnReceiptRuleProps props) Create a newAWS::SES::ReceiptRule.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy. -
setRule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy. -
setRule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy. -
getRuleSetName
The name of the rule set where the receipt rule is added. -
setRuleSetName
The name of the rule set where the receipt rule is added. -
getAfter
The name of an existing rule after which the new rule is placed.If this parameter is null, the new rule is inserted at the beginning of the rule list.
-
setAfter
The name of an existing rule after which the new rule is placed.If this parameter is null, the new rule is inserted at the beginning of the rule list.
-