aws.fms.Policy
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.
Example Usage
using System.Collections.Generic;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleRuleGroup = new Aws.WafRegional.RuleGroup("exampleRuleGroup", new()
{
MetricName = "WAFRuleGroupExample",
});
var examplePolicy = new Aws.Fms.Policy("examplePolicy", new()
{
ExcludeResourceTags = false,
RemediationEnabled = false,
ResourceType = "AWS::ElasticLoadBalancingV2::LoadBalancer",
SecurityServicePolicyData = new Aws.Fms.Inputs.PolicySecurityServicePolicyDataArgs
{
Type = "WAF",
ManagedServiceData = exampleRuleGroup.Id.Apply(id => JsonSerializer.Serialize(new Dictionary<string, object?>
{
["type"] = "WAF",
["ruleGroups"] = new[]
{
new Dictionary<string, object?>
{
["id"] = id,
["overrideAction"] = new Dictionary<string, object?>
{
["type"] = "COUNT",
},
},
},
["defaultAction"] = new Dictionary<string, object?>
{
["type"] = "BLOCK",
},
["overrideCustomerWebACLAssociation"] = false,
})),
},
Tags =
{
{ "Name", "example-fms-policy" },
},
});
});
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/fms"
"github.com/pulumi/pulumi-aws/sdk/v5/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, "exampleRuleGroup", &wafregional.RuleGroupArgs{
MetricName: pulumi.String("WAFRuleGroupExample"),
})
if err != nil {
return err
}
_, err = fms.NewPolicy(ctx, "examplePolicy", &fms.PolicyArgs{
ExcludeResourceTags: pulumi.Bool(false),
RemediationEnabled: pulumi.Bool(false),
ResourceType: pulumi.String("AWS::ElasticLoadBalancingV2::LoadBalancer"),
SecurityServicePolicyData: &fms.PolicySecurityServicePolicyDataArgs{
Type: pulumi.String("WAF"),
ManagedServiceData: exampleRuleGroup.ID().ApplyT(func(id string) (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]interface{}{
"type": "COUNT",
},
},
},
"defaultAction": map[string]interface{}{
"type": "BLOCK",
},
"overrideCustomerWebACLAssociation": false,
})
if err != nil {
return _zero, err
}
json0 := string(tmpJSON0)
return pulumi.String(json0), nil
}).(pulumi.StringOutput),
},
Tags: pulumi.StringMap{
"Name": pulumi.String("example-fms-policy"),
},
})
if err != nil {
return err
}
return nil
})
}
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.List;
import java.util.ArrayList;
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")
.build());
var examplePolicy = new Policy("examplePolicy", PolicyArgs.builder()
.excludeResourceTags(false)
.remediationEnabled(false)
.resourceType("AWS::ElasticLoadBalancingV2::LoadBalancer")
.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())
.tags(Map.of("Name", "example-fms-policy"))
.build());
}
}
import pulumi
import json
import pulumi_aws as aws
example_rule_group = aws.wafregional.RuleGroup("exampleRuleGroup", metric_name="WAFRuleGroupExample")
example_policy = aws.fms.Policy("examplePolicy",
exclude_resource_tags=False,
remediation_enabled=False,
resource_type="AWS::ElasticLoadBalancingV2::LoadBalancer",
security_service_policy_data=aws.fms.PolicySecurityServicePolicyDataArgs(
type="WAF",
managed_service_data=example_rule_group.id.apply(lambda id: json.dumps({
"type": "WAF",
"ruleGroups": [{
"id": id,
"overrideAction": {
"type": "COUNT",
},
}],
"defaultAction": {
"type": "BLOCK",
},
"overrideCustomerWebACLAssociation": False,
})),
),
tags={
"Name": "example-fms-policy",
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleRuleGroup = new aws.wafregional.RuleGroup("exampleRuleGroup", {metricName: "WAFRuleGroupExample"});
const examplePolicy = new aws.fms.Policy("examplePolicy", {
excludeResourceTags: false,
remediationEnabled: false,
resourceType: "AWS::ElasticLoadBalancingV2::LoadBalancer",
securityServicePolicyData: {
type: "WAF",
managedServiceData: exampleRuleGroup.id.apply(id => JSON.stringify({
type: "WAF",
ruleGroups: [{
id: id,
overrideAction: {
type: "COUNT",
},
}],
defaultAction: {
type: "BLOCK",
},
overrideCustomerWebACLAssociation: false,
})),
},
tags: {
Name: "example-fms-policy",
},
});
resources:
examplePolicy:
type: aws:fms:Policy
properties:
excludeResourceTags: false
remediationEnabled: false
resourceType: AWS::ElasticLoadBalancingV2::LoadBalancer
securityServicePolicyData:
type: WAF
managedServiceData:
fn::toJSON:
type: WAF
ruleGroups:
- id: ${exampleRuleGroup.id}
overrideAction:
type: COUNT
defaultAction:
type: BLOCK
overrideCustomerWebACLAssociation: false
tags:
Name: example-fms-policy
exampleRuleGroup:
type: aws:wafregional:RuleGroup
properties:
metricName: WAFRuleGroupExample
Create Policy Resource
new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = 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,
remediation_enabled: Optional[bool] = 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)
@overload
def Policy(resource_name: str,
args: PolicyArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The Policy resource accepts the following input properties:
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- Security
Service Pulumi.Policy Data Aws. Fms. Inputs. Policy Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- Delete
All boolPolicy Resources 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 boolFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- Exclude
Map Pulumi.Aws. Fms. Inputs. Policy Exclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- Include
Map Pulumi.Aws. Fms. Inputs. Policy Include Map Args A map of lists of accounts and OU's to include in the policy.
- Name string
The friendly name of the AWS Firewall Manager Policy.
- Remediation
Enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Dictionary<string, string>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- Resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- Resource
Type List<string>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Dictionary<string, string>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- Security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- Delete
All boolPolicy Resources 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 boolFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- Exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- Include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- Name string
The friendly name of the AWS Firewall Manager Policy.
- Remediation
Enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- map[string]string
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- Resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- Resource
Type []stringLists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- map[string]string
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- Boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- delete
All BooleanPolicy Resources 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 BooleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name String
The friendly name of the AWS Firewall Manager Policy.
- remediation
Enabled Boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Map<String,String>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type String A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type List<String>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Map<String,String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- delete
All booleanPolicy Resources 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 booleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name string
The friendly name of the AWS Firewall Manager Policy.
- remediation
Enabled boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- {[key: string]: string}
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type string[]Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- {[key: string]: string}
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- security_
service_ Policypolicy_ data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- delete_
all_ boolpolicy_ resources 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_ boolfm_ managed_ resources 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
The description of the AWS Network Firewall firewall policy.
- exclude_
map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- include_
map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name str
The friendly name of the AWS Firewall Manager Policy.
- remediation_
enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Mapping[str, str]
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource_
type str A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource_
type_ Sequence[str]lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Mapping[str, str]
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- Boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- security
Service Property MapPolicy Data The objects to include in Security Service Policy Data. Documented below.
- delete
All BooleanPolicy Resources 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 BooleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map Property Map A map of lists of accounts and OU's to exclude from the policy.
- include
Map Property Map A map of lists of accounts and OU's to include in the policy.
- name String
The friendly name of the AWS Firewall Manager Policy.
- remediation
Enabled Boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Map<String>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type String A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type List<String>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Map<String>
Key-value mapping of resource tags. If configured with a provider
default_tags
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
- Id string
The provider-assigned unique ID for this managed resource.
- Policy
Update stringToken A unique identifier for each update to the policy.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Id string
The provider-assigned unique ID for this managed resource.
- Policy
Update stringToken A unique identifier for each update to the policy.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- id String
The provider-assigned unique ID for this managed resource.
- policy
Update StringToken A unique identifier for each update to the policy.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- id string
The provider-assigned unique ID for this managed resource.
- policy
Update stringToken A unique identifier for each update to the policy.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- id str
The provider-assigned unique ID for this managed resource.
- policy_
update_ strtoken A unique identifier for each update to the policy.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- id String
The provider-assigned unique ID for this managed resource.
- policy
Update StringToken A unique identifier for each update to the policy.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
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,
remediation_enabled: Optional[bool] = 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)
Resource lookup is not supported in YAML
- 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.
- Arn string
- Delete
All boolPolicy Resources 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 boolFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- Exclude
Map Pulumi.Aws. Fms. Inputs. Policy Exclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- Include
Map Pulumi.Aws. Fms. Inputs. Policy Include Map Args A map of lists of accounts and OU's to include in the policy.
- Name string
The friendly name of the AWS Firewall Manager Policy.
- Policy
Update stringToken A unique identifier for each update to the policy.
- Remediation
Enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Dictionary<string, string>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- Resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- Resource
Type List<string>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Security
Service Pulumi.Policy Data Aws. Fms. Inputs. Policy Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- Dictionary<string, string>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Delete
All boolPolicy Resources 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 boolFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- Exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- Include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- Name string
The friendly name of the AWS Firewall Manager Policy.
- Policy
Update stringToken A unique identifier for each update to the policy.
- Remediation
Enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- map[string]string
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- Resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- Resource
Type []stringLists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- Security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- map[string]string
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- delete
All BooleanPolicy Resources 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 BooleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- Boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name String
The friendly name of the AWS Firewall Manager Policy.
- policy
Update StringToken A unique identifier for each update to the policy.
- remediation
Enabled Boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Map<String,String>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type String A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type List<String>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- Map<String,String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- delete
All booleanPolicy Resources 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 booleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- include
Map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name string
The friendly name of the AWS Firewall Manager Policy.
- policy
Update stringToken A unique identifier for each update to the policy.
- remediation
Enabled boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- {[key: string]: string}
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type string A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type string[]Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- security
Service PolicyPolicy Data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- {[key: string]: string}
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- delete_
all_ boolpolicy_ resources 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_ boolfm_ managed_ resources 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
The description of the AWS Network Firewall firewall policy.
- exclude_
map PolicyExclude Map Args A map of lists of accounts and OU's to exclude from the policy.
- bool
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- include_
map PolicyInclude Map Args A map of lists of accounts and OU's to include in the policy.
- name str
The friendly name of the AWS Firewall Manager Policy.
- policy_
update_ strtoken A unique identifier for each update to the policy.
- remediation_
enabled bool A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Mapping[str, str]
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource_
type str A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource_
type_ Sequence[str]lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- security_
service_ Policypolicy_ data Security Service Policy Data Args The objects to include in Security Service Policy Data. Documented below.
- Mapping[str, str]
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- delete
All BooleanPolicy Resources 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 BooleanFm Managed Resources 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
The description of the AWS Network Firewall firewall policy.
- exclude
Map Property Map A map of lists of accounts and OU's to exclude from the policy.
- Boolean
A boolean value, if true the tags that are specified in the
resource_tags
are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.- include
Map Property Map A map of lists of accounts and OU's to include in the policy.
- name String
The friendly name of the AWS Firewall Manager Policy.
- policy
Update StringToken A unique identifier for each update to the policy.
- remediation
Enabled Boolean A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
- Map<String>
A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
- resource
Type String A resource type to protect. Conflicts with
resource_type_list
. See the FMS API Reference for more information about supported values.- resource
Type List<String>Lists A list of resource types to protect. Conflicts with
resource_type
. See the FMS API Reference for more information about supported values. Lists with only one element are not supported, instead useresource_type
.- security
Service Property MapPolicy Data The objects to include in Security Service Policy Data. Documented below.
- Map<String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
PolicyExcludeMap
- Accounts List<string>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- Orgunits List<string>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- Orgunits []string
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits List<String>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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[]
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits string[]
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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]
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits Sequence[str]
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits List<String>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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
- Accounts List<string>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- Orgunits List<string>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- Orgunits []string
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits List<String>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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[]
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits string[]
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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]
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits Sequence[str]
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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>
A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy.
- orgunits List<String>
A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of 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
- Type string
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- Managed
Service stringData 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
- Type string
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- Managed
Service stringData 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
- type String
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- managed
Service StringData 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
- type string
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- managed
Service stringData 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
- type str
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- managed_
service_ strdata 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
- type String
The service that the policy is using to protect the resources. For the current list of supported types, please refer to the AWS Firewall Manager SecurityServicePolicyData API Type Reference.
- managed
Service StringData 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 ontype
can be found in the AWS Firewall Manager SecurityServicePolicyData API Reference.
Import
Firewall Manager policies can be imported using the policy ID, e.g.,
$ pulumi import aws:fms/policy:Policy example 5be49585-a7e3-4c49-dde1-a179fe4a619a
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.