@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
49 lines • 1.67 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.getKeyOutput = exports.getKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an available HuaweiCloud KMS key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const key1 = pulumi.output(huaweicloud.Dew.getKey({
* defaultKeyFlag: "0",
* domainId: "b168fe00ff56492495a7d22974df2d0b",
* keyAlias: "test_key",
* keyDescription: "test key description",
* keyId: "af650527-a0ff-4527-aef3-c493df1f3012",
* keyState: "2",
* }));
* ```
*/
function getKey(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Dew/getKey:getKey", {
"defaultKeyFlag": args.defaultKeyFlag,
"domainId": args.domainId,
"enterpriseProjectId": args.enterpriseProjectId,
"keyAlias": args.keyAlias,
"keyDescription": args.keyDescription,
"keyId": args.keyId,
"keyState": args.keyState,
"region": args.region,
}, opts);
}
exports.getKey = getKey;
function getKeyOutput(args, opts) {
return pulumi.output(args).apply(a => getKey(a, opts));
}
exports.getKeyOutput = getKeyOutput;
//# sourceMappingURL=getKey.js.map