Class CfnReceiptRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ses.CfnReceiptRule
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-24T10:56:40.276Z")
@Stability(Stable)
public class CfnReceiptRule
extends CfnResource
implements IInspectable
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 .iamRoleArn("iamRoleArn") .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();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An 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 interface
When included in a receipt rule, this action adds a header to the received email.static interface
When 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 class
A fluent builder forCfnReceiptRule
.static interface
When 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 interface
Receipt 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 interface
When 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 interface
When included in a receipt rule, this action publishes a notification to Amazon Simple Notification Service (Amazon SNS).static interface
When 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 interface
When 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnReceiptRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnReceiptRule
(software.amazon.jsii.JsiiObjectRef objRef) CfnReceiptRule
(software.constructs.Construct scope, String id, CfnReceiptRuleProps props) -
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The name of an existing rule after which the new rule is placed.void
setRule
(IResolvable value) A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.void
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.void
setRuleSetName
(String value) The name of the rule set where the receipt rule is added.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnReceiptRuleProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in 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. -
setAfter
The name of an existing rule after which the new rule is placed.
-