Class CfnMailManagerTrafficPolicy

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:51.560Z") @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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrTrafficPolicyArn

      @Stability(Stable) @NotNull public String getAttrTrafficPolicyArn()
      The Amazon Resource Name (ARN) of the traffic policy resource.
    • getAttrTrafficPolicyId

      @Stability(Stable) @NotNull public String getAttrTrafficPolicyId()
      The identifier of the traffic policy resource.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDefaultAction

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) public void setDefaultAction(@NotNull 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.
    • getPolicyStatements

      @Stability(Stable) @NotNull public Object getPolicyStatements()
      Conditional statements for filtering email traffic.
    • setPolicyStatements

      @Stability(Stable) public void setPolicyStatements(@NotNull IResolvable value)
      Conditional statements for filtering email traffic.
    • setPolicyStatements

      @Stability(Stable) public void setPolicyStatements(@NotNull List<Object> value)
      Conditional statements for filtering email traffic.
    • getMaxMessageSizeBytes

      @Stability(Stable) @Nullable public Number getMaxMessageSizeBytes()
      The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
    • setMaxMessageSizeBytes

      @Stability(Stable) public void setMaxMessageSizeBytes(@Nullable Number value)
      The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags used to organize, track, or control access for the resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for the resource.
    • getTrafficPolicyName

      @Stability(Stable) @Nullable public String getTrafficPolicyName()
      The name of the policy.
    • setTrafficPolicyName

      @Stability(Stable) public void setTrafficPolicyName(@Nullable String value)
      The name of the policy.