UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

89 lines 4.21 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.IpSecPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages a V2 Neutron IPSec policy resource within OpenStack. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const policy1 = new openstack.vpnaas.IpSecPolicy("policy_1", {name: "my_policy"}); * ``` * * ## Import * * Policies can be imported using the `id`, e.g. * * ```sh * $ pulumi import openstack:vpnaas/ipSecPolicy:IpSecPolicy policy_1 832cb7f3-59fe-40cf-8f64-8350ffc03272 * ``` */ class IpSecPolicy extends pulumi.CustomResource { /** * Get an existing IpSecPolicy 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new IpSecPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of IpSecPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === IpSecPolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authAlgorithm"] = state ? state.authAlgorithm : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["encapsulationMode"] = state ? state.encapsulationMode : undefined; resourceInputs["encryptionAlgorithm"] = state ? state.encryptionAlgorithm : undefined; resourceInputs["lifetimes"] = state ? state.lifetimes : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["pfs"] = state ? state.pfs : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["tenantId"] = state ? state.tenantId : undefined; resourceInputs["transformProtocol"] = state ? state.transformProtocol : undefined; resourceInputs["valueSpecs"] = state ? state.valueSpecs : undefined; } else { const args = argsOrState; resourceInputs["authAlgorithm"] = args ? args.authAlgorithm : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["encapsulationMode"] = args ? args.encapsulationMode : undefined; resourceInputs["encryptionAlgorithm"] = args ? args.encryptionAlgorithm : undefined; resourceInputs["lifetimes"] = args ? args.lifetimes : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["pfs"] = args ? args.pfs : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["tenantId"] = args ? args.tenantId : undefined; resourceInputs["transformProtocol"] = args ? args.transformProtocol : undefined; resourceInputs["valueSpecs"] = args ? args.valueSpecs : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(IpSecPolicy.__pulumiType, name, resourceInputs, opts); } } exports.IpSecPolicy = IpSecPolicy; /** @internal */ IpSecPolicy.__pulumiType = 'openstack:vpnaas/ipSecPolicy:IpSecPolicy'; //# sourceMappingURL=ipSecPolicy.js.map