UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

200 lines 9.37 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigTemplatesSwitchProfilesPorts = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as meraki from "@pulumi/meraki"; * * const example = new meraki.organizations.ConfigTemplatesSwitchProfilesPorts("example", { * accessPolicyNumber: 2, * accessPolicyType: "Sticky MAC allow list", * allowedVlans: "1,3,5-10", * configTemplateId: "string", * daiTrusted: false, * enabled: true, * flexibleStackingEnabled: true, * isolationEnabled: false, * linkNegotiation: "Auto negotiate", * macAllowLists: [ * "34:56:fe:ce:8e:b0", * "34:56:fe:ce:8e:b1", * ], * name: "My switch port", * organizationId: "string", * poeEnabled: true, * portId: "string", * portScheduleId: "1234", * profile: { * enabled: false, * id: "1284392014819", * iname: "iname", * }, * profileId: "string", * rstpEnabled: true, * stickyMacAllowLists: [ * "34:56:fe:ce:8e:b0", * "34:56:fe:ce:8e:b1", * ], * stickyMacAllowListLimit: 5, * stormControlEnabled: true, * stpGuard: "disabled", * tags: [ * "tag1", * "tag2", * ], * type: "access", * udld: "Alert only", * vlan: 10, * voiceVlan: 20, * }); * export const merakiOrganizationsConfigTemplatesSwitchProfilesPortsExample = example; * ``` * * ## Import * * ```sh * $ pulumi import meraki:organizations/configTemplatesSwitchProfilesPorts:ConfigTemplatesSwitchProfilesPorts example "config_template_id,organization_id,port_id,profile_id" * ``` */ class ConfigTemplatesSwitchProfilesPorts extends pulumi.CustomResource { /** * Get an existing ConfigTemplatesSwitchProfilesPorts 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 ConfigTemplatesSwitchProfilesPorts(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'meraki:organizations/configTemplatesSwitchProfilesPorts:ConfigTemplatesSwitchProfilesPorts'; /** * Returns true if the given object is an instance of ConfigTemplatesSwitchProfilesPorts. 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'] === ConfigTemplatesSwitchProfilesPorts.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessPolicyNumber"] = state?.accessPolicyNumber; resourceInputs["accessPolicyType"] = state?.accessPolicyType; resourceInputs["allowedVlans"] = state?.allowedVlans; resourceInputs["configTemplateId"] = state?.configTemplateId; resourceInputs["daiTrusted"] = state?.daiTrusted; resourceInputs["enabled"] = state?.enabled; resourceInputs["flexibleStackingEnabled"] = state?.flexibleStackingEnabled; resourceInputs["isolationEnabled"] = state?.isolationEnabled; resourceInputs["linkNegotiation"] = state?.linkNegotiation; resourceInputs["linkNegotiationCapabilities"] = state?.linkNegotiationCapabilities; resourceInputs["macAllowLists"] = state?.macAllowLists; resourceInputs["mirror"] = state?.mirror; resourceInputs["module"] = state?.module; resourceInputs["name"] = state?.name; resourceInputs["organizationId"] = state?.organizationId; resourceInputs["poeEnabled"] = state?.poeEnabled; resourceInputs["portId"] = state?.portId; resourceInputs["portScheduleId"] = state?.portScheduleId; resourceInputs["profile"] = state?.profile; resourceInputs["profileId"] = state?.profileId; resourceInputs["rstpEnabled"] = state?.rstpEnabled; resourceInputs["stickyMacAllowListLimit"] = state?.stickyMacAllowListLimit; resourceInputs["stickyMacAllowLists"] = state?.stickyMacAllowLists; resourceInputs["stormControlEnabled"] = state?.stormControlEnabled; resourceInputs["stpGuard"] = state?.stpGuard; resourceInputs["tags"] = state?.tags; resourceInputs["type"] = state?.type; resourceInputs["udld"] = state?.udld; resourceInputs["vlan"] = state?.vlan; resourceInputs["voiceVlan"] = state?.voiceVlan; } else { const args = argsOrState; if (args?.configTemplateId === undefined && !opts.urn) { throw new Error("Missing required property 'configTemplateId'"); } if (args?.organizationId === undefined && !opts.urn) { throw new Error("Missing required property 'organizationId'"); } if (args?.portId === undefined && !opts.urn) { throw new Error("Missing required property 'portId'"); } if (args?.profileId === undefined && !opts.urn) { throw new Error("Missing required property 'profileId'"); } resourceInputs["accessPolicyNumber"] = args?.accessPolicyNumber; resourceInputs["accessPolicyType"] = args?.accessPolicyType; resourceInputs["allowedVlans"] = args?.allowedVlans; resourceInputs["configTemplateId"] = args?.configTemplateId; resourceInputs["daiTrusted"] = args?.daiTrusted; resourceInputs["enabled"] = args?.enabled; resourceInputs["flexibleStackingEnabled"] = args?.flexibleStackingEnabled; resourceInputs["isolationEnabled"] = args?.isolationEnabled; resourceInputs["linkNegotiation"] = args?.linkNegotiation; resourceInputs["macAllowLists"] = args?.macAllowLists; resourceInputs["name"] = args?.name; resourceInputs["organizationId"] = args?.organizationId; resourceInputs["poeEnabled"] = args?.poeEnabled; resourceInputs["portId"] = args?.portId; resourceInputs["portScheduleId"] = args?.portScheduleId; resourceInputs["profile"] = args?.profile; resourceInputs["profileId"] = args?.profileId; resourceInputs["rstpEnabled"] = args?.rstpEnabled; resourceInputs["stickyMacAllowListLimit"] = args?.stickyMacAllowListLimit; resourceInputs["stickyMacAllowLists"] = args?.stickyMacAllowLists; resourceInputs["stormControlEnabled"] = args?.stormControlEnabled; resourceInputs["stpGuard"] = args?.stpGuard; resourceInputs["tags"] = args?.tags; resourceInputs["type"] = args?.type; resourceInputs["udld"] = args?.udld; resourceInputs["vlan"] = args?.vlan; resourceInputs["voiceVlan"] = args?.voiceVlan; resourceInputs["linkNegotiationCapabilities"] = undefined /*out*/; resourceInputs["mirror"] = undefined /*out*/; resourceInputs["module"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ConfigTemplatesSwitchProfilesPorts.__pulumiType, name, resourceInputs, opts); } } exports.ConfigTemplatesSwitchProfilesPorts = ConfigTemplatesSwitchProfilesPorts; //# sourceMappingURL=configTemplatesSwitchProfilesPorts.js.map