UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

118 lines 5.37 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.GpsFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a gps feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.GpsFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * enable: true, * gpsMode: "ms-based", * nmea: true, * sourceAddress: "1.2.3.4", * destinationAddress: "2.3.4.5", * destinationPort: 1234, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/gpsFeatureTemplate:GpsFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class GpsFeatureTemplate extends pulumi.CustomResource { /** * Get an existing GpsFeatureTemplate 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 GpsFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of GpsFeatureTemplate. 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'] === GpsFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state?.description; resourceInputs["destinationAddress"] = state?.destinationAddress; resourceInputs["destinationAddressVariable"] = state?.destinationAddressVariable; resourceInputs["destinationPort"] = state?.destinationPort; resourceInputs["destinationPortVariable"] = state?.destinationPortVariable; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["enable"] = state?.enable; resourceInputs["enableVariable"] = state?.enableVariable; resourceInputs["gpsMode"] = state?.gpsMode; resourceInputs["gpsModeVariable"] = state?.gpsModeVariable; resourceInputs["name"] = state?.name; resourceInputs["nmea"] = state?.nmea; resourceInputs["nmeaVariable"] = state?.nmeaVariable; resourceInputs["sourceAddress"] = state?.sourceAddress; resourceInputs["sourceAddressVariable"] = state?.sourceAddressVariable; resourceInputs["templateType"] = state?.templateType; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } if (args?.deviceTypes === undefined && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["description"] = args?.description; resourceInputs["destinationAddress"] = args?.destinationAddress; resourceInputs["destinationAddressVariable"] = args?.destinationAddressVariable; resourceInputs["destinationPort"] = args?.destinationPort; resourceInputs["destinationPortVariable"] = args?.destinationPortVariable; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["enable"] = args?.enable; resourceInputs["enableVariable"] = args?.enableVariable; resourceInputs["gpsMode"] = args?.gpsMode; resourceInputs["gpsModeVariable"] = args?.gpsModeVariable; resourceInputs["name"] = args?.name; resourceInputs["nmea"] = args?.nmea; resourceInputs["nmeaVariable"] = args?.nmeaVariable; resourceInputs["sourceAddress"] = args?.sourceAddress; resourceInputs["sourceAddressVariable"] = args?.sourceAddressVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(GpsFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.GpsFeatureTemplate = GpsFeatureTemplate; /** @internal */ GpsFeatureTemplate.__pulumiType = 'sdwan:index/gpsFeatureTemplate:GpsFeatureTemplate'; //# sourceMappingURL=gpsFeatureTemplate.js.map