@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
108 lines • 2.78 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFirewallOutput = exports.getFirewall = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* arn: arn,
* });
* ```
*
* ### Find firewall policy by Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* name: "Test",
* });
* ```
*
* ### Find firewall policy by ARN and Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* arn: arn,
* name: "Test",
* });
* ```
*/
function getFirewall(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:networkfirewall/getFirewall:getFirewall", {
"arn": args.arn,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getFirewall = getFirewall;
/**
* Retrieve information about a firewall.
*
* ## Example Usage
*
* ### Find firewall policy by ARN
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* arn: arn,
* });
* ```
*
* ### Find firewall policy by Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* name: "Test",
* });
* ```
*
* ### Find firewall policy by ARN and Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.networkfirewall.getFirewall({
* arn: arn,
* name: "Test",
* });
* ```
*/
function getFirewallOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:networkfirewall/getFirewall:getFirewall", {
"arn": args.arn,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getFirewallOutput = getFirewallOutput;
//# sourceMappingURL=getFirewall.js.map