@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
49 lines • 1.65 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.getAccountSshKeyOutput = exports.getAccountSshKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get SSH key information based on its ID or name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myKey = scaleway.getAccountSshKey({
* sshKeyId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
function getAccountSshKey(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getAccountSshKey:getAccountSshKey", {
"name": args.name,
"sshKeyId": args.sshKeyId,
}, opts);
}
exports.getAccountSshKey = getAccountSshKey;
/**
* Use this data source to get SSH key information based on its ID or name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myKey = scaleway.getAccountSshKey({
* sshKeyId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
function getAccountSshKeyOutput(args, opts) {
return pulumi.output(args).apply((a) => getAccountSshKey(a, opts));
}
exports.getAccountSshKeyOutput = getAccountSshKeyOutput;
//# sourceMappingURL=getAccountSshKey.js.map