Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.migrationcenter/v1.ImportDataFile
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates an import data file. Auto-naming is currently not supported for this resource.
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[ImportDataFileFormat] = None,
                   import_data_file_id: Optional[str] = None,
                   import_job_id: Optional[str] = None,
                   display_name: Optional[str] = None,
                   location: Optional[str] = None,
                   project: Optional[str] = None,
                   request_id: Optional[str] = None,
                   upload_file_info: Optional[UploadFileInfoArgs] = 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: google-native:migrationcenter/v1:ImportDataFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
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 GoogleNative.MigrationCenter.V1.ImportDataFile("importDataFileResource", new()
{
    Format = GoogleNative.MigrationCenter.V1.ImportDataFileFormat.ImportJobFormatUnspecified,
    ImportDataFileId = "string",
    ImportJobId = "string",
    DisplayName = "string",
    Location = "string",
    Project = "string",
    RequestId = "string",
    UploadFileInfo = null,
});
example, err := migrationcenter.NewImportDataFile(ctx, "importDataFileResource", &migrationcenter.ImportDataFileArgs{
	Format:           migrationcenter.ImportDataFileFormatImportJobFormatUnspecified,
	ImportDataFileId: pulumi.String("string"),
	ImportJobId:      pulumi.String("string"),
	DisplayName:      pulumi.String("string"),
	Location:         pulumi.String("string"),
	Project:          pulumi.String("string"),
	RequestId:        pulumi.String("string"),
	UploadFileInfo:   &migrationcenter.UploadFileInfoArgs{},
})
var importDataFileResource = new ImportDataFile("importDataFileResource", ImportDataFileArgs.builder()
    .format("IMPORT_JOB_FORMAT_UNSPECIFIED")
    .importDataFileId("string")
    .importJobId("string")
    .displayName("string")
    .location("string")
    .project("string")
    .requestId("string")
    .uploadFileInfo()
    .build());
import_data_file_resource = google_native.migrationcenter.v1.ImportDataFile("importDataFileResource",
    format=google_native.migrationcenter.v1.ImportDataFileFormat.IMPORT_JOB_FORMAT_UNSPECIFIED,
    import_data_file_id="string",
    import_job_id="string",
    display_name="string",
    location="string",
    project="string",
    request_id="string",
    upload_file_info={})
const importDataFileResource = new google_native.migrationcenter.v1.ImportDataFile("importDataFileResource", {
    format: google_native.migrationcenter.v1.ImportDataFileFormat.ImportJobFormatUnspecified,
    importDataFileId: "string",
    importJobId: "string",
    displayName: "string",
    location: "string",
    project: "string",
    requestId: "string",
    uploadFileInfo: {},
});
type: google-native:migrationcenter/v1:ImportDataFile
properties:
    displayName: string
    format: IMPORT_JOB_FORMAT_UNSPECIFIED
    importDataFileId: string
    importJobId: string
    location: string
    project: string
    requestId: string
    uploadFileInfo: {}
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
Pulumi.Google Native. Migration Center. V1. Import Data File Format 
- The payload format.
- ImportData stringFile Id 
- Required. The ID of the new data file.
- ImportJob stringId 
- DisplayName string
- User-friendly display name. Maximum length is 63 characters.
- Location string
- Project string
- RequestId string
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- UploadFile Pulumi.Info Google Native. Migration Center. V1. Inputs. Upload File Info 
- Information about a file that is uploaded to a storage service.
- Format
ImportData File Format 
- The payload format.
- ImportData stringFile Id 
- Required. The ID of the new data file.
- ImportJob stringId 
- DisplayName string
- User-friendly display name. Maximum length is 63 characters.
- Location string
- Project string
- RequestId string
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- UploadFile UploadInfo File Info Args 
- Information about a file that is uploaded to a storage service.
- format
ImportData File Format 
- The payload format.
- importData StringFile Id 
- Required. The ID of the new data file.
- importJob StringId 
- displayName String
- User-friendly display name. Maximum length is 63 characters.
- location String
- project String
- requestId String
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- uploadFile UploadInfo File Info 
- Information about a file that is uploaded to a storage service.
- format
ImportData File Format 
- The payload format.
- importData stringFile Id 
- Required. The ID of the new data file.
- importJob stringId 
- displayName string
- User-friendly display name. Maximum length is 63 characters.
- location string
- project string
- requestId string
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- uploadFile UploadInfo File Info 
- Information about a file that is uploaded to a storage service.
- format
ImportData File Format 
- The payload format.
- import_data_ strfile_ id 
- Required. The ID of the new data file.
- import_job_ strid 
- display_name str
- User-friendly display name. Maximum length is 63 characters.
- location str
- project str
- request_id str
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- upload_file_ Uploadinfo File Info Args 
- Information about a file that is uploaded to a storage service.
- format "IMPORT_JOB_FORMAT_UNSPECIFIED" | "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"
- The payload format.
- importData StringFile Id 
- Required. The ID of the new data file.
- importJob StringId 
- displayName String
- User-friendly display name. Maximum length is 63 characters.
- location String
- project String
- requestId String
- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- uploadFile Property MapInfo 
- Information about a file that is uploaded to a storage service.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImportDataFile resource produces the following output properties:
- CreateTime 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.
- CreateTime 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.
- createTime 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.
- createTime 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.
- 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.
- createTime 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.
Supporting Types
ImportDataFileFormat, ImportDataFileFormatArgs        
- ImportJob Format Unspecified 
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- ImportJob Format Rvtools Xlsx 
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- ImportJob Format Rvtools Csv 
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- ImportJob Format Exported Aws Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- ImportJob Format Exported Azure Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- ImportJob Format Stratozone Csv 
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
- ImportData File Format Import Job Format Unspecified 
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- ImportData File Format Import Job Format Rvtools Xlsx 
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- ImportData File Format Import Job Format Rvtools Csv 
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- ImportData File Format Import Job Format Exported Aws Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- ImportData File Format Import Job Format Exported Azure Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- ImportData File Format Import Job Format Stratozone Csv 
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
- ImportJob Format Unspecified 
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- ImportJob Format Rvtools Xlsx 
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- ImportJob Format Rvtools Csv 
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- ImportJob Format Exported Aws Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- ImportJob Format Exported Azure Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- ImportJob Format Stratozone Csv 
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
- ImportJob Format Unspecified 
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- ImportJob Format Rvtools Xlsx 
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- ImportJob Format Rvtools Csv 
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- ImportJob Format Exported Aws Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- ImportJob Format Exported Azure Csv 
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- ImportJob Format Stratozone Csv 
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
- IMPORT_JOB_FORMAT_UNSPECIFIED
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- IMPORT_JOB_FORMAT_RVTOOLS_XLSX
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- IMPORT_JOB_FORMAT_RVTOOLS_CSV
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- IMPORT_JOB_FORMAT_STRATOZONE_CSV
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
- "IMPORT_JOB_FORMAT_UNSPECIFIED"
- IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- "IMPORT_JOB_FORMAT_RVTOOLS_XLSX"
- IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- "IMPORT_JOB_FORMAT_RVTOOLS_CSV"
- IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV"
- IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV"
- IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- "IMPORT_JOB_FORMAT_STRATOZONE_CSV"
- IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
UploadFileInfoResponse, UploadFileInfoResponseArgs        
- Headers Dictionary<string, string>
- The headers that were used to sign the URI.
- SignedUri string
- Upload URI for the file.
- UriExpiration stringTime 
- Expiration time of the upload URI.
- Headers map[string]string
- The headers that were used to sign the URI.
- SignedUri string
- Upload URI for the file.
- UriExpiration stringTime 
- Expiration time of the upload URI.
- headers Map<String,String>
- The headers that were used to sign the URI.
- signedUri String
- Upload URI for the file.
- uriExpiration StringTime 
- Expiration time of the upload URI.
- headers {[key: string]: string}
- The headers that were used to sign the URI.
- signedUri string
- Upload URI for the file.
- uriExpiration stringTime 
- Expiration time of the upload URI.
- headers Mapping[str, str]
- The headers that were used to sign the URI.
- signed_uri str
- Upload URI for the file.
- uri_expiration_ strtime 
- Expiration time of the upload URI.
- headers Map<String>
- The headers that were used to sign the URI.
- signedUri String
- Upload URI for the file.
- uriExpiration StringTime 
- Expiration time of the upload URI.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.