UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

89 lines 4.68 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.ContainerTechnology = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class ContainerTechnology extends pulumi.CustomResource { /** * Get an existing ContainerTechnology 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 ContainerTechnology(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ContainerTechnology. 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'] === ContainerTechnology.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["boshProcessManager"] = state ? state.boshProcessManager : undefined; resourceInputs["containerd"] = state ? state.containerd : undefined; resourceInputs["crio"] = state ? state.crio : undefined; resourceInputs["docker"] = state ? state.docker : undefined; resourceInputs["dockerWindows"] = state ? state.dockerWindows : undefined; resourceInputs["garden"] = state ? state.garden : undefined; resourceInputs["podman"] = state ? state.podman : undefined; resourceInputs["scope"] = state ? state.scope : undefined; resourceInputs["winc"] = state ? state.winc : undefined; } else { const args = argsOrState; if ((!args || args.boshProcessManager === undefined) && !opts.urn) { throw new Error("Missing required property 'boshProcessManager'"); } if ((!args || args.containerd === undefined) && !opts.urn) { throw new Error("Missing required property 'containerd'"); } if ((!args || args.crio === undefined) && !opts.urn) { throw new Error("Missing required property 'crio'"); } if ((!args || args.docker === undefined) && !opts.urn) { throw new Error("Missing required property 'docker'"); } if ((!args || args.dockerWindows === undefined) && !opts.urn) { throw new Error("Missing required property 'dockerWindows'"); } if ((!args || args.garden === undefined) && !opts.urn) { throw new Error("Missing required property 'garden'"); } if ((!args || args.podman === undefined) && !opts.urn) { throw new Error("Missing required property 'podman'"); } if ((!args || args.winc === undefined) && !opts.urn) { throw new Error("Missing required property 'winc'"); } resourceInputs["boshProcessManager"] = args ? args.boshProcessManager : undefined; resourceInputs["containerd"] = args ? args.containerd : undefined; resourceInputs["crio"] = args ? args.crio : undefined; resourceInputs["docker"] = args ? args.docker : undefined; resourceInputs["dockerWindows"] = args ? args.dockerWindows : undefined; resourceInputs["garden"] = args ? args.garden : undefined; resourceInputs["podman"] = args ? args.podman : undefined; resourceInputs["scope"] = args ? args.scope : undefined; resourceInputs["winc"] = args ? args.winc : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ContainerTechnology.__pulumiType, name, resourceInputs, opts); } } exports.ContainerTechnology = ContainerTechnology; /** @internal */ ContainerTechnology.__pulumiType = 'dynatrace:index/containerTechnology:ContainerTechnology'; //# sourceMappingURL=containerTechnology.js.map