DatasetArgs

data class DatasetArgs(val datasetName: Output<String>? = null, val factoryName: Output<String>? = null, val properties: Output<Any>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<DatasetArgs>

Dataset resource type. Uses Azure REST API version 2018-06-01. In version 2.x of the Azure Native provider, it used API version 2018-06-01.

Example Usage

Datasets_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataset = new AzureNative.DataFactory.Dataset("dataset", new()
{
DatasetName = "exampleDataset",
FactoryName = "exampleFactoryName",
Properties = new AzureNative.DataFactory.Inputs.AzureBlobDatasetArgs
{
FileName = new Dictionary<string, object?>
{
["type"] = "Expression",
["value"] = "@dataset().MyFileName",
},
FolderPath = new Dictionary<string, object?>
{
["type"] = "Expression",
["value"] = "@dataset().MyFolderPath",
},
Format = new AzureNative.DataFactory.Inputs.TextFormatArgs
{
Type = "TextFormat",
},
LinkedServiceName = new AzureNative.DataFactory.Inputs.LinkedServiceReferenceArgs
{
ReferenceName = "exampleLinkedService",
Type = AzureNative.DataFactory.Type.LinkedServiceReference,
},
Parameters =
{
{ "MyFileName", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = AzureNative.DataFactory.ParameterType.String,
} },
{ "MyFolderPath", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = AzureNative.DataFactory.ParameterType.String,
} },
},
Type = "AzureBlob",
},
ResourceGroupName = "exampleResourceGroup",
});
});
package main
import (
datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewDataset(ctx, "dataset", &datafactory.DatasetArgs{
DatasetName: pulumi.String("exampleDataset"),
FactoryName: pulumi.String("exampleFactoryName"),
Properties: &datafactory.AzureBlobDatasetArgs{
FileName: pulumi.Any(map[string]interface{}{
"type": "Expression",
"value": "@dataset().MyFileName",
}),
FolderPath: pulumi.Any(map[string]interface{}{
"type": "Expression",
"value": "@dataset().MyFolderPath",
}),
Format: datafactory.TextFormat{
Type: "TextFormat",
},
LinkedServiceName: &datafactory.LinkedServiceReferenceArgs{
ReferenceName: pulumi.String("exampleLinkedService"),
Type: pulumi.String(datafactory.TypeLinkedServiceReference),
},
Parameters: datafactory.ParameterSpecificationMap{
"MyFileName": &datafactory.ParameterSpecificationArgs{
Type: pulumi.String(datafactory.ParameterTypeString),
},
"MyFolderPath": &datafactory.ParameterSpecificationArgs{
Type: pulumi.String(datafactory.ParameterTypeString),
},
},
Type: pulumi.String("AzureBlob"),
},
ResourceGroupName: pulumi.String("exampleResourceGroup"),
})
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.datafactory.Dataset;
import com.pulumi.azurenative.datafactory.DatasetArgs;
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 dataset = new Dataset("dataset", DatasetArgs.builder()
.datasetName("exampleDataset")
.factoryName("exampleFactoryName")
.properties(AzureBlobDatasetArgs.builder()
.fileName(Map.ofEntries(
Map.entry("type", "Expression"),
Map.entry("value", "@dataset().MyFileName")
))
.folderPath(Map.ofEntries(
Map.entry("type", "Expression"),
Map.entry("value", "@dataset().MyFolderPath")
))
.format(TextFormatArgs.builder()
.type("TextFormat")
.build())
.linkedServiceName(LinkedServiceReferenceArgs.builder()
.referenceName("exampleLinkedService")
.type("LinkedServiceReference")
.build())
.parameters(Map.ofEntries(
Map.entry("MyFileName", Map.of("type", "String")),
Map.entry("MyFolderPath", Map.of("type", "String"))
))
.type("AzureBlob")
.build())
.resourceGroupName("exampleResourceGroup")
.build());
}
}

Datasets_Update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataset = new AzureNative.DataFactory.Dataset("dataset", new()
{
DatasetName = "exampleDataset",
FactoryName = "exampleFactoryName",
Properties = new AzureNative.DataFactory.Inputs.AzureBlobDatasetArgs
{
Description = "Example description",
FileName = new Dictionary<string, object?>
{
["type"] = "Expression",
["value"] = "@dataset().MyFileName",
},
FolderPath = new Dictionary<string, object?>
{
["type"] = "Expression",
["value"] = "@dataset().MyFolderPath",
},
Format = new AzureNative.DataFactory.Inputs.TextFormatArgs
{
Type = "TextFormat",
},
LinkedServiceName = new AzureNative.DataFactory.Inputs.LinkedServiceReferenceArgs
{
ReferenceName = "exampleLinkedService",
Type = AzureNative.DataFactory.Type.LinkedServiceReference,
},
Parameters =
{
{ "MyFileName", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = AzureNative.DataFactory.ParameterType.String,
} },
{ "MyFolderPath", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = AzureNative.DataFactory.ParameterType.String,
} },
},
Type = "AzureBlob",
},
ResourceGroupName = "exampleResourceGroup",
});
});
package main
import (
datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewDataset(ctx, "dataset", &datafactory.DatasetArgs{
DatasetName: pulumi.String("exampleDataset"),
FactoryName: pulumi.String("exampleFactoryName"),
Properties: &datafactory.AzureBlobDatasetArgs{
Description: pulumi.String("Example description"),
FileName: pulumi.Any(map[string]interface{}{
"type": "Expression",
"value": "@dataset().MyFileName",
}),
FolderPath: pulumi.Any(map[string]interface{}{
"type": "Expression",
"value": "@dataset().MyFolderPath",
}),
Format: datafactory.TextFormat{
Type: "TextFormat",
},
LinkedServiceName: &datafactory.LinkedServiceReferenceArgs{
ReferenceName: pulumi.String("exampleLinkedService"),
Type: pulumi.String(datafactory.TypeLinkedServiceReference),
},
Parameters: datafactory.ParameterSpecificationMap{
"MyFileName": &datafactory.ParameterSpecificationArgs{
Type: pulumi.String(datafactory.ParameterTypeString),
},
"MyFolderPath": &datafactory.ParameterSpecificationArgs{
Type: pulumi.String(datafactory.ParameterTypeString),
},
},
Type: pulumi.String("AzureBlob"),
},
ResourceGroupName: pulumi.String("exampleResourceGroup"),
})
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.datafactory.Dataset;
import com.pulumi.azurenative.datafactory.DatasetArgs;
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 dataset = new Dataset("dataset", DatasetArgs.builder()
.datasetName("exampleDataset")
.factoryName("exampleFactoryName")
.properties(AzureBlobDatasetArgs.builder()
.description("Example description")
.fileName(Map.ofEntries(
Map.entry("type", "Expression"),
Map.entry("value", "@dataset().MyFileName")
))
.folderPath(Map.ofEntries(
Map.entry("type", "Expression"),
Map.entry("value", "@dataset().MyFolderPath")
))
.format(TextFormatArgs.builder()
.type("TextFormat")
.build())
.linkedServiceName(LinkedServiceReferenceArgs.builder()
.referenceName("exampleLinkedService")
.type("LinkedServiceReference")
.build())
.parameters(Map.ofEntries(
Map.entry("MyFileName", Map.of("type", "String")),
Map.entry("MyFolderPath", Map.of("type", "String"))
))
.type("AzureBlob")
.build())
.resourceGroupName("exampleResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:datafactory:Dataset exampleDataset /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}

Constructors

Link copied to clipboard
constructor(datasetName: Output<String>? = null, factoryName: Output<String>? = null, properties: Output<Any>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val datasetName: Output<String>? = null

The dataset name.

Link copied to clipboard
val factoryName: Output<String>? = null

The factory name.

Link copied to clipboard
val properties: Output<Any>? = null

Dataset properties.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The resource group name.

Functions

Link copied to clipboard
open override fun toJava(): DatasetArgs