1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. mailmanager
  6. TrafficPolicy
Viewing docs for AWS v7.40.0
published on Thursday, Jul 30, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.40.0
published on Thursday, Jul 30, 2026 by Pulumi

    Manages an SES Mail Manager Traffic Policy.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.mailmanager.TrafficPolicy("example", {
        defaultAction: "ALLOW",
        name: "example",
        policyStatements: [{
            action: "DENY",
            conditions: [{
                ipExpression: {
                    operator: "CIDR_MATCHES",
                    values: ["192.0.2.0/24"],
                    evaluate: {
                        attribute: "SENDER_IP",
                    },
                },
            }],
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.mailmanager.TrafficPolicy("example",
        default_action="ALLOW",
        name="example",
        policy_statements=[{
            "action": "DENY",
            "conditions": [{
                "ip_expression": {
                    "operator": "CIDR_MATCHES",
                    "values": ["192.0.2.0/24"],
                    "evaluate": {
                        "attribute": "SENDER_IP",
                    },
                },
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mailmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mailmanager.NewTrafficPolicy(ctx, "example", &mailmanager.TrafficPolicyArgs{
    			DefaultAction: pulumi.String("ALLOW"),
    			Name:          pulumi.String("example"),
    			PolicyStatements: mailmanager.TrafficPolicyPolicyStatementArray{
    				&mailmanager.TrafficPolicyPolicyStatementArgs{
    					Action: pulumi.String("DENY"),
    					Conditions: mailmanager.TrafficPolicyPolicyStatementConditionArray{
    						&mailmanager.TrafficPolicyPolicyStatementConditionArgs{
    							IpExpression: &mailmanager.TrafficPolicyPolicyStatementConditionIpExpressionArgs{
    								Operator: pulumi.String("CIDR_MATCHES"),
    								Values: pulumi.StringArray{
    									pulumi.String("192.0.2.0/24"),
    								},
    								Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs{
    									Attribute: pulumi.String("SENDER_IP"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.MailManager.TrafficPolicy("example", new()
        {
            DefaultAction = "ALLOW",
            Name = "example",
            PolicyStatements = new[]
            {
                new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementArgs
                {
                    Action = "DENY",
                    Conditions = new[]
                    {
                        new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionArgs
                        {
                            IpExpression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpExpressionArgs
                            {
                                Operator = "CIDR_MATCHES",
                                Values = new[]
                                {
                                    "192.0.2.0/24",
                                },
                                Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs
                                {
                                    Attribute = "SENDER_IP",
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.mailmanager.TrafficPolicy;
    import com.pulumi.aws.mailmanager.TrafficPolicyArgs;
    import com.pulumi.aws.mailmanager.inputs.TrafficPolicyPolicyStatementArgs;
    import com.pulumi.aws.mailmanager.inputs.TrafficPolicyPolicyStatementConditionArgs;
    import com.pulumi.aws.mailmanager.inputs.TrafficPolicyPolicyStatementConditionIpExpressionArgs;
    import com.pulumi.aws.mailmanager.inputs.TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new TrafficPolicy("example", TrafficPolicyArgs.builder()
                .defaultAction("ALLOW")
                .name("example")
                .policyStatements(TrafficPolicyPolicyStatementArgs.builder()
                    .action("DENY")
                    .conditions(TrafficPolicyPolicyStatementConditionArgs.builder()
                        .ipExpression(TrafficPolicyPolicyStatementConditionIpExpressionArgs.builder()
                            .operator("CIDR_MATCHES")
                            .values("192.0.2.0/24")
                            .evaluate(TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs.builder()
                                .attribute("SENDER_IP")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:mailmanager:TrafficPolicy
        properties:
          defaultAction: ALLOW
          name: example
          policyStatements:
            - action: DENY
              conditions:
                - ipExpression:
                    operator: CIDR_MATCHES
                    values:
                      - 192.0.2.0/24
                    evaluate:
                      attribute: SENDER_IP
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_mailmanager_trafficpolicy" "example" {
      default_action = "ALLOW"
      name           = "example"
      policy_statements {
        action = "DENY"
        conditions {
          ip_expression = {
            operator = "CIDR_MATCHES"
            values   = ["192.0.2.0/24"]
            evaluate = {
              attribute = "SENDER_IP"
            }
          }
        }
      }
    }
    

    Create TrafficPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TrafficPolicy(name: string, args: TrafficPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficPolicy(resource_name: str,
                      args: TrafficPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      default_action: Optional[str] = None,
                      max_message_size_bytes: Optional[int] = None,
                      name: Optional[str] = None,
                      policy_statements: Optional[Sequence[TrafficPolicyPolicyStatementArgs]] = None,
                      region: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewTrafficPolicy(ctx *Context, name string, args TrafficPolicyArgs, opts ...ResourceOption) (*TrafficPolicy, error)
    public TrafficPolicy(string name, TrafficPolicyArgs args, CustomResourceOptions? opts = null)
    public TrafficPolicy(String name, TrafficPolicyArgs args)
    public TrafficPolicy(String name, TrafficPolicyArgs args, CustomResourceOptions options)
    
    type: aws:mailmanager:TrafficPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_mailmanager_traffic_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TrafficPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TrafficPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TrafficPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrafficPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrafficPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var trafficPolicyResource = new Aws.MailManager.TrafficPolicy("trafficPolicyResource", new()
    {
        DefaultAction = "string",
        MaxMessageSizeBytes = 0,
        Name = "string",
        PolicyStatements = new[]
        {
            new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementArgs
            {
                Action = "string",
                Conditions = new[]
                {
                    new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionArgs
                    {
                        BooleanExpression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionBooleanExpressionArgs
                        {
                            Operator = "string",
                            Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateArgs
                            {
                                Analysis = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysisArgs
                                {
                                    Analyzer = "string",
                                    ResultField = "string",
                                },
                                IsInAddressList = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressListArgs
                                {
                                    AddressLists = new[]
                                    {
                                        "string",
                                    },
                                    Attribute = "string",
                                },
                            },
                        },
                        IpExpression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpExpressionArgs
                        {
                            Operator = "string",
                            Values = new[]
                            {
                                "string",
                            },
                            Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs
                            {
                                Attribute = "string",
                            },
                        },
                        Ipv6Expression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpv6ExpressionArgs
                        {
                            Operator = "string",
                            Values = new[]
                            {
                                "string",
                            },
                            Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluateArgs
                            {
                                Attribute = "string",
                            },
                        },
                        StringExpression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionStringExpressionArgs
                        {
                            Operator = "string",
                            Values = new[]
                            {
                                "string",
                            },
                            Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionStringExpressionEvaluateArgs
                            {
                                Analysis = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysisArgs
                                {
                                    Analyzer = "string",
                                    ResultField = "string",
                                },
                                Attribute = "string",
                            },
                        },
                        TlsExpression = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionTlsExpressionArgs
                        {
                            Operator = "string",
                            Value = "string",
                            Evaluate = new Aws.MailManager.Inputs.TrafficPolicyPolicyStatementConditionTlsExpressionEvaluateArgs
                            {
                                Attribute = "string",
                            },
                        },
                    },
                },
            },
        },
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := mailmanager.NewTrafficPolicy(ctx, "trafficPolicyResource", &mailmanager.TrafficPolicyArgs{
    	DefaultAction:       pulumi.String("string"),
    	MaxMessageSizeBytes: pulumi.Int(0),
    	Name:                pulumi.String("string"),
    	PolicyStatements: mailmanager.TrafficPolicyPolicyStatementArray{
    		&mailmanager.TrafficPolicyPolicyStatementArgs{
    			Action: pulumi.String("string"),
    			Conditions: mailmanager.TrafficPolicyPolicyStatementConditionArray{
    				&mailmanager.TrafficPolicyPolicyStatementConditionArgs{
    					BooleanExpression: &mailmanager.TrafficPolicyPolicyStatementConditionBooleanExpressionArgs{
    						Operator: pulumi.String("string"),
    						Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateArgs{
    							Analysis: &mailmanager.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysisArgs{
    								Analyzer:    pulumi.String("string"),
    								ResultField: pulumi.String("string"),
    							},
    							IsInAddressList: &mailmanager.TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressListArgs{
    								AddressLists: pulumi.StringArray{
    									pulumi.String("string"),
    								},
    								Attribute: pulumi.String("string"),
    							},
    						},
    					},
    					IpExpression: &mailmanager.TrafficPolicyPolicyStatementConditionIpExpressionArgs{
    						Operator: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs{
    							Attribute: pulumi.String("string"),
    						},
    					},
    					Ipv6Expression: &mailmanager.TrafficPolicyPolicyStatementConditionIpv6ExpressionArgs{
    						Operator: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluateArgs{
    							Attribute: pulumi.String("string"),
    						},
    					},
    					StringExpression: &mailmanager.TrafficPolicyPolicyStatementConditionStringExpressionArgs{
    						Operator: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionStringExpressionEvaluateArgs{
    							Analysis: &mailmanager.TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysisArgs{
    								Analyzer:    pulumi.String("string"),
    								ResultField: pulumi.String("string"),
    							},
    							Attribute: pulumi.String("string"),
    						},
    					},
    					TlsExpression: &mailmanager.TrafficPolicyPolicyStatementConditionTlsExpressionArgs{
    						Operator: pulumi.String("string"),
    						Value:    pulumi.String("string"),
    						Evaluate: &mailmanager.TrafficPolicyPolicyStatementConditionTlsExpressionEvaluateArgs{
    							Attribute: pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_mailmanager_traffic_policy" "trafficPolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      default_action         = "string"
      max_message_size_bytes = 0
      name                   = "string"
      policy_statements {
        action = "string"
        conditions {
          boolean_expression = {
            operator = "string"
            evaluate = {
              analysis = {
                analyzer     = "string"
                result_field = "string"
              }
              is_in_address_list = {
                address_lists = ["string"]
                attribute     = "string"
              }
            }
          }
          ip_expression = {
            operator = "string"
            values   = ["string"]
            evaluate = {
              attribute = "string"
            }
          }
          ipv6_expression = {
            operator = "string"
            values   = ["string"]
            evaluate = {
              attribute = "string"
            }
          }
          string_expression = {
            operator = "string"
            values   = ["string"]
            evaluate = {
              analysis = {
                analyzer     = "string"
                result_field = "string"
              }
              attribute = "string"
            }
          }
          tls_expression = {
            operator = "string"
            value    = "string"
            evaluate = {
              attribute = "string"
            }
          }
        }
      }
      region = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var trafficPolicyResource = new com.pulumi.aws.mailmanager.TrafficPolicy("trafficPolicyResource", com.pulumi.aws.mailmanager.TrafficPolicyArgs.builder()
        .defaultAction("string")
        .maxMessageSizeBytes(0)
        .name("string")
        .policyStatements(TrafficPolicyPolicyStatementArgs.builder()
            .action("string")
            .conditions(TrafficPolicyPolicyStatementConditionArgs.builder()
                .booleanExpression(TrafficPolicyPolicyStatementConditionBooleanExpressionArgs.builder()
                    .operator("string")
                    .evaluate(TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateArgs.builder()
                        .analysis(TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysisArgs.builder()
                            .analyzer("string")
                            .resultField("string")
                            .build())
                        .isInAddressList(TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressListArgs.builder()
                            .addressLists("string")
                            .attribute("string")
                            .build())
                        .build())
                    .build())
                .ipExpression(TrafficPolicyPolicyStatementConditionIpExpressionArgs.builder()
                    .operator("string")
                    .values("string")
                    .evaluate(TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs.builder()
                        .attribute("string")
                        .build())
                    .build())
                .ipv6Expression(TrafficPolicyPolicyStatementConditionIpv6ExpressionArgs.builder()
                    .operator("string")
                    .values("string")
                    .evaluate(TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluateArgs.builder()
                        .attribute("string")
                        .build())
                    .build())
                .stringExpression(TrafficPolicyPolicyStatementConditionStringExpressionArgs.builder()
                    .operator("string")
                    .values("string")
                    .evaluate(TrafficPolicyPolicyStatementConditionStringExpressionEvaluateArgs.builder()
                        .analysis(TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysisArgs.builder()
                            .analyzer("string")
                            .resultField("string")
                            .build())
                        .attribute("string")
                        .build())
                    .build())
                .tlsExpression(TrafficPolicyPolicyStatementConditionTlsExpressionArgs.builder()
                    .operator("string")
                    .value("string")
                    .evaluate(TrafficPolicyPolicyStatementConditionTlsExpressionEvaluateArgs.builder()
                        .attribute("string")
                        .build())
                    .build())
                .build())
            .build())
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    traffic_policy_resource = aws.mailmanager.TrafficPolicy("trafficPolicyResource",
        default_action="string",
        max_message_size_bytes=0,
        name="string",
        policy_statements=[{
            "action": "string",
            "conditions": [{
                "boolean_expression": {
                    "operator": "string",
                    "evaluate": {
                        "analysis": {
                            "analyzer": "string",
                            "result_field": "string",
                        },
                        "is_in_address_list": {
                            "address_lists": ["string"],
                            "attribute": "string",
                        },
                    },
                },
                "ip_expression": {
                    "operator": "string",
                    "values": ["string"],
                    "evaluate": {
                        "attribute": "string",
                    },
                },
                "ipv6_expression": {
                    "operator": "string",
                    "values": ["string"],
                    "evaluate": {
                        "attribute": "string",
                    },
                },
                "string_expression": {
                    "operator": "string",
                    "values": ["string"],
                    "evaluate": {
                        "analysis": {
                            "analyzer": "string",
                            "result_field": "string",
                        },
                        "attribute": "string",
                    },
                },
                "tls_expression": {
                    "operator": "string",
                    "value": "string",
                    "evaluate": {
                        "attribute": "string",
                    },
                },
            }],
        }],
        region="string",
        tags={
            "string": "string",
        })
    
    const trafficPolicyResource = new aws.mailmanager.TrafficPolicy("trafficPolicyResource", {
        defaultAction: "string",
        maxMessageSizeBytes: 0,
        name: "string",
        policyStatements: [{
            action: "string",
            conditions: [{
                booleanExpression: {
                    operator: "string",
                    evaluate: {
                        analysis: {
                            analyzer: "string",
                            resultField: "string",
                        },
                        isInAddressList: {
                            addressLists: ["string"],
                            attribute: "string",
                        },
                    },
                },
                ipExpression: {
                    operator: "string",
                    values: ["string"],
                    evaluate: {
                        attribute: "string",
                    },
                },
                ipv6Expression: {
                    operator: "string",
                    values: ["string"],
                    evaluate: {
                        attribute: "string",
                    },
                },
                stringExpression: {
                    operator: "string",
                    values: ["string"],
                    evaluate: {
                        analysis: {
                            analyzer: "string",
                            resultField: "string",
                        },
                        attribute: "string",
                    },
                },
                tlsExpression: {
                    operator: "string",
                    value: "string",
                    evaluate: {
                        attribute: "string",
                    },
                },
            }],
        }],
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:mailmanager:TrafficPolicy
    properties:
        defaultAction: string
        maxMessageSizeBytes: 0
        name: string
        policyStatements:
            - action: string
              conditions:
                - booleanExpression:
                    evaluate:
                        analysis:
                            analyzer: string
                            resultField: string
                        isInAddressList:
                            addressLists:
                                - string
                            attribute: string
                    operator: string
                  ipExpression:
                    evaluate:
                        attribute: string
                    operator: string
                    values:
                        - string
                  ipv6Expression:
                    evaluate:
                        attribute: string
                    operator: string
                    values:
                        - string
                  stringExpression:
                    evaluate:
                        analysis:
                            analyzer: string
                            resultField: string
                        attribute: string
                    operator: string
                    values:
                        - string
                  tlsExpression:
                    evaluate:
                        attribute: string
                    operator: string
                    value: string
        region: string
        tags:
            string: string
    

    TrafficPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TrafficPolicy resource accepts the following input properties:

    DefaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    MaxMessageSizeBytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    Name string
    Name of the traffic policy.
    PolicyStatements List<TrafficPolicyPolicyStatement>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DefaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    MaxMessageSizeBytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    Name string
    Name of the traffic policy.
    PolicyStatements []TrafficPolicyPolicyStatementArgs

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    default_action string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    max_message_size_bytes number
    Maximum message size, in bytes, allowed by the traffic policy.
    name string
    Name of the traffic policy.
    policy_statements list(object)

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    defaultAction String
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    maxMessageSizeBytes Integer
    Maximum message size, in bytes, allowed by the traffic policy.
    name String
    Name of the traffic policy.
    policyStatements List<TrafficPolicyPolicyStatement>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    defaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    maxMessageSizeBytes number
    Maximum message size, in bytes, allowed by the traffic policy.
    name string
    Name of the traffic policy.
    policyStatements TrafficPolicyPolicyStatement[]

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    default_action str
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    max_message_size_bytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    name str
    Name of the traffic policy.
    policy_statements Sequence[TrafficPolicyPolicyStatementArgs]

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    defaultAction String
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    maxMessageSizeBytes Number
    Maximum message size, in bytes, allowed by the traffic policy.
    name String
    Name of the traffic policy.
    policyStatements List<Property Map>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TrafficPolicy resource produces the following output properties:

    Arn string
    ARN of the traffic policy.
    CreatedTimestamp string
    Timestamp when the traffic policy was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the traffic policy.
    CreatedTimestamp string
    Timestamp when the traffic policy was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the traffic policy.
    created_timestamp string
    Timestamp when the traffic policy was created.
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated_timestamp string
    Timestamp when the traffic policy was last updated.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the traffic policy.
    createdTimestamp String
    Timestamp when the traffic policy was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTimestamp String
    Timestamp when the traffic policy was last updated.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the traffic policy.
    createdTimestamp string
    Timestamp when the traffic policy was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the traffic policy.
    created_timestamp str
    Timestamp when the traffic policy was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated_timestamp str
    Timestamp when the traffic policy was last updated.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the traffic policy.
    createdTimestamp String
    Timestamp when the traffic policy was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTimestamp String
    Timestamp when the traffic policy was last updated.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing TrafficPolicy Resource

    Get an existing TrafficPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TrafficPolicyState, opts?: CustomResourceOptions): TrafficPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            created_timestamp: Optional[str] = None,
            default_action: Optional[str] = None,
            last_updated_timestamp: Optional[str] = None,
            max_message_size_bytes: Optional[int] = None,
            name: Optional[str] = None,
            policy_statements: Optional[Sequence[TrafficPolicyPolicyStatementArgs]] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> TrafficPolicy
    func GetTrafficPolicy(ctx *Context, name string, id IDInput, state *TrafficPolicyState, opts ...ResourceOption) (*TrafficPolicy, error)
    public static TrafficPolicy Get(string name, Input<string> id, TrafficPolicyState? state, CustomResourceOptions? opts = null)
    public static TrafficPolicy get(String name, Output<String> id, TrafficPolicyState state, CustomResourceOptions options)
    resources:  _:    type: aws:mailmanager:TrafficPolicy    get:      id: ${id}
    import {
      to = aws_mailmanager_traffic_policy.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the traffic policy.
    CreatedTimestamp string
    Timestamp when the traffic policy was created.
    DefaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    LastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    MaxMessageSizeBytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    Name string
    Name of the traffic policy.
    PolicyStatements List<TrafficPolicyPolicyStatement>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the traffic policy.
    CreatedTimestamp string
    Timestamp when the traffic policy was created.
    DefaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    LastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    MaxMessageSizeBytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    Name string
    Name of the traffic policy.
    PolicyStatements []TrafficPolicyPolicyStatementArgs

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the traffic policy.
    created_timestamp string
    Timestamp when the traffic policy was created.
    default_action string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    last_updated_timestamp string
    Timestamp when the traffic policy was last updated.
    max_message_size_bytes number
    Maximum message size, in bytes, allowed by the traffic policy.
    name string
    Name of the traffic policy.
    policy_statements list(object)

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the traffic policy.
    createdTimestamp String
    Timestamp when the traffic policy was created.
    defaultAction String
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    lastUpdatedTimestamp String
    Timestamp when the traffic policy was last updated.
    maxMessageSizeBytes Integer
    Maximum message size, in bytes, allowed by the traffic policy.
    name String
    Name of the traffic policy.
    policyStatements List<TrafficPolicyPolicyStatement>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the traffic policy.
    createdTimestamp string
    Timestamp when the traffic policy was created.
    defaultAction string
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    lastUpdatedTimestamp string
    Timestamp when the traffic policy was last updated.
    maxMessageSizeBytes number
    Maximum message size, in bytes, allowed by the traffic policy.
    name string
    Name of the traffic policy.
    policyStatements TrafficPolicyPolicyStatement[]

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the traffic policy.
    created_timestamp str
    Timestamp when the traffic policy was created.
    default_action str
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    last_updated_timestamp str
    Timestamp when the traffic policy was last updated.
    max_message_size_bytes int
    Maximum message size, in bytes, allowed by the traffic policy.
    name str
    Name of the traffic policy.
    policy_statements Sequence[TrafficPolicyPolicyStatementArgs]

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the traffic policy.
    createdTimestamp String
    Timestamp when the traffic policy was created.
    defaultAction String
    Default action for traffic that does not match any policy statement. Valid values are ALLOW and DENY.
    lastUpdatedTimestamp String
    Timestamp when the traffic policy was last updated.
    maxMessageSizeBytes Number
    Maximum message size, in bytes, allowed by the traffic policy.
    name String
    Name of the traffic policy.
    policyStatements List<Property Map>

    Traffic policy statements. See policyStatement Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Supporting Types

    TrafficPolicyPolicyStatement, TrafficPolicyPolicyStatementArgs

    Action string
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    Conditions List<TrafficPolicyPolicyStatementCondition>
    Conditions evaluated by the statement. See condition Block below.
    Action string
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    Conditions []TrafficPolicyPolicyStatementCondition
    Conditions evaluated by the statement. See condition Block below.
    action string
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    conditions list(object)
    Conditions evaluated by the statement. See condition Block below.
    action String
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    conditions List<TrafficPolicyPolicyStatementCondition>
    Conditions evaluated by the statement. See condition Block below.
    action string
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    conditions TrafficPolicyPolicyStatementCondition[]
    Conditions evaluated by the statement. See condition Block below.
    action str
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    conditions Sequence[TrafficPolicyPolicyStatementCondition]
    Conditions evaluated by the statement. See condition Block below.
    action String
    Action applied when all conditions match. Valid values are ALLOW and DENY.
    conditions List<Property Map>
    Conditions evaluated by the statement. See condition Block below.

    TrafficPolicyPolicyStatementCondition, TrafficPolicyPolicyStatementConditionArgs

    BooleanExpression TrafficPolicyPolicyStatementConditionBooleanExpression
    Boolean comparison. See booleanExpression Block below.
    IpExpression TrafficPolicyPolicyStatementConditionIpExpression
    IPv4 address comparison. See ipExpression Block below.
    Ipv6Expression TrafficPolicyPolicyStatementConditionIpv6Expression
    IPv6 address comparison. See ipv6Expression Block below.
    StringExpression TrafficPolicyPolicyStatementConditionStringExpression
    String comparison. See stringExpression Block below.
    TlsExpression TrafficPolicyPolicyStatementConditionTlsExpression
    TLS policy comparison. See tlsExpression Block below.
    BooleanExpression TrafficPolicyPolicyStatementConditionBooleanExpression
    Boolean comparison. See booleanExpression Block below.
    IpExpression TrafficPolicyPolicyStatementConditionIpExpression
    IPv4 address comparison. See ipExpression Block below.
    Ipv6Expression TrafficPolicyPolicyStatementConditionIpv6Expression
    IPv6 address comparison. See ipv6Expression Block below.
    StringExpression TrafficPolicyPolicyStatementConditionStringExpression
    String comparison. See stringExpression Block below.
    TlsExpression TrafficPolicyPolicyStatementConditionTlsExpression
    TLS policy comparison. See tlsExpression Block below.
    boolean_expression object
    Boolean comparison. See booleanExpression Block below.
    ip_expression object
    IPv4 address comparison. See ipExpression Block below.
    ipv6_expression object
    IPv6 address comparison. See ipv6Expression Block below.
    string_expression object
    String comparison. See stringExpression Block below.
    tls_expression object
    TLS policy comparison. See tlsExpression Block below.
    booleanExpression TrafficPolicyPolicyStatementConditionBooleanExpression
    Boolean comparison. See booleanExpression Block below.
    ipExpression TrafficPolicyPolicyStatementConditionIpExpression
    IPv4 address comparison. See ipExpression Block below.
    ipv6Expression TrafficPolicyPolicyStatementConditionIpv6Expression
    IPv6 address comparison. See ipv6Expression Block below.
    stringExpression TrafficPolicyPolicyStatementConditionStringExpression
    String comparison. See stringExpression Block below.
    tlsExpression TrafficPolicyPolicyStatementConditionTlsExpression
    TLS policy comparison. See tlsExpression Block below.
    booleanExpression TrafficPolicyPolicyStatementConditionBooleanExpression
    Boolean comparison. See booleanExpression Block below.
    ipExpression TrafficPolicyPolicyStatementConditionIpExpression
    IPv4 address comparison. See ipExpression Block below.
    ipv6Expression TrafficPolicyPolicyStatementConditionIpv6Expression
    IPv6 address comparison. See ipv6Expression Block below.
    stringExpression TrafficPolicyPolicyStatementConditionStringExpression
    String comparison. See stringExpression Block below.
    tlsExpression TrafficPolicyPolicyStatementConditionTlsExpression
    TLS policy comparison. See tlsExpression Block below.
    boolean_expression TrafficPolicyPolicyStatementConditionBooleanExpression
    Boolean comparison. See booleanExpression Block below.
    ip_expression TrafficPolicyPolicyStatementConditionIpExpression
    IPv4 address comparison. See ipExpression Block below.
    ipv6_expression TrafficPolicyPolicyStatementConditionIpv6Expression
    IPv6 address comparison. See ipv6Expression Block below.
    string_expression TrafficPolicyPolicyStatementConditionStringExpression
    String comparison. See stringExpression Block below.
    tls_expression TrafficPolicyPolicyStatementConditionTlsExpression
    TLS policy comparison. See tlsExpression Block below.
    booleanExpression Property Map
    Boolean comparison. See booleanExpression Block below.
    ipExpression Property Map
    IPv4 address comparison. See ipExpression Block below.
    ipv6Expression Property Map
    IPv6 address comparison. See ipv6Expression Block below.
    stringExpression Property Map
    String comparison. See stringExpression Block below.
    tlsExpression Property Map
    TLS policy comparison. See tlsExpression Block below.

    TrafficPolicyPolicyStatementConditionBooleanExpression, TrafficPolicyPolicyStatementConditionBooleanExpressionArgs

    Operator string
    Boolean operator used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    Operator string
    Boolean operator used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    operator string
    Boolean operator used for the comparison.
    evaluate object
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    operator String
    Boolean operator used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    operator string
    Boolean operator used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    operator str
    Boolean operator used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.
    operator String
    Boolean operator used for the comparison.
    evaluate Property Map
    Operand evaluated by the expression. See policy_statement.condition.boolean_expression.evaluate Block below.

    TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluate, TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateArgs

    Analysis TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    IsInAddressList TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList
    Address list membership check. See isInAddressList Block below.
    Analysis TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    IsInAddressList TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList
    Address list membership check. See isInAddressList Block below.
    analysis object
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    is_in_address_list object
    Address list membership check. See isInAddressList Block below.
    analysis TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    isInAddressList TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList
    Address list membership check. See isInAddressList Block below.
    analysis TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    isInAddressList TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList
    Address list membership check. See isInAddressList Block below.
    analysis TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    is_in_address_list TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList
    Address list membership check. See isInAddressList Block below.
    analysis Property Map
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    isInAddressList Property Map
    Address list membership check. See isInAddressList Block below.

    TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysis, TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateAnalysisArgs

    Analyzer string
    ARN of the analyzer performing the analysis.
    ResultField string
    Result field returned in the analysis.
    Analyzer string
    ARN of the analyzer performing the analysis.
    ResultField string
    Result field returned in the analysis.
    analyzer string
    ARN of the analyzer performing the analysis.
    result_field string
    Result field returned in the analysis.
    analyzer String
    ARN of the analyzer performing the analysis.
    resultField String
    Result field returned in the analysis.
    analyzer string
    ARN of the analyzer performing the analysis.
    resultField string
    Result field returned in the analysis.
    analyzer str
    ARN of the analyzer performing the analysis.
    result_field str
    Result field returned in the analysis.
    analyzer String
    ARN of the analyzer performing the analysis.
    resultField String
    Result field returned in the analysis.

    TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressList, TrafficPolicyPolicyStatementConditionBooleanExpressionEvaluateIsInAddressListArgs

    AddressLists List<string>
    List containing exactly one address list ARN to check membership against.
    Attribute string
    Email attribute to check against the address list.
    AddressLists []string
    List containing exactly one address list ARN to check membership against.
    Attribute string
    Email attribute to check against the address list.
    address_lists list(string)
    List containing exactly one address list ARN to check membership against.
    attribute string
    Email attribute to check against the address list.
    addressLists List<String>
    List containing exactly one address list ARN to check membership against.
    attribute String
    Email attribute to check against the address list.
    addressLists string[]
    List containing exactly one address list ARN to check membership against.
    attribute string
    Email attribute to check against the address list.
    address_lists Sequence[str]
    List containing exactly one address list ARN to check membership against.
    attribute str
    Email attribute to check against the address list.
    addressLists List<String>
    List containing exactly one address list ARN to check membership against.
    attribute String
    Email attribute to check against the address list.

    TrafficPolicyPolicyStatementConditionIpExpression, TrafficPolicyPolicyStatementConditionIpExpressionArgs

    Operator string
    IP address operator used for the comparison.
    Values List<string>
    IPv4 CIDR ranges used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionIpExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    Operator string
    IP address operator used for the comparison.
    Values []string
    IPv4 CIDR ranges used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionIpExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    operator string
    IP address operator used for the comparison.
    values list(string)
    IPv4 CIDR ranges used for the comparison.
    evaluate object
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    operator String
    IP address operator used for the comparison.
    values List<String>
    IPv4 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    operator string
    IP address operator used for the comparison.
    values string[]
    IPv4 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    operator str
    IP address operator used for the comparison.
    values Sequence[str]
    IPv4 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.
    operator String
    IP address operator used for the comparison.
    values List<String>
    IPv4 CIDR ranges used for the comparison.
    evaluate Property Map
    Operand evaluated by the expression. See policy_statement.condition.ip_expression.evaluate Block below.

    TrafficPolicyPolicyStatementConditionIpExpressionEvaluate, TrafficPolicyPolicyStatementConditionIpExpressionEvaluateArgs

    Attribute string
    Attribute string
    attribute string
    attribute String
    attribute string
    attribute String

    TrafficPolicyPolicyStatementConditionIpv6Expression, TrafficPolicyPolicyStatementConditionIpv6ExpressionArgs

    Operator string
    IPv6 address operator used for the comparison.
    Values List<string>
    IPv6 CIDR ranges used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    Operator string
    IPv6 address operator used for the comparison.
    Values []string
    IPv6 CIDR ranges used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    operator string
    IPv6 address operator used for the comparison.
    values list(string)
    IPv6 CIDR ranges used for the comparison.
    evaluate object
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    operator String
    IPv6 address operator used for the comparison.
    values List<String>
    IPv6 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    operator string
    IPv6 address operator used for the comparison.
    values string[]
    IPv6 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    operator str
    IPv6 address operator used for the comparison.
    values Sequence[str]
    IPv6 CIDR ranges used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.
    operator String
    IPv6 address operator used for the comparison.
    values List<String>
    IPv6 CIDR ranges used for the comparison.
    evaluate Property Map
    Operand evaluated by the expression. See policy_statement.condition.ipv6_expression.evaluate Block below.

    TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluate, TrafficPolicyPolicyStatementConditionIpv6ExpressionEvaluateArgs

    Attribute string
    Attribute string
    attribute string
    attribute String
    attribute string
    attribute String

    TrafficPolicyPolicyStatementConditionStringExpression, TrafficPolicyPolicyStatementConditionStringExpressionArgs

    Operator string
    String operator used for the comparison.
    Values List<string>
    Strings used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionStringExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    Operator string
    String operator used for the comparison.
    Values []string
    Strings used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionStringExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    operator string
    String operator used for the comparison.
    values list(string)
    Strings used for the comparison.
    evaluate object
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    operator String
    String operator used for the comparison.
    values List<String>
    Strings used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionStringExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    operator string
    String operator used for the comparison.
    values string[]
    Strings used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionStringExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    operator str
    String operator used for the comparison.
    values Sequence[str]
    Strings used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionStringExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.
    operator String
    String operator used for the comparison.
    values List<String>
    Strings used for the comparison.
    evaluate Property Map
    Operand evaluated by the expression. See policy_statement.condition.string_expression.evaluate Block below.

    TrafficPolicyPolicyStatementConditionStringExpressionEvaluate, TrafficPolicyPolicyStatementConditionStringExpressionEvaluateArgs

    Analysis TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    Attribute string
    Analysis TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    Attribute string
    analysis object
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    attribute string
    analysis TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    attribute String
    analysis TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    attribute string
    analysis TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    attribute str
    analysis Property Map
    Analysis result to evaluate. See policy_statement.condition.string_expression.evaluate.analysis Block below.
    attribute String

    TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysis, TrafficPolicyPolicyStatementConditionStringExpressionEvaluateAnalysisArgs

    Analyzer string
    ARN of the analyzer performing the analysis.
    ResultField string
    Result field returned in the analysis.
    Analyzer string
    ARN of the analyzer performing the analysis.
    ResultField string
    Result field returned in the analysis.
    analyzer string
    ARN of the analyzer performing the analysis.
    result_field string
    Result field returned in the analysis.
    analyzer String
    ARN of the analyzer performing the analysis.
    resultField String
    Result field returned in the analysis.
    analyzer string
    ARN of the analyzer performing the analysis.
    resultField string
    Result field returned in the analysis.
    analyzer str
    ARN of the analyzer performing the analysis.
    result_field str
    Result field returned in the analysis.
    analyzer String
    ARN of the analyzer performing the analysis.
    resultField String
    Result field returned in the analysis.

    TrafficPolicyPolicyStatementConditionTlsExpression, TrafficPolicyPolicyStatementConditionTlsExpressionArgs

    Operator string
    TLS policy operator used for the comparison.
    Value string
    TLS policy used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    Operator string
    TLS policy operator used for the comparison.
    Value string
    TLS policy used for the comparison.
    Evaluate TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    operator string
    TLS policy operator used for the comparison.
    value string
    TLS policy used for the comparison.
    evaluate object
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    operator String
    TLS policy operator used for the comparison.
    value String
    TLS policy used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    operator string
    TLS policy operator used for the comparison.
    value string
    TLS policy used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    operator str
    TLS policy operator used for the comparison.
    value str
    TLS policy used for the comparison.
    evaluate TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.
    operator String
    TLS policy operator used for the comparison.
    value String
    TLS policy used for the comparison.
    evaluate Property Map
    Operand evaluated by the expression. See policy_statement.condition.tls_expression.evaluate Block below.

    TrafficPolicyPolicyStatementConditionTlsExpressionEvaluate, TrafficPolicyPolicyStatementConditionTlsExpressionEvaluateArgs

    Attribute string
    Attribute string
    attribute string
    attribute String
    attribute string
    attribute String

    Import

    Identity Schema

    Required

    • id (String) ID of the traffic policy.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import an SES Mail Manager Traffic Policy using its ID. For example:

    $ pulumi import aws:mailmanager/trafficPolicy:TrafficPolicy example example-id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.40.0
    published on Thursday, Jul 30, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial