UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

138 lines 5.41 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.IkeGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * IkeGateway resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // The scm_ike_crypto_profile resource is a prerequisite for the IKE gateway. * const scmIkeGwCryptoProfile1 = new scm.IkeCryptoProfile("scm_ike_gw_crypto_profile_1", { * folder: "Remote Networks", * name: "scm_ike_gw_crypto_profile_1", * hashes: ["sha256"], * dhGroups: ["group14"], * encryptions: ["aes-256-cbc"], * }); * // This is the main scm_ike_gateway resource. * const scmIkeGateway1 = new scm.IkeGateway("scm_ike_gateway_1", { * folder: "Remote Networks", * name: "scm_ike_gateway_1", * authentication: { * preSharedKey: { * key: "123456", * }, * }, * peerAddress: { * ip: "2.2.2.4", * }, * peerId: { * type: "ipaddr", * id: "10.3.3.4", * }, * localId: { * type: "ipaddr", * id: "10.3.4.4", * }, * protocol: { * ikev1: { * ikeCryptoProfile: scmIkeGwCryptoProfile1.name, * dpd: { * enable: true, * }, * }, * ikev2: { * ikeCryptoProfile: scmIkeGwCryptoProfile1.name, * dpd: { * enable: true, * }, * }, * }, * }); * ``` */ class IkeGateway extends pulumi.CustomResource { /** * Get an existing IkeGateway 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 IkeGateway(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of IkeGateway. 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'] === IkeGateway.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authentication"] = state?.authentication; resourceInputs["device"] = state?.device; resourceInputs["encryptedValues"] = state?.encryptedValues; resourceInputs["folder"] = state?.folder; resourceInputs["localAddress"] = state?.localAddress; resourceInputs["localId"] = state?.localId; resourceInputs["name"] = state?.name; resourceInputs["peerAddress"] = state?.peerAddress; resourceInputs["peerId"] = state?.peerId; resourceInputs["protocol"] = state?.protocol; resourceInputs["protocolCommon"] = state?.protocolCommon; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; } else { const args = argsOrState; if (args?.authentication === undefined && !opts.urn) { throw new Error("Missing required property 'authentication'"); } if (args?.peerAddress === undefined && !opts.urn) { throw new Error("Missing required property 'peerAddress'"); } if (args?.protocol === undefined && !opts.urn) { throw new Error("Missing required property 'protocol'"); } resourceInputs["authentication"] = args?.authentication; resourceInputs["device"] = args?.device; resourceInputs["folder"] = args?.folder; resourceInputs["localAddress"] = args?.localAddress; resourceInputs["localId"] = args?.localId; resourceInputs["name"] = args?.name; resourceInputs["peerAddress"] = args?.peerAddress; resourceInputs["peerId"] = args?.peerId; resourceInputs["protocol"] = args?.protocol; resourceInputs["protocolCommon"] = args?.protocolCommon; resourceInputs["snippet"] = args?.snippet; resourceInputs["encryptedValues"] = undefined /*out*/; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["encryptedValues"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(IkeGateway.__pulumiType, name, resourceInputs, opts); } } exports.IkeGateway = IkeGateway; /** @internal */ IkeGateway.__pulumiType = 'scm:index/ikeGateway:IkeGateway'; //# sourceMappingURL=ikeGateway.js.map