@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
98 lines • 4.06 kB
JavaScript
;
// *** 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.VlanInterface = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* VlanInterface resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Creates a vlan interface used as parent-interface for subsequent examples
* //
* const scmVlanInterfaceIpv4 = new scm.VlanInterface("scm_vlan_interface_ipv4", {
* name: "$scm_vlan_interface_ipv4",
* comment: "Managed by Pulumi",
* folder: "ngfw-shared",
* vlanTag: "1234",
* ips: [{
* name: "198.18.1.1/24",
* }],
* });
* ```
*/
class VlanInterface extends pulumi.CustomResource {
/**
* Get an existing VlanInterface 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 VlanInterface(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of VlanInterface. 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'] === VlanInterface.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arps"] = state?.arps;
resourceInputs["comment"] = state?.comment;
resourceInputs["ddnsConfig"] = state?.ddnsConfig;
resourceInputs["defaultValue"] = state?.defaultValue;
resourceInputs["device"] = state?.device;
resourceInputs["dhcpClient"] = state?.dhcpClient;
resourceInputs["folder"] = state?.folder;
resourceInputs["interfaceManagementProfile"] = state?.interfaceManagementProfile;
resourceInputs["ips"] = state?.ips;
resourceInputs["mtu"] = state?.mtu;
resourceInputs["name"] = state?.name;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["vlanTag"] = state?.vlanTag;
}
else {
const args = argsOrState;
resourceInputs["arps"] = args?.arps;
resourceInputs["comment"] = args?.comment;
resourceInputs["ddnsConfig"] = args?.ddnsConfig;
resourceInputs["defaultValue"] = args?.defaultValue;
resourceInputs["device"] = args?.device;
resourceInputs["dhcpClient"] = args?.dhcpClient;
resourceInputs["folder"] = args?.folder;
resourceInputs["interfaceManagementProfile"] = args?.interfaceManagementProfile;
resourceInputs["ips"] = args?.ips;
resourceInputs["mtu"] = args?.mtu;
resourceInputs["name"] = args?.name;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["vlanTag"] = args?.vlanTag;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(VlanInterface.__pulumiType, name, resourceInputs, opts);
}
}
exports.VlanInterface = VlanInterface;
/** @internal */
VlanInterface.__pulumiType = 'scm:index/vlanInterface:VlanInterface';
//# sourceMappingURL=vlanInterface.js.map