getCryptoKey function

Future<GetCryptoKeyResult> getCryptoKey(
  1. GetCryptoKeyArgs args, {
  2. InvokeOptions? options,
})

Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion. args Arguments passed to this invoke. Arguments for getCryptoKey. options Invoke options controlling this call.

Implementation

Future<GetCryptoKeyResult> getCryptoKey(
  GetCryptoKeyArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:cloudkms/v1:getCryptoKey',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetCryptoKeyResult.fromMap(result);
}