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. 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 =
{
{ "type", "Expression" },
{ "value", "@dataset().MyFileName" },
},
FolderPath =
{
{ "type", "Expression" },
{ "value", "@dataset().MyFolderPath" },
},
Format = new AzureNative.DataFactory.Inputs.TextFormatArgs
{
Type = "TextFormat",
},
LinkedServiceName = new AzureNative.DataFactory.Inputs.LinkedServiceReferenceArgs
{
ReferenceName = "exampleLinkedService",
Type = "LinkedServiceReference",
},
Parameters =
{
{ "MyFileName", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = "String",
} },
{ "MyFolderPath", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = "String",
} },
},
Type = "AzureBlob",
},
ResourceGroupName = "exampleResourceGroup",
});
});
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(Map.ofEntries(
Map.entry("fileName", AmazonMWSObjectDatasetArgs.builder()
.type("Expression")
.value("@dataset().MyFileName")
.build()),
Map.entry("folderPath", AmazonMWSObjectDatasetArgs.builder()
.type("Expression")
.value("@dataset().MyFolderPath")
.build()),
Map.entry("format", Map.of("type", "TextFormat")),
Map.entry("linkedServiceName", Map.ofEntries(
Map.entry("referenceName", "exampleLinkedService"),
Map.entry("type", "LinkedServiceReference")
)),
Map.entry("parameters", Map.ofEntries(
Map.entry("MyFileName", Map.of("type", "String")),
Map.entry("MyFolderPath", Map.of("type", "String"))
)),
Map.entry("type", "AzureBlob")
))
.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 =
{
{ "type", "Expression" },
{ "value", "@dataset().MyFileName" },
},
FolderPath =
{
{ "type", "Expression" },
{ "value", "@dataset().MyFolderPath" },
},
Format = new AzureNative.DataFactory.Inputs.TextFormatArgs
{
Type = "TextFormat",
},
LinkedServiceName = new AzureNative.DataFactory.Inputs.LinkedServiceReferenceArgs
{
ReferenceName = "exampleLinkedService",
Type = "LinkedServiceReference",
},
Parameters =
{
{ "MyFileName", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = "String",
} },
{ "MyFolderPath", new AzureNative.DataFactory.Inputs.ParameterSpecificationArgs
{
Type = "String",
} },
},
Type = "AzureBlob",
},
ResourceGroupName = "exampleResourceGroup",
});
});
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(Map.ofEntries(
Map.entry("description", "Example description"),
Map.entry("fileName", AmazonMWSObjectDatasetArgs.builder()
.type("Expression")
.value("@dataset().MyFileName")
.build()),
Map.entry("folderPath", AmazonMWSObjectDatasetArgs.builder()
.type("Expression")
.value("@dataset().MyFolderPath")
.build()),
Map.entry("format", Map.of("type", "TextFormat")),
Map.entry("linkedServiceName", Map.ofEntries(
Map.entry("referenceName", "exampleLinkedService"),
Map.entry("type", "LinkedServiceReference")
)),
Map.entry("parameters", Map.ofEntries(
Map.entry("MyFileName", Map.of("type", "String")),
Map.entry("MyFolderPath", Map.of("type", "String"))
)),
Map.entry("type", "AzureBlob")
))
.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/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset

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