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 6.01 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, Object.assign(Object.assign({}, 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 ? state.description : undefined; resourceInputs["destinationAddress"] = state ? state.destinationAddress : undefined; resourceInputs["destinationAddressVariable"] = state ? state.destinationAddressVariable : undefined; resourceInputs["destinationPort"] = state ? state.destinationPort : undefined; resourceInputs["destinationPortVariable"] = state ? state.destinationPortVariable : undefined; resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined; resourceInputs["enable"] = state ? state.enable : undefined; resourceInputs["enableVariable"] = state ? state.enableVariable : undefined; resourceInputs["gpsMode"] = state ? state.gpsMode : undefined; resourceInputs["gpsModeVariable"] = state ? state.gpsModeVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nmea"] = state ? state.nmea : undefined; resourceInputs["nmeaVariable"] = state ? state.nmeaVariable : undefined; resourceInputs["sourceAddress"] = state ? state.sourceAddress : undefined; resourceInputs["sourceAddressVariable"] = state ? state.sourceAddressVariable : undefined; resourceInputs["templateType"] = state ? state.templateType : undefined; resourceInputs["version"] = state ? state.version : undefined; } else { const args = argsOrState; if ((!args || args.description === undefined) && !opts.urn) { throw new Error("Missing required property 'description'"); } if ((!args || args.deviceTypes === undefined) && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["description"] = args ? args.description : undefined; resourceInputs["destinationAddress"] = args ? args.destinationAddress : undefined; resourceInputs["destinationAddressVariable"] = args ? args.destinationAddressVariable : undefined; resourceInputs["destinationPort"] = args ? args.destinationPort : undefined; resourceInputs["destinationPortVariable"] = args ? args.destinationPortVariable : undefined; resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined; resourceInputs["enable"] = args ? args.enable : undefined; resourceInputs["enableVariable"] = args ? args.enableVariable : undefined; resourceInputs["gpsMode"] = args ? args.gpsMode : undefined; resourceInputs["gpsModeVariable"] = args ? args.gpsModeVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nmea"] = args ? args.nmea : undefined; resourceInputs["nmeaVariable"] = args ? args.nmeaVariable : undefined; resourceInputs["sourceAddress"] = args ? args.sourceAddress : undefined; resourceInputs["sourceAddressVariable"] = args ? args.sourceAddressVariable : undefined; 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