UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

76 lines 3.67 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.getCockpitSourceOutput = exports.getCockpitSource = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `scaleway.observability.Source` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit. * * Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information. * * ## Example Usage * * ### Retrieve a specific data source by ID * * The following example retrieves a Cockpit data source by its unique ID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const example = scaleway.observability.getSource({ * id: "fr-par/11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource */ function getCockpitSource(args, opts) { pulumi.log.warn("getCockpitSource is deprecated: scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getCockpitSource:getCockpitSource", { "id": args.id, "name": args.name, "origin": args.origin, "projectId": args.projectId, "type": args.type, }, opts); } exports.getCockpitSource = getCockpitSource; /** * The `scaleway.observability.Source` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit. * * Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information. * * ## Example Usage * * ### Retrieve a specific data source by ID * * The following example retrieves a Cockpit data source by its unique ID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const example = scaleway.observability.getSource({ * id: "fr-par/11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource */ function getCockpitSourceOutput(args, opts) { pulumi.log.warn("getCockpitSource is deprecated: scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getCockpitSource:getCockpitSource", { "id": args.id, "name": args.name, "origin": args.origin, "projectId": args.projectId, "type": args.type, }, opts); } exports.getCockpitSourceOutput = getCockpitSourceOutput; //# sourceMappingURL=getCockpitSource.js.map