Firewall
Provides an AWS Network Firewall Firewall Resource
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkfirewall.Firewall;
import com.pulumi.aws.networkfirewall.FirewallArgs;
import com.pulumi.aws.networkfirewall.inputs.FirewallSubnetMappingArgs;
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 example = new Firewall("example", FirewallArgs.builder()
.firewallPolicyArn(aws_networkfirewall_firewall_policy.example().arn())
.vpcId(aws_vpc.example().id())
.subnetMappings(FirewallSubnetMappingArgs.builder()
.subnetId(aws_subnet.example().id())
.build())
.tags(Map.ofEntries(
Map.entry("Tag1", "Value1"),
Map.entry("Tag2", "Value2")
))
.build());
}
}
Import
Network Firewall Firewalls can be imported using their ARN
.
$ pulumi import aws:networkfirewall/firewall:Firewall example arn:aws:network-firewall:us-west-1:123456789012:firewall/example
Properties
A boolean flag indicating whether it is possible to delete the firewall. Defaults to false
.
A friendly description of the firewall.
KMS encryption configuration settings. See Encryption Configuration below for details.
The Amazon Resource Name (ARN) of the VPC Firewall policy.
A boolean flag indicating whether it is possible to change the associated firewall policy. Defaults to false
.
Nested list of information about the current status of the firewall.
A boolean flag indicating whether it is possible to change the associated subnet(s). Defaults to false
.
Set of configuration blocks describing the public subnets. Each subnet must belong to a different Availability Zone in the VPC. AWS Network Firewall creates a firewall endpoint in each subnet. See Subnet Mapping below for details.
A string token used when updating a firewall.