@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
144 lines • 6.01 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.SystemSnmpFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a System SNMP 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.SystemSnmpFeature("example", {
* name: "Example",
* description: "My Example",
* featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
* shutdown: false,
* contactPerson: "wixie.cisco",
* locationOfDevice: "SHANGHAI",
* views: [{
* name: "VIEW1",
* oids: [{
* id: "1.3.6.1.4.1.9.9.394",
* exclude: false,
* }],
* }],
* communities: [{
* name: "example",
* userLabel: "COMMUNITY1",
* view: "VIEW1",
* authorization: "read-only",
* }],
* groups: [{
* name: "GROUP1",
* securityLevel: "auth-priv",
* view: "VIEW1",
* }],
* users: [{
* name: "USER1",
* authenticationProtocol: "sha",
* authenticationPassword: "$CRYPT_CLUSTER$su56l1Z0Tk4Qc9N7+T/uOg==$sD6b0HLqEdI+RNwsEOoLcQ==",
* privacyProtocol: "aes-256-cfb-128",
* privacyPassword: "$CRYPT_CLUSTER$su56l1Z0Tk4Qc9N7+T/uOg==$sD6b0HLqEdI+RNwsEOoLcQ==",
* group: "GROUP1",
* }],
* trapTargetServers: [{
* vpnId: 1,
* ip: "10.75.221.156",
* port: 161,
* userLabel: "TARGET1",
* user: "USER1",
* sourceInterface: "GigabitEthernet1",
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "system_snmp_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/systemSnmpFeature:SystemSnmpFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class SystemSnmpFeature extends pulumi.CustomResource {
/**
* Get an existing SystemSnmpFeature 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 SystemSnmpFeature(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SystemSnmpFeature. 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'] === SystemSnmpFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["communities"] = state?.communities;
resourceInputs["contactPerson"] = state?.contactPerson;
resourceInputs["contactPersonVariable"] = state?.contactPersonVariable;
resourceInputs["description"] = state?.description;
resourceInputs["featureProfileId"] = state?.featureProfileId;
resourceInputs["groups"] = state?.groups;
resourceInputs["locationOfDevice"] = state?.locationOfDevice;
resourceInputs["locationOfDeviceVariable"] = state?.locationOfDeviceVariable;
resourceInputs["name"] = state?.name;
resourceInputs["shutdown"] = state?.shutdown;
resourceInputs["shutdownVariable"] = state?.shutdownVariable;
resourceInputs["trapTargetServers"] = state?.trapTargetServers;
resourceInputs["users"] = state?.users;
resourceInputs["version"] = state?.version;
resourceInputs["views"] = state?.views;
}
else {
const args = argsOrState;
if (args?.featureProfileId === undefined && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
resourceInputs["communities"] = args?.communities;
resourceInputs["contactPerson"] = args?.contactPerson;
resourceInputs["contactPersonVariable"] = args?.contactPersonVariable;
resourceInputs["description"] = args?.description;
resourceInputs["featureProfileId"] = args?.featureProfileId;
resourceInputs["groups"] = args?.groups;
resourceInputs["locationOfDevice"] = args?.locationOfDevice;
resourceInputs["locationOfDeviceVariable"] = args?.locationOfDeviceVariable;
resourceInputs["name"] = args?.name;
resourceInputs["shutdown"] = args?.shutdown;
resourceInputs["shutdownVariable"] = args?.shutdownVariable;
resourceInputs["trapTargetServers"] = args?.trapTargetServers;
resourceInputs["users"] = args?.users;
resourceInputs["views"] = args?.views;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SystemSnmpFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.SystemSnmpFeature = SystemSnmpFeature;
/** @internal */
SystemSnmpFeature.__pulumiType = 'sdwan:index/systemSnmpFeature:SystemSnmpFeature';
//# sourceMappingURL=systemSnmpFeature.js.map