CfnMailManagerRuleSetProps

class aws_cdk.aws_ses.CfnMailManagerRuleSetProps(*, rules, rule_set_name=None, tags=None)

Bases: object

Properties for defining a CfnMailManagerRuleSet.

Parameters:
  • rules (Union[IResolvable, Sequence[Union[IResolvable, RuleProperty, Dict[str, Any]]]]) – Conditional rules that are evaluated for determining actions on email.

  • rule_set_name (Optional[str]) – A user-friendly name for the rule set.

  • 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”} }.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.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

# drop: Any

cfn_mail_manager_rule_set_props = ses.CfnMailManagerRuleSetProps(
    rules=[ses.CfnMailManagerRuleSet.RuleProperty(
        actions=[ses.CfnMailManagerRuleSet.RuleActionProperty(
            add_header=ses.CfnMailManagerRuleSet.AddHeaderActionProperty(
                header_name="headerName",
                header_value="headerValue"
            ),
            archive=ses.CfnMailManagerRuleSet.ArchiveActionProperty(
                target_archive="targetArchive",

                # the properties below are optional
                action_failure_policy="actionFailurePolicy"
            ),
            deliver_to_mailbox=ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty(
                mailbox_arn="mailboxArn",
                role_arn="roleArn",

                # the properties below are optional
                action_failure_policy="actionFailurePolicy"
            ),
            drop=drop,
            relay=ses.CfnMailManagerRuleSet.RelayActionProperty(
                relay="relay",

                # the properties below are optional
                action_failure_policy="actionFailurePolicy",
                mail_from="mailFrom"
            ),
            replace_recipient=ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty(
                replace_with=["replaceWith"]
            ),
            send=ses.CfnMailManagerRuleSet.SendActionProperty(
                role_arn="roleArn",

                # the properties below are optional
                action_failure_policy="actionFailurePolicy"
            ),
            write_to_s3=ses.CfnMailManagerRuleSet.S3ActionProperty(
                role_arn="roleArn",
                s3_bucket="s3Bucket",

                # the properties below are optional
                action_failure_policy="actionFailurePolicy",
                s3_prefix="s3Prefix",
                s3_sse_kms_key_id="s3SseKmsKeyId"
            )
        )],

        # the properties below are optional
        conditions=[ses.CfnMailManagerRuleSet.RuleConditionProperty(
            boolean_expression=ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator"
            ),
            dmarc_expression=ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty(
                operator="operator",
                values=["values"]
            ),
            ip_expression=ses.CfnMailManagerRuleSet.RuleIpExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            ),
            number_expression=ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                value=123
            ),
            string_expression=ses.CfnMailManagerRuleSet.RuleStringExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty(
                    attribute="attribute",
                    mime_header_attribute="mimeHeaderAttribute"
                ),
                operator="operator",
                values=["values"]
            ),
            verdict_expression=ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty(
                    analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
                        analyzer="analyzer",
                        result_field="resultField"
                    ),
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            )
        )],
        name="name",
        unless=[ses.CfnMailManagerRuleSet.RuleConditionProperty(
            boolean_expression=ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator"
            ),
            dmarc_expression=ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty(
                operator="operator",
                values=["values"]
            ),
            ip_expression=ses.CfnMailManagerRuleSet.RuleIpExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            ),
            number_expression=ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty(
                    attribute="attribute"
                ),
                operator="operator",
                value=123
            ),
            string_expression=ses.CfnMailManagerRuleSet.RuleStringExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty(
                    attribute="attribute",
                    mime_header_attribute="mimeHeaderAttribute"
                ),
                operator="operator",
                values=["values"]
            ),
            verdict_expression=ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty(
                evaluate=ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty(
                    analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
                        analyzer="analyzer",
                        result_field="resultField"
                    ),
                    attribute="attribute"
                ),
                operator="operator",
                values=["values"]
            )
        )]
    )],

    # the properties below are optional
    rule_set_name="ruleSetName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

rule_set_name

A user-friendly name for the rule set.

See:

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

rules

Conditional rules that are evaluated for determining actions on email.

See:

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

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-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags