getHistory function

Future<GetHistoryResult> getHistory(
  1. GetHistoryArgs args, {
  2. InvokeOptions? options,
})

Gets a History. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History does not exist args Arguments passed to this invoke. Arguments for getHistory. options Invoke options controlling this call.

Implementation

Future<GetHistoryResult> getHistory(
  GetHistoryArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:toolresults/v1beta3:getHistory',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetHistoryResult.fromMap(result);
}