UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

70 lines 2.82 kB
"use strict"; // *** 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.getFwPolicyV2Output = exports.getFwPolicyV2 = 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", * }); * ``` */ /** @deprecated openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2 */ function getFwPolicyV2(args, opts) { pulumi.log.warn("getFwPolicyV2 is deprecated: openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:index/getFwPolicyV2:getFwPolicyV2", { "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.getFwPolicyV2 = getFwPolicyV2; /** * 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", * }); * ``` */ /** @deprecated openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2 */ function getFwPolicyV2Output(args, opts) { pulumi.log.warn("getFwPolicyV2 is deprecated: openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:index/getFwPolicyV2:getFwPolicyV2", { "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.getFwPolicyV2Output = getFwPolicyV2Output; //# sourceMappingURL=getFwPolicyV2.js.map