text: "use strict";
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
  Object.defineProperty(exports, "__esModule", { value: true });
  const pulumi = require("@pulumi/pulumi");
  const utilities = require("./utilities");
  /**
   * `mongodbatlas..CloudProviderSnapshotRestoreJob` provides a Cloud Provider Snapshot Restore Job entry datasource. Gets all cloud provider snapshot restore jobs for the specified cluster.
   *
   * > **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
   *
   * ## Example Usage
   *
   * First create a snapshot of the desired cluster. Then request that snapshot be restored in an automated fashion to the designated cluster and project.
   *
   * ```typescript
   * import * as pulumi from "@pulumi/pulumi";
   * import * as mongodbatlas from "@pulumi/mongodbatlas";
   *
   * const testCloudProviderSnapshot = new mongodbatlas.CloudProviderSnapshot("test", {
   *     clusterName: "MyCluster",
   *     description: "MyDescription",
   *     projectId: "5cf5a45a9ccf6400e60981b6",
   *     retentionInDays: 1,
   * });
   * const testMongodbatlasCloudProviderSnapshotRestoreJob = new mongodbatlas.CloudProviderSnapshotRestoreJob("test", {
   *     clusterName: "MyCluster",
   *     deliveryType: {
   *         automated: true,
   *         target_cluster_name: "MyCluster",
   *         target_project_id: "5cf5a45a9ccf6400e60981b6",
   *     },
   *     projectId: "5cf5a45a9ccf6400e60981b6",
   *     snapshotId: testCloudProviderSnapshot.id,
   * });
   * const testCloudProviderSnapshotRestoreJob = pulumi.all([testMongodbatlasCloudProviderSnapshotRestoreJob.clusterName, testMongodbatlasCloudProviderSnapshotRestoreJob.id, testMongodbatlasCloudProviderSnapshotRestoreJob.projectId]).apply(([clusterName, id, projectId]) => mongodbatlas.getCloudProviderSnapshotRestoreJob({
   *     clusterName: clusterName,
   *     jobId: id,
   *     projectId: projectId,
   * }));
   * ```
   *
   * > This content is derived from https://github.com/terraform-providers/terraform-provider-mongodbatlas/blob/master/website/docs/d/cloud_provider_snapshot_restore_job.html.markdown.
   */
  function getCloudProviderSnapshotRestoreJob(args, opts) {
      if (!opts) {
          opts = {};
      }
      if (!opts.version) {
          opts.version = utilities.getVersion();
      }
      const promise = pulumi.runtime.invoke("mongodbatlas:index/getCloudProviderSnapshotRestoreJob:getCloudProviderSnapshotRestoreJob", {
          "clusterName": args.clusterName,
          "jobId": args.jobId,
          "projectId": args.projectId,
      }, opts);
      return pulumi.utils.liftProperties(promise, opts);
  }
  exports.getCloudProviderSnapshotRestoreJob = getCloudProviderSnapshotRestoreJob;
  //# sourceMappingURL=getCloudProviderSnapshotRestoreJob.js.map