@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
48 lines • 2.99 kB
JavaScript
;
// *** 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.getFunctionOutput = exports.getFunction = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `scaleway.functions.Function` data source is used to retrieve information about a Serverless Function.
*
* Refer to the Serverless Functions [product documentation](https://www.scaleway.com/en/docs/serverless/functions/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/) for more information.
*
* For more information on the limitations of Serverless Functions, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
*/
/** @deprecated scaleway.index/getfunction.getFunction has been deprecated in favor of scaleway.functions/getfunction.getFunction */
function getFunction(args, opts) {
pulumi.log.warn("getFunction is deprecated: scaleway.index/getfunction.getFunction has been deprecated in favor of scaleway.functions/getfunction.getFunction");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getFunction:getFunction", {
"functionId": args.functionId,
"name": args.name,
"namespaceId": args.namespaceId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getFunction = getFunction;
/**
* The `scaleway.functions.Function` data source is used to retrieve information about a Serverless Function.
*
* Refer to the Serverless Functions [product documentation](https://www.scaleway.com/en/docs/serverless/functions/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/) for more information.
*
* For more information on the limitations of Serverless Functions, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
*/
/** @deprecated scaleway.index/getfunction.getFunction has been deprecated in favor of scaleway.functions/getfunction.getFunction */
function getFunctionOutput(args, opts) {
pulumi.log.warn("getFunction is deprecated: scaleway.index/getfunction.getFunction has been deprecated in favor of scaleway.functions/getfunction.getFunction");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getFunction:getFunction", {
"functionId": args.functionId,
"name": args.name,
"namespaceId": args.namespaceId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getFunctionOutput = getFunctionOutput;
//# sourceMappingURL=getFunction.js.map