getImage function

Future<GetImageResult> getImage(
  1. GetImageArgs args, {
  2. InvokeOptions? options,
})

Returns the specified image. args Arguments passed to this invoke. Arguments for getImage. options Invoke options controlling this call.

Implementation

Future<GetImageResult> getImage(
  GetImageArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:compute/alpha:getImage',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetImageResult.fromMap(result);
}