1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. fms
  6. Policy
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi

    Provides a resource to create an AWS Firewall Manager policy. You need to be using AWS organizations and have enabled the Firewall Manager administrator account.

    NOTE: Due to limitations with testing, we provide it as best effort. If you find it useful, and have the ability to help test or notice issues, consider reaching out to us on GitHub.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleRuleGroup = new aws.wafregional.RuleGroup("example", {
        metricName: "WAFRuleGroupExample",
        name: "WAF-Rule-Group-Example",
    });
    const example = new aws.fms.Policy("example", {
        securityServicePolicyData: {
            type: "WAF",
            managedServiceData: pulumi.jsonStringify({
                type: "WAF",
                ruleGroups: [{
                    id: exampleRuleGroup.id,
                    overrideAction: {
                        type: "COUNT",
                    },
                }],
                defaultAction: {
                    type: "BLOCK",
                },
                overrideCustomerWebACLAssociation: false,
            }),
        },
        name: "FMS-Policy-Example",
        excludeResourceTags: false,
        remediationEnabled: false,
        resourceType: "AWS::ElasticLoadBalancingV2::LoadBalancer",
        tags: {
            Name: "example-fms-policy",
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example_rule_group = aws.wafregional.RuleGroup("example",
        metric_name="WAFRuleGroupExample",
        name="WAF-Rule-Group-Example")
    example = aws.fms.Policy("example",
        security_service_policy_data={
            "type": "WAF",
            "managed_service_data": pulumi.Output.json_dumps({
                "type": "WAF",
                "ruleGroups": [{
                    "id": example_rule_group.id,
                    "overrideAction": {
                        "type": "COUNT",
                    },
                }],
                "defaultAction": {
                    "type": "BLOCK",
                },
                "overrideCustomerWebACLAssociation": False,
            }),
        },
        name="FMS-Policy-Example",
        exclude_resource_tags=False,
        remediation_enabled=False,
        resource_type="AWS::ElasticLoadBalancingV2::LoadBalancer",
        tags={
            "Name": "example-fms-policy",
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/fms"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/wafregional"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleRuleGroup, err := wafregional.NewRuleGroup(ctx, "example", &wafregional.RuleGroupArgs{
    			MetricName: pulumi.String("WAFRuleGroupExample"),
    			Name:       pulumi.String("WAF-Rule-Group-Example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = fms.NewPolicy(ctx, "example", &fms.PolicyArgs{
    			SecurityServicePolicyData: &fms.PolicySecurityServicePolicyDataArgs{
    				Type: pulumi.String("WAF"),
    				ManagedServiceData: exampleRuleGroup.ID().ApplyT(func(id pulumi.ID) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON0, err := json.Marshal(map[string]interface{}{
    						"type": "WAF",
    						"ruleGroups": []map[string]interface{}{
    							map[string]interface{}{
    								"id": id,
    								"overrideAction": map[string]string{
    									"type": "COUNT",
    								},
    							},
    						},
    						"defaultAction": map[string]string{
    							"type": "BLOCK",
    						},
    						"overrideCustomerWebACLAssociation": false,
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json0 := string(tmpJSON0)
    					return pulumi.String(json0), nil
    				}).(pulumi.StringOutput),
    			},
    			Name:                pulumi.String("FMS-Policy-Example"),
    			ExcludeResourceTags: pulumi.Bool(false),
    			RemediationEnabled:  pulumi.Bool(false),
    			ResourceType:        pulumi.String("AWS::ElasticLoadBalancingV2::LoadBalancer"),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-fms-policy"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleRuleGroup = new Aws.WafRegional.RuleGroup("example", new()
        {
            MetricName = "WAFRuleGroupExample",
            Name = "WAF-Rule-Group-Example",
        });
    
        var example = new Aws.Fms.Policy("example", new()
        {
            SecurityServicePolicyData = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataArgs
            {
                Type = "WAF",
                ManagedServiceData = Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["type"] = "WAF",
                    ["ruleGroups"] = new[]
                    {
                        new Dictionary<string, object?>
                        {
                            ["id"] = exampleRuleGroup.Id,
                            ["overrideAction"] = new Dictionary<string, object?>
                            {
                                ["type"] = "COUNT",
                            },
                        },
                    },
                    ["defaultAction"] = new Dictionary<string, object?>
                    {
                        ["type"] = "BLOCK",
                    },
                    ["overrideCustomerWebACLAssociation"] = false,
                })),
            },
            Name = "FMS-Policy-Example",
            ExcludeResourceTags = false,
            RemediationEnabled = false,
            ResourceType = "AWS::ElasticLoadBalancingV2::LoadBalancer",
            Tags = 
            {
                { "Name", "example-fms-policy" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.wafregional.RuleGroup;
    import com.pulumi.aws.wafregional.RuleGroupArgs;
    import com.pulumi.aws.fms.Policy;
    import com.pulumi.aws.fms.PolicyArgs;
    import com.pulumi.aws.fms.inputs.PolicySecurityServicePolicyDataArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 exampleRuleGroup = new RuleGroup("exampleRuleGroup", RuleGroupArgs.builder()
                .metricName("WAFRuleGroupExample")
                .name("WAF-Rule-Group-Example")
                .build());
    
            var example = new Policy("example", PolicyArgs.builder()
                .securityServicePolicyData(PolicySecurityServicePolicyDataArgs.builder()
                    .type("WAF")
                    .managedServiceData(exampleRuleGroup.id().applyValue(_id -> serializeJson(
                        jsonObject(
                            jsonProperty("type", "WAF"),
                            jsonProperty("ruleGroups", jsonArray(jsonObject(
                                jsonProperty("id", _id),
                                jsonProperty("overrideAction", jsonObject(
                                    jsonProperty("type", "COUNT")
                                ))
                            ))),
                            jsonProperty("defaultAction", jsonObject(
                                jsonProperty("type", "BLOCK")
                            )),
                            jsonProperty("overrideCustomerWebACLAssociation", false)
                        ))))
                    .build())
                .name("FMS-Policy-Example")
                .excludeResourceTags(false)
                .remediationEnabled(false)
                .resourceType("AWS::ElasticLoadBalancingV2::LoadBalancer")
                .tags(Map.of("Name", "example-fms-policy"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:fms:Policy
        properties:
          securityServicePolicyData:
            type: WAF
            managedServiceData:
              fn::toJSON:
                type: WAF
                ruleGroups:
                  - id: ${exampleRuleGroup.id}
                    overrideAction:
                      type: COUNT
                defaultAction:
                  type: BLOCK
                overrideCustomerWebACLAssociation: false
          name: FMS-Policy-Example
          excludeResourceTags: false
          remediationEnabled: false
          resourceType: AWS::ElasticLoadBalancingV2::LoadBalancer
          tags:
            Name: example-fms-policy
      exampleRuleGroup:
        type: aws:wafregional:RuleGroup
        name: example
        properties:
          metricName: WAFRuleGroupExample
          name: WAF-Rule-Group-Example
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_fms_policy" "example" {
      security_service_policy_data = {
        type = "WAF"
        managed_service_data = jsonencode({
          "type" = "WAF"
          "ruleGroups" = [{
            "id" = aws_wafregional_rulegroup.example.id
            "overrideAction" = {
              "type" = "COUNT"
            }
          }]
          "defaultAction" = {
            "type" = "BLOCK"
          }
          "overrideCustomerWebACLAssociation" = false
        })
      }
      name                  = "FMS-Policy-Example"
      exclude_resource_tags = false
      remediation_enabled   = false
      resource_type         = "AWS::ElasticLoadBalancingV2::LoadBalancer"
      tags = {
        "Name" = "example-fms-policy"
      }
    }
    resource "aws_wafregional_rulegroup" "example" {
      metric_name = "WAFRuleGroupExample"
      name        = "WAF-Rule-Group-Example"
    }
    

    Create Policy Resource

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

    Constructor syntax

    new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);
    @overload
    def Policy(resource_name: str,
               args: PolicyArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Policy(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               exclude_resource_tags: Optional[bool] = None,
               security_service_policy_data: Optional[PolicySecurityServicePolicyDataArgs] = None,
               remediation_enabled: Optional[bool] = None,
               resource_set_ids: Optional[Sequence[str]] = None,
               description: Optional[str] = None,
               include_map: Optional[PolicyIncludeMapArgs] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               delete_all_policy_resources: Optional[bool] = None,
               exclude_map: Optional[PolicyExcludeMapArgs] = None,
               resource_tag_logical_operator: Optional[str] = None,
               resource_tags: Optional[Mapping[str, str]] = None,
               resource_type: Optional[str] = None,
               resource_type_lists: Optional[Sequence[str]] = None,
               delete_unused_fm_managed_resources: Optional[bool] = None,
               tags: Optional[Mapping[str, str]] = None)
    func NewPolicy(ctx *Context, name string, args PolicyArgs, opts ...ResourceOption) (*Policy, error)
    public Policy(string name, PolicyArgs args, CustomResourceOptions? opts = null)
    public Policy(String name, PolicyArgs args)
    public Policy(String name, PolicyArgs args, CustomResourceOptions options)
    
    type: aws:fms:Policy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_fms_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PolicyArgs
    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 PolicyArgs
    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 PolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyArgs
    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 examplepolicyResourceResourceFromFmspolicy = new Aws.Fms.Policy("examplepolicyResourceResourceFromFmspolicy", new()
    {
        ExcludeResourceTags = false,
        SecurityServicePolicyData = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataArgs
        {
            Type = "string",
            ManagedServiceData = "string",
            PolicyOption = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionArgs
            {
                NetworkAclCommonPolicy = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyArgs
                {
                    NetworkAclEntrySet = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetArgs
                    {
                        ForceRemediateForFirstEntries = false,
                        ForceRemediateForLastEntries = false,
                        FirstEntries = new[]
                        {
                            new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryArgs
                            {
                                Egress = false,
                                Protocol = "string",
                                RuleAction = "string",
                                CidrBlock = "string",
                                IcmpTypeCodes = new[]
                                {
                                    new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCodeArgs
                                    {
                                        Code = 0,
                                        Type = 0,
                                    },
                                },
                                Ipv6CidrBlock = "string",
                                PortRanges = new[]
                                {
                                    new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRangeArgs
                                    {
                                        From = 0,
                                        To = 0,
                                    },
                                },
                            },
                        },
                        LastEntries = new[]
                        {
                            new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryArgs
                            {
                                Egress = false,
                                Protocol = "string",
                                RuleAction = "string",
                                CidrBlock = "string",
                                IcmpTypeCodes = new[]
                                {
                                    new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCodeArgs
                                    {
                                        Code = 0,
                                        Type = 0,
                                    },
                                },
                                Ipv6CidrBlock = "string",
                                PortRanges = new[]
                                {
                                    new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRangeArgs
                                    {
                                        From = 0,
                                        To = 0,
                                    },
                                },
                            },
                        },
                    },
                },
                NetworkFirewallPolicy = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicyArgs
                {
                    FirewallDeploymentModel = "string",
                },
                ThirdPartyFirewallPolicy = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicyArgs
                {
                    FirewallDeploymentModel = "string",
                },
            },
        },
        RemediationEnabled = false,
        ResourceSetIds = new[]
        {
            "string",
        },
        Description = "string",
        IncludeMap = new Aws.Fms.Inputs.PolicyIncludeMapArgs
        {
            Accounts = new[]
            {
                "string",
            },
            Orgunits = new[]
            {
                "string",
            },
        },
        Name = "string",
        Region = "string",
        DeleteAllPolicyResources = false,
        ExcludeMap = new Aws.Fms.Inputs.PolicyExcludeMapArgs
        {
            Accounts = new[]
            {
                "string",
            },
            Orgunits = new[]
            {
                "string",
            },
        },
        ResourceTagLogicalOperator = "string",
        ResourceTags = 
        {
            { "string", "string" },
        },
        ResourceType = "string",
        ResourceTypeLists = new[]
        {
            "string",
        },
        DeleteUnusedFmManagedResources = false,
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := fms.NewPolicy(ctx, "examplepolicyResourceResourceFromFmspolicy", &fms.PolicyArgs{
    	ExcludeResourceTags: pulumi.Bool(false),
    	SecurityServicePolicyData: &fms.PolicySecurityServicePolicyDataArgs{
    		Type:               pulumi.String("string"),
    		ManagedServiceData: pulumi.String("string"),
    		PolicyOption: &fms.PolicySecurityServicePolicyDataPolicyOptionArgs{
    			NetworkAclCommonPolicy: &fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyArgs{
    				NetworkAclEntrySet: &fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetArgs{
    					ForceRemediateForFirstEntries: pulumi.Bool(false),
    					ForceRemediateForLastEntries:  pulumi.Bool(false),
    					FirstEntries: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryArray{
    						&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryArgs{
    							Egress:     pulumi.Bool(false),
    							Protocol:   pulumi.String("string"),
    							RuleAction: pulumi.String("string"),
    							CidrBlock:  pulumi.String("string"),
    							IcmpTypeCodes: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCodeArray{
    								&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCodeArgs{
    									Code: pulumi.Int(0),
    									Type: pulumi.Int(0),
    								},
    							},
    							Ipv6CidrBlock: pulumi.String("string"),
    							PortRanges: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRangeArray{
    								&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRangeArgs{
    									From: pulumi.Int(0),
    									To:   pulumi.Int(0),
    								},
    							},
    						},
    					},
    					LastEntries: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryArray{
    						&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryArgs{
    							Egress:     pulumi.Bool(false),
    							Protocol:   pulumi.String("string"),
    							RuleAction: pulumi.String("string"),
    							CidrBlock:  pulumi.String("string"),
    							IcmpTypeCodes: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCodeArray{
    								&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCodeArgs{
    									Code: pulumi.Int(0),
    									Type: pulumi.Int(0),
    								},
    							},
    							Ipv6CidrBlock: pulumi.String("string"),
    							PortRanges: fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRangeArray{
    								&fms.PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRangeArgs{
    									From: pulumi.Int(0),
    									To:   pulumi.Int(0),
    								},
    							},
    						},
    					},
    				},
    			},
    			NetworkFirewallPolicy: &fms.PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicyArgs{
    				FirewallDeploymentModel: pulumi.String("string"),
    			},
    			ThirdPartyFirewallPolicy: &fms.PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicyArgs{
    				FirewallDeploymentModel: pulumi.String("string"),
    			},
    		},
    	},
    	RemediationEnabled: pulumi.Bool(false),
    	ResourceSetIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	IncludeMap: &fms.PolicyIncludeMapArgs{
    		Accounts: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Orgunits: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name:                     pulumi.String("string"),
    	Region:                   pulumi.String("string"),
    	DeleteAllPolicyResources: pulumi.Bool(false),
    	ExcludeMap: &fms.PolicyExcludeMapArgs{
    		Accounts: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Orgunits: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ResourceTagLogicalOperator: pulumi.String("string"),
    	ResourceTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ResourceType: pulumi.String("string"),
    	ResourceTypeLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DeleteUnusedFmManagedResources: pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_fms_policy" "examplepolicyResourceResourceFromFmspolicy" {
      lifecycle {
        create_before_destroy = true
      }
      exclude_resource_tags = false
      security_service_policy_data = {
        type                 = "string"
        managed_service_data = "string"
        policy_option = {
          network_acl_common_policy = {
            network_acl_entry_set = {
              force_remediate_for_first_entries = false
              force_remediate_for_last_entries  = false
              first_entries = [{
                egress      = false
                protocol    = "string"
                rule_action = "string"
                cidr_block  = "string"
                icmp_type_codes = [{
                  code = 0
                  type = 0
                }]
                ipv6_cidr_block = "string"
                port_ranges = [{
                  from = 0
                  to   = 0
                }]
              }]
              last_entries = [{
                egress      = false
                protocol    = "string"
                rule_action = "string"
                cidr_block  = "string"
                icmp_type_codes = [{
                  code = 0
                  type = 0
                }]
                ipv6_cidr_block = "string"
                port_ranges = [{
                  from = 0
                  to   = 0
                }]
              }]
            }
          }
          network_firewall_policy = {
            firewall_deployment_model = "string"
          }
          third_party_firewall_policy = {
            firewall_deployment_model = "string"
          }
        }
      }
      remediation_enabled = false
      resource_set_ids    = ["string"]
      description         = "string"
      include_map = {
        accounts = ["string"]
        orgunits = ["string"]
      }
      name                        = "string"
      region                      = "string"
      delete_all_policy_resources = false
      exclude_map = {
        accounts = ["string"]
        orgunits = ["string"]
      }
      resource_tag_logical_operator = "string"
      resource_tags = {
        "string" = "string"
      }
      resource_type                      = "string"
      resource_type_lists                = ["string"]
      delete_unused_fm_managed_resources = false
      tags = {
        "string" = "string"
      }
    }
    
    var examplepolicyResourceResourceFromFmspolicy = new com.pulumi.aws.fms.Policy("examplepolicyResourceResourceFromFmspolicy", com.pulumi.aws.fms.PolicyArgs.builder()
        .excludeResourceTags(false)
        .securityServicePolicyData(PolicySecurityServicePolicyDataArgs.builder()
            .type("string")
            .managedServiceData("string")
            .policyOption(PolicySecurityServicePolicyDataPolicyOptionArgs.builder()
                .networkAclCommonPolicy(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyArgs.builder()
                    .networkAclEntrySet(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetArgs.builder()
                        .forceRemediateForFirstEntries(false)
                        .forceRemediateForLastEntries(false)
                        .firstEntries(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryArgs.builder()
                            .egress(false)
                            .protocol("string")
                            .ruleAction("string")
                            .cidrBlock("string")
                            .icmpTypeCodes(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCodeArgs.builder()
                                .code(0)
                                .type(0)
                                .build())
                            .ipv6CidrBlock("string")
                            .portRanges(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRangeArgs.builder()
                                .from(0)
                                .to(0)
                                .build())
                            .build())
                        .lastEntries(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryArgs.builder()
                            .egress(false)
                            .protocol("string")
                            .ruleAction("string")
                            .cidrBlock("string")
                            .icmpTypeCodes(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCodeArgs.builder()
                                .code(0)
                                .type(0)
                                .build())
                            .ipv6CidrBlock("string")
                            .portRanges(PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRangeArgs.builder()
                                .from(0)
                                .to(0)
                                .build())
                            .build())
                        .build())
                    .build())
                .networkFirewallPolicy(PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicyArgs.builder()
                    .firewallDeploymentModel("string")
                    .build())
                .thirdPartyFirewallPolicy(PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicyArgs.builder()
                    .firewallDeploymentModel("string")
                    .build())
                .build())
            .build())
        .remediationEnabled(false)
        .resourceSetIds("string")
        .description("string")
        .includeMap(PolicyIncludeMapArgs.builder()
            .accounts("string")
            .orgunits("string")
            .build())
        .name("string")
        .region("string")
        .deleteAllPolicyResources(false)
        .excludeMap(PolicyExcludeMapArgs.builder()
            .accounts("string")
            .orgunits("string")
            .build())
        .resourceTagLogicalOperator("string")
        .resourceTags(Map.of("string", "string"))
        .resourceType("string")
        .resourceTypeLists("string")
        .deleteUnusedFmManagedResources(false)
        .tags(Map.of("string", "string"))
        .build());
    
    examplepolicy_resource_resource_from_fmspolicy = aws.fms.Policy("examplepolicyResourceResourceFromFmspolicy",
        exclude_resource_tags=False,
        security_service_policy_data={
            "type": "string",
            "managed_service_data": "string",
            "policy_option": {
                "network_acl_common_policy": {
                    "network_acl_entry_set": {
                        "force_remediate_for_first_entries": False,
                        "force_remediate_for_last_entries": False,
                        "first_entries": [{
                            "egress": False,
                            "protocol": "string",
                            "rule_action": "string",
                            "cidr_block": "string",
                            "icmp_type_codes": [{
                                "code": 0,
                                "type": 0,
                            }],
                            "ipv6_cidr_block": "string",
                            "port_ranges": [{
                                "from_": 0,
                                "to": 0,
                            }],
                        }],
                        "last_entries": [{
                            "egress": False,
                            "protocol": "string",
                            "rule_action": "string",
                            "cidr_block": "string",
                            "icmp_type_codes": [{
                                "code": 0,
                                "type": 0,
                            }],
                            "ipv6_cidr_block": "string",
                            "port_ranges": [{
                                "from_": 0,
                                "to": 0,
                            }],
                        }],
                    },
                },
                "network_firewall_policy": {
                    "firewall_deployment_model": "string",
                },
                "third_party_firewall_policy": {
                    "firewall_deployment_model": "string",
                },
            },
        },
        remediation_enabled=False,
        resource_set_ids=["string"],
        description="string",
        include_map={
            "accounts": ["string"],
            "orgunits": ["string"],
        },
        name="string",
        region="string",
        delete_all_policy_resources=False,
        exclude_map={
            "accounts": ["string"],
            "orgunits": ["string"],
        },
        resource_tag_logical_operator="string",
        resource_tags={
            "string": "string",
        },
        resource_type="string",
        resource_type_lists=["string"],
        delete_unused_fm_managed_resources=False,
        tags={
            "string": "string",
        })
    
    const examplepolicyResourceResourceFromFmspolicy = new aws.fms.Policy("examplepolicyResourceResourceFromFmspolicy", {
        excludeResourceTags: false,
        securityServicePolicyData: {
            type: "string",
            managedServiceData: "string",
            policyOption: {
                networkAclCommonPolicy: {
                    networkAclEntrySet: {
                        forceRemediateForFirstEntries: false,
                        forceRemediateForLastEntries: false,
                        firstEntries: [{
                            egress: false,
                            protocol: "string",
                            ruleAction: "string",
                            cidrBlock: "string",
                            icmpTypeCodes: [{
                                code: 0,
                                type: 0,
                            }],
                            ipv6CidrBlock: "string",
                            portRanges: [{
                                from: 0,
                                to: 0,
                            }],
                        }],
                        lastEntries: [{
                            egress: false,
                            protocol: "string",
                            ruleAction: "string",
                            cidrBlock: "string",
                            icmpTypeCodes: [{
                                code: 0,
                                type: 0,
                            }],
                            ipv6CidrBlock: "string",
                            portRanges: [{
                                from: 0,
                                to: 0,
                            }],
                        }],
                    },
                },
                networkFirewallPolicy: {
                    firewallDeploymentModel: "string",
                },
                thirdPartyFirewallPolicy: {
                    firewallDeploymentModel: "string",
                },
            },
        },
        remediationEnabled: false,
        resourceSetIds: ["string"],
        description: "string",
        includeMap: {
            accounts: ["string"],
            orgunits: ["string"],
        },
        name: "string",
        region: "string",
        deleteAllPolicyResources: false,
        excludeMap: {
            accounts: ["string"],
            orgunits: ["string"],
        },
        resourceTagLogicalOperator: "string",
        resourceTags: {
            string: "string",
        },
        resourceType: "string",
        resourceTypeLists: ["string"],
        deleteUnusedFmManagedResources: false,
        tags: {
            string: "string",
        },
    });
    
    type: aws:fms:Policy
    properties:
        deleteAllPolicyResources: false
        deleteUnusedFmManagedResources: false
        description: string
        excludeMap:
            accounts:
                - string
            orgunits:
                - string
        excludeResourceTags: false
        includeMap:
            accounts:
                - string
            orgunits:
                - string
        name: string
        region: string
        remediationEnabled: false
        resourceSetIds:
            - string
        resourceTagLogicalOperator: string
        resourceTags:
            string: string
        resourceType: string
        resourceTypeLists:
            - string
        securityServicePolicyData:
            managedServiceData: string
            policyOption:
                networkAclCommonPolicy:
                    networkAclEntrySet:
                        firstEntries:
                            - cidrBlock: string
                              egress: false
                              icmpTypeCodes:
                                - code: 0
                                  type: 0
                              ipv6CidrBlock: string
                              portRanges:
                                - from: 0
                                  to: 0
                              protocol: string
                              ruleAction: string
                        forceRemediateForFirstEntries: false
                        forceRemediateForLastEntries: false
                        lastEntries:
                            - cidrBlock: string
                              egress: false
                              icmpTypeCodes:
                                - code: 0
                                  type: 0
                              ipv6CidrBlock: string
                              portRanges:
                                - from: 0
                                  to: 0
                              protocol: string
                              ruleAction: string
                networkFirewallPolicy:
                    firewallDeploymentModel: string
                thirdPartyFirewallPolicy:
                    firewallDeploymentModel: string
            type: string
        tags:
            string: string
    

    Policy 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 Policy resource accepts the following input properties:

    ExcludeResourceTags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    SecurityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    DeleteAllPolicyResources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    DeleteUnusedFmManagedResources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    Description string
    Description of the AWS Network Firewall firewall policy.
    ExcludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    IncludeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    Name string
    Friendly name of the AWS Firewall Manager Policy.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemediationEnabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    ResourceSetIds List<string>
    Set of resource set IDs associated with the policy.
    ResourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    ResourceTags Dictionary<string, string>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    ResourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    ResourceTypeLists List<string>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    ExcludeResourceTags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    SecurityServicePolicyData PolicySecurityServicePolicyDataArgs
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    DeleteAllPolicyResources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    DeleteUnusedFmManagedResources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    Description string
    Description of the AWS Network Firewall firewall policy.
    ExcludeMap PolicyExcludeMapArgs
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    IncludeMap PolicyIncludeMapArgs
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    Name string
    Friendly name of the AWS Firewall Manager Policy.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemediationEnabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    ResourceSetIds []string
    Set of resource set IDs associated with the policy.
    ResourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    ResourceTags map[string]string
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    ResourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    ResourceTypeLists []string
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    Tags map[string]string
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    exclude_resource_tags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    security_service_policy_data object
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    delete_all_policy_resources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    delete_unused_fm_managed_resources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description string
    Description of the AWS Network Firewall firewall policy.
    exclude_map object
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    include_map object
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name string
    Friendly name of the AWS Firewall Manager Policy.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediation_enabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    resource_set_ids list(string)
    Set of resource set IDs associated with the policy.
    resource_tag_logical_operator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resource_tags map(string)
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resource_type string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resource_type_lists list(string)
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    tags map(string)
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    excludeResourceTags Boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    securityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    deleteAllPolicyResources Boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources Boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description String
    Description of the AWS Network Firewall firewall policy.
    excludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    includeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name String
    Friendly name of the AWS Firewall Manager Policy.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled Boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds List<String>
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator String
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags Map<String,String>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType String
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists List<String>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    tags Map<String,String>
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    excludeResourceTags boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    securityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    deleteAllPolicyResources boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description string
    Description of the AWS Network Firewall firewall policy.
    excludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    includeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name string
    Friendly name of the AWS Firewall Manager Policy.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds string[]
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags {[key: string]: string}
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists string[]
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    tags {[key: string]: string}
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    exclude_resource_tags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    security_service_policy_data PolicySecurityServicePolicyDataArgs
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    delete_all_policy_resources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    delete_unused_fm_managed_resources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description str
    Description of the AWS Network Firewall firewall policy.
    exclude_map PolicyExcludeMapArgs
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    include_map PolicyIncludeMapArgs
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name str
    Friendly name of the AWS Firewall Manager Policy.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediation_enabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    resource_set_ids Sequence[str]
    Set of resource set IDs associated with the policy.
    resource_tag_logical_operator str
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resource_tags Mapping[str, str]
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resource_type str
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resource_type_lists Sequence[str]
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    tags Mapping[str, str]
    Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    excludeResourceTags Boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    securityServicePolicyData Property Map
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    deleteAllPolicyResources Boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources Boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description String
    Description of the AWS Network Firewall firewall policy.
    excludeMap Property Map
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    includeMap Property Map
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name String
    Friendly name of the AWS Firewall Manager Policy.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled Boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds List<String>
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator String
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags Map<String>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType String
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists List<String>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    tags Map<String>
    Key-value mapping of resource tags. 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 Policy resource produces the following output properties:

    Arn string
    ARN of the policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyUpdateToken string
    Unique identifier for each update to the policy.
    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 policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyUpdateToken string
    Unique identifier for each update to the policy.
    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 policy.
    id string
    The provider-assigned unique ID for this managed resource.
    policy_update_token string
    Unique identifier for each update to the policy.
    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 policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyUpdateToken String
    Unique identifier for each update to the policy.
    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 policy.
    id string
    The provider-assigned unique ID for this managed resource.
    policyUpdateToken string
    Unique identifier for each update to the policy.
    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 policy.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_update_token str
    Unique identifier for each update to the policy.
    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 policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyUpdateToken String
    Unique identifier for each update to the policy.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing Policy Resource

    Get an existing Policy 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?: PolicyState, opts?: CustomResourceOptions): Policy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            delete_all_policy_resources: Optional[bool] = None,
            delete_unused_fm_managed_resources: Optional[bool] = None,
            description: Optional[str] = None,
            exclude_map: Optional[PolicyExcludeMapArgs] = None,
            exclude_resource_tags: Optional[bool] = None,
            include_map: Optional[PolicyIncludeMapArgs] = None,
            name: Optional[str] = None,
            policy_update_token: Optional[str] = None,
            region: Optional[str] = None,
            remediation_enabled: Optional[bool] = None,
            resource_set_ids: Optional[Sequence[str]] = None,
            resource_tag_logical_operator: Optional[str] = None,
            resource_tags: Optional[Mapping[str, str]] = None,
            resource_type: Optional[str] = None,
            resource_type_lists: Optional[Sequence[str]] = None,
            security_service_policy_data: Optional[PolicySecurityServicePolicyDataArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Policy
    func GetPolicy(ctx *Context, name string, id IDInput, state *PolicyState, opts ...ResourceOption) (*Policy, error)
    public static Policy Get(string name, Input<string> id, PolicyState? state, CustomResourceOptions? opts = null)
    public static Policy get(String name, Output<String> id, PolicyState state, CustomResourceOptions options)
    resources:  _:    type: aws:fms:Policy    get:      id: ${id}
    import {
      to = aws_fms_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 policy.
    DeleteAllPolicyResources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    DeleteUnusedFmManagedResources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    Description string
    Description of the AWS Network Firewall firewall policy.
    ExcludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    ExcludeResourceTags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    IncludeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    Name string
    Friendly name of the AWS Firewall Manager Policy.
    PolicyUpdateToken string
    Unique identifier for each update to the policy.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemediationEnabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    ResourceSetIds List<string>
    Set of resource set IDs associated with the policy.
    ResourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    ResourceTags Dictionary<string, string>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    ResourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    ResourceTypeLists List<string>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    SecurityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags. 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 policy.
    DeleteAllPolicyResources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    DeleteUnusedFmManagedResources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    Description string
    Description of the AWS Network Firewall firewall policy.
    ExcludeMap PolicyExcludeMapArgs
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    ExcludeResourceTags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    IncludeMap PolicyIncludeMapArgs
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    Name string
    Friendly name of the AWS Firewall Manager Policy.
    PolicyUpdateToken string
    Unique identifier for each update to the policy.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemediationEnabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    ResourceSetIds []string
    Set of resource set IDs associated with the policy.
    ResourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    ResourceTags map[string]string
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    ResourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    ResourceTypeLists []string
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    SecurityServicePolicyData PolicySecurityServicePolicyDataArgs
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    Tags map[string]string
    Key-value mapping of resource tags. 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 policy.
    delete_all_policy_resources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    delete_unused_fm_managed_resources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description string
    Description of the AWS Network Firewall firewall policy.
    exclude_map object
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    exclude_resource_tags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    include_map object
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name string
    Friendly name of the AWS Firewall Manager Policy.
    policy_update_token string
    Unique identifier for each update to the policy.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediation_enabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    resource_set_ids list(string)
    Set of resource set IDs associated with the policy.
    resource_tag_logical_operator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resource_tags map(string)
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resource_type string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resource_type_lists list(string)
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    security_service_policy_data object
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    tags map(string)
    Key-value mapping of resource tags. 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 policy.
    deleteAllPolicyResources Boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources Boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description String
    Description of the AWS Network Firewall firewall policy.
    excludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    excludeResourceTags Boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    includeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name String
    Friendly name of the AWS Firewall Manager Policy.
    policyUpdateToken String
    Unique identifier for each update to the policy.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled Boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds List<String>
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator String
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags Map<String,String>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType String
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists List<String>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    securityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    tags Map<String,String>
    Key-value mapping of resource tags. 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 policy.
    deleteAllPolicyResources boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description string
    Description of the AWS Network Firewall firewall policy.
    excludeMap PolicyExcludeMap
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    excludeResourceTags boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    includeMap PolicyIncludeMap
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name string
    Friendly name of the AWS Firewall Manager Policy.
    policyUpdateToken string
    Unique identifier for each update to the policy.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds string[]
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator string
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags {[key: string]: string}
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType string
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists string[]
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    securityServicePolicyData PolicySecurityServicePolicyData
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    tags {[key: string]: string}
    Key-value mapping of resource tags. 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 policy.
    delete_all_policy_resources bool
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    delete_unused_fm_managed_resources bool
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description str
    Description of the AWS Network Firewall firewall policy.
    exclude_map PolicyExcludeMapArgs
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    exclude_resource_tags bool
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    include_map PolicyIncludeMapArgs
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name str
    Friendly name of the AWS Firewall Manager Policy.
    policy_update_token str
    Unique identifier for each update to the policy.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediation_enabled bool
    Whether the policy is automatically applied to resources that already exist in the account.
    resource_set_ids Sequence[str]
    Set of resource set IDs associated with the policy.
    resource_tag_logical_operator str
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resource_tags Mapping[str, str]
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resource_type str
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resource_type_lists Sequence[str]
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    security_service_policy_data PolicySecurityServicePolicyDataArgs
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    tags Mapping[str, str]
    Key-value mapping of resource tags. 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 policy.
    deleteAllPolicyResources Boolean
    If true, the request will also perform a clean-up process. Defaults to true. More information can be found here AWS Firewall Manager delete policy
    deleteUnusedFmManagedResources Boolean
    If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to false. More information can be found here AWS Firewall Manager policy contents
    description String
    Description of the AWS Network Firewall firewall policy.
    excludeMap Property Map
    Map of lists of accounts and OUs to exclude from the policy. See the excludeMap block.
    excludeResourceTags Boolean
    Whether resources with the tags specified in resourceTags are excluded from protection. If true, tagged resources are not protected by this policy. If false and resourceTags are populated, resources that contain those tags are protected by this policy.
    includeMap Property Map
    Map of lists of accounts and OUs to include in the policy. See the includeMap block.
    name String
    Friendly name of the AWS Firewall Manager Policy.
    policyUpdateToken String
    Unique identifier for each update to the policy.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remediationEnabled Boolean
    Whether the policy is automatically applied to resources that already exist in the account.
    resourceSetIds List<String>
    Set of resource set IDs associated with the policy.
    resourceTagLogicalOperator String
    Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are AND and OR.
    resourceTags Map<String>
    Map of resource tags that, if present, filter protections on resources based on excludeResourceTags.
    resourceType String
    Resource type to protect. Conflicts with resourceTypeList. See the FMS API Reference for more information about supported values.
    resourceTypeLists List<String>
    List of resource types to protect. Conflicts with resourceType. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead use resourceType.
    securityServicePolicyData Property Map
    Objects to include in Security Service Policy Data. See the securityServicePolicyData block.
    tags Map<String>
    Key-value mapping of resource tags. 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

    PolicyExcludeMap, PolicyExcludeMapArgs

    Accounts List<string>
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    Orgunits List<string>
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    Accounts []string
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    Orgunits []string
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts list(string)
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    orgunits list(string)
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts List<String>
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    orgunits List<String>
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts string[]
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    orgunits string[]
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts Sequence[str]
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    orgunits Sequence[str]
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts List<String>
    List of AWS Organization member accounts to exclude from this AWS FMS Policy.
    orgunits List<String>
    List of IDs of the AWS Organizational Units to exclude from this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.

    PolicyIncludeMap, PolicyIncludeMapArgs

    Accounts List<string>
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    Orgunits List<string>
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    Accounts []string
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    Orgunits []string
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts list(string)
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    orgunits list(string)
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts List<String>
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    orgunits List<String>
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts string[]
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    orgunits string[]
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts Sequence[str]
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    orgunits Sequence[str]
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.
    accounts List<String>
    List of AWS Organization member accounts to include for this AWS FMS Policy.
    orgunits List<String>
    List of IDs of the AWS Organizational Units to include for this AWS FMS Policy. Specifying an OU is equivalent to specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.

    PolicySecurityServicePolicyData, PolicySecurityServicePolicyDataArgs

    Type string
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    ManagedServiceData string
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    PolicyOption PolicySecurityServicePolicyDataPolicyOption
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    Type string
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    ManagedServiceData string
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    PolicyOption PolicySecurityServicePolicyDataPolicyOption
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    type string
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    managed_service_data string
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    policy_option object
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    type String
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    managedServiceData String
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    policyOption PolicySecurityServicePolicyDataPolicyOption
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    type string
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    managedServiceData string
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    policyOption PolicySecurityServicePolicyDataPolicyOption
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    type str
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    managed_service_data str
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    policy_option PolicySecurityServicePolicyDataPolicyOption
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.
    type String
    Service that the policy uses to protect the resources. For the current list of supported types, refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
    managedServiceData String
    Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string. Examples depending on type can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
    policyOption Property Map
    Network Firewall firewall policy options to configure a centralized deployment model. See the policyOption block.

    PolicySecurityServicePolicyDataPolicyOption, PolicySecurityServicePolicyDataPolicyOptionArgs

    NetworkAclCommonPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    NetworkFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    ThirdPartyFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    NetworkAclCommonPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    NetworkFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    ThirdPartyFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    network_acl_common_policy object
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    network_firewall_policy object
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    third_party_firewall_policy object
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    networkAclCommonPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    networkFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    thirdPartyFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    networkAclCommonPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    networkFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    thirdPartyFirewallPolicy PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    network_acl_common_policy PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    network_firewall_policy PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    third_party_firewall_policy PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.
    networkAclCommonPolicy Property Map
    Network ACL rules applied across accounts in the AWS Organization. See the networkAclCommonPolicy block.
    networkFirewallPolicy Property Map
    Network Firewall policy options that configure a centralized deployment model. See the networkFirewallPolicy block.
    thirdPartyFirewallPolicy Property Map
    Third-party firewall policy options. See the thirdPartyFirewallPolicy block.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicy, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyArgs

    NetworkAclEntrySet PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    NetworkAclEntrySet PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    network_acl_entry_set object
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    networkAclEntrySet PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    networkAclEntrySet PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    network_acl_entry_set PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.
    networkAclEntrySet Property Map
    Network ACL entries for the Network ACL policy. See the networkAclEntrySet block.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySet, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetArgs

    ForceRemediateForFirstEntries bool
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    ForceRemediateForLastEntries bool
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    FirstEntries List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry>
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    LastEntries List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry>
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    ForceRemediateForFirstEntries bool
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    ForceRemediateForLastEntries bool
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    FirstEntries []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    LastEntries []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    force_remediate_for_first_entries bool
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    force_remediate_for_last_entries bool
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    first_entries list(object)
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    last_entries list(object)
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    forceRemediateForFirstEntries Boolean
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    forceRemediateForLastEntries Boolean
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    firstEntries List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry>
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    lastEntries List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry>
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    forceRemediateForFirstEntries boolean
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    forceRemediateForLastEntries boolean
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    firstEntries PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry[]
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    lastEntries PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry[]
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    force_remediate_for_first_entries bool
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    force_remediate_for_last_entries bool
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    first_entries Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry]
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    last_entries Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry]
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.
    forceRemediateForFirstEntries Boolean
    Whether Firewall Manager applies this setting to first-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    forceRemediateForLastEntries Boolean
    Whether Firewall Manager applies this setting to last-entry policy violations that involve conflicts between the custom entries and the policy entries. If false, Firewall Manager marks the network ACL as noncompliant and does not try to remediate.
    firstEntries List<Property Map>
    Rules to run first in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 1 and 5000. See the firstEntry block.
    lastEntries List<Property Map>
    Rules to run last in the Firewall Manager managed network ACLs. Firewall Manager creates entries with ID value between 32000 and 32766. See the lastEntry block.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntry, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryArgs

    Egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    Protocol string
    Protocol number. A value of -1 means all protocols.
    RuleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    CidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    IcmpTypeCodes List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    Ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    PortRanges List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange>
    Port range configuration for the rule. See the portRange block.
    Egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    Protocol string
    Protocol number. A value of -1 means all protocols.
    RuleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    CidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    IcmpTypeCodes []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    Ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    PortRanges []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange
    Port range configuration for the rule. See the portRange block.
    egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol string
    Protocol number. A value of -1 means all protocols.
    rule_action string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidr_block string
    IPv4 network range to allow or deny, in CIDR notation.
    icmp_type_codes list(object)
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6_cidr_block string
    IPv6 network range to allow or deny, in CIDR notation.
    port_ranges list(object)
    Port range configuration for the rule. See the portRange block.
    egress Boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol String
    Protocol number. A value of -1 means all protocols.
    ruleAction String
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock String
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock String
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange>
    Port range configuration for the rule. See the portRange block.
    egress boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol string
    Protocol number. A value of -1 means all protocols.
    ruleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode[]
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange[]
    Port range configuration for the rule. See the portRange block.
    egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol str
    Protocol number. A value of -1 means all protocols.
    rule_action str
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidr_block str
    IPv4 network range to allow or deny, in CIDR notation.
    icmp_type_codes Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode]
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6_cidr_block str
    IPv6 network range to allow or deny, in CIDR notation.
    port_ranges Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange]
    Port range configuration for the rule. See the portRange block.
    egress Boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol String
    Protocol number. A value of -1 means all protocols.
    ruleAction String
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock String
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes List<Property Map>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock String
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges List<Property Map>
    Port range configuration for the rule. See the portRange block.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCode, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryIcmpTypeCodeArgs

    Code int
    ICMP code.
    Type int
    ICMP type.
    Code int
    ICMP code.
    Type int
    ICMP type.
    code number
    ICMP code.
    type number
    ICMP type.
    code Integer
    ICMP code.
    type Integer
    ICMP type.
    code number
    ICMP code.
    type number
    ICMP type.
    code int
    ICMP code.
    type int
    ICMP type.
    code Number
    ICMP code.
    type Number
    ICMP type.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRange, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetFirstEntryPortRangeArgs

    From int
    Beginning port number of the range.
    To int
    Ending port number of the range.
    From int
    Beginning port number of the range.
    To int
    Ending port number of the range.
    from number
    Beginning port number of the range.
    to number
    Ending port number of the range.
    from Integer
    Beginning port number of the range.
    to Integer
    Ending port number of the range.
    from number
    Beginning port number of the range.
    to number
    Ending port number of the range.
    from_ int
    Beginning port number of the range.
    to int
    Ending port number of the range.
    from Number
    Beginning port number of the range.
    to Number
    Ending port number of the range.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntry, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryArgs

    Egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    Protocol string
    Protocol number. A value of -1 means all protocols.
    RuleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    CidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    IcmpTypeCodes List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    Ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    PortRanges List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange>
    Port range configuration for the rule. See the portRange block.
    Egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    Protocol string
    Protocol number. A value of -1 means all protocols.
    RuleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    CidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    IcmpTypeCodes []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    Ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    PortRanges []PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange
    Port range configuration for the rule. See the portRange block.
    egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol string
    Protocol number. A value of -1 means all protocols.
    rule_action string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidr_block string
    IPv4 network range to allow or deny, in CIDR notation.
    icmp_type_codes list(object)
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6_cidr_block string
    IPv6 network range to allow or deny, in CIDR notation.
    port_ranges list(object)
    Port range configuration for the rule. See the portRange block.
    egress Boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol String
    Protocol number. A value of -1 means all protocols.
    ruleAction String
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock String
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock String
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges List<PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange>
    Port range configuration for the rule. See the portRange block.
    egress boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol string
    Protocol number. A value of -1 means all protocols.
    ruleAction string
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock string
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode[]
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock string
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange[]
    Port range configuration for the rule. See the portRange block.
    egress bool
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol str
    Protocol number. A value of -1 means all protocols.
    rule_action str
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidr_block str
    IPv4 network range to allow or deny, in CIDR notation.
    icmp_type_codes Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode]
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6_cidr_block str
    IPv6 network range to allow or deny, in CIDR notation.
    port_ranges Sequence[PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange]
    Port range configuration for the rule. See the portRange block.
    egress Boolean
    Whether Firewall Manager creates an egress rule. If false, Firewall Manager creates an ingress rule.
    protocol String
    Protocol number. A value of -1 means all protocols.
    ruleAction String
    Whether to allow or deny the traffic that matches the rule. Valid values: allow, deny.
    cidrBlock String
    IPv4 network range to allow or deny, in CIDR notation.
    icmpTypeCodes List<Property Map>
    ICMP protocol configuration specifying the ICMP type and code. See the icmpTypeCode block.
    ipv6CidrBlock String
    IPv6 network range to allow or deny, in CIDR notation.
    portRanges List<Property Map>
    Port range configuration for the rule. See the portRange block.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCode, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryIcmpTypeCodeArgs

    Code int
    ICMP code.
    Type int
    ICMP type.
    Code int
    ICMP code.
    Type int
    ICMP type.
    code number
    ICMP code.
    type number
    ICMP type.
    code Integer
    ICMP code.
    type Integer
    ICMP type.
    code number
    ICMP code.
    type number
    ICMP type.
    code int
    ICMP code.
    type int
    ICMP type.
    code Number
    ICMP code.
    type Number
    ICMP type.

    PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRange, PolicySecurityServicePolicyDataPolicyOptionNetworkAclCommonPolicyNetworkAclEntrySetLastEntryPortRangeArgs

    From int
    Beginning port number of the range.
    To int
    Ending port number of the range.
    From int
    Beginning port number of the range.
    To int
    Ending port number of the range.
    from number
    Beginning port number of the range.
    to number
    Ending port number of the range.
    from Integer
    Beginning port number of the range.
    to Integer
    Ending port number of the range.
    from number
    Beginning port number of the range.
    to number
    Ending port number of the range.
    from_ int
    Beginning port number of the range.
    to int
    Ending port number of the range.
    from Number
    Beginning port number of the range.
    to Number
    Ending port number of the range.

    PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicy, PolicySecurityServicePolicyDataPolicyOptionNetworkFirewallPolicyArgs

    FirewallDeploymentModel string
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    FirewallDeploymentModel string
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    firewall_deployment_model string
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel String
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel string
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    firewall_deployment_model str
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel String
    Deployment model for the firewall policy. To use a distributed model, remove the policyOption section. Valid values are CENTRALIZED and DISTRIBUTED.

    PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicy, PolicySecurityServicePolicyDataPolicyOptionThirdPartyFirewallPolicyArgs

    FirewallDeploymentModel string
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    FirewallDeploymentModel string
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    firewall_deployment_model string
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel String
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel string
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    firewall_deployment_model str
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.
    firewallDeploymentModel String
    Deployment model for the third-party firewall policy. Valid values are CENTRALIZED and DISTRIBUTED.

    Import

    Using pulumi import, import Firewall Manager policies using the policy ID. For example:

    $ pulumi import aws:fms/policy:Policy example 5be49585-a7e3-4c49-dde1-a179fe4a619a
    

    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 aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial