UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

109 lines 6.18 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.NatRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves a config item. */ class NatRule extends pulumi.CustomResource { /** * Get an existing NatRule 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 NatRule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of NatRule. 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'] === NatRule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["activeActiveDeviceBinding"] = state ? state.activeActiveDeviceBinding : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["destinationTranslation"] = state ? state.destinationTranslation : undefined; resourceInputs["destinations"] = state ? state.destinations : undefined; resourceInputs["device"] = state ? state.device : undefined; resourceInputs["disabled"] = state ? state.disabled : undefined; resourceInputs["dynamicDestinationTranslation"] = state ? state.dynamicDestinationTranslation : undefined; resourceInputs["folder"] = state ? state.folder : undefined; resourceInputs["froms"] = state ? state.froms : undefined; resourceInputs["groupTag"] = state ? state.groupTag : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["natType"] = state ? state.natType : undefined; resourceInputs["position"] = state ? state.position : undefined; resourceInputs["service"] = state ? state.service : undefined; resourceInputs["snippet"] = state ? state.snippet : undefined; resourceInputs["sourceTranslation"] = state ? state.sourceTranslation : undefined; resourceInputs["sources"] = state ? state.sources : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["target"] = state ? state.target : undefined; resourceInputs["tfid"] = state ? state.tfid : undefined; resourceInputs["toInterface"] = state ? state.toInterface : undefined; resourceInputs["tos"] = state ? state.tos : undefined; } else { const args = argsOrState; if ((!args || args.destinations === undefined) && !opts.urn) { throw new Error("Missing required property 'destinations'"); } if ((!args || args.froms === undefined) && !opts.urn) { throw new Error("Missing required property 'froms'"); } if ((!args || args.service === undefined) && !opts.urn) { throw new Error("Missing required property 'service'"); } if ((!args || args.sources === undefined) && !opts.urn) { throw new Error("Missing required property 'sources'"); } if ((!args || args.tos === undefined) && !opts.urn) { throw new Error("Missing required property 'tos'"); } resourceInputs["activeActiveDeviceBinding"] = args ? args.activeActiveDeviceBinding : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["destinationTranslation"] = args ? args.destinationTranslation : undefined; resourceInputs["destinations"] = args ? args.destinations : undefined; resourceInputs["device"] = args ? args.device : undefined; resourceInputs["disabled"] = args ? args.disabled : undefined; resourceInputs["dynamicDestinationTranslation"] = args ? args.dynamicDestinationTranslation : undefined; resourceInputs["folder"] = args ? args.folder : undefined; resourceInputs["froms"] = args ? args.froms : undefined; resourceInputs["groupTag"] = args ? args.groupTag : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["natType"] = args ? args.natType : undefined; resourceInputs["position"] = args ? args.position : undefined; resourceInputs["service"] = args ? args.service : undefined; resourceInputs["snippet"] = args ? args.snippet : undefined; resourceInputs["sourceTranslation"] = args ? args.sourceTranslation : undefined; resourceInputs["sources"] = args ? args.sources : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["target"] = args ? args.target : undefined; resourceInputs["toInterface"] = args ? args.toInterface : undefined; resourceInputs["tos"] = args ? args.tos : undefined; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(NatRule.__pulumiType, name, resourceInputs, opts); } } exports.NatRule = NatRule; /** @internal */ NatRule.__pulumiType = 'scm:index/natRule:NatRule'; //# sourceMappingURL=natRule.js.map