Class CfnMailManagerTrafficPolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerTrafficPolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerTrafficPolicyPropsMixin>
- Enclosing class:
CfnMailManagerTrafficPolicyPropsMixin
@Stability(Stable)
public static final class CfnMailManagerTrafficPolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerTrafficPolicyPropsMixin>
A fluent builder for
CfnMailManagerTrafficPolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) 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 CfnMailManagerTrafficPolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnMailManagerTrafficPolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnMailManagerTrafficPolicyPropsMixin.Builder.
-
defaultAction
@Stability(Stable) public CfnMailManagerTrafficPolicyPropsMixin.Builder 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.- 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:
-
maxMessageSizeBytes
@Stability(Stable) public CfnMailManagerTrafficPolicyPropsMixin.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:
-
policyStatements
@Stability(Stable) public CfnMailManagerTrafficPolicyPropsMixin.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 CfnMailManagerTrafficPolicyPropsMixin.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:
-
tags
@Stability(Stable) public CfnMailManagerTrafficPolicyPropsMixin.Builder tags(List<? extends CfnTag> 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 CfnMailManagerTrafficPolicyPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerTrafficPolicyPropsMixin>- Returns:
- a newly built instance of
CfnMailManagerTrafficPolicyPropsMixin.
-