Firewall

class Firewall : KotlinCustomResource

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

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) that identifies the firewall.

Link copied to clipboard

A boolean flag indicating whether it is possible to delete the firewall. Defaults to false.

Link copied to clipboard
val description: Output<String>?

A friendly description of the firewall.

Link copied to clipboard

KMS encryption configuration settings. See Encryption Configuration below for details.

Link copied to clipboard

The Amazon Resource Name (ARN) of the VPC Firewall policy.

Link copied to clipboard

A boolean flag indicating whether it is possible to change the associated firewall policy. Defaults to false.

Link copied to clipboard

Nested list of information about the current status of the firewall.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

A friendly name of the firewall.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A boolean flag indicating whether it is possible to change the associated subnet(s). Defaults to false.

Link copied to clipboard

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.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of resource tags to associate with the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val updateToken: Output<String>

A string token used when updating a firewall.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The unique identifier of the VPC where AWS Network Firewall should create the firewall.