UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

71 lines 2.77 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! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.FirewallSettings = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Manages Linode account-level firewall settings. Resetting default firewall IDs * to null is not available to all customers and unsupported in this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const example = new linode.FirewallSettings("example", {defaultFirewallIds: { * linode: 12345, * nodebalancer: 12345, * publicInterface: 12345, * vpcInterface: 12345, * }}); * ``` * * ## API Reference * * See the [Linode API documentation](https://techdocs.akamai.com/linode-api/reference/put-firewall-settings) for more details. */ class FirewallSettings extends pulumi.CustomResource { /** * Get an existing FirewallSettings 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 FirewallSettings(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of FirewallSettings. 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'] === FirewallSettings.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["defaultFirewallIds"] = state?.defaultFirewallIds; } else { const args = argsOrState; resourceInputs["defaultFirewallIds"] = args?.defaultFirewallIds; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FirewallSettings.__pulumiType, name, resourceInputs, opts); } } exports.FirewallSettings = FirewallSettings; /** @internal */ FirewallSettings.__pulumiType = 'linode:index/firewallSettings:FirewallSettings'; //# sourceMappingURL=firewallSettings.js.map