All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.machinelearning.kotlin.DatastoreFileshareArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.machinelearning.kotlin

import com.pulumi.azure.machinelearning.DatastoreFileshareArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Machine Learning File Share DataStore.
 * ## Example Usage
 * ### With Azure File Share
 * 
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.machinelearning.Workspace;
 * import com.pulumi.azure.machinelearning.WorkspaceArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.storage.Share;
 * import com.pulumi.azure.storage.ShareArgs;
 * import com.pulumi.azure.machinelearning.DatastoreFileshare;
 * import com.pulumi.azure.machinelearning.DatastoreFileshareArgs;
 * 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) {
 *         final var current = CoreFunctions.getClientConfig();
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("workspace-example-ai")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("workspaceexamplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("workspacestorageaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationInsightsId(exampleInsights.id())
 *             .keyVaultId(exampleKeyVault.id())
 *             .storageAccountId(exampleAccount.id())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .build());
 *         var exampleShare = new Share("exampleShare", ShareArgs.builder()
 *             .name("example")
 *             .storageAccountName(exampleAccount.name())
 *             .quota(1)
 *             .build());
 *         var exampleDatastoreFileshare = new DatastoreFileshare("exampleDatastoreFileshare", DatastoreFileshareArgs.builder()
 *             .name("example-datastore")
 *             .workspaceId(exampleWorkspace.id())
 *             .storageFilesahareId(test.resourceManagerId())
 *             .accountKey(exampleAccount.primaryAccessKey())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleInsights:
 *     type: azure:appinsights:Insights
 *     name: example
 *     properties:
 *       name: workspace-example-ai
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       applicationType: web
 *   exampleKeyVault:
 *     type: azure:keyvault:KeyVault
 *     name: example
 *     properties:
 *       name: workspaceexamplekeyvault
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       tenantId: ${current.tenantId}
 *       skuName: premium
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: workspacestorageaccount
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       accountTier: Standard
 *       accountReplicationType: GRS
 *   exampleWorkspace:
 *     type: azure:machinelearning:Workspace
 *     name: example
 *     properties:
 *       name: example-workspace
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       applicationInsightsId: ${exampleInsights.id}
 *       keyVaultId: ${exampleKeyVault.id}
 *       storageAccountId: ${exampleAccount.id}
 *       identity:
 *         type: SystemAssigned
 *   exampleShare:
 *     type: azure:storage:Share
 *     name: example
 *     properties:
 *       name: example
 *       storageAccountName: ${exampleAccount.name}
 *       quota: 1
 *   exampleDatastoreFileshare:
 *     type: azure:machinelearning:DatastoreFileshare
 *     name: example
 *     properties:
 *       name: example-datastore
 *       workspaceId: ${exampleWorkspace.id}
 *       storageFilesahareId: ${test.resourceManagerId}
 *       accountKey: ${exampleAccount.primaryAccessKey}
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Machine Learning DataStores can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:machinelearning/datastoreFileshare:DatastoreFileshare example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/mlw1/dataStores/datastore1
 * ```
 * @property accountKey The access key of the Storage Account. Conflicts with `shared_access_signature`.
 * @property description Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
 * @property name The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
 * @property serviceDataIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to `None`. Possible values are `None`, `WorkspaceSystemAssignedIdentity` and `WorkspaceUserAssignedIdentity`.
 * @property sharedAccessSignature The Shared Access Signature of the Storage Account. Conflicts with `account_key`.
 * @property storageFileshareId The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
 * @property tags A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
 * @property workspaceId The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
 */
public data class DatastoreFileshareArgs(
    public val accountKey: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val serviceDataIdentity: Output? = null,
    public val sharedAccessSignature: Output? = null,
    public val storageFileshareId: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.machinelearning.DatastoreFileshareArgs =
        com.pulumi.azure.machinelearning.DatastoreFileshareArgs.builder()
            .accountKey(accountKey?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .serviceDataIdentity(serviceDataIdentity?.applyValue({ args0 -> args0 }))
            .sharedAccessSignature(sharedAccessSignature?.applyValue({ args0 -> args0 }))
            .storageFileshareId(storageFileshareId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatastoreFileshareArgs].
 */
@PulumiTagMarker
public class DatastoreFileshareArgsBuilder internal constructor() {
    private var accountKey: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var serviceDataIdentity: Output? = null

    private var sharedAccessSignature: Output? = null

    private var storageFileshareId: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

    /**
     * @param value The access key of the Storage Account. Conflicts with `shared_access_signature`.
     */
    @JvmName("kaygndoacwrnxyxg")
    public suspend fun accountKey(`value`: Output) {
        this.accountKey = value
    }

    /**
     * @param value Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("vtpdqfxdhatoebkn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("uqtoyaejgkgukiwg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies which identity to use when retrieving data from the specified source. Defaults to `None`. Possible values are `None`, `WorkspaceSystemAssignedIdentity` and `WorkspaceUserAssignedIdentity`.
     */
    @JvmName("jnganpfgwrnmkguk")
    public suspend fun serviceDataIdentity(`value`: Output) {
        this.serviceDataIdentity = value
    }

    /**
     * @param value The Shared Access Signature of the Storage Account. Conflicts with `account_key`.
     */
    @JvmName("ygfbqhmsuapxnyww")
    public suspend fun sharedAccessSignature(`value`: Output) {
        this.sharedAccessSignature = value
    }

    /**
     * @param value The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("mfcypnvtckxnfhji")
    public suspend fun storageFileshareId(`value`: Output) {
        this.storageFileshareId = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("rlktkuayeqgndvlw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("cxeyvyofjqtvrciy")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

    /**
     * @param value The access key of the Storage Account. Conflicts with `shared_access_signature`.
     */
    @JvmName("thneqovvacpeuirk")
    public suspend fun accountKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountKey = mapped
    }

    /**
     * @param value Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("pwvqtqmbgrvirall")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("pnfvgxemfupcbvhe")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies which identity to use when retrieving data from the specified source. Defaults to `None`. Possible values are `None`, `WorkspaceSystemAssignedIdentity` and `WorkspaceUserAssignedIdentity`.
     */
    @JvmName("kmrmjmlcylpumnnj")
    public suspend fun serviceDataIdentity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceDataIdentity = mapped
    }

    /**
     * @param value The Shared Access Signature of the Storage Account. Conflicts with `account_key`.
     */
    @JvmName("imaxdmalxmtyuwxo")
    public suspend fun sharedAccessSignature(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedAccessSignature = mapped
    }

    /**
     * @param value The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("pqfxlwfttdnklfti")
    public suspend fun storageFileshareId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageFileshareId = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("djlhrfohtkkjpvjp")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("iyjquoysfmhvkugt")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
     */
    @JvmName("girgfwlkhxkyhpya")
    public suspend fun workspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceId = mapped
    }

    internal fun build(): DatastoreFileshareArgs = DatastoreFileshareArgs(
        accountKey = accountKey,
        description = description,
        name = name,
        serviceDataIdentity = serviceDataIdentity,
        sharedAccessSignature = sharedAccessSignature,
        storageFileshareId = storageFileshareId,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy