published on Wednesday, Jun 24, 2026 by Pulumi
published on Wednesday, Jun 24, 2026 by Pulumi
ImportDataFile represents a user-uploaded data payload file containing infrastructure discovery data.
Example Usage
Migration Center Import Data File Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.migrationcenter.Source("default", {
location: "us-central1",
sourceId: "source-test",
type: "SOURCE_TYPE_CUSTOM",
});
const defaultImportJob = new gcp.migrationcenter.ImportJob("default", {
location: "us-central1",
importJobId: "import-job-test",
assetSource: _default.id,
});
const defaultImportDataFile = new gcp.migrationcenter.ImportDataFile("default", {
location: "us-central1",
importJob: defaultImportJob.importJobId,
importDataFileId: "import-data-file-test",
displayName: "Terraform integration test display",
format: "IMPORT_JOB_FORMAT_RVTOOLS_XLSX",
});
import pulumi
import pulumi_gcp as gcp
default = gcp.migrationcenter.Source("default",
location="us-central1",
source_id="source-test",
type="SOURCE_TYPE_CUSTOM")
default_import_job = gcp.migrationcenter.ImportJob("default",
location="us-central1",
import_job_id="import-job-test",
asset_source=default.id)
default_import_data_file = gcp.migrationcenter.ImportDataFile("default",
location="us-central1",
import_job=default_import_job.import_job_id,
import_data_file_id="import-data-file-test",
display_name="Terraform integration test display",
format="IMPORT_JOB_FORMAT_RVTOOLS_XLSX")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/migrationcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := migrationcenter.NewSource(ctx, "default", &migrationcenter.SourceArgs{
Location: pulumi.String("us-central1"),
SourceId: pulumi.String("source-test"),
Type: pulumi.String("SOURCE_TYPE_CUSTOM"),
})
if err != nil {
return err
}
defaultImportJob, err := migrationcenter.NewImportJob(ctx, "default", &migrationcenter.ImportJobArgs{
Location: pulumi.String("us-central1"),
ImportJobId: pulumi.String("import-job-test"),
AssetSource: _default.ID(),
})
if err != nil {
return err
}
_, err = migrationcenter.NewImportDataFile(ctx, "default", &migrationcenter.ImportDataFileArgs{
Location: pulumi.String("us-central1"),
ImportJob: defaultImportJob.ImportJobId,
ImportDataFileId: pulumi.String("import-data-file-test"),
DisplayName: pulumi.String("Terraform integration test display"),
Format: pulumi.String("IMPORT_JOB_FORMAT_RVTOOLS_XLSX"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.MigrationCenter.Source("default", new()
{
Location = "us-central1",
SourceId = "source-test",
Type = "SOURCE_TYPE_CUSTOM",
});
var defaultImportJob = new Gcp.MigrationCenter.ImportJob("default", new()
{
Location = "us-central1",
ImportJobId = "import-job-test",
AssetSource = @default.Id,
});
var defaultImportDataFile = new Gcp.MigrationCenter.ImportDataFile("default", new()
{
Location = "us-central1",
ImportJob = defaultImportJob.ImportJobId,
ImportDataFileId = "import-data-file-test",
DisplayName = "Terraform integration test display",
Format = "IMPORT_JOB_FORMAT_RVTOOLS_XLSX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.migrationcenter.Source;
import com.pulumi.gcp.migrationcenter.SourceArgs;
import com.pulumi.gcp.migrationcenter.ImportJob;
import com.pulumi.gcp.migrationcenter.ImportJobArgs;
import com.pulumi.gcp.migrationcenter.ImportDataFile;
import com.pulumi.gcp.migrationcenter.ImportDataFileArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Source("default", SourceArgs.builder()
.location("us-central1")
.sourceId("source-test")
.type("SOURCE_TYPE_CUSTOM")
.build());
var defaultImportJob = new ImportJob("defaultImportJob", ImportJobArgs.builder()
.location("us-central1")
.importJobId("import-job-test")
.assetSource(default_.id())
.build());
var defaultImportDataFile = new ImportDataFile("defaultImportDataFile", ImportDataFileArgs.builder()
.location("us-central1")
.importJob(defaultImportJob.importJobId())
.importDataFileId("import-data-file-test")
.displayName("Terraform integration test display")
.format("IMPORT_JOB_FORMAT_RVTOOLS_XLSX")
.build());
}
}
resources:
default:
type: gcp:migrationcenter:Source
properties:
location: us-central1
sourceId: source-test
type: SOURCE_TYPE_CUSTOM
defaultImportJob:
type: gcp:migrationcenter:ImportJob
name: default
properties:
location: us-central1
importJobId: import-job-test
assetSource: ${default.id}
defaultImportDataFile:
type: gcp:migrationcenter:ImportDataFile
name: default
properties:
location: us-central1
importJob: ${defaultImportJob.importJobId}
importDataFileId: import-data-file-test
displayName: Terraform integration test display
format: IMPORT_JOB_FORMAT_RVTOOLS_XLSX
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_migrationcenter_source" "default" {
location = "us-central1"
source_id = "source-test"
type = "SOURCE_TYPE_CUSTOM"
}
resource "gcp_migrationcenter_importjob" "default" {
location = "us-central1"
import_job_id = "import-job-test"
asset_source = gcp_migrationcenter_source.default.id
}
resource "gcp_migrationcenter_importdatafile" "default" {
location = "us-central1"
import_job = gcp_migrationcenter_importjob.default.import_job_id
import_data_file_id = "import-data-file-test"
display_name = "Terraform integration test display"
format = "IMPORT_JOB_FORMAT_RVTOOLS_XLSX"
}
Create ImportDataFile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImportDataFile(name: string, args: ImportDataFileArgs, opts?: CustomResourceOptions);@overload
def ImportDataFile(resource_name: str,
args: ImportDataFileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ImportDataFile(resource_name: str,
opts: Optional[ResourceOptions] = None,
format: Optional[str] = None,
import_data_file_id: Optional[str] = None,
import_job: Optional[str] = None,
location: Optional[str] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
project: Optional[str] = None)func NewImportDataFile(ctx *Context, name string, args ImportDataFileArgs, opts ...ResourceOption) (*ImportDataFile, error)public ImportDataFile(string name, ImportDataFileArgs args, CustomResourceOptions? opts = null)
public ImportDataFile(String name, ImportDataFileArgs args)
public ImportDataFile(String name, ImportDataFileArgs args, CustomResourceOptions options)
type: gcp:migrationcenter:ImportDataFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_migrationcenter_importdatafile" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ImportDataFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ImportDataFileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ImportDataFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImportDataFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImportDataFileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var importDataFileResource = new Gcp.MigrationCenter.ImportDataFile("importDataFileResource", new()
{
Format = "string",
ImportDataFileId = "string",
ImportJob = "string",
Location = "string",
DeletionPolicy = "string",
DisplayName = "string",
Project = "string",
});
example, err := migrationcenter.NewImportDataFile(ctx, "importDataFileResource", &migrationcenter.ImportDataFileArgs{
Format: pulumi.String("string"),
ImportDataFileId: pulumi.String("string"),
ImportJob: pulumi.String("string"),
Location: pulumi.String("string"),
DeletionPolicy: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "gcp_migrationcenter_importdatafile" "importDataFileResource" {
format = "string"
import_data_file_id = "string"
import_job = "string"
location = "string"
deletion_policy = "string"
display_name = "string"
project = "string"
}
var importDataFileResource = new ImportDataFile("importDataFileResource", ImportDataFileArgs.builder()
.format("string")
.importDataFileId("string")
.importJob("string")
.location("string")
.deletionPolicy("string")
.displayName("string")
.project("string")
.build());
import_data_file_resource = gcp.migrationcenter.ImportDataFile("importDataFileResource",
format="string",
import_data_file_id="string",
import_job="string",
location="string",
deletion_policy="string",
display_name="string",
project="string")
const importDataFileResource = new gcp.migrationcenter.ImportDataFile("importDataFileResource", {
format: "string",
importDataFileId: "string",
importJob: "string",
location: "string",
deletionPolicy: "string",
displayName: "string",
project: "string",
});
type: gcp:migrationcenter:ImportDataFile
properties:
deletionPolicy: string
displayName: string
format: string
importDataFileId: string
importJob: string
location: string
project: string
ImportDataFile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ImportDataFile resource accepts the following input properties:
- Format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- Import
Data stringFile Id - The ID of the new data file.
- Import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- Import
Data stringFile Id - The ID of the new data file.
- Import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import_
data_ stringfile_ id - The ID of the new data file.
- import_
job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name string - User-friendly display name. Maximum length is 63 characters.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- format String
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data StringFile Id - The ID of the new data file.
- import
Job String - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - User-friendly display name. Maximum length is 63 characters.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data stringFile Id - The ID of the new data file.
- import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name string - User-friendly display name. Maximum length is 63 characters.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- format str
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import_
data_ strfile_ id - The ID of the new data file.
- import_
job str - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location str
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name str - User-friendly display name. Maximum length is 63 characters.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- format String
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data StringFile Id - The ID of the new data file.
- import
Job String - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - User-friendly display name. Maximum length is 63 characters.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImportDataFile resource produces the following output properties:
- Create
Time string - The timestamp when the file was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the file.
- State string
- The state of the import data file. Possible values: CREATING ACTIVE
- Upload
File List<ImportInfos Data File Upload File Info> - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- Create
Time string - The timestamp when the file was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the file.
- State string
- The state of the import data file. Possible values: CREATING ACTIVE
- Upload
File []ImportInfos Data File Upload File Info - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create_
time string - The timestamp when the file was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the file.
- state string
- The state of the import data file. Possible values: CREATING ACTIVE
- upload_
file_ list(object)infos - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time String - The timestamp when the file was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the file.
- state String
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File List<ImportInfos Data File Upload File Info> - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time string - The timestamp when the file was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the file.
- state string
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File ImportInfos Data File Upload File Info[] - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create_
time str - The timestamp when the file was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the file.
- state str
- The state of the import data file. Possible values: CREATING ACTIVE
- upload_
file_ Sequence[Importinfos Data File Upload File Info] - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time String - The timestamp when the file was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the file.
- state String
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File List<Property Map>Infos - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
Look up Existing ImportDataFile Resource
Get an existing ImportDataFile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ImportDataFileState, opts?: CustomResourceOptions): ImportDataFile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
format: Optional[str] = None,
import_data_file_id: Optional[str] = None,
import_job: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
state: Optional[str] = None,
upload_file_infos: Optional[Sequence[ImportDataFileUploadFileInfoArgs]] = None) -> ImportDataFilefunc GetImportDataFile(ctx *Context, name string, id IDInput, state *ImportDataFileState, opts ...ResourceOption) (*ImportDataFile, error)public static ImportDataFile Get(string name, Input<string> id, ImportDataFileState? state, CustomResourceOptions? opts = null)public static ImportDataFile get(String name, Output<String> id, ImportDataFileState state, CustomResourceOptions options)resources: _: type: gcp:migrationcenter:ImportDataFile get: id: ${id}import {
to = gcp_migrationcenter_importdatafile.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The timestamp when the file was created.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- Import
Data stringFile Id - The ID of the new data file.
- Import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Name string
- The name of the file.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- State string
- The state of the import data file. Possible values: CREATING ACTIVE
- Upload
File List<ImportInfos Data File Upload File Info> - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- Create
Time string - The timestamp when the file was created.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- Import
Data stringFile Id - The ID of the new data file.
- Import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Name string
- The name of the file.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- State string
- The state of the import data file. Possible values: CREATING ACTIVE
- Upload
File []ImportInfos Data File Upload File Info Args - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create_
time string - The timestamp when the file was created.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name string - User-friendly display name. Maximum length is 63 characters.
- format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import_
data_ stringfile_ id - The ID of the new data file.
- import_
job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name string
- The name of the file.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state string
- The state of the import data file. Possible values: CREATING ACTIVE
- upload_
file_ list(object)infos - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time String - The timestamp when the file was created.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - User-friendly display name. Maximum length is 63 characters.
- format String
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data StringFile Id - The ID of the new data file.
- import
Job String - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name String
- The name of the file.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state String
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File List<ImportInfos Data File Upload File Info> - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time string - The timestamp when the file was created.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name string - User-friendly display name. Maximum length is 63 characters.
- format string
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data stringFile Id - The ID of the new data file.
- import
Job string - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name string
- The name of the file.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state string
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File ImportInfos Data File Upload File Info[] - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create_
time str - The timestamp when the file was created.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name str - User-friendly display name. Maximum length is 63 characters.
- format str
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import_
data_ strfile_ id - The ID of the new data file.
- import_
job str - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location str
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name str
- The name of the file.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state str
- The state of the import data file. Possible values: CREATING ACTIVE
- upload_
file_ Sequence[Importinfos Data File Upload File Info Args] - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
- create
Time String - The timestamp when the file was created.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - User-friendly display name. Maximum length is 63 characters.
- format String
- Possible values: IMPORT_JOB_FORMAT_RVTOOLS_XLSX IMPORT_JOB_FORMAT_RVTOOLS_CSV IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV IMPORT_JOB_FORMAT_STRATOZONE_CSV IMPORT_JOB_FORMAT_DATABASE_ZIP
- import
Data StringFile Id - The ID of the new data file.
- import
Job String - Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name String
- The name of the file.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state String
- The state of the import data file. Possible values: CREATING ACTIVE
- upload
File List<Property Map>Infos - A resource that contains a URI to which a data file can be uploaded. Structure is documented below.
Supporting Types
ImportDataFileUploadFileInfo, ImportDataFileUploadFileInfoArgs
- Headers Dictionary<string, string>
- (Output) The headers that were used to sign the URI.
- Signed
Uri string - (Output) Upload URI for the file.
- Uri
Expiration stringTime - (Output) Expiration time of the upload URI.
- Headers map[string]string
- (Output) The headers that were used to sign the URI.
- Signed
Uri string - (Output) Upload URI for the file.
- Uri
Expiration stringTime - (Output) Expiration time of the upload URI.
- headers map(string)
- (Output) The headers that were used to sign the URI.
- signed_
uri string - (Output) Upload URI for the file.
- uri_
expiration_ stringtime - (Output) Expiration time of the upload URI.
- headers Map<String,String>
- (Output) The headers that were used to sign the URI.
- signed
Uri String - (Output) Upload URI for the file.
- uri
Expiration StringTime - (Output) Expiration time of the upload URI.
- headers {[key: string]: string}
- (Output) The headers that were used to sign the URI.
- signed
Uri string - (Output) Upload URI for the file.
- uri
Expiration stringTime - (Output) Expiration time of the upload URI.
- headers Mapping[str, str]
- (Output) The headers that were used to sign the URI.
- signed_
uri str - (Output) Upload URI for the file.
- uri_
expiration_ strtime - (Output) Expiration time of the upload URI.
- headers Map<String>
- (Output) The headers that were used to sign the URI.
- signed
Uri String - (Output) Upload URI for the file.
- uri
Expiration StringTime - (Output) Expiration time of the upload URI.
Import
ImportDataFile can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/importJobs/{{import_job}}/importDataFiles/{{import_data_file_id}}{{project}}/{{location}}/{{import_job}}/{{import_data_file_id}}{{location}}/{{import_job}}/{{import_data_file_id}}
When using the pulumi import command, ImportDataFile can be imported using one of the formats above. For example:
$ pulumi import gcp:migrationcenter/importDataFile:ImportDataFile default projects/{{project}}/locations/{{location}}/importJobs/{{import_job}}/importDataFiles/{{import_data_file_id}}
$ pulumi import gcp:migrationcenter/importDataFile:ImportDataFile default {{project}}/{{location}}/{{import_job}}/{{import_data_file_id}}
$ pulumi import gcp:migrationcenter/importDataFile:ImportDataFile default {{location}}/{{import_job}}/{{import_data_file_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Jun 24, 2026 by Pulumi