azure-native.datamigration.File
Explore with Pulumi AI
A file resource Azure REST API version: 2021-06-30. Prior API version in Azure Native 1.x: 2018-07-15-preview.
Other available API versions: 2022-03-30-preview.
Example Usage
Files_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var file = new AzureNative.DataMigration.File("file", new()
{
FileName = "x114d023d8",
GroupName = "DmsSdkRg",
ProjectName = "DmsSdkProject",
Properties = new AzureNative.DataMigration.Inputs.ProjectFilePropertiesArgs
{
FilePath = "DmsSdkFilePath/DmsSdkFile.sql",
},
ServiceName = "DmsSdkService",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/datamigration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datamigration.NewFile(ctx, "file", &datamigration.FileArgs{
FileName: pulumi.String("x114d023d8"),
GroupName: pulumi.String("DmsSdkRg"),
ProjectName: pulumi.String("DmsSdkProject"),
Properties: &datamigration.ProjectFilePropertiesArgs{
FilePath: pulumi.String("DmsSdkFilePath/DmsSdkFile.sql"),
},
ServiceName: pulumi.String("DmsSdkService"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datamigration.File;
import com.pulumi.azurenative.datamigration.FileArgs;
import java.util.List;
import java.util.ArrayList;
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 file = new File("file", FileArgs.builder()
.fileName("x114d023d8")
.groupName("DmsSdkRg")
.projectName("DmsSdkProject")
.properties(Map.of("filePath", "DmsSdkFilePath/DmsSdkFile.sql"))
.serviceName("DmsSdkService")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
file = azure_native.datamigration.File("file",
file_name="x114d023d8",
group_name="DmsSdkRg",
project_name="DmsSdkProject",
properties=azure_native.datamigration.ProjectFilePropertiesArgs(
file_path="DmsSdkFilePath/DmsSdkFile.sql",
),
service_name="DmsSdkService")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const file = new azure_native.datamigration.File("file", {
fileName: "x114d023d8",
groupName: "DmsSdkRg",
projectName: "DmsSdkProject",
properties: {
filePath: "DmsSdkFilePath/DmsSdkFile.sql",
},
serviceName: "DmsSdkService",
});
resources:
file:
type: azure-native:datamigration:File
properties:
fileName: x114d023d8
groupName: DmsSdkRg
projectName: DmsSdkProject
properties:
filePath: DmsSdkFilePath/DmsSdkFile.sql
serviceName: DmsSdkService
Create File Resource
new File(name: string, args: FileArgs, opts?: CustomResourceOptions);
@overload
def File(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_name: Optional[str] = None,
group_name: Optional[str] = None,
project_name: Optional[str] = None,
properties: Optional[ProjectFilePropertiesArgs] = None,
service_name: Optional[str] = None)
@overload
def File(resource_name: str,
args: FileArgs,
opts: Optional[ResourceOptions] = None)
func NewFile(ctx *Context, name string, args FileArgs, opts ...ResourceOption) (*File, error)
public File(string name, FileArgs args, CustomResourceOptions? opts = null)
type: azure-native:datamigration:File
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileArgs
- 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 FileArgs
- 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 FileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
File Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The File resource accepts the following input properties:
- Group
Name string Name of the resource group
- Project
Name string Name of the project
- Service
Name string Name of the service
- File
Name string Name of the File
- Properties
Pulumi.
Azure Native. Data Migration. Inputs. Project File Properties Custom file properties
- Group
Name string Name of the resource group
- Project
Name string Name of the project
- Service
Name string Name of the service
- File
Name string Name of the File
- Properties
Project
File Properties Args Custom file properties
- group
Name String Name of the resource group
- project
Name String Name of the project
- service
Name String Name of the service
- file
Name String Name of the File
- properties
Project
File Properties Custom file properties
- group
Name string Name of the resource group
- project
Name string Name of the project
- service
Name string Name of the service
- file
Name string Name of the File
- properties
Project
File Properties Custom file properties
- group_
name str Name of the resource group
- project_
name str Name of the project
- service_
name str Name of the service
- file_
name str Name of the File
- properties
Project
File Properties Args Custom file properties
- group
Name String Name of the resource group
- project
Name String Name of the project
- service
Name String Name of the service
- file
Name String Name of the File
- properties Property Map
Custom file properties
Outputs
All input properties are implicitly available as output properties. Additionally, the File resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- System
Data Pulumi.Azure Native. Data Migration. Outputs. System Data Response Metadata pertaining to creation and last modification of the resource.
- Type string
Resource type.
- Etag string
HTTP strong entity tag value. This is ignored if submitted.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- System
Data SystemData Response Metadata pertaining to creation and last modification of the resource.
- Type string
Resource type.
- Etag string
HTTP strong entity tag value. This is ignored if submitted.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- system
Data SystemData Response Metadata pertaining to creation and last modification of the resource.
- type String
Resource type.
- etag String
HTTP strong entity tag value. This is ignored if submitted.
- id string
The provider-assigned unique ID for this managed resource.
- name string
Resource name.
- system
Data SystemData Response Metadata pertaining to creation and last modification of the resource.
- type string
Resource type.
- etag string
HTTP strong entity tag value. This is ignored if submitted.
- id str
The provider-assigned unique ID for this managed resource.
- name str
Resource name.
- system_
data SystemData Response Metadata pertaining to creation and last modification of the resource.
- type str
Resource type.
- etag str
HTTP strong entity tag value. This is ignored if submitted.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- system
Data Property Map Metadata pertaining to creation and last modification of the resource.
- type String
Resource type.
- etag String
HTTP strong entity tag value. This is ignored if submitted.
Supporting Types
ProjectFileProperties, ProjectFilePropertiesArgs
- Extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string File content type. This property can be modified to reflect the file content type.
- Extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string File content type. This property can be modified to reflect the file content type.
- extension String
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String File content type. This property can be modified to reflect the file content type.
- extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type string File content type. This property can be modified to reflect the file content type.
- extension str
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file_
path str Relative path of this file resource. This property can be set when creating or updating the file resource.
- media_
type str File content type. This property can be modified to reflect the file content type.
- extension String
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String File content type. This property can be modified to reflect the file content type.
ProjectFilePropertiesResponse, ProjectFilePropertiesResponseArgs
- Last
Modified string Modification DateTime.
- Size double
File size.
- Extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string File content type. This property can be modified to reflect the file content type.
- Last
Modified string Modification DateTime.
- Size float64
File size.
- Extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string File content type. This property can be modified to reflect the file content type.
- last
Modified String Modification DateTime.
- size Double
File size.
- extension String
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String File content type. This property can be modified to reflect the file content type.
- last
Modified string Modification DateTime.
- size number
File size.
- extension string
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path string Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type string File content type. This property can be modified to reflect the file content type.
- last_
modified str Modification DateTime.
- size float
File size.
- extension str
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file_
path str Relative path of this file resource. This property can be set when creating or updating the file resource.
- media_
type str File content type. This property can be modified to reflect the file content type.
- last
Modified String Modification DateTime.
- size Number
File size.
- extension String
Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String File content type. This property can be modified to reflect the file content type.
SystemDataResponse, SystemDataResponseArgs
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified stringBy Type The type of identity that last modified the resource.
- created_
at str The timestamp of resource creation (UTC).
- created_
by str The identity that created the resource.
- created_
by_ strtype The type of identity that created the resource.
- last_
modified_ strat The timestamp of resource last modification (UTC)
- last_
modified_ strby The identity that last modified the resource.
- last_
modified_ strby_ type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datamigration:File x114d023d8 /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0