@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.97 kB
JavaScript
;
// *** 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, Object.assign(Object.assign({}, 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 ? state.accessPointName : undefined;
resourceInputs["accessPointNameVariable"] = state ? state.accessPointNameVariable : undefined;
resourceInputs["authenticationType"] = state ? state.authenticationType : undefined;
resourceInputs["authenticationTypeVariable"] = state ? state.authenticationTypeVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["noOverwrite"] = state ? state.noOverwrite : undefined;
resourceInputs["noOverwriteVariable"] = state ? state.noOverwriteVariable : undefined;
resourceInputs["packetDataNetworkType"] = state ? state.packetDataNetworkType : undefined;
resourceInputs["packetDataNetworkTypeVariable"] = state ? state.packetDataNetworkTypeVariable : undefined;
resourceInputs["profileId"] = state ? state.profileId : undefined;
resourceInputs["profileIdVariable"] = state ? state.profileIdVariable : undefined;
resourceInputs["profilePassword"] = state ? state.profilePassword : undefined;
resourceInputs["profilePasswordVariable"] = state ? state.profilePasswordVariable : undefined;
resourceInputs["profileUsername"] = state ? state.profileUsername : undefined;
resourceInputs["profileUsernameVariable"] = state ? state.profileUsernameVariable : 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["accessPointName"] = args ? args.accessPointName : undefined;
resourceInputs["accessPointNameVariable"] = args ? args.accessPointNameVariable : undefined;
resourceInputs["authenticationType"] = args ? args.authenticationType : undefined;
resourceInputs["authenticationTypeVariable"] = args ? args.authenticationTypeVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["noOverwrite"] = args ? args.noOverwrite : undefined;
resourceInputs["noOverwriteVariable"] = args ? args.noOverwriteVariable : undefined;
resourceInputs["packetDataNetworkType"] = args ? args.packetDataNetworkType : undefined;
resourceInputs["packetDataNetworkTypeVariable"] = args ? args.packetDataNetworkTypeVariable : undefined;
resourceInputs["profileId"] = args ? args.profileId : undefined;
resourceInputs["profileIdVariable"] = args ? args.profileIdVariable : undefined;
resourceInputs["profilePassword"] = args ? args.profilePassword : undefined;
resourceInputs["profilePasswordVariable"] = args ? args.profilePasswordVariable : undefined;
resourceInputs["profileUsername"] = args ? args.profileUsername : undefined;
resourceInputs["profileUsernameVariable"] = args ? args.profileUsernameVariable : undefined;
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