com.pulumi.aws.networkfirewall.Firewall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.networkfirewall;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.networkfirewall.FirewallArgs;
import com.pulumi.aws.networkfirewall.inputs.FirewallState;
import com.pulumi.aws.networkfirewall.outputs.FirewallEncryptionConfiguration;
import com.pulumi.aws.networkfirewall.outputs.FirewallFirewallStatus;
import com.pulumi.aws.networkfirewall.outputs.FirewallSubnetMapping;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides an AWS Network Firewall Firewall Resource
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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()
* .name("example")
* .firewallPolicyArn(exampleAwsNetworkfirewallFirewallPolicy.arn())
* .vpcId(exampleAwsVpc.id())
* .subnetMappings(FirewallSubnetMappingArgs.builder()
* .subnetId(exampleAwsSubnet.id())
* .build())
* .tags(Map.ofEntries(
* Map.entry("Tag1", "Value1"),
* Map.entry("Tag2", "Value2")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Network Firewall Firewalls using their `arn`. For example:
*
* ```sh
* $ pulumi import aws:networkfirewall/firewall:Firewall example arn:aws:network-firewall:us-west-1:123456789012:firewall/example
* ```
*
*/
@ResourceType(type="aws:networkfirewall/firewall:Firewall")
public class Firewall extends com.pulumi.resources.CustomResource {
/**
* The Amazon Resource Name (ARN) that identifies the firewall.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The Amazon Resource Name (ARN) that identifies the firewall.
*
*/
public Output arn() {
return this.arn;
}
/**
* A flag indicating whether the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. Defaults to `false`.
*
*/
@Export(name="deleteProtection", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> deleteProtection;
/**
* @return A flag indicating whether the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. Defaults to `false`.
*
*/
public Output> deleteProtection() {
return Codegen.optional(this.deleteProtection);
}
/**
* A friendly description of the firewall.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return A friendly description of the firewall.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* KMS encryption configuration settings. See Encryption Configuration below for details.
*
*/
@Export(name="encryptionConfiguration", refs={FirewallEncryptionConfiguration.class}, tree="[0]")
private Output* @Nullable */ FirewallEncryptionConfiguration> encryptionConfiguration;
/**
* @return KMS encryption configuration settings. See Encryption Configuration below for details.
*
*/
public Output> encryptionConfiguration() {
return Codegen.optional(this.encryptionConfiguration);
}
/**
* The Amazon Resource Name (ARN) of the VPC Firewall policy.
*
*/
@Export(name="firewallPolicyArn", refs={String.class}, tree="[0]")
private Output firewallPolicyArn;
/**
* @return The Amazon Resource Name (ARN) of the VPC Firewall policy.
*
*/
public Output firewallPolicyArn() {
return this.firewallPolicyArn;
}
/**
* A flag indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. Defaults to `false`.
*
*/
@Export(name="firewallPolicyChangeProtection", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> firewallPolicyChangeProtection;
/**
* @return A flag indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. Defaults to `false`.
*
*/
public Output> firewallPolicyChangeProtection() {
return Codegen.optional(this.firewallPolicyChangeProtection);
}
/**
* Nested list of information about the current status of the firewall.
*
*/
@Export(name="firewallStatuses", refs={List.class,FirewallFirewallStatus.class}, tree="[0,1]")
private Output> firewallStatuses;
/**
* @return Nested list of information about the current status of the firewall.
*
*/
public Output> firewallStatuses() {
return this.firewallStatuses;
}
/**
* A friendly name of the firewall.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return A friendly name of the firewall.
*
*/
public Output name() {
return this.name;
}
/**
* A flag indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. Defaults to `false`.
*
*/
@Export(name="subnetChangeProtection", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> subnetChangeProtection;
/**
* @return A flag indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. Defaults to `false`.
*
*/
public Output> subnetChangeProtection() {
return Codegen.optional(this.subnetChangeProtection);
}
/**
* 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.
*
*/
@Export(name="subnetMappings", refs={List.class,FirewallSubnetMapping.class}, tree="[0,1]")
private Output> subnetMappings;
/**
* @return 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.
*
*/
public Output> subnetMappings() {
return this.subnetMappings;
}
/**
* 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.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return 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.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy