UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

62 lines 2.41 kB
"use strict"; // *** 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.dataKeysOutput = exports.dataKeys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of kms data keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const dataKey = volcengine.kms.getDataKeys({ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e", * numberOfBytes: 1024, * }); * const default = dataKey.then(dataKey => volcengine.kms.getPlaintexts({ * ciphertextBlob: dataKey.dataKeyInfos?.[0]?.ciphertextBlob, * })); * ``` */ /** @deprecated volcengine.kms.DataKeys has been deprecated in favor of volcengine.kms.getDataKeys */ function dataKeys(args, opts) { pulumi.log.warn("dataKeys is deprecated: volcengine.kms.DataKeys has been deprecated in favor of volcengine.kms.getDataKeys"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:kms/dataKeys:DataKeys", { "encryptionContext": args.encryptionContext, "keyId": args.keyId, "keyName": args.keyName, "keyringName": args.keyringName, "numberOfBytes": args.numberOfBytes, "outputFile": args.outputFile, }, opts); } exports.dataKeys = dataKeys; /** * Use this data source to query detailed information of kms data keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const dataKey = volcengine.kms.getDataKeys({ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e", * numberOfBytes: 1024, * }); * const default = dataKey.then(dataKey => volcengine.kms.getPlaintexts({ * ciphertextBlob: dataKey.dataKeyInfos?.[0]?.ciphertextBlob, * })); * ``` */ /** @deprecated volcengine.kms.DataKeys has been deprecated in favor of volcengine.kms.getDataKeys */ function dataKeysOutput(args, opts) { return pulumi.output(args).apply((a) => dataKeys(a, opts)); } exports.dataKeysOutput = dataKeysOutput; //# sourceMappingURL=dataKeys.js.map