getJob function

Future<GetJobResult> getJob(
  1. GetJobArgs args, {
  2. InvokeOptions? options,
})

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. args Arguments passed to this invoke. Arguments for getJob. options Invoke options controlling this call.

Implementation

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