@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
68 lines • 2.29 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.getSecretOutput = exports.getSecret = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about Scaleway Secrets.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/).
*
* ## Examples
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.Secret("main", {description: "barr"});
* const mySecret = scaleway.getSecret({
* secretId: "11111111-1111-1111-1111-111111111111",
* });
* const byName = scaleway.getSecret({
* name: "your_secret_name",
* });
* ```
*/
function getSecret(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getSecret:getSecret", {
"name": args.name,
"organizationId": args.organizationId,
"projectId": args.projectId,
"region": args.region,
"secretId": args.secretId,
}, opts);
}
exports.getSecret = getSecret;
/**
* Gets information about Scaleway Secrets.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/).
*
* ## Examples
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.Secret("main", {description: "barr"});
* const mySecret = scaleway.getSecret({
* secretId: "11111111-1111-1111-1111-111111111111",
* });
* const byName = scaleway.getSecret({
* name: "your_secret_name",
* });
* ```
*/
function getSecretOutput(args, opts) {
return pulumi.output(args).apply((a) => getSecret(a, opts));
}
exports.getSecretOutput = getSecretOutput;
//# sourceMappingURL=getSecret.js.map