UNPKG

@pulumi/consul

Version:

A Pulumi package for creating and managing consul resources.

92 lines 5.55 kB
"use strict"; // *** 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.ConfigEntryServiceDefaults = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage */ class ConfigEntryServiceDefaults extends pulumi.CustomResource { /** * Get an existing ConfigEntryServiceDefaults 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 ConfigEntryServiceDefaults(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ConfigEntryServiceDefaults. 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'] === ConfigEntryServiceDefaults.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["balanceInboundConnections"] = state ? state.balanceInboundConnections : undefined; resourceInputs["destinations"] = state ? state.destinations : undefined; resourceInputs["envoyExtensions"] = state ? state.envoyExtensions : undefined; resourceInputs["exposes"] = state ? state.exposes : undefined; resourceInputs["externalSni"] = state ? state.externalSni : undefined; resourceInputs["localConnectTimeoutMs"] = state ? state.localConnectTimeoutMs : undefined; resourceInputs["localRequestTimeoutMs"] = state ? state.localRequestTimeoutMs : undefined; resourceInputs["maxInboundConnections"] = state ? state.maxInboundConnections : undefined; resourceInputs["meshGateways"] = state ? state.meshGateways : undefined; resourceInputs["meta"] = state ? state.meta : undefined; resourceInputs["mode"] = state ? state.mode : undefined; resourceInputs["mutualTlsMode"] = state ? state.mutualTlsMode : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["namespace"] = state ? state.namespace : undefined; resourceInputs["partition"] = state ? state.partition : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["transparentProxies"] = state ? state.transparentProxies : undefined; resourceInputs["upstreamConfigs"] = state ? state.upstreamConfigs : undefined; } else { const args = argsOrState; if ((!args || args.exposes === undefined) && !opts.urn) { throw new Error("Missing required property 'exposes'"); } if ((!args || args.protocol === undefined) && !opts.urn) { throw new Error("Missing required property 'protocol'"); } resourceInputs["balanceInboundConnections"] = args ? args.balanceInboundConnections : undefined; resourceInputs["destinations"] = args ? args.destinations : undefined; resourceInputs["envoyExtensions"] = args ? args.envoyExtensions : undefined; resourceInputs["exposes"] = args ? args.exposes : undefined; resourceInputs["externalSni"] = args ? args.externalSni : undefined; resourceInputs["localConnectTimeoutMs"] = args ? args.localConnectTimeoutMs : undefined; resourceInputs["localRequestTimeoutMs"] = args ? args.localRequestTimeoutMs : undefined; resourceInputs["maxInboundConnections"] = args ? args.maxInboundConnections : undefined; resourceInputs["meshGateways"] = args ? args.meshGateways : undefined; resourceInputs["meta"] = args ? args.meta : undefined; resourceInputs["mode"] = args ? args.mode : undefined; resourceInputs["mutualTlsMode"] = args ? args.mutualTlsMode : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["namespace"] = args ? args.namespace : undefined; resourceInputs["partition"] = args ? args.partition : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["transparentProxies"] = args ? args.transparentProxies : undefined; resourceInputs["upstreamConfigs"] = args ? args.upstreamConfigs : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ConfigEntryServiceDefaults.__pulumiType, name, resourceInputs, opts); } } exports.ConfigEntryServiceDefaults = ConfigEntryServiceDefaults; /** @internal */ ConfigEntryServiceDefaults.__pulumiType = 'consul:index/configEntryServiceDefaults:ConfigEntryServiceDefaults'; //# sourceMappingURL=configEntryServiceDefaults.js.map