getMachineImage function

Future<GetMachineImageResult> getMachineImage(
  1. GetMachineImageArgs args, {
  2. InvokeOptions? options,
})

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

Implementation

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