Class CfnMailManagerTrafficPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerTrafficPolicy>
- Enclosing class:
CfnMailManagerTrafficPolicy
@Stability(Stable)
public static final class CfnMailManagerTrafficPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerTrafficPolicy>
A fluent builder for
CfnMailManagerTrafficPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
defaultAction
(String defaultAction) 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.maxMessageSizeBytes
(Number maxMessageSizeBytes) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.policyStatements
(List<? extends Object> policyStatements) Conditional statements for filtering email traffic.policyStatements
(IResolvable policyStatements) Conditional statements for filtering email traffic.The tags used to organize, track, or control access for the resource.trafficPolicyName
(String trafficPolicyName) The name of the policy.
-
Method Details
-
create
@Stability(Stable) public static CfnMailManagerTrafficPolicy.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnMailManagerTrafficPolicy.Builder
.
-
defaultAction
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.- Parameters:
defaultAction
- 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. This parameter is required.- Returns:
this
- See Also:
-
policyStatements
@Stability(Stable) public CfnMailManagerTrafficPolicy.Builder policyStatements(IResolvable policyStatements) Conditional statements for filtering email traffic.- Parameters:
policyStatements
- Conditional statements for filtering email traffic. This parameter is required.- Returns:
this
- See Also:
-
policyStatements
@Stability(Stable) public CfnMailManagerTrafficPolicy.Builder policyStatements(List<? extends Object> policyStatements) Conditional statements for filtering email traffic.- Parameters:
policyStatements
- Conditional statements for filtering email traffic. This parameter is required.- Returns:
this
- See Also:
-
maxMessageSizeBytes
@Stability(Stable) public CfnMailManagerTrafficPolicy.Builder maxMessageSizeBytes(Number maxMessageSizeBytes) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.- Parameters:
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags used to organize, track, or control access for the resource.For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for the resource. This parameter is required.- Returns:
this
- See Also:
-
trafficPolicyName
@Stability(Stable) public CfnMailManagerTrafficPolicy.Builder trafficPolicyName(String trafficPolicyName) The name of the policy.The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
- Parameters:
trafficPolicyName
- The name of the policy. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMailManagerTrafficPolicy>
- Returns:
- a newly built instance of
CfnMailManagerTrafficPolicy
.
-