@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
137 lines • 5.36 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.Layer3Subinterface = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Layer3Subinterface resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Creates a ethernet interface used as parent-interface for subsequent examples
* //
* const scmParentInterface = new scm.EthernetInterface("scm_parent_interface", {
* name: "$scm_parent_interface",
* comment: "Managed by Pulumi",
* folder: "ngfw-shared",
* layer3: {},
* });
* //
* // Creates a layer3 sub-interface with static ip address
* //
* const scmL3Subinterface = new scm.Layer3Subinterface("scm_l3_subinterface", {
* name: "$scm_parent_interface.100",
* comment: "Managed by Pulumi",
* folder: "ngfw-shared",
* tag: 100,
* parentInterface: "$scm_parent_interface",
* ips: [{
* name: "198.18.1.1/32",
* }],
* }, {
* dependsOn: [scmParentInterface],
* });
* const scmParentDhcpInterface = new scm.EthernetInterface("scm_parent_dhcp_interface", {
* name: "$scm_parent_dhcp_interface",
* comment: "Managed by Pulumi",
* folder: "All",
* layer3: {},
* });
* //
* // Creates a layer3 sub-interface with dhcp
* //
* const scmL3DhcpSubinterface = new scm.Layer3Subinterface("scm_l3_dhcp_subinterface", {
* name: "$scm_parent_dhcp_interface.100",
* comment: "Managed by Pulumi",
* folder: "All",
* tag: 100,
* parentInterface: "$scm_parent_dhcp_interface",
* dhcpClient: {
* enable: true,
* createDefaultRoute: true,
* defaultRouteMetric: 20,
* sendHostname: {
* enable: true,
* hostname: "client-vlan50-host",
* },
* },
* }, {
* dependsOn: [scmParentDhcpInterface],
* });
* ```
*/
class Layer3Subinterface extends pulumi.CustomResource {
/**
* Get an existing Layer3Subinterface 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 Layer3Subinterface(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Layer3Subinterface. 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'] === Layer3Subinterface.__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["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["parentInterface"] = state?.parentInterface;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tag"] = state?.tag;
resourceInputs["tfid"] = state?.tfid;
}
else {
const args = argsOrState;
resourceInputs["arps"] = args?.arps;
resourceInputs["comment"] = args?.comment;
resourceInputs["ddnsConfig"] = args?.ddnsConfig;
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["parentInterface"] = args?.parentInterface;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["tag"] = args?.tag;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Layer3Subinterface.__pulumiType, name, resourceInputs, opts);
}
}
exports.Layer3Subinterface = Layer3Subinterface;
/** @internal */
Layer3Subinterface.__pulumiType = 'scm:index/layer3Subinterface:Layer3Subinterface';
//# sourceMappingURL=layer3Subinterface.js.map