UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

60 lines 2.15 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getCustomKeyStoreOutput = exports.getCustomKeyStore = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the metadata KMS custom key store. * By using this data source, you can reference KMS custom key store * without having to hard code the ID as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const keystore = aws.kms.getCustomKeyStore({ * customKeyStoreName: "my_cloudhsm", * }); * ``` */ function getCustomKeyStore(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:kms/getCustomKeyStore:getCustomKeyStore", { "customKeyStoreId": args.customKeyStoreId, "customKeyStoreName": args.customKeyStoreName, "region": args.region, }, opts); } exports.getCustomKeyStore = getCustomKeyStore; /** * Use this data source to get the metadata KMS custom key store. * By using this data source, you can reference KMS custom key store * without having to hard code the ID as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const keystore = aws.kms.getCustomKeyStore({ * customKeyStoreName: "my_cloudhsm", * }); * ``` */ function getCustomKeyStoreOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:kms/getCustomKeyStore:getCustomKeyStore", { "customKeyStoreId": args.customKeyStoreId, "customKeyStoreName": args.customKeyStoreName, "region": args.region, }, opts); } exports.getCustomKeyStoreOutput = getCustomKeyStoreOutput; //# sourceMappingURL=getCustomKeyStore.js.map