UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

117 lines 7.17 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.Gatewaytemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the Gateway Templates. * * A Gateway template is used to define the static ip address and subnet mask of the hub device, along with the gateway. It also allows for the selection of options such as enabling source nat and overriding the public ip for the hub if needed. the endpoint selected in the gateway template ties the hub and spoke devices together and creates the auto-vpn tunnel. * * ## Import * * Using `pulumi import`, import `mist_org_gatewaytemplate` with: * * Gateway Template can be imported by specifying the org_id and the gatewaytemplate_id * * ```sh * $ pulumi import junipermist:org/gatewaytemplate:Gatewaytemplate gatewaytemplate_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Gatewaytemplate extends pulumi.CustomResource { /** * Get an existing Gatewaytemplate 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 Gatewaytemplate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Gatewaytemplate. 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'] === Gatewaytemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["additionalConfigCmds"] = state ? state.additionalConfigCmds : undefined; resourceInputs["bgpConfig"] = state ? state.bgpConfig : undefined; resourceInputs["dhcpdConfig"] = state ? state.dhcpdConfig : undefined; resourceInputs["dnsOverride"] = state ? state.dnsOverride : undefined; resourceInputs["dnsServers"] = state ? state.dnsServers : undefined; resourceInputs["dnsSuffixes"] = state ? state.dnsSuffixes : undefined; resourceInputs["extraRoutes"] = state ? state.extraRoutes : undefined; resourceInputs["extraRoutes6"] = state ? state.extraRoutes6 : undefined; resourceInputs["idpProfiles"] = state ? state.idpProfiles : undefined; resourceInputs["ipConfigs"] = state ? state.ipConfigs : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networks"] = state ? state.networks : undefined; resourceInputs["ntpOverride"] = state ? state.ntpOverride : undefined; resourceInputs["ntpServers"] = state ? state.ntpServers : undefined; resourceInputs["oobIpConfig"] = state ? state.oobIpConfig : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["pathPreferences"] = state ? state.pathPreferences : undefined; resourceInputs["portConfig"] = state ? state.portConfig : undefined; resourceInputs["routerId"] = state ? state.routerId : undefined; resourceInputs["routingPolicies"] = state ? state.routingPolicies : undefined; resourceInputs["servicePolicies"] = state ? state.servicePolicies : undefined; resourceInputs["tunnelConfigs"] = state ? state.tunnelConfigs : undefined; resourceInputs["tunnelProviderOptions"] = state ? state.tunnelProviderOptions : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["vrfConfig"] = state ? state.vrfConfig : undefined; resourceInputs["vrfInstances"] = state ? state.vrfInstances : undefined; } else { const args = argsOrState; if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["additionalConfigCmds"] = args ? args.additionalConfigCmds : undefined; resourceInputs["bgpConfig"] = args ? args.bgpConfig : undefined; resourceInputs["dhcpdConfig"] = args ? args.dhcpdConfig : undefined; resourceInputs["dnsOverride"] = args ? args.dnsOverride : undefined; resourceInputs["dnsServers"] = args ? args.dnsServers : undefined; resourceInputs["dnsSuffixes"] = args ? args.dnsSuffixes : undefined; resourceInputs["extraRoutes"] = args ? args.extraRoutes : undefined; resourceInputs["extraRoutes6"] = args ? args.extraRoutes6 : undefined; resourceInputs["idpProfiles"] = args ? args.idpProfiles : undefined; resourceInputs["ipConfigs"] = args ? args.ipConfigs : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networks"] = args ? args.networks : undefined; resourceInputs["ntpOverride"] = args ? args.ntpOverride : undefined; resourceInputs["ntpServers"] = args ? args.ntpServers : undefined; resourceInputs["oobIpConfig"] = args ? args.oobIpConfig : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["pathPreferences"] = args ? args.pathPreferences : undefined; resourceInputs["portConfig"] = args ? args.portConfig : undefined; resourceInputs["routerId"] = args ? args.routerId : undefined; resourceInputs["routingPolicies"] = args ? args.routingPolicies : undefined; resourceInputs["servicePolicies"] = args ? args.servicePolicies : undefined; resourceInputs["tunnelConfigs"] = args ? args.tunnelConfigs : undefined; resourceInputs["tunnelProviderOptions"] = args ? args.tunnelProviderOptions : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["vrfConfig"] = args ? args.vrfConfig : undefined; resourceInputs["vrfInstances"] = args ? args.vrfInstances : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Gatewaytemplate.__pulumiType, name, resourceInputs, opts); } } exports.Gatewaytemplate = Gatewaytemplate; /** @internal */ Gatewaytemplate.__pulumiType = 'junipermist:org/gatewaytemplate:Gatewaytemplate'; //# sourceMappingURL=gatewaytemplate.js.map