get Custom Key Store
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
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.KmsFunctions;
import com.pulumi.aws.kms.inputs.GetCustomKeyStoreArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var keystore = KmsFunctions.getCustomKeyStore(GetCustomKeyStoreArgs.builder()
.customKeyStoreName("my_cloudhsm")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getCustomKeyStore.
Parameters
argument
A collection of arguments for invoking getCustomKeyStore.
suspend fun getCustomKeyStore(customKeyStoreId: String? = null, customKeyStoreName: String? = null): GetCustomKeyStoreResult
Return
A collection of values returned by getCustomKeyStore.
Parameters
custom Key Store Id
The ID for the custom key store.
custom Key Store Name
The user-specified friendly name for the custom key store.
See also
suspend fun getCustomKeyStore(argument: suspend GetCustomKeyStorePlainArgsBuilder.() -> Unit): GetCustomKeyStoreResult
Return
A collection of values returned by getCustomKeyStore.
Parameters
argument
Builder for com.pulumi.aws.kms.kotlin.inputs.GetCustomKeyStorePlainArgs.