@pulumi/meraki
Version:
A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0
103 lines • 6.44 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.SwitchAccessPolicies = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* ## Import
*
* ```sh
* $ pulumi import meraki:networks/switchAccessPolicies:SwitchAccessPolicies example "access_policy_number,network_id"
* ```
*/
class SwitchAccessPolicies extends pulumi.CustomResource {
/**
* Get an existing SwitchAccessPolicies 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 SwitchAccessPolicies(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SwitchAccessPolicies. 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'] === SwitchAccessPolicies.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accessPolicyNumber"] = state ? state.accessPolicyNumber : undefined;
resourceInputs["accessPolicyType"] = state ? state.accessPolicyType : undefined;
resourceInputs["counts"] = state ? state.counts : undefined;
resourceInputs["dot1x"] = state ? state.dot1x : undefined;
resourceInputs["guestPortBouncing"] = state ? state.guestPortBouncing : undefined;
resourceInputs["guestVlanId"] = state ? state.guestVlanId : undefined;
resourceInputs["hostMode"] = state ? state.hostMode : undefined;
resourceInputs["increaseAccessSpeed"] = state ? state.increaseAccessSpeed : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["networkId"] = state ? state.networkId : undefined;
resourceInputs["radius"] = state ? state.radius : undefined;
resourceInputs["radiusAccountingEnabled"] = state ? state.radiusAccountingEnabled : undefined;
resourceInputs["radiusAccountingServers"] = state ? state.radiusAccountingServers : undefined;
resourceInputs["radiusAccountingServersResponses"] = state ? state.radiusAccountingServersResponses : undefined;
resourceInputs["radiusCoaSupportEnabled"] = state ? state.radiusCoaSupportEnabled : undefined;
resourceInputs["radiusGroupAttribute"] = state ? state.radiusGroupAttribute : undefined;
resourceInputs["radiusServers"] = state ? state.radiusServers : undefined;
resourceInputs["radiusServersResponses"] = state ? state.radiusServersResponses : undefined;
resourceInputs["radiusTestingEnabled"] = state ? state.radiusTestingEnabled : undefined;
resourceInputs["urlRedirectWalledGardenEnabled"] = state ? state.urlRedirectWalledGardenEnabled : undefined;
resourceInputs["urlRedirectWalledGardenRanges"] = state ? state.urlRedirectWalledGardenRanges : undefined;
resourceInputs["voiceVlanClients"] = state ? state.voiceVlanClients : undefined;
}
else {
const args = argsOrState;
if ((!args || args.networkId === undefined) && !opts.urn) {
throw new Error("Missing required property 'networkId'");
}
resourceInputs["accessPolicyNumber"] = args ? args.accessPolicyNumber : undefined;
resourceInputs["accessPolicyType"] = args ? args.accessPolicyType : undefined;
resourceInputs["dot1x"] = args ? args.dot1x : undefined;
resourceInputs["guestPortBouncing"] = args ? args.guestPortBouncing : undefined;
resourceInputs["guestVlanId"] = args ? args.guestVlanId : undefined;
resourceInputs["hostMode"] = args ? args.hostMode : undefined;
resourceInputs["increaseAccessSpeed"] = args ? args.increaseAccessSpeed : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networkId"] = args ? args.networkId : undefined;
resourceInputs["radius"] = args ? args.radius : undefined;
resourceInputs["radiusAccountingEnabled"] = args ? args.radiusAccountingEnabled : undefined;
resourceInputs["radiusAccountingServers"] = args ? args.radiusAccountingServers : undefined;
resourceInputs["radiusCoaSupportEnabled"] = args ? args.radiusCoaSupportEnabled : undefined;
resourceInputs["radiusGroupAttribute"] = args ? args.radiusGroupAttribute : undefined;
resourceInputs["radiusServers"] = args ? args.radiusServers : undefined;
resourceInputs["radiusTestingEnabled"] = args ? args.radiusTestingEnabled : undefined;
resourceInputs["urlRedirectWalledGardenEnabled"] = args ? args.urlRedirectWalledGardenEnabled : undefined;
resourceInputs["urlRedirectWalledGardenRanges"] = args ? args.urlRedirectWalledGardenRanges : undefined;
resourceInputs["voiceVlanClients"] = args ? args.voiceVlanClients : undefined;
resourceInputs["counts"] = undefined /*out*/;
resourceInputs["radiusAccountingServersResponses"] = undefined /*out*/;
resourceInputs["radiusServersResponses"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SwitchAccessPolicies.__pulumiType, name, resourceInputs, opts);
}
}
exports.SwitchAccessPolicies = SwitchAccessPolicies;
/** @internal */
SwitchAccessPolicies.__pulumiType = 'meraki:networks/switchAccessPolicies:SwitchAccessPolicies';
//# sourceMappingURL=switchAccessPolicies.js.map