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.
- Import
Data stringFile Id - Required. The ID of the new data file.
- Import
Job stringId - Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Location string
- Project string
- Request
Id 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).
- Upload
File Pulumi.Info Google Native. Migration Center. V1. Inputs. Upload File Info - Information about a file that is uploaded to a storage service.
- Format
Import
Data File Format - The payload format.
- Import
Data stringFile Id - Required. The ID of the new data file.
- Import
Job stringId - Display
Name string - User-friendly display name. Maximum length is 63 characters.
- Location string
- Project string
- Request
Id 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).
- Upload
File UploadInfo File Info Args - Information about a file that is uploaded to a storage service.
- format
Import
Data File Format - The payload format.
- import
Data StringFile Id - Required. The ID of the new data file.
- import
Job StringId - display
Name String - User-friendly display name. Maximum length is 63 characters.
- location String
- project String
- request
Id 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).
- upload
File UploadInfo File Info - Information about a file that is uploaded to a storage service.
- format
Import
Data File Format - The payload format.
- import
Data stringFile Id - Required. The ID of the new data file.
- import
Job stringId - display
Name string - User-friendly display name. Maximum length is 63 characters.
- location string
- project string
- request
Id 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).
- upload
File UploadInfo File Info - Information about a file that is uploaded to a storage service.
- format
Import
Data 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.
- import
Data StringFile Id - Required. The ID of the new data file.
- import
Job StringId - display
Name String - User-friendly display name. Maximum length is 63 characters.
- location String
- project String
- request
Id 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).
- upload
File 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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Supporting Types
ImportDataFileFormat, ImportDataFileFormatArgs
- 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
Data File Format Import Job Format Unspecified - IMPORT_JOB_FORMAT_UNSPECIFIEDDefault value.
- Import
Data File Format Import Job Format Rvtools Xlsx - IMPORT_JOB_FORMAT_RVTOOLS_XLSXRVTools format (XLSX).
- Import
Data File Format Import Job Format Rvtools Csv - IMPORT_JOB_FORMAT_RVTOOLS_CSVRVTools format (CSV).
- Import
Data File Format Import Job Format Exported Aws Csv - IMPORT_JOB_FORMAT_EXPORTED_AWS_CSVCSV format exported from AWS using the AWS collection script.
- Import
Data File Format Import Job Format Exported Azure Csv - IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSVCSV format exported from Azure using the Azure collection script.
- Import
Data 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.
- 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.
- 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.
- Signed
Uri string - Upload URI for the file.
- Uri
Expiration stringTime - Expiration time of the upload URI.
- Headers map[string]string
- The headers that were used to sign the URI.
- Signed
Uri string - Upload URI for the file.
- Uri
Expiration stringTime - Expiration time of the upload URI.
- headers Map<String,String>
- The headers that were used to sign the URI.
- signed
Uri String - Upload URI for the file.
- uri
Expiration StringTime - Expiration time of the upload URI.
- headers {[key: string]: string}
- The headers that were used to sign the URI.
- signed
Uri string - Upload URI for the file.
- uri
Expiration 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.
- signed
Uri String - Upload URI for the file.
- uri
Expiration 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.