UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

109 lines 3.57 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.keysOutput = exports.keys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of kms keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.kms.getKeys({ * creationDateRanges: [ * "2025-06-01 19:48:06", * "2025-06-04 19:48:06", * ], * descriptions: ["tf-test"], * keyNames: [ * "mrk-tf-key-mod", * "mrk-tf-key", * ], * keySpecs: ["SYMMETRIC_256"], * keyStates: ["Enable"], * keyUsages: ["ENCRYPT_DECRYPT"], * keyringId: "7a358829-bd5a-4763-ba77-7500ecxxxxxx", * origins: ["CloudKMS"], * protectionLevels: ["SOFTWARE"], * rotateStates: ["Enable"], * tags: [{ * key: "tf-k1", * values: ["tf-v1"], * }], * updateDateRanges: [ * "2025-06-01 19:48:06", * "2025-06-04 19:48:06", * ], * }); * ``` */ /** @deprecated volcengine.kms.Keys has been deprecated in favor of volcengine.kms.getKeys */ function keys(args, opts) { pulumi.log.warn("keys is deprecated: volcengine.kms.Keys has been deprecated in favor of volcengine.kms.getKeys"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:kms/keys:Keys", { "creationDateRanges": args.creationDateRanges, "descriptions": args.descriptions, "keyNames": args.keyNames, "keySpecs": args.keySpecs, "keyStates": args.keyStates, "keyUsages": args.keyUsages, "keyringId": args.keyringId, "keyringName": args.keyringName, "nameRegex": args.nameRegex, "origins": args.origins, "outputFile": args.outputFile, "protectionLevels": args.protectionLevels, "rotateStates": args.rotateStates, "tags": args.tags, "updateDateRanges": args.updateDateRanges, }, opts); } exports.keys = keys; /** * Use this data source to query detailed information of kms keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.kms.getKeys({ * creationDateRanges: [ * "2025-06-01 19:48:06", * "2025-06-04 19:48:06", * ], * descriptions: ["tf-test"], * keyNames: [ * "mrk-tf-key-mod", * "mrk-tf-key", * ], * keySpecs: ["SYMMETRIC_256"], * keyStates: ["Enable"], * keyUsages: ["ENCRYPT_DECRYPT"], * keyringId: "7a358829-bd5a-4763-ba77-7500ecxxxxxx", * origins: ["CloudKMS"], * protectionLevels: ["SOFTWARE"], * rotateStates: ["Enable"], * tags: [{ * key: "tf-k1", * values: ["tf-v1"], * }], * updateDateRanges: [ * "2025-06-01 19:48:06", * "2025-06-04 19:48:06", * ], * }); * ``` */ /** @deprecated volcengine.kms.Keys has been deprecated in favor of volcengine.kms.getKeys */ function keysOutput(args, opts) { return pulumi.output(args).apply((a) => keys(a, opts)); } exports.keysOutput = keysOutput; //# sourceMappingURL=keys.js.map