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

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());
}
}

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

customKeyStoreId

The ID for the custom key store.

customKeyStoreName

The user-specified friendly name for the custom key store.

See also


Return

A collection of values returned by getCustomKeyStore.

Parameters

argument

Builder for com.pulumi.aws.kms.kotlin.inputs.GetCustomKeyStorePlainArgs.

See also