@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
66 lines • 2.18 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.getPolicyV2Output = exports.getPolicyV2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information of an available OpenStack firewall policy v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const policy = openstack.firewall.getPolicyV2({
* name: "tf_test_policy",
* });
* ```
*/
function getPolicyV2(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:firewall/getPolicyV2:getPolicyV2", {
"audited": args.audited,
"description": args.description,
"name": args.name,
"policyId": args.policyId,
"projectId": args.projectId,
"region": args.region,
"shared": args.shared,
"tenantId": args.tenantId,
}, opts);
}
exports.getPolicyV2 = getPolicyV2;
/**
* Use this data source to get information of an available OpenStack firewall policy v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const policy = openstack.firewall.getPolicyV2({
* name: "tf_test_policy",
* });
* ```
*/
function getPolicyV2Output(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:firewall/getPolicyV2:getPolicyV2", {
"audited": args.audited,
"description": args.description,
"name": args.name,
"policyId": args.policyId,
"projectId": args.projectId,
"region": args.region,
"shared": args.shared,
"tenantId": args.tenantId,
}, opts);
}
exports.getPolicyV2Output = getPolicyV2Output;
//# sourceMappingURL=getPolicyV2.js.map