All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.networkfirewall.Firewall Maven / Gradle / Ivy

Go to download

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 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 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 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 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 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> 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> tagsAll; /** * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * */ public Output> tagsAll() { return this.tagsAll; } /** * A string token used when updating a firewall. * */ @Export(name="updateToken", refs={String.class}, tree="[0]") private Output updateToken; /** * @return A string token used when updating a firewall. * */ public Output updateToken() { return this.updateToken; } /** * The unique identifier of the VPC where AWS Network Firewall should create the firewall. * */ @Export(name="vpcId", refs={String.class}, tree="[0]") private Output vpcId; /** * @return The unique identifier of the VPC where AWS Network Firewall should create the firewall. * */ public Output vpcId() { return this.vpcId; } /** * * @param name The _unique_ name of the resulting resource. */ public Firewall(java.lang.String name) { this(name, FirewallArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Firewall(java.lang.String name, FirewallArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Firewall(java.lang.String name, FirewallArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:networkfirewall/firewall:Firewall", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Firewall(java.lang.String name, Output id, @Nullable FirewallState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:networkfirewall/firewall:Firewall", name, state, makeResourceOptions(options, id), false); } private static FirewallArgs makeArgs(FirewallArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? FirewallArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state * @param options Optional settings to control the behavior of the CustomResource. */ public static Firewall get(java.lang.String name, Output id, @Nullable FirewallState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Firewall(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy