/
getSshKey.ts
45 lines (39 loc) · 1.24 KB
/
getSshKey.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// *** 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! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
import * as utilities from "./utilities";
export function getSshKey(args: GetSshKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetSshKeyResult> & GetSshKeyResult {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
const promise: Promise<GetSshKeyResult> = pulumi.runtime.invoke("digitalocean:index/getSshKey:getSshKey", {
"name": args.name,
}, opts);
return pulumi.utils.liftProperties(promise, opts);
}
/**
* A collection of arguments for invoking getSshKey.
*/
export interface GetSshKeyArgs {
/**
* The name of the ssh key.
*/
readonly name: string;
}
/**
* A collection of values returned by getSshKey.
*/
export interface GetSshKeyResult {
readonly fingerprint: string;
readonly name: string;
readonly publicKey: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}