UNPKG

@rugal/pulumi-istio

Version:
63 lines 2.63 kB
"use strict"; // *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Sidecar = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); class Sidecar extends pulumi.CustomResource { /** * Create a Sidecar resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let inputs = {}; opts = opts || {}; if (!opts.id) { inputs["apiVersion"] = "networking.istio.io/v1alpha3"; inputs["kind"] = "Sidecar"; inputs["metadata"] = args ? args.metadata : undefined; inputs["spec"] = args ? args.spec : undefined; inputs["status"] = args ? args.status : undefined; } else { inputs["apiVersion"] = undefined /*out*/; inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } if (!opts.version) { opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() }); } super(Sidecar.__pulumiType, name, inputs, opts); } /** * Get an existing Sidecar 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new Sidecar(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Sidecar. 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'] === Sidecar.__pulumiType; } } exports.Sidecar = Sidecar; /** @internal */ Sidecar.__pulumiType = 'kubernetes:networking.istio.io/v1alpha3:Sidecar'; //# sourceMappingURL=sidecar.js.map