UNPKG

@pulumi/meraki

Version:

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

106 lines 6.09 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.ApplianceVlans = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import meraki:networks/applianceVlans:ApplianceVlans example "network_id,vlan_id" * ``` */ class ApplianceVlans extends pulumi.CustomResource { /** * Get an existing ApplianceVlans 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 ApplianceVlans(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ApplianceVlans. 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'] === ApplianceVlans.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applianceIp"] = state ? state.applianceIp : undefined; resourceInputs["cidr"] = state ? state.cidr : undefined; resourceInputs["dhcpBootFilename"] = state ? state.dhcpBootFilename : undefined; resourceInputs["dhcpBootNextServer"] = state ? state.dhcpBootNextServer : undefined; resourceInputs["dhcpBootOptionsEnabled"] = state ? state.dhcpBootOptionsEnabled : undefined; resourceInputs["dhcpHandling"] = state ? state.dhcpHandling : undefined; resourceInputs["dhcpLeaseTime"] = state ? state.dhcpLeaseTime : undefined; resourceInputs["dhcpOptions"] = state ? state.dhcpOptions : undefined; resourceInputs["dhcpRelayServerIps"] = state ? state.dhcpRelayServerIps : undefined; resourceInputs["dnsNameservers"] = state ? state.dnsNameservers : undefined; resourceInputs["groupPolicyId"] = state ? state.groupPolicyId : undefined; resourceInputs["interfaceId"] = state ? state.interfaceId : undefined; resourceInputs["ipv6"] = state ? state.ipv6 : undefined; resourceInputs["mandatoryDhcp"] = state ? state.mandatoryDhcp : undefined; resourceInputs["mask"] = state ? state.mask : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networkId"] = state ? state.networkId : undefined; resourceInputs["reservedIpRanges"] = state ? state.reservedIpRanges : undefined; resourceInputs["subnet"] = state ? state.subnet : undefined; resourceInputs["templateVlanType"] = state ? state.templateVlanType : undefined; resourceInputs["vlanId"] = state ? state.vlanId : undefined; resourceInputs["vpnNatSubnet"] = state ? state.vpnNatSubnet : undefined; } else { const args = argsOrState; if ((!args || args.networkId === undefined) && !opts.urn) { throw new Error("Missing required property 'networkId'"); } if ((!args || args.vlanId === undefined) && !opts.urn) { throw new Error("Missing required property 'vlanId'"); } resourceInputs["applianceIp"] = args ? args.applianceIp : undefined; resourceInputs["cidr"] = args ? args.cidr : undefined; resourceInputs["dhcpBootFilename"] = args ? args.dhcpBootFilename : undefined; resourceInputs["dhcpBootNextServer"] = args ? args.dhcpBootNextServer : undefined; resourceInputs["dhcpBootOptionsEnabled"] = args ? args.dhcpBootOptionsEnabled : undefined; resourceInputs["dhcpHandling"] = args ? args.dhcpHandling : undefined; resourceInputs["dhcpLeaseTime"] = args ? args.dhcpLeaseTime : undefined; resourceInputs["dhcpOptions"] = args ? args.dhcpOptions : undefined; resourceInputs["dhcpRelayServerIps"] = args ? args.dhcpRelayServerIps : undefined; resourceInputs["dnsNameservers"] = args ? args.dnsNameservers : undefined; resourceInputs["groupPolicyId"] = args ? args.groupPolicyId : undefined; resourceInputs["ipv6"] = args ? args.ipv6 : undefined; resourceInputs["mandatoryDhcp"] = args ? args.mandatoryDhcp : undefined; resourceInputs["mask"] = args ? args.mask : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkId"] = args ? args.networkId : undefined; resourceInputs["reservedIpRanges"] = args ? args.reservedIpRanges : undefined; resourceInputs["subnet"] = args ? args.subnet : undefined; resourceInputs["templateVlanType"] = args ? args.templateVlanType : undefined; resourceInputs["vlanId"] = args ? args.vlanId : undefined; resourceInputs["vpnNatSubnet"] = args ? args.vpnNatSubnet : undefined; resourceInputs["interfaceId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ApplianceVlans.__pulumiType, name, resourceInputs, opts); } } exports.ApplianceVlans = ApplianceVlans; /** @internal */ ApplianceVlans.__pulumiType = 'meraki:networks/applianceVlans:ApplianceVlans'; //# sourceMappingURL=applianceVlans.js.map