@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
58 lines • 1.97 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserSshKeyOutput = exports.getUserSshKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about a SSH public key associated with the specified IAM user.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.iam.getUserSshKey({
* encoding: "SSH",
* sshPublicKeyId: "APKARUZ32GUTKIGARLXE",
* username: "test-user",
* });
* ```
*/
function getUserSshKey(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:iam/getUserSshKey:getUserSshKey", {
"encoding": args.encoding,
"sshPublicKeyId": args.sshPublicKeyId,
"username": args.username,
}, opts);
}
exports.getUserSshKey = getUserSshKey;
/**
* Use this data source to get information about a SSH public key associated with the specified IAM user.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.iam.getUserSshKey({
* encoding: "SSH",
* sshPublicKeyId: "APKARUZ32GUTKIGARLXE",
* username: "test-user",
* });
* ```
*/
function getUserSshKeyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:iam/getUserSshKey:getUserSshKey", {
"encoding": args.encoding,
"sshPublicKeyId": args.sshPublicKeyId,
"username": args.username,
}, opts);
}
exports.getUserSshKeyOutput = getUserSshKeyOutput;
//# sourceMappingURL=getUserSshKey.js.map
;