@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
69 lines • 2.62 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.macsOutput = exports.macs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of kms macs
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const mac = volcengine.kms.getMacs({
* keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
* macAlgorithm: "HMAC_SHA_256",
* message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
* });
* const verify = volcengine.kms.getMacVerifications({
* keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
* mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
* macAlgorithm: "HMAC_SHA_256",
* message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
* });
* ```
*/
/** @deprecated volcengine.kms.Macs has been deprecated in favor of volcengine.kms.getMacs */
function macs(args, opts) {
pulumi.log.warn("macs is deprecated: volcengine.kms.Macs has been deprecated in favor of volcengine.kms.getMacs");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:kms/macs:Macs", {
"keyId": args.keyId,
"keyName": args.keyName,
"keyringName": args.keyringName,
"macAlgorithm": args.macAlgorithm,
"message": args.message,
"outputFile": args.outputFile,
}, opts);
}
exports.macs = macs;
/**
* Use this data source to query detailed information of kms macs
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const mac = volcengine.kms.getMacs({
* keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
* macAlgorithm: "HMAC_SHA_256",
* message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
* });
* const verify = volcengine.kms.getMacVerifications({
* keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
* mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
* macAlgorithm: "HMAC_SHA_256",
* message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
* });
* ```
*/
/** @deprecated volcengine.kms.Macs has been deprecated in favor of volcengine.kms.getMacs */
function macsOutput(args, opts) {
return pulumi.output(args).apply((a) => macs(a, opts));
}
exports.macsOutput = macsOutput;
//# sourceMappingURL=macs.js.map