@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
213 lines • 16.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.CiscoSystemFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco System feature template.
* - Minimum SD-WAN Manager version: `15.0.0`
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import sdwan:index/ciscoSystemFeatureTemplate:CiscoSystemFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoSystemFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoSystemFeatureTemplate 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 CiscoSystemFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CiscoSystemFeatureTemplate. 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'] === CiscoSystemFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["adminTechOnFailure"] = state ? state.adminTechOnFailure : undefined;
resourceInputs["adminTechOnFailureVariable"] = state ? state.adminTechOnFailureVariable : undefined;
resourceInputs["affinityGroupNumber"] = state ? state.affinityGroupNumber : undefined;
resourceInputs["affinityGroupNumberVariable"] = state ? state.affinityGroupNumberVariable : undefined;
resourceInputs["affinityGroupPreferenceVariable"] = state ? state.affinityGroupPreferenceVariable : undefined;
resourceInputs["affinityGroupPreferences"] = state ? state.affinityGroupPreferences : undefined;
resourceInputs["consoleBaudRate"] = state ? state.consoleBaudRate : undefined;
resourceInputs["consoleBaudRateVariable"] = state ? state.consoleBaudRateVariable : undefined;
resourceInputs["controlSessionPps"] = state ? state.controlSessionPps : undefined;
resourceInputs["controlSessionPpsVariable"] = state ? state.controlSessionPpsVariable : undefined;
resourceInputs["controllerGroupListVariable"] = state ? state.controllerGroupListVariable : undefined;
resourceInputs["controllerGroupLists"] = state ? state.controllerGroupLists : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceGroups"] = state ? state.deviceGroups : undefined;
resourceInputs["deviceGroupsVariable"] = state ? state.deviceGroupsVariable : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["enableMrfMigration"] = state ? state.enableMrfMigration : undefined;
resourceInputs["geoFencing"] = state ? state.geoFencing : undefined;
resourceInputs["geoFencingRange"] = state ? state.geoFencingRange : undefined;
resourceInputs["geoFencingRangeVariable"] = state ? state.geoFencingRangeVariable : undefined;
resourceInputs["geoFencingSms"] = state ? state.geoFencingSms : undefined;
resourceInputs["geoFencingSmsPhoneNumbers"] = state ? state.geoFencingSmsPhoneNumbers : undefined;
resourceInputs["hostname"] = state ? state.hostname : undefined;
resourceInputs["hostnameVariable"] = state ? state.hostnameVariable : undefined;
resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined;
resourceInputs["idleTimeoutVariable"] = state ? state.idleTimeoutVariable : undefined;
resourceInputs["latitude"] = state ? state.latitude : undefined;
resourceInputs["latitudeVariable"] = state ? state.latitudeVariable : undefined;
resourceInputs["location"] = state ? state.location : undefined;
resourceInputs["locationVariable"] = state ? state.locationVariable : undefined;
resourceInputs["longitude"] = state ? state.longitude : undefined;
resourceInputs["longitudeVariable"] = state ? state.longitudeVariable : undefined;
resourceInputs["maxOmpSessions"] = state ? state.maxOmpSessions : undefined;
resourceInputs["maxOmpSessionsVariable"] = state ? state.maxOmpSessionsVariable : undefined;
resourceInputs["migrationBgpCommunity"] = state ? state.migrationBgpCommunity : undefined;
resourceInputs["multiTenant"] = state ? state.multiTenant : undefined;
resourceInputs["multiTenantVariable"] = state ? state.multiTenantVariable : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["objectTrackers"] = state ? state.objectTrackers : undefined;
resourceInputs["onDemandTunnel"] = state ? state.onDemandTunnel : undefined;
resourceInputs["onDemandTunnelIdleTimeout"] = state ? state.onDemandTunnelIdleTimeout : undefined;
resourceInputs["onDemandTunnelIdleTimeoutVariable"] = state ? state.onDemandTunnelIdleTimeoutVariable : undefined;
resourceInputs["onDemandTunnelVariable"] = state ? state.onDemandTunnelVariable : undefined;
resourceInputs["overlayId"] = state ? state.overlayId : undefined;
resourceInputs["overlayIdVariable"] = state ? state.overlayIdVariable : undefined;
resourceInputs["portHopping"] = state ? state.portHopping : undefined;
resourceInputs["portHoppingVariable"] = state ? state.portHoppingVariable : undefined;
resourceInputs["portOffset"] = state ? state.portOffset : undefined;
resourceInputs["portOffsetVariable"] = state ? state.portOffsetVariable : undefined;
resourceInputs["regionId"] = state ? state.regionId : undefined;
resourceInputs["regionIdVariable"] = state ? state.regionIdVariable : undefined;
resourceInputs["role"] = state ? state.role : undefined;
resourceInputs["roleVariable"] = state ? state.roleVariable : undefined;
resourceInputs["secondaryRegionId"] = state ? state.secondaryRegionId : undefined;
resourceInputs["secondaryRegionIdVariable"] = state ? state.secondaryRegionIdVariable : undefined;
resourceInputs["siteId"] = state ? state.siteId : undefined;
resourceInputs["siteIdVariable"] = state ? state.siteIdVariable : undefined;
resourceInputs["systemDescription"] = state ? state.systemDescription : undefined;
resourceInputs["systemDescriptionVariable"] = state ? state.systemDescriptionVariable : undefined;
resourceInputs["systemIp"] = state ? state.systemIp : undefined;
resourceInputs["systemIpVariable"] = state ? state.systemIpVariable : undefined;
resourceInputs["templateType"] = state ? state.templateType : undefined;
resourceInputs["timezone"] = state ? state.timezone : undefined;
resourceInputs["timezoneVariable"] = state ? state.timezoneVariable : undefined;
resourceInputs["trackDefaultGateway"] = state ? state.trackDefaultGateway : undefined;
resourceInputs["trackDefaultGatewayVariable"] = state ? state.trackDefaultGatewayVariable : undefined;
resourceInputs["trackInterfaceTag"] = state ? state.trackInterfaceTag : undefined;
resourceInputs["trackInterfaceTagVariable"] = state ? state.trackInterfaceTagVariable : undefined;
resourceInputs["trackTransport"] = state ? state.trackTransport : undefined;
resourceInputs["trackTransportVariable"] = state ? state.trackTransportVariable : undefined;
resourceInputs["trackers"] = state ? state.trackers : undefined;
resourceInputs["transportGateway"] = state ? state.transportGateway : undefined;
resourceInputs["transportGatewayVariable"] = state ? state.transportGatewayVariable : 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["adminTechOnFailure"] = args ? args.adminTechOnFailure : undefined;
resourceInputs["adminTechOnFailureVariable"] = args ? args.adminTechOnFailureVariable : undefined;
resourceInputs["affinityGroupNumber"] = args ? args.affinityGroupNumber : undefined;
resourceInputs["affinityGroupNumberVariable"] = args ? args.affinityGroupNumberVariable : undefined;
resourceInputs["affinityGroupPreferenceVariable"] = args ? args.affinityGroupPreferenceVariable : undefined;
resourceInputs["affinityGroupPreferences"] = args ? args.affinityGroupPreferences : undefined;
resourceInputs["consoleBaudRate"] = args ? args.consoleBaudRate : undefined;
resourceInputs["consoleBaudRateVariable"] = args ? args.consoleBaudRateVariable : undefined;
resourceInputs["controlSessionPps"] = args ? args.controlSessionPps : undefined;
resourceInputs["controlSessionPpsVariable"] = args ? args.controlSessionPpsVariable : undefined;
resourceInputs["controllerGroupListVariable"] = args ? args.controllerGroupListVariable : undefined;
resourceInputs["controllerGroupLists"] = args ? args.controllerGroupLists : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceGroups"] = args ? args.deviceGroups : undefined;
resourceInputs["deviceGroupsVariable"] = args ? args.deviceGroupsVariable : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["enableMrfMigration"] = args ? args.enableMrfMigration : undefined;
resourceInputs["geoFencing"] = args ? args.geoFencing : undefined;
resourceInputs["geoFencingRange"] = args ? args.geoFencingRange : undefined;
resourceInputs["geoFencingRangeVariable"] = args ? args.geoFencingRangeVariable : undefined;
resourceInputs["geoFencingSms"] = args ? args.geoFencingSms : undefined;
resourceInputs["geoFencingSmsPhoneNumbers"] = args ? args.geoFencingSmsPhoneNumbers : undefined;
resourceInputs["hostname"] = args ? args.hostname : undefined;
resourceInputs["hostnameVariable"] = args ? args.hostnameVariable : undefined;
resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined;
resourceInputs["idleTimeoutVariable"] = args ? args.idleTimeoutVariable : undefined;
resourceInputs["latitude"] = args ? args.latitude : undefined;
resourceInputs["latitudeVariable"] = args ? args.latitudeVariable : undefined;
resourceInputs["location"] = args ? args.location : undefined;
resourceInputs["locationVariable"] = args ? args.locationVariable : undefined;
resourceInputs["longitude"] = args ? args.longitude : undefined;
resourceInputs["longitudeVariable"] = args ? args.longitudeVariable : undefined;
resourceInputs["maxOmpSessions"] = args ? args.maxOmpSessions : undefined;
resourceInputs["maxOmpSessionsVariable"] = args ? args.maxOmpSessionsVariable : undefined;
resourceInputs["migrationBgpCommunity"] = args ? args.migrationBgpCommunity : undefined;
resourceInputs["multiTenant"] = args ? args.multiTenant : undefined;
resourceInputs["multiTenantVariable"] = args ? args.multiTenantVariable : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["objectTrackers"] = args ? args.objectTrackers : undefined;
resourceInputs["onDemandTunnel"] = args ? args.onDemandTunnel : undefined;
resourceInputs["onDemandTunnelIdleTimeout"] = args ? args.onDemandTunnelIdleTimeout : undefined;
resourceInputs["onDemandTunnelIdleTimeoutVariable"] = args ? args.onDemandTunnelIdleTimeoutVariable : undefined;
resourceInputs["onDemandTunnelVariable"] = args ? args.onDemandTunnelVariable : undefined;
resourceInputs["overlayId"] = args ? args.overlayId : undefined;
resourceInputs["overlayIdVariable"] = args ? args.overlayIdVariable : undefined;
resourceInputs["portHopping"] = args ? args.portHopping : undefined;
resourceInputs["portHoppingVariable"] = args ? args.portHoppingVariable : undefined;
resourceInputs["portOffset"] = args ? args.portOffset : undefined;
resourceInputs["portOffsetVariable"] = args ? args.portOffsetVariable : undefined;
resourceInputs["regionId"] = args ? args.regionId : undefined;
resourceInputs["regionIdVariable"] = args ? args.regionIdVariable : undefined;
resourceInputs["role"] = args ? args.role : undefined;
resourceInputs["roleVariable"] = args ? args.roleVariable : undefined;
resourceInputs["secondaryRegionId"] = args ? args.secondaryRegionId : undefined;
resourceInputs["secondaryRegionIdVariable"] = args ? args.secondaryRegionIdVariable : undefined;
resourceInputs["siteId"] = args ? args.siteId : undefined;
resourceInputs["siteIdVariable"] = args ? args.siteIdVariable : undefined;
resourceInputs["systemDescription"] = args ? args.systemDescription : undefined;
resourceInputs["systemDescriptionVariable"] = args ? args.systemDescriptionVariable : undefined;
resourceInputs["systemIp"] = args ? args.systemIp : undefined;
resourceInputs["systemIpVariable"] = args ? args.systemIpVariable : undefined;
resourceInputs["timezone"] = args ? args.timezone : undefined;
resourceInputs["timezoneVariable"] = args ? args.timezoneVariable : undefined;
resourceInputs["trackDefaultGateway"] = args ? args.trackDefaultGateway : undefined;
resourceInputs["trackDefaultGatewayVariable"] = args ? args.trackDefaultGatewayVariable : undefined;
resourceInputs["trackInterfaceTag"] = args ? args.trackInterfaceTag : undefined;
resourceInputs["trackInterfaceTagVariable"] = args ? args.trackInterfaceTagVariable : undefined;
resourceInputs["trackTransport"] = args ? args.trackTransport : undefined;
resourceInputs["trackTransportVariable"] = args ? args.trackTransportVariable : undefined;
resourceInputs["trackers"] = args ? args.trackers : undefined;
resourceInputs["transportGateway"] = args ? args.transportGateway : undefined;
resourceInputs["transportGatewayVariable"] = args ? args.transportGatewayVariable : undefined;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoSystemFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoSystemFeatureTemplate = CiscoSystemFeatureTemplate;
/** @internal */
CiscoSystemFeatureTemplate.__pulumiType = 'sdwan:index/ciscoSystemFeatureTemplate:CiscoSystemFeatureTemplate';
//# sourceMappingURL=ciscoSystemFeatureTemplate.js.map