![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.machinelearningservices.kotlin.DatastoreArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin
import com.pulumi.azurenative.machinelearningservices.DatastoreArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Azure Resource Manager resource envelope.
* Azure REST API version: 2023-04-01.
* Other available API versions: 2021-03-01-preview, 2022-02-01-preview, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-04-01-preview, 2024-07-01-preview.
* ## Example Usage
* ### CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var datastore = new AzureNative.MachineLearningServices.Datastore("datastore", new()
* {
* DatastoreProperties = new AzureNative.MachineLearningServices.Inputs.AzureDataLakeGen1DatastoreArgs
* {
* Credentials = new AzureNative.MachineLearningServices.Inputs.ServicePrincipalDatastoreCredentialsArgs
* {
* AuthorityUrl = "string",
* ClientId = "00000000-1111-2222-3333-444444444444",
* CredentialsType = "ServicePrincipal",
* ResourceUrl = "string",
* Secrets = new AzureNative.MachineLearningServices.Inputs.ServicePrincipalDatastoreSecretsArgs
* {
* ClientSecret = "string",
* SecretsType = "ServicePrincipal",
* },
* TenantId = "00000000-1111-2222-3333-444444444444",
* },
* DatastoreType = "AzureDataLakeGen1",
* Description = "string",
* StoreName = "string",
* Tags =
* {
* { "string", "string" },
* },
* },
* Name = "string",
* ResourceGroupName = "test-rg",
* SkipValidation = false,
* WorkspaceName = "my-aml-workspace",
* });
* });
* ```
* ```go
* package main
* import (
* machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := machinelearningservices.NewDatastore(ctx, "datastore", &machinelearningservices.DatastoreArgs{
* DatastoreProperties: &machinelearningservices.AzureDataLakeGen1DatastoreArgs{
* Credentials: machinelearningservices.ServicePrincipalDatastoreCredentials{
* AuthorityUrl: "string",
* ClientId: "00000000-1111-2222-3333-444444444444",
* CredentialsType: "ServicePrincipal",
* ResourceUrl: "string",
* Secrets: machinelearningservices.ServicePrincipalDatastoreSecrets{
* ClientSecret: "string",
* SecretsType: "ServicePrincipal",
* },
* TenantId: "00000000-1111-2222-3333-444444444444",
* },
* DatastoreType: pulumi.String("AzureDataLakeGen1"),
* Description: pulumi.String("string"),
* StoreName: pulumi.String("string"),
* Tags: pulumi.StringMap{
* "string": pulumi.String("string"),
* },
* },
* Name: pulumi.String("string"),
* ResourceGroupName: pulumi.String("test-rg"),
* SkipValidation: pulumi.Bool(false),
* WorkspaceName: pulumi.String("my-aml-workspace"),
* })
* 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.machinelearningservices.Datastore;
* import com.pulumi.azurenative.machinelearningservices.DatastoreArgs;
* 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 datastore = new Datastore("datastore", DatastoreArgs.builder()
* .datastoreProperties(AzureDataLakeGen1DatastoreArgs.builder()
* .credentials(ServicePrincipalDatastoreCredentialsArgs.builder()
* .authorityUrl("string")
* .clientId("00000000-1111-2222-3333-444444444444")
* .credentialsType("ServicePrincipal")
* .resourceUrl("string")
* .secrets(ServicePrincipalDatastoreSecretsArgs.builder()
* .clientSecret("string")
* .secretsType("ServicePrincipal")
* .build())
* .tenantId("00000000-1111-2222-3333-444444444444")
* .build())
* .datastoreType("AzureDataLakeGen1")
* .description("string")
* .storeName("string")
* .tags(Map.of("string", "string"))
* .build())
* .name("string")
* .resourceGroupName("test-rg")
* .skipValidation(false)
* .workspaceName("my-aml-workspace")
* .build());
* }
* }
* ```
* ### CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var datastore = new AzureNative.MachineLearningServices.Datastore("datastore", new()
* {
* DatastoreProperties = new AzureNative.MachineLearningServices.Inputs.AzureDataLakeGen2DatastoreArgs
* {
* AccountName = "string",
* Credentials = new AzureNative.MachineLearningServices.Inputs.ServicePrincipalDatastoreCredentialsArgs
* {
* AuthorityUrl = "string",
* ClientId = "00000000-1111-2222-3333-444444444444",
* CredentialsType = "ServicePrincipal",
* ResourceUrl = "string",
* Secrets = new AzureNative.MachineLearningServices.Inputs.ServicePrincipalDatastoreSecretsArgs
* {
* ClientSecret = "string",
* SecretsType = "ServicePrincipal",
* },
* TenantId = "00000000-1111-2222-3333-444444444444",
* },
* DatastoreType = "AzureDataLakeGen2",
* Description = "string",
* Endpoint = "string",
* Filesystem = "string",
* Protocol = "string",
* Tags =
* {
* { "string", "string" },
* },
* },
* Name = "string",
* ResourceGroupName = "test-rg",
* SkipValidation = false,
* WorkspaceName = "my-aml-workspace",
* });
* });
* ```
* ```go
* package main
* import (
* machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := machinelearningservices.NewDatastore(ctx, "datastore", &machinelearningservices.DatastoreArgs{
* DatastoreProperties: &machinelearningservices.AzureDataLakeGen2DatastoreArgs{
* AccountName: pulumi.String("string"),
* Credentials: machinelearningservices.ServicePrincipalDatastoreCredentials{
* AuthorityUrl: "string",
* ClientId: "00000000-1111-2222-3333-444444444444",
* CredentialsType: "ServicePrincipal",
* ResourceUrl: "string",
* Secrets: machinelearningservices.ServicePrincipalDatastoreSecrets{
* ClientSecret: "string",
* SecretsType: "ServicePrincipal",
* },
* TenantId: "00000000-1111-2222-3333-444444444444",
* },
* DatastoreType: pulumi.String("AzureDataLakeGen2"),
* Description: pulumi.String("string"),
* Endpoint: pulumi.String("string"),
* Filesystem: pulumi.String("string"),
* Protocol: pulumi.String("string"),
* Tags: pulumi.StringMap{
* "string": pulumi.String("string"),
* },
* },
* Name: pulumi.String("string"),
* ResourceGroupName: pulumi.String("test-rg"),
* SkipValidation: pulumi.Bool(false),
* WorkspaceName: pulumi.String("my-aml-workspace"),
* })
* 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.machinelearningservices.Datastore;
* import com.pulumi.azurenative.machinelearningservices.DatastoreArgs;
* 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 datastore = new Datastore("datastore", DatastoreArgs.builder()
* .datastoreProperties(AzureDataLakeGen2DatastoreArgs.builder()
* .accountName("string")
* .credentials(ServicePrincipalDatastoreCredentialsArgs.builder()
* .authorityUrl("string")
* .clientId("00000000-1111-2222-3333-444444444444")
* .credentialsType("ServicePrincipal")
* .resourceUrl("string")
* .secrets(ServicePrincipalDatastoreSecretsArgs.builder()
* .clientSecret("string")
* .secretsType("ServicePrincipal")
* .build())
* .tenantId("00000000-1111-2222-3333-444444444444")
* .build())
* .datastoreType("AzureDataLakeGen2")
* .description("string")
* .endpoint("string")
* .filesystem("string")
* .protocol("string")
* .tags(Map.of("string", "string"))
* .build())
* .name("string")
* .resourceGroupName("test-rg")
* .skipValidation(false)
* .workspaceName("my-aml-workspace")
* .build());
* }
* }
* ```
* ### CreateOrUpdate datastore (Azure File store w/ AccountKey).
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var datastore = new AzureNative.MachineLearningServices.Datastore("datastore", new()
* {
* DatastoreProperties = new AzureNative.MachineLearningServices.Inputs.AzureFileDatastoreArgs
* {
* AccountName = "string",
* Credentials = new AzureNative.MachineLearningServices.Inputs.AccountKeyDatastoreCredentialsArgs
* {
* CredentialsType = "AccountKey",
* Secrets = new AzureNative.MachineLearningServices.Inputs.AccountKeyDatastoreSecretsArgs
* {
* Key = "string",
* SecretsType = "AccountKey",
* },
* },
* DatastoreType = "AzureFile",
* Description = "string",
* Endpoint = "string",
* FileShareName = "string",
* Protocol = "string",
* Tags =
* {
* { "string", "string" },
* },
* },
* Name = "string",
* ResourceGroupName = "test-rg",
* SkipValidation = false,
* WorkspaceName = "my-aml-workspace",
* });
* });
* ```
* ```go
* package main
* import (
* machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := machinelearningservices.NewDatastore(ctx, "datastore", &machinelearningservices.DatastoreArgs{
* DatastoreProperties: &machinelearningservices.AzureFileDatastoreArgs{
* AccountName: pulumi.String("string"),
* Credentials: machinelearningservices.AccountKeyDatastoreCredentials{
* CredentialsType: "AccountKey",
* Secrets: machinelearningservices.AccountKeyDatastoreSecrets{
* Key: "string",
* SecretsType: "AccountKey",
* },
* },
* DatastoreType: pulumi.String("AzureFile"),
* Description: pulumi.String("string"),
* Endpoint: pulumi.String("string"),
* FileShareName: pulumi.String("string"),
* Protocol: pulumi.String("string"),
* Tags: pulumi.StringMap{
* "string": pulumi.String("string"),
* },
* },
* Name: pulumi.String("string"),
* ResourceGroupName: pulumi.String("test-rg"),
* SkipValidation: pulumi.Bool(false),
* WorkspaceName: pulumi.String("my-aml-workspace"),
* })
* 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.machinelearningservices.Datastore;
* import com.pulumi.azurenative.machinelearningservices.DatastoreArgs;
* 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 datastore = new Datastore("datastore", DatastoreArgs.builder()
* .datastoreProperties(AzureFileDatastoreArgs.builder()
* .accountName("string")
* .credentials(AccountKeyDatastoreCredentialsArgs.builder()
* .credentialsType("AccountKey")
* .secrets(AccountKeyDatastoreSecretsArgs.builder()
* .key("string")
* .secretsType("AccountKey")
* .build())
* .build())
* .datastoreType("AzureFile")
* .description("string")
* .endpoint("string")
* .fileShareName("string")
* .protocol("string")
* .tags(Map.of("string", "string"))
* .build())
* .name("string")
* .resourceGroupName("test-rg")
* .skipValidation(false)
* .workspaceName("my-aml-workspace")
* .build());
* }
* }
* ```
* ### CreateOrUpdate datastore (AzureBlob w/ AccountKey).
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var datastore = new AzureNative.MachineLearningServices.Datastore("datastore", new()
* {
* DatastoreProperties = new AzureNative.MachineLearningServices.Inputs.AzureBlobDatastoreArgs
* {
* AccountName = "string",
* ContainerName = "string",
* Credentials = new AzureNative.MachineLearningServices.Inputs.AccountKeyDatastoreCredentialsArgs
* {
* CredentialsType = "AccountKey",
* Secrets = new AzureNative.MachineLearningServices.Inputs.AccountKeyDatastoreSecretsArgs
* {
* Key = "string",
* SecretsType = "AccountKey",
* },
* },
* DatastoreType = "AzureBlob",
* Description = "string",
* Endpoint = "core.windows.net",
* Protocol = "https",
* Tags =
* {
* { "string", "string" },
* },
* },
* Name = "string",
* ResourceGroupName = "test-rg",
* SkipValidation = false,
* WorkspaceName = "my-aml-workspace",
* });
* });
* ```
* ```go
* package main
* import (
* machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := machinelearningservices.NewDatastore(ctx, "datastore", &machinelearningservices.DatastoreArgs{
* DatastoreProperties: &machinelearningservices.AzureBlobDatastoreArgs{
* AccountName: pulumi.String("string"),
* ContainerName: pulumi.String("string"),
* Credentials: machinelearningservices.AccountKeyDatastoreCredentials{
* CredentialsType: "AccountKey",
* Secrets: machinelearningservices.AccountKeyDatastoreSecrets{
* Key: "string",
* SecretsType: "AccountKey",
* },
* },
* DatastoreType: pulumi.String("AzureBlob"),
* Description: pulumi.String("string"),
* Endpoint: pulumi.String("core.windows.net"),
* Protocol: pulumi.String("https"),
* Tags: pulumi.StringMap{
* "string": pulumi.String("string"),
* },
* },
* Name: pulumi.String("string"),
* ResourceGroupName: pulumi.String("test-rg"),
* SkipValidation: pulumi.Bool(false),
* WorkspaceName: pulumi.String("my-aml-workspace"),
* })
* 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.machinelearningservices.Datastore;
* import com.pulumi.azurenative.machinelearningservices.DatastoreArgs;
* 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 datastore = new Datastore("datastore", DatastoreArgs.builder()
* .datastoreProperties(AzureBlobDatastoreArgs.builder()
* .accountName("string")
* .containerName("string")
* .credentials(AccountKeyDatastoreCredentialsArgs.builder()
* .credentialsType("AccountKey")
* .secrets(AccountKeyDatastoreSecretsArgs.builder()
* .key("string")
* .secretsType("AccountKey")
* .build())
* .build())
* .datastoreType("AzureBlob")
* .description("string")
* .endpoint("core.windows.net")
* .protocol("https")
* .tags(Map.of("string", "string"))
* .build())
* .name("string")
* .resourceGroupName("test-rg")
* .skipValidation(false)
* .workspaceName("my-aml-workspace")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:machinelearningservices:Datastore string /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}
* ```
* @property datastoreProperties [Required] Additional attributes of the entity.
* @property name Datastore name.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property skipValidation Flag to skip validation.
* @property workspaceName Name of Azure Machine Learning workspace.
*/
public data class DatastoreArgs(
public val datastoreProperties: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val skipValidation: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.DatastoreArgs =
com.pulumi.azurenative.machinelearningservices.DatastoreArgs.builder()
.datastoreProperties(datastoreProperties?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.skipValidation(skipValidation?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatastoreArgs].
*/
@PulumiTagMarker
public class DatastoreArgsBuilder internal constructor() {
private var datastoreProperties: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var skipValidation: Output? = null
private var workspaceName: Output? = null
/**
* @param value [Required] Additional attributes of the entity.
*/
@JvmName("kdxpwfrypdebdvcb")
public suspend fun datastoreProperties(`value`: Output) {
this.datastoreProperties = value
}
/**
* @param value Datastore name.
*/
@JvmName("bjlkkwpmyiqrgsqm")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("duwsmrjwgalplxtp")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Flag to skip validation.
*/
@JvmName("wniholbeyiqcoebq")
public suspend fun skipValidation(`value`: Output) {
this.skipValidation = value
}
/**
* @param value Name of Azure Machine Learning workspace.
*/
@JvmName("wtknjunjatskhsth")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value [Required] Additional attributes of the entity.
*/
@JvmName("tmshkcgnqexaqhbi")
public suspend fun datastoreProperties(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.datastoreProperties = mapped
}
/**
* @param value Datastore name.
*/
@JvmName("uewvhndtogjvrlem")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("fteebxcepvtpvxmy")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Flag to skip validation.
*/
@JvmName("tvodrlcrresdunyi")
public suspend fun skipValidation(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipValidation = mapped
}
/**
* @param value Name of Azure Machine Learning workspace.
*/
@JvmName("rinwjegujhchdafo")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): DatastoreArgs = DatastoreArgs(
datastoreProperties = datastoreProperties,
name = name,
resourceGroupName = resourceGroupName,
skipValidation = skipValidation,
workspaceName = workspaceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy