@pulumi/meraki
Version:
A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0
100 lines • 4.49 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Snmp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as meraki from "@pulumi/meraki";
*
* const example = new meraki.organizations.Snmp("example", {
* organizationId: "string",
* peerIps: ["123.123.123.1"],
* v2cEnabled: false,
* v3AuthMode: "SHA",
* v3AuthPass: "password",
* v3Enabled: true,
* v3PrivMode: "AES128",
* v3PrivPass: "password",
* });
* export const merakiOrganizationsSnmpExample = example;
* ```
*
* ## Import
*
* ```sh
* $ pulumi import meraki:organizations/snmp:Snmp example "organization_id"
* ```
*/
class Snmp extends pulumi.CustomResource {
/**
* Get an existing Snmp 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 Snmp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Snmp. 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'] === Snmp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["hostname"] = state ? state.hostname : undefined;
resourceInputs["organizationId"] = state ? state.organizationId : undefined;
resourceInputs["peerIps"] = state ? state.peerIps : undefined;
resourceInputs["port"] = state ? state.port : undefined;
resourceInputs["v2CommunityString"] = state ? state.v2CommunityString : undefined;
resourceInputs["v2cEnabled"] = state ? state.v2cEnabled : undefined;
resourceInputs["v3AuthMode"] = state ? state.v3AuthMode : undefined;
resourceInputs["v3AuthPass"] = state ? state.v3AuthPass : undefined;
resourceInputs["v3Enabled"] = state ? state.v3Enabled : undefined;
resourceInputs["v3PrivMode"] = state ? state.v3PrivMode : undefined;
resourceInputs["v3PrivPass"] = state ? state.v3PrivPass : undefined;
resourceInputs["v3User"] = state ? state.v3User : undefined;
}
else {
const args = argsOrState;
if ((!args || args.organizationId === undefined) && !opts.urn) {
throw new Error("Missing required property 'organizationId'");
}
resourceInputs["organizationId"] = args ? args.organizationId : undefined;
resourceInputs["peerIps"] = args ? args.peerIps : undefined;
resourceInputs["v2cEnabled"] = args ? args.v2cEnabled : undefined;
resourceInputs["v3AuthMode"] = args ? args.v3AuthMode : undefined;
resourceInputs["v3AuthPass"] = args ? args.v3AuthPass : undefined;
resourceInputs["v3Enabled"] = args ? args.v3Enabled : undefined;
resourceInputs["v3PrivMode"] = args ? args.v3PrivMode : undefined;
resourceInputs["v3PrivPass"] = args ? args.v3PrivPass : undefined;
resourceInputs["hostname"] = undefined /*out*/;
resourceInputs["port"] = undefined /*out*/;
resourceInputs["v2CommunityString"] = undefined /*out*/;
resourceInputs["v3User"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Snmp.__pulumiType, name, resourceInputs, opts);
}
}
exports.Snmp = Snmp;
/** @internal */
Snmp.__pulumiType = 'meraki:organizations/snmp:Snmp';
//# sourceMappingURL=snmp.js.map