Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.datashare.kotlin.BlobFolderDataSet.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datashare.kotlin
import com.pulumi.azurenative.datashare.kotlin.outputs.SystemDataResponse
import com.pulumi.azurenative.datashare.kotlin.outputs.SystemDataResponse.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [BlobFolderDataSet].
*/
@PulumiTagMarker
public class BlobFolderDataSetResourceBuilder internal constructor() {
public var name: String? = null
public var args: BlobFolderDataSetArgs = BlobFolderDataSetArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend BlobFolderDataSetArgsBuilder.() -> Unit) {
val builder = BlobFolderDataSetArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): BlobFolderDataSet {
val builtJavaResource =
com.pulumi.azurenative.datashare.BlobFolderDataSet(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return BlobFolderDataSet(builtJavaResource)
}
}
/**
* An Azure storage blob folder data set.
* Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
* ## Example Usage
* ### DataSets_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_KustoCluster_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_KustoDatabase_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_KustoTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SqlDBTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SqlDWTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SynapseWorkspaceSqlPoolTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobFolderDataSet = new AzureNative.DataShare.BlobFolderDataSet("blobFolderDataSet", new()
* {
* AccountName = "sourceAccount",
* DataSetName = "dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobFolderDataSet(ctx, "blobFolderDataSet", &datashare.BlobFolderDataSetArgs{
* AccountName: pulumi.String("sourceAccount"),
* DataSetName: pulumi.String("dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("share1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datashare.BlobFolderDataSet;
* import com.pulumi.azurenative.datashare.BlobFolderDataSetArgs;
* 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 blobFolderDataSet = new BlobFolderDataSet("blobFolderDataSet", BlobFolderDataSetArgs.builder()
* .accountName("sourceAccount")
* .dataSetName("dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("share1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:datashare:BlobFolderDataSet dataset1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}
* ```
*/
public class BlobFolderDataSet internal constructor(
override val javaResource: com.pulumi.azurenative.datashare.BlobFolderDataSet,
) : KotlinCustomResource(javaResource, BlobFolderDataSetMapper) {
/**
* Container that has the file path.
*/
public val containerName: Output
get() = javaResource.containerName().applyValue({ args0 -> args0 })
/**
* Unique id for identifying a data set resource
*/
public val dataSetId: Output
get() = javaResource.dataSetId().applyValue({ args0 -> args0 })
/**
* Kind of data set.
* Expected value is 'BlobFolder'.
*/
public val kind: Output
get() = javaResource.kind().applyValue({ args0 -> args0 })
/**
* Name of the azure resource
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Prefix for blob folder
*/
public val prefix: Output
get() = javaResource.prefix().applyValue({ args0 -> args0 })
/**
* Resource group of storage account
*/
public val resourceGroup: Output
get() = javaResource.resourceGroup().applyValue({ args0 -> args0 })
/**
* Storage account name of the source data set
*/
public val storageAccountName: Output
get() = javaResource.storageAccountName().applyValue({ args0 -> args0 })
/**
* Subscription id of storage account
*/
public val subscriptionId: Output
get() = javaResource.subscriptionId().applyValue({ args0 -> args0 })
/**
* System Data of the Azure resource.
*/
public val systemData: Output
get() = javaResource.systemData().applyValue({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
/**
* Type of the azure resource
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 -> args0 })
}
public object BlobFolderDataSetMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.azurenative.datashare.BlobFolderDataSet::class == javaResource::class
override fun map(javaResource: Resource): BlobFolderDataSet = BlobFolderDataSet(
javaResource as
com.pulumi.azurenative.datashare.BlobFolderDataSet,
)
}
/**
* @see [BlobFolderDataSet].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [BlobFolderDataSet].
*/
public suspend fun blobFolderDataSet(
name: String,
block: suspend BlobFolderDataSetResourceBuilder.() -> Unit,
): BlobFolderDataSet {
val builder = BlobFolderDataSetResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [BlobFolderDataSet].
* @param name The _unique_ name of the resulting resource.
*/
public fun blobFolderDataSet(name: String): BlobFolderDataSet {
val builder = BlobFolderDataSetResourceBuilder()
builder.name(name)
return builder.build()
}