com.pulumi.aws.networkfirewall.NetworkfirewallFunctions 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.inputs.GetFirewallArgs;
import com.pulumi.aws.networkfirewall.inputs.GetFirewallPlainArgs;
import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyPlainArgs;
import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyArgs;
import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyPlainArgs;
import com.pulumi.aws.networkfirewall.outputs.GetFirewallPolicyResult;
import com.pulumi.aws.networkfirewall.outputs.GetFirewallResult;
import com.pulumi.aws.networkfirewall.outputs.GetResourcePolicyResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;
public final class NetworkfirewallFunctions {
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getFirewall() {
return getFirewall(GetFirewallArgs.Empty, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getFirewallPlain() {
return getFirewallPlain(GetFirewallPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getFirewall(GetFirewallArgs args) {
return getFirewall(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getFirewallPlain(GetFirewallPlainArgs args) {
return getFirewallPlain(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getFirewall(GetFirewallArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:networkfirewall/getFirewall:getFirewall", TypeShape.of(GetFirewallResult.class), args, Utilities.withVersion(options));
}
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN and Name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewall(GetFirewallArgs.builder()
* .arn(arn)
* .name("Test")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getFirewallPlain(GetFirewallPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:networkfirewall/getFirewall:getFirewall", TypeShape.of(GetFirewallResult.class), args, Utilities.withVersion(options));
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static Output getFirewallPolicy() {
return getFirewallPolicy(GetFirewallPolicyArgs.Empty, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static CompletableFuture getFirewallPolicyPlain() {
return getFirewallPolicyPlain(GetFirewallPolicyPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static Output getFirewallPolicy(GetFirewallPolicyArgs args) {
return getFirewallPolicy(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static CompletableFuture getFirewallPolicyPlain(GetFirewallPolicyPlainArgs args) {
return getFirewallPolicyPlain(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static Output getFirewallPolicy(GetFirewallPolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:networkfirewall/getFirewallPolicy:getFirewallPolicy", TypeShape.of(GetFirewallPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Retrieve information about a firewall policy.
*
* ## Example Usage
*
* ### Find firewall policy by name
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Find firewall policy by name and ARN
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.networkfirewall.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetFirewallPolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getFirewallPolicy(GetFirewallPolicyArgs.builder()
* .arn(firewallPolicyArn)
* .name(firewallPolicyName)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical `name` values but distinct `arn` values, e.g. firewall policies shared via a [Resource Access Manager (RAM) share][1]. In that case specifying `arn`, or `name` and `arn`, is recommended.
*
* > **Note:** If there are multiple firewall policies in an account with the same `name`, and `arn` is not specified, the default behavior will return the firewall policy with `name` that was created in the account.
*
*/
public static CompletableFuture getFirewallPolicyPlain(GetFirewallPolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:networkfirewall/getFirewallPolicy:getFirewallPolicy", TypeShape.of(GetFirewallPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Retrieve information about a Network Firewall resource policy.
*
* ## 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.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
* .resourceArn(resourcePolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourcePolicy(GetResourcePolicyArgs args) {
return getResourcePolicy(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a Network Firewall resource policy.
*
* ## 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.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
* .resourceArn(resourcePolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourcePolicyPlain(GetResourcePolicyPlainArgs args) {
return getResourcePolicyPlain(args, InvokeOptions.Empty);
}
/**
* Retrieve information about a Network Firewall resource policy.
*
* ## 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.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
* .resourceArn(resourcePolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:networkfirewall/getResourcePolicy:getResourcePolicy", TypeShape.of(GetResourcePolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Retrieve information about a Network Firewall resource policy.
*
* ## 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.NetworkfirewallFunctions;
* import com.pulumi.aws.networkfirewall.inputs.GetResourcePolicyArgs;
* 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) {
* final var example = NetworkfirewallFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
* .resourceArn(resourcePolicyArn)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourcePolicyPlain(GetResourcePolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:networkfirewall/getResourcePolicy:getResourcePolicy", TypeShape.of(GetResourcePolicyResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy