Class CfnMailManagerTrafficPolicy
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.CfnMailManagerTrafficPolicy
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IMailManagerTrafficPolicyRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:50.634Z")
@Stability(Stable)
public class CfnMailManagerTrafficPolicy
extends CfnResource
implements IInspectable, IMailManagerTrafficPolicyRef, ITaggableV2
Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied.
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.*;
CfnMailManagerTrafficPolicy cfnMailManagerTrafficPolicy = CfnMailManagerTrafficPolicy.Builder.create(this, "MyCfnMailManagerTrafficPolicy")
.defaultAction("defaultAction")
.policyStatements(List.of(PolicyStatementProperty.builder()
.action("action")
.conditions(List.of(PolicyConditionProperty.builder()
.booleanExpression(IngressBooleanExpressionProperty.builder()
.evaluate(IngressBooleanToEvaluateProperty.builder()
.analysis(IngressAnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.isInAddressList(IngressIsInAddressListProperty.builder()
.addressLists(List.of("addressLists"))
.attribute("attribute")
.build())
.build())
.operator("operator")
.build())
.ipExpression(IngressIpv4ExpressionProperty.builder()
.evaluate(IngressIpToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.ipv6Expression(IngressIpv6ExpressionProperty.builder()
.evaluate(IngressIpv6ToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.stringExpression(IngressStringExpressionProperty.builder()
.evaluate(IngressStringToEvaluateProperty.builder()
.analysis(IngressAnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.tlsExpression(IngressTlsProtocolExpressionProperty.builder()
.evaluate(IngressTlsProtocolToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.value("value")
.build())
.build()))
.build()))
// the properties below are optional
.maxMessageSizeBytes(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.trafficPolicyName("trafficPolicyName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMailManagerTrafficPolicy.static interfaceThe Add On ARN and its returned value that is evaluated in a policy statement's conditional expression to either deny or block the incoming email.static interfaceThe structure for a boolean condition matching on the incoming mail.static interfaceThe union type representing the allowed types of operands for a boolean condition.static interfaceThe structure for an IP based condition matching on the incoming mail.static interfaceThe union type representing the allowed types for the left hand side of an IP condition.static interfaceThe union type representing the allowed types for the left hand side of an IPv6 condition.static interfaceThe structure for an IPv6 based condition matching on the incoming mail.static interfaceThe address lists and the address list attribute value that is evaluated in a policy statement's conditional expression to either deny or block the incoming email.static interfaceThe structure for a string based condition matching on the incoming mail.static interfaceThe union type representing the allowed types for the left hand side of a string condition.static interfaceThe structure for a TLS related condition matching on the incoming mail.static interfaceThe union type representing the allowed types for the left hand side of a TLS condition.static interfaceThe email traffic filtering conditions which are contained in a traffic policy resource.static interfaceThe structure containing traffic policy conditions and actions.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ses.IMailManagerTrafficPolicyRef
IMailManagerTrafficPolicyRef.Jsii$Default, IMailManagerTrafficPolicyRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMailManagerTrafficPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMailManagerTrafficPolicy(software.amazon.jsii.JsiiObjectRef objRef) CfnMailManagerTrafficPolicy(software.constructs.Construct scope, String id, CfnMailManagerTrafficPolicyProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IMailManagerTrafficPolicyReffromTrafficPolicyId(software.constructs.Construct scope, String id, String trafficPolicyId) Creates a new IMailManagerTrafficPolicyRef from a trafficPolicyId.The Amazon Resource Name (ARN) of the traffic policy resource.The identifier of the traffic policy resource.Tag Manager which manages the tags for this resource.Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements.A reference to a MailManagerTrafficPolicy resource.The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.Conditional statements for filtering email traffic.getTags()The tags used to organize, track, or control access for the resource.The name of the policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDefaultAction(String value) Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements.voidsetMaxMessageSizeBytes(Number value) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.voidsetPolicyStatements(List<Object> value) Conditional statements for filtering email traffic.voidsetPolicyStatements(IResolvable value) Conditional statements for filtering email traffic.voidThe tags used to organize, track, or control access for the resource.voidsetTrafficPolicyName(String value) The name of the policy.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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
-
CfnMailManagerTrafficPolicy
protected CfnMailManagerTrafficPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMailManagerTrafficPolicy
protected CfnMailManagerTrafficPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMailManagerTrafficPolicy
@Stability(Stable) public CfnMailManagerTrafficPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMailManagerTrafficPolicyProps 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
-
fromTrafficPolicyId
@Stability(Stable) @NotNull public static IMailManagerTrafficPolicyRef fromTrafficPolicyId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String trafficPolicyId) Creates a new IMailManagerTrafficPolicyRef from a trafficPolicyId.- Parameters:
scope- This parameter is required.id- This parameter is required.trafficPolicyId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrTrafficPolicyArn
The Amazon Resource Name (ARN) of the traffic policy resource. -
getAttrTrafficPolicyId
The identifier of the traffic policy resource. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMailManagerTrafficPolicyRef
@Stability(Stable) @NotNull public MailManagerTrafficPolicyReference getMailManagerTrafficPolicyRef()A reference to a MailManagerTrafficPolicy resource.- Specified by:
getMailManagerTrafficPolicyRefin interfaceIMailManagerTrafficPolicyRef
-
getDefaultAction
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements. -
setDefaultAction
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements. -
getPolicyStatements
Conditional statements for filtering email traffic.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMailManagerTrafficPolicy.PolicyStatementProperty> -
setPolicyStatements
Conditional statements for filtering email traffic. -
setPolicyStatements
Conditional statements for filtering email traffic. -
getMaxMessageSizeBytes
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked. -
setMaxMessageSizeBytes
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked. -
getTags
The tags used to organize, track, or control access for the resource. -
setTags
The tags used to organize, track, or control access for the resource. -
getTrafficPolicyName
The name of the policy. -
setTrafficPolicyName
The name of the policy.
-