CfnMailManagerTrafficPolicyProps

class aws_cdk.aws_ses.CfnMailManagerTrafficPolicyProps(*, default_action, policy_statements, max_message_size_bytes=None, tags=None, traffic_policy_name=None)

Bases: object

Properties for defining a CfnMailManagerTrafficPolicy.

Parameters:
  • default_action (str) – 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.

  • policy_statements (Union[IResolvable, Sequence[Union[IResolvable, PolicyStatementProperty, Dict[str, Any]]]]) – Conditional statements for filtering email traffic.

  • max_message_size_bytes (Union[int, float, None]) – The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

  • traffic_policy_name (Optional[str]) – The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

cfn_mail_manager_traffic_policy_props = ses.CfnMailManagerTrafficPolicyProps(
    default_action="defaultAction",
    policy_statements=[ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty(
        action="action",
        conditions=[ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty(
            boolean_expression=ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty(
                evaluate=ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty(
                    analysis=ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty(
                        analyzer="analyzer",
                        result_field="resultField"
                    )
                ),
                operator="operator"
            ),
            ip_expression=ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty(
                evaluate=ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            ),
            string_expression=ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty(
                evaluate=ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            ),
            tls_expression=ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty(
                evaluate=ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                value="value"
            )
        )]
    )],

    # the properties below are optional
    max_message_size_bytes=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    traffic_policy_name="trafficPolicyName"
)

Attributes

default_action

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-defaultaction

max_message_size_bytes

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-maxmessagesizebytes

policy_statements

Conditional statements for filtering email traffic.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements

tags

The tags used to organize, track, or control access for the resource.

For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags

traffic_policy_name

The name of the policy.

The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-trafficpolicyname