UNPKG

@pulumi/meraki

Version:

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

88 lines 4.77 kB
"use strict"; // *** 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.SwitchStacksRoutingInterfaces = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import meraki:networks/switchStacksRoutingInterfaces:SwitchStacksRoutingInterfaces example "interface_id,network_id,switch_stack_id" * ``` */ class SwitchStacksRoutingInterfaces extends pulumi.CustomResource { /** * Get an existing SwitchStacksRoutingInterfaces 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 SwitchStacksRoutingInterfaces(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SwitchStacksRoutingInterfaces. 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'] === SwitchStacksRoutingInterfaces.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["defaultGateway"] = state ? state.defaultGateway : undefined; resourceInputs["defaultGatewayResponse"] = state ? state.defaultGatewayResponse : undefined; resourceInputs["interfaceId"] = state ? state.interfaceId : undefined; resourceInputs["interfaceIp"] = state ? state.interfaceIp : undefined; resourceInputs["ipv6"] = state ? state.ipv6 : undefined; resourceInputs["multicastRouting"] = state ? state.multicastRouting : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networkId"] = state ? state.networkId : undefined; resourceInputs["ospfSettings"] = state ? state.ospfSettings : undefined; resourceInputs["ospfV3"] = state ? state.ospfV3 : undefined; resourceInputs["subnet"] = state ? state.subnet : undefined; resourceInputs["switchStackId"] = state ? state.switchStackId : undefined; resourceInputs["vlanId"] = state ? state.vlanId : undefined; } else { const args = argsOrState; if ((!args || args.networkId === undefined) && !opts.urn) { throw new Error("Missing required property 'networkId'"); } if ((!args || args.switchStackId === undefined) && !opts.urn) { throw new Error("Missing required property 'switchStackId'"); } resourceInputs["defaultGateway"] = args ? args.defaultGateway : undefined; resourceInputs["interfaceId"] = args ? args.interfaceId : undefined; resourceInputs["interfaceIp"] = args ? args.interfaceIp : undefined; resourceInputs["ipv6"] = args ? args.ipv6 : undefined; resourceInputs["multicastRouting"] = args ? args.multicastRouting : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkId"] = args ? args.networkId : undefined; resourceInputs["ospfSettings"] = args ? args.ospfSettings : undefined; resourceInputs["subnet"] = args ? args.subnet : undefined; resourceInputs["switchStackId"] = args ? args.switchStackId : undefined; resourceInputs["vlanId"] = args ? args.vlanId : undefined; resourceInputs["defaultGatewayResponse"] = undefined /*out*/; resourceInputs["ospfV3"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SwitchStacksRoutingInterfaces.__pulumiType, name, resourceInputs, opts); } } exports.SwitchStacksRoutingInterfaces = SwitchStacksRoutingInterfaces; /** @internal */ SwitchStacksRoutingInterfaces.__pulumiType = 'meraki:networks/switchStacksRoutingInterfaces:SwitchStacksRoutingInterfaces'; //# sourceMappingURL=switchStacksRoutingInterfaces.js.map