@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
36 lines • 1.21 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.getKeypairOutput = exports.getKeypair = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the details of a specific IEC keypair.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const kp1 = pulumi.output(huaweicloud.Iec.getKeypair({
* name: "iec-keypair-demo",
* }));
* ```
*/
function getKeypair(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Iec/getKeypair:getKeypair", {
"name": args.name,
}, opts);
}
exports.getKeypair = getKeypair;
function getKeypairOutput(args, opts) {
return pulumi.output(args).apply(a => getKeypair(a, opts));
}
exports.getKeypairOutput = getKeypairOutput;
//# sourceMappingURL=getKeypair.js.map