getTagKey function

Future<GetTagKeyResult> getTagKey(
  1. GetTagKeyArgs args, {
  2. InvokeOptions? options,
})

Retrieves a TagKey. This method will return PERMISSION_DENIED if the key does not exist or the user does not have permission to view it. args Arguments passed to this invoke. Arguments for getTagKey. options Invoke options controlling this call.

Implementation

Future<GetTagKeyResult> getTagKey(
  GetTagKeyArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:cloudresourcemanager/v3:getTagKey',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetTagKeyResult.fromMap(result);
}