@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
143 lines • 7.5 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.CellularProfileFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cellular 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.CellularProfileFeatureTemplate("example", {
* name: "Example",
* description: "My Example",
* deviceTypes: ["vedge-C8000V"],
* ifName: "Ethernet1",
* profileId: 1,
* accessPointName: "APN1",
* authenticationType: "CHAP",
* ipAddress: "1.2.3.4",
* profileName: "PROFILE1",
* packetDataNetworkType: "ipv4",
* profileUsername: "MyUsername",
* profilePassword: "MyPassword",
* primaryDnsAddress: "1.2.3.4",
* secondaryDnsAddress: "1.2.3.5",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import sdwan:index/cellularProfileFeatureTemplate:CellularProfileFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CellularProfileFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CellularProfileFeatureTemplate 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 CellularProfileFeatureTemplate(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of CellularProfileFeatureTemplate. 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'] === CellularProfileFeatureTemplate.__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["ifName"] = state?.ifName;
resourceInputs["ifNameVariable"] = state?.ifNameVariable;
resourceInputs["ipAddress"] = state?.ipAddress;
resourceInputs["ipAddressVariable"] = state?.ipAddressVariable;
resourceInputs["name"] = state?.name;
resourceInputs["packetDataNetworkType"] = state?.packetDataNetworkType;
resourceInputs["packetDataNetworkTypeVariable"] = state?.packetDataNetworkTypeVariable;
resourceInputs["primaryDnsAddress"] = state?.primaryDnsAddress;
resourceInputs["primaryDnsAddressVariable"] = state?.primaryDnsAddressVariable;
resourceInputs["profileId"] = state?.profileId;
resourceInputs["profileIdVariable"] = state?.profileIdVariable;
resourceInputs["profileName"] = state?.profileName;
resourceInputs["profileNameVariable"] = state?.profileNameVariable;
resourceInputs["profilePassword"] = state?.profilePassword;
resourceInputs["profilePasswordVariable"] = state?.profilePasswordVariable;
resourceInputs["profileUsername"] = state?.profileUsername;
resourceInputs["profileUsernameVariable"] = state?.profileUsernameVariable;
resourceInputs["secondaryDnsAddress"] = state?.secondaryDnsAddress;
resourceInputs["secondaryDnsAddressVariable"] = state?.secondaryDnsAddressVariable;
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["ifName"] = args?.ifName;
resourceInputs["ifNameVariable"] = args?.ifNameVariable;
resourceInputs["ipAddress"] = args?.ipAddress;
resourceInputs["ipAddressVariable"] = args?.ipAddressVariable;
resourceInputs["name"] = args?.name;
resourceInputs["packetDataNetworkType"] = args?.packetDataNetworkType;
resourceInputs["packetDataNetworkTypeVariable"] = args?.packetDataNetworkTypeVariable;
resourceInputs["primaryDnsAddress"] = args?.primaryDnsAddress;
resourceInputs["primaryDnsAddressVariable"] = args?.primaryDnsAddressVariable;
resourceInputs["profileId"] = args?.profileId;
resourceInputs["profileIdVariable"] = args?.profileIdVariable;
resourceInputs["profileName"] = args?.profileName;
resourceInputs["profileNameVariable"] = args?.profileNameVariable;
resourceInputs["profilePassword"] = args?.profilePassword;
resourceInputs["profilePasswordVariable"] = args?.profilePasswordVariable;
resourceInputs["profileUsername"] = args?.profileUsername;
resourceInputs["profileUsernameVariable"] = args?.profileUsernameVariable;
resourceInputs["secondaryDnsAddress"] = args?.secondaryDnsAddress;
resourceInputs["secondaryDnsAddressVariable"] = args?.secondaryDnsAddressVariable;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CellularProfileFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CellularProfileFeatureTemplate = CellularProfileFeatureTemplate;
/** @internal */
CellularProfileFeatureTemplate.__pulumiType = 'sdwan:index/cellularProfileFeatureTemplate:CellularProfileFeatureTemplate';
//# sourceMappingURL=cellularProfileFeatureTemplate.js.map