1. Packages
  2. Google Cloud Native
  3. API Docs
  4. migrationcenter
  5. migrationcenter/v1
  6. ImportDataFile

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.migrationcenter/v1.ImportDataFile

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    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.GoogleNative.MigrationCenter.V1.ImportDataFileFormat
    The payload format.
    ImportDataFileId string
    Required. The ID of the new data file.
    ImportJobId string
    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).
    UploadFileInfo Pulumi.GoogleNative.MigrationCenter.V1.Inputs.UploadFileInfo
    Information about a file that is uploaded to a storage service.
    Format ImportDataFileFormat
    The payload format.
    ImportDataFileId string
    Required. The ID of the new data file.
    ImportJobId string
    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).
    UploadFileInfo UploadFileInfoArgs
    Information about a file that is uploaded to a storage service.
    format ImportDataFileFormat
    The payload format.
    importDataFileId String
    Required. The ID of the new data file.
    importJobId String
    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).
    uploadFileInfo UploadFileInfo
    Information about a file that is uploaded to a storage service.
    format ImportDataFileFormat
    The payload format.
    importDataFileId string
    Required. The ID of the new data file.
    importJobId string
    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).
    uploadFileInfo UploadFileInfo
    Information about a file that is uploaded to a storage service.
    format ImportDataFileFormat
    The payload format.
    import_data_file_id str
    Required. The ID of the new data file.
    import_job_id str
    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_info UploadFileInfoArgs
    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.
    importDataFileId String
    Required. The ID of the new data file.
    importJobId String
    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).
    uploadFileInfo Property Map
    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

    ImportJobFormatUnspecified
    IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
    ImportJobFormatRvtoolsXlsx
    IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
    ImportJobFormatRvtoolsCsv
    IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
    ImportJobFormatExportedAwsCsv
    IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
    ImportJobFormatExportedAzureCsv
    IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
    ImportJobFormatStratozoneCsv
    IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
    ImportDataFileFormatImportJobFormatUnspecified
    IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
    ImportDataFileFormatImportJobFormatRvtoolsXlsx
    IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
    ImportDataFileFormatImportJobFormatRvtoolsCsv
    IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
    ImportDataFileFormatImportJobFormatExportedAwsCsv
    IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
    ImportDataFileFormatImportJobFormatExportedAzureCsv
    IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
    ImportDataFileFormatImportJobFormatStratozoneCsv
    IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
    ImportJobFormatUnspecified
    IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
    ImportJobFormatRvtoolsXlsx
    IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
    ImportJobFormatRvtoolsCsv
    IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
    ImportJobFormatExportedAwsCsv
    IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
    ImportJobFormatExportedAzureCsv
    IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
    ImportJobFormatStratozoneCsv
    IMPORT_JOB_FORMAT_STRATOZONE_CSVCSV format created manually and following the StratoZone format. For more information, see Manually create and upload data tables.
    ImportJobFormatUnspecified
    IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
    ImportJobFormatRvtoolsXlsx
    IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
    ImportJobFormatRvtoolsCsv
    IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
    ImportJobFormatExportedAwsCsv
    IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
    ImportJobFormatExportedAzureCsv
    IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
    ImportJobFormatStratozoneCsv
    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.
    UriExpirationTime string
    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.
    UriExpirationTime string
    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.
    uriExpirationTime String
    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.
    uriExpirationTime string
    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_time str
    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.
    uriExpirationTime String
    Expiration time of the upload URI.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi