getCryptoKey function
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);
}