@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
58 lines • 2.64 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.getDatabaseAclOutput = exports.getDatabaseAcl = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about the Database Instance network Access Control List.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
* const myAcl = scaleway.databases.getAcl({
* instanceId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getdatabaseacl.getDatabaseAcl has been deprecated in favor of scaleway.databases/getacl.getAcl */
function getDatabaseAcl(args, opts) {
pulumi.log.warn("getDatabaseAcl is deprecated: scaleway.index/getdatabaseacl.getDatabaseAcl has been deprecated in favor of scaleway.databases/getacl.getAcl");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getDatabaseAcl:getDatabaseAcl", {
"instanceId": args.instanceId,
"region": args.region,
}, opts);
}
exports.getDatabaseAcl = getDatabaseAcl;
/**
* Gets information about the Database Instance network Access Control List.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
* const myAcl = scaleway.databases.getAcl({
* instanceId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getdatabaseacl.getDatabaseAcl has been deprecated in favor of scaleway.databases/getacl.getAcl */
function getDatabaseAclOutput(args, opts) {
pulumi.log.warn("getDatabaseAcl is deprecated: scaleway.index/getdatabaseacl.getDatabaseAcl has been deprecated in favor of scaleway.databases/getacl.getAcl");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getDatabaseAcl:getDatabaseAcl", {
"instanceId": args.instanceId,
"region": args.region,
}, opts);
}
exports.getDatabaseAclOutput = getDatabaseAclOutput;
//# sourceMappingURL=getDatabaseAcl.js.map