UNPKG

@pulumi/sdwan

Version:

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

123 lines 6.25 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.CellularCedgeProfileFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cellular cEdge Profile 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.CellularCedgeProfileFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * profileId: 1, * accessPointName: "APN1", * authenticationType: "chap", * packetDataNetworkType: "ipv4", * profileUsername: "MyUsername", * profilePassword: "MyPassword", * noOverwrite: false, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/cellularCedgeProfileFeatureTemplate:CellularCedgeProfileFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CellularCedgeProfileFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CellularCedgeProfileFeatureTemplate 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 CellularCedgeProfileFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CellularCedgeProfileFeatureTemplate. 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'] === CellularCedgeProfileFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessPointName"] = state?.accessPointName; resourceInputs["accessPointNameVariable"] = state?.accessPointNameVariable; resourceInputs["authenticationType"] = state?.authenticationType; resourceInputs["authenticationTypeVariable"] = state?.authenticationTypeVariable; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["name"] = state?.name; resourceInputs["noOverwrite"] = state?.noOverwrite; resourceInputs["noOverwriteVariable"] = state?.noOverwriteVariable; resourceInputs["packetDataNetworkType"] = state?.packetDataNetworkType; resourceInputs["packetDataNetworkTypeVariable"] = state?.packetDataNetworkTypeVariable; resourceInputs["profileId"] = state?.profileId; resourceInputs["profileIdVariable"] = state?.profileIdVariable; resourceInputs["profilePassword"] = state?.profilePassword; resourceInputs["profilePasswordVariable"] = state?.profilePasswordVariable; resourceInputs["profileUsername"] = state?.profileUsername; resourceInputs["profileUsernameVariable"] = state?.profileUsernameVariable; 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["accessPointName"] = args?.accessPointName; resourceInputs["accessPointNameVariable"] = args?.accessPointNameVariable; resourceInputs["authenticationType"] = args?.authenticationType; resourceInputs["authenticationTypeVariable"] = args?.authenticationTypeVariable; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["name"] = args?.name; resourceInputs["noOverwrite"] = args?.noOverwrite; resourceInputs["noOverwriteVariable"] = args?.noOverwriteVariable; resourceInputs["packetDataNetworkType"] = args?.packetDataNetworkType; resourceInputs["packetDataNetworkTypeVariable"] = args?.packetDataNetworkTypeVariable; resourceInputs["profileId"] = args?.profileId; resourceInputs["profileIdVariable"] = args?.profileIdVariable; resourceInputs["profilePassword"] = args?.profilePassword; resourceInputs["profilePasswordVariable"] = args?.profilePasswordVariable; resourceInputs["profileUsername"] = args?.profileUsername; resourceInputs["profileUsernameVariable"] = args?.profileUsernameVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CellularCedgeProfileFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CellularCedgeProfileFeatureTemplate = CellularCedgeProfileFeatureTemplate; /** @internal */ CellularCedgeProfileFeatureTemplate.__pulumiType = 'sdwan:index/cellularCedgeProfileFeatureTemplate:CellularCedgeProfileFeatureTemplate'; //# sourceMappingURL=cellularCedgeProfileFeatureTemplate.js.map