@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
242 lines • 14 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.SystemBasicFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a System Basic Feature.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdwan from "@pulumi/sdwan";
*
* const example = new sdwan.SystemBasicFeature("example", {
* name: "Example",
* description: "My Example",
* featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
* timezone: "UTC",
* configDescription: "example",
* location: "example",
* gpsLongitude: -77,
* gpsLatitude: 38,
* gpsGeoFencingEnable: true,
* gpsGeoFencingRange: 100,
* gpsSmsEnable: true,
* gpsSmsMobileNumbers: [{
* number: "+11111233",
* }],
* deviceGroups: ["example"],
* controllerGroups: [1],
* overlayId: 1,
* portOffset: 19,
* portHopping: true,
* controlSessionPps: 300,
* trackTransport: true,
* trackInterfaceTag: 2,
* consoleBaudRate: "9600",
* maxOmpSessions: 24,
* multiTenant: false,
* trackDefaultGateway: true,
* adminTechOnFailure: true,
* idleTimeout: 10,
* onDemandEnable: true,
* onDemandIdleTimeout: 10,
* transportGateway: false,
* enhancedAppAwareRouting: "aggressive",
* siteTypes: ["type-1"],
* affinityGroupNumber: 1,
* affinityGroupPreferences: [1],
* affinityPreferenceAuto: false,
* affinityPerVrfs: [{
* affinityGroupNumber: 1,
* vrfRange: "123-456",
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "system_basic_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/systemBasicFeature:SystemBasicFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class SystemBasicFeature extends pulumi.CustomResource {
/**
* Get an existing SystemBasicFeature 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 SystemBasicFeature(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SystemBasicFeature. 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'] === SystemBasicFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["adminTechOnFailure"] = state?.adminTechOnFailure;
resourceInputs["adminTechOnFailureVariable"] = state?.adminTechOnFailureVariable;
resourceInputs["affinityGroupNumber"] = state?.affinityGroupNumber;
resourceInputs["affinityGroupNumberVariable"] = state?.affinityGroupNumberVariable;
resourceInputs["affinityGroupPreferences"] = state?.affinityGroupPreferences;
resourceInputs["affinityGroupPreferencesVariable"] = state?.affinityGroupPreferencesVariable;
resourceInputs["affinityPerVrfs"] = state?.affinityPerVrfs;
resourceInputs["affinityPreferenceAuto"] = state?.affinityPreferenceAuto;
resourceInputs["affinityPreferenceAutoVariable"] = state?.affinityPreferenceAutoVariable;
resourceInputs["configDescription"] = state?.configDescription;
resourceInputs["configDescriptionVariable"] = state?.configDescriptionVariable;
resourceInputs["consoleBaudRate"] = state?.consoleBaudRate;
resourceInputs["consoleBaudRateVariable"] = state?.consoleBaudRateVariable;
resourceInputs["controlSessionPps"] = state?.controlSessionPps;
resourceInputs["controlSessionPpsVariable"] = state?.controlSessionPpsVariable;
resourceInputs["controllerGroups"] = state?.controllerGroups;
resourceInputs["controllerGroupsVariable"] = state?.controllerGroupsVariable;
resourceInputs["description"] = state?.description;
resourceInputs["deviceGroups"] = state?.deviceGroups;
resourceInputs["deviceGroupsVariable"] = state?.deviceGroupsVariable;
resourceInputs["enhancedAppAwareRouting"] = state?.enhancedAppAwareRouting;
resourceInputs["enhancedAppAwareRoutingVariable"] = state?.enhancedAppAwareRoutingVariable;
resourceInputs["featureProfileId"] = state?.featureProfileId;
resourceInputs["gpsGeoFencingEnable"] = state?.gpsGeoFencingEnable;
resourceInputs["gpsGeoFencingRange"] = state?.gpsGeoFencingRange;
resourceInputs["gpsGeoFencingRangeVariable"] = state?.gpsGeoFencingRangeVariable;
resourceInputs["gpsLatitude"] = state?.gpsLatitude;
resourceInputs["gpsLatitudeVariable"] = state?.gpsLatitudeVariable;
resourceInputs["gpsLongitude"] = state?.gpsLongitude;
resourceInputs["gpsLongitudeVariable"] = state?.gpsLongitudeVariable;
resourceInputs["gpsSmsEnable"] = state?.gpsSmsEnable;
resourceInputs["gpsSmsMobileNumbers"] = state?.gpsSmsMobileNumbers;
resourceInputs["idleTimeout"] = state?.idleTimeout;
resourceInputs["idleTimeoutVariable"] = state?.idleTimeoutVariable;
resourceInputs["location"] = state?.location;
resourceInputs["locationVariable"] = state?.locationVariable;
resourceInputs["maxOmpSessions"] = state?.maxOmpSessions;
resourceInputs["maxOmpSessionsVariable"] = state?.maxOmpSessionsVariable;
resourceInputs["multiTenant"] = state?.multiTenant;
resourceInputs["multiTenantVariable"] = state?.multiTenantVariable;
resourceInputs["name"] = state?.name;
resourceInputs["onDemandEnable"] = state?.onDemandEnable;
resourceInputs["onDemandEnableVariable"] = state?.onDemandEnableVariable;
resourceInputs["onDemandIdleTimeout"] = state?.onDemandIdleTimeout;
resourceInputs["onDemandIdleTimeoutVariable"] = state?.onDemandIdleTimeoutVariable;
resourceInputs["overlayId"] = state?.overlayId;
resourceInputs["overlayIdVariable"] = state?.overlayIdVariable;
resourceInputs["portHopping"] = state?.portHopping;
resourceInputs["portHoppingVariable"] = state?.portHoppingVariable;
resourceInputs["portOffset"] = state?.portOffset;
resourceInputs["portOffsetVariable"] = state?.portOffsetVariable;
resourceInputs["siteTypes"] = state?.siteTypes;
resourceInputs["siteTypesVariable"] = state?.siteTypesVariable;
resourceInputs["timezone"] = state?.timezone;
resourceInputs["timezoneVariable"] = state?.timezoneVariable;
resourceInputs["trackDefaultGateway"] = state?.trackDefaultGateway;
resourceInputs["trackDefaultGatewayVariable"] = state?.trackDefaultGatewayVariable;
resourceInputs["trackInterfaceTag"] = state?.trackInterfaceTag;
resourceInputs["trackInterfaceTagVariable"] = state?.trackInterfaceTagVariable;
resourceInputs["trackTransport"] = state?.trackTransport;
resourceInputs["trackTransportVariable"] = state?.trackTransportVariable;
resourceInputs["transportGateway"] = state?.transportGateway;
resourceInputs["transportGatewayVariable"] = state?.transportGatewayVariable;
resourceInputs["version"] = state?.version;
}
else {
const args = argsOrState;
if (args?.featureProfileId === undefined && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
resourceInputs["adminTechOnFailure"] = args?.adminTechOnFailure;
resourceInputs["adminTechOnFailureVariable"] = args?.adminTechOnFailureVariable;
resourceInputs["affinityGroupNumber"] = args?.affinityGroupNumber;
resourceInputs["affinityGroupNumberVariable"] = args?.affinityGroupNumberVariable;
resourceInputs["affinityGroupPreferences"] = args?.affinityGroupPreferences;
resourceInputs["affinityGroupPreferencesVariable"] = args?.affinityGroupPreferencesVariable;
resourceInputs["affinityPerVrfs"] = args?.affinityPerVrfs;
resourceInputs["affinityPreferenceAuto"] = args?.affinityPreferenceAuto;
resourceInputs["affinityPreferenceAutoVariable"] = args?.affinityPreferenceAutoVariable;
resourceInputs["configDescription"] = args?.configDescription;
resourceInputs["configDescriptionVariable"] = args?.configDescriptionVariable;
resourceInputs["consoleBaudRate"] = args?.consoleBaudRate;
resourceInputs["consoleBaudRateVariable"] = args?.consoleBaudRateVariable;
resourceInputs["controlSessionPps"] = args?.controlSessionPps;
resourceInputs["controlSessionPpsVariable"] = args?.controlSessionPpsVariable;
resourceInputs["controllerGroups"] = args?.controllerGroups;
resourceInputs["controllerGroupsVariable"] = args?.controllerGroupsVariable;
resourceInputs["description"] = args?.description;
resourceInputs["deviceGroups"] = args?.deviceGroups;
resourceInputs["deviceGroupsVariable"] = args?.deviceGroupsVariable;
resourceInputs["enhancedAppAwareRouting"] = args?.enhancedAppAwareRouting;
resourceInputs["enhancedAppAwareRoutingVariable"] = args?.enhancedAppAwareRoutingVariable;
resourceInputs["featureProfileId"] = args?.featureProfileId;
resourceInputs["gpsGeoFencingEnable"] = args?.gpsGeoFencingEnable;
resourceInputs["gpsGeoFencingRange"] = args?.gpsGeoFencingRange;
resourceInputs["gpsGeoFencingRangeVariable"] = args?.gpsGeoFencingRangeVariable;
resourceInputs["gpsLatitude"] = args?.gpsLatitude;
resourceInputs["gpsLatitudeVariable"] = args?.gpsLatitudeVariable;
resourceInputs["gpsLongitude"] = args?.gpsLongitude;
resourceInputs["gpsLongitudeVariable"] = args?.gpsLongitudeVariable;
resourceInputs["gpsSmsEnable"] = args?.gpsSmsEnable;
resourceInputs["gpsSmsMobileNumbers"] = args?.gpsSmsMobileNumbers;
resourceInputs["idleTimeout"] = args?.idleTimeout;
resourceInputs["idleTimeoutVariable"] = args?.idleTimeoutVariable;
resourceInputs["location"] = args?.location;
resourceInputs["locationVariable"] = args?.locationVariable;
resourceInputs["maxOmpSessions"] = args?.maxOmpSessions;
resourceInputs["maxOmpSessionsVariable"] = args?.maxOmpSessionsVariable;
resourceInputs["multiTenant"] = args?.multiTenant;
resourceInputs["multiTenantVariable"] = args?.multiTenantVariable;
resourceInputs["name"] = args?.name;
resourceInputs["onDemandEnable"] = args?.onDemandEnable;
resourceInputs["onDemandEnableVariable"] = args?.onDemandEnableVariable;
resourceInputs["onDemandIdleTimeout"] = args?.onDemandIdleTimeout;
resourceInputs["onDemandIdleTimeoutVariable"] = args?.onDemandIdleTimeoutVariable;
resourceInputs["overlayId"] = args?.overlayId;
resourceInputs["overlayIdVariable"] = args?.overlayIdVariable;
resourceInputs["portHopping"] = args?.portHopping;
resourceInputs["portHoppingVariable"] = args?.portHoppingVariable;
resourceInputs["portOffset"] = args?.portOffset;
resourceInputs["portOffsetVariable"] = args?.portOffsetVariable;
resourceInputs["siteTypes"] = args?.siteTypes;
resourceInputs["siteTypesVariable"] = args?.siteTypesVariable;
resourceInputs["timezone"] = args?.timezone;
resourceInputs["timezoneVariable"] = args?.timezoneVariable;
resourceInputs["trackDefaultGateway"] = args?.trackDefaultGateway;
resourceInputs["trackDefaultGatewayVariable"] = args?.trackDefaultGatewayVariable;
resourceInputs["trackInterfaceTag"] = args?.trackInterfaceTag;
resourceInputs["trackInterfaceTagVariable"] = args?.trackInterfaceTagVariable;
resourceInputs["trackTransport"] = args?.trackTransport;
resourceInputs["trackTransportVariable"] = args?.trackTransportVariable;
resourceInputs["transportGateway"] = args?.transportGateway;
resourceInputs["transportGatewayVariable"] = args?.transportGatewayVariable;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SystemBasicFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.SystemBasicFeature = SystemBasicFeature;
/** @internal */
SystemBasicFeature.__pulumiType = 'sdwan:index/systemBasicFeature:SystemBasicFeature';
//# sourceMappingURL=systemBasicFeature.js.map