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:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:25:07.545Z")
@Stability(Stable)
public class CfnMailManagerTrafficPolicy
extends CfnResource
implements IInspectable, 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()) .build()) .operator("operator") .build()) .ipExpression(IngressIpv4ExpressionProperty.builder() .evaluate(IngressIpToEvaluateProperty.builder() .attribute("attribute") .build()) .operator("operator") .values(List.of("values")) .build()) .stringExpression(IngressStringExpressionProperty.builder() .evaluate(IngressStringToEvaluateProperty.builder() .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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMailManagerTrafficPolicy
.static interface
The 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 interface
The structure for a boolean condition matching on the incoming mail.static interface
The union type representing the allowed types of operands for a boolean condition.static interface
The structure for an IP based condition matching on the incoming mail.static interface
The union type representing the allowed types for the left hand side of an IP condition.static interface
The structure for a string based condition matching on the incoming mail.static interface
The union type representing the allowed types for the left hand side of a string condition.static interface
The structure for a TLS related condition matching on the incoming mail.static interface
The union type representing the allowed types for the left hand side of a TLS condition.static interface
The email traffic filtering conditions which are contained in a traffic policy resource.static interface
The structure containing traffic policy conditions and actions.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
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnMailManagerTrafficPolicy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMailManagerTrafficPolicy
(software.amazon.jsii.JsiiObjectRef objRef) CfnMailManagerTrafficPolicy
(software.constructs.Construct scope, String id, CfnMailManagerTrafficPolicyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDefaultAction
(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.void
setMaxMessageSizeBytes
(Number value) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.void
setPolicyStatements
(List<Object> value) Conditional statements for filtering email traffic.void
setPolicyStatements
(IResolvable value) Conditional statements for filtering email traffic.void
The tags used to organize, track, or control access for the resource.void
setTrafficPolicyName
(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, 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
-
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
-
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.
-
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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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.
-