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.15.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
 * 
 * ```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("poujgspsbyymphtc")
    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("oelpfleiatdhbesw")
    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("slvspousiwmbrqws")
    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("oavfbksjfcghcixf")
    public suspend fun serviceDataIdentity(`value`: Output) {
        this.serviceDataIdentity = value
    }

    /**
     * @param value The Shared Access Signature of the Storage Account. Conflicts with `account_key`.
     */
    @JvmName("rktkslccndtqoxbm")
    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("tsbqoysxutxotvxo")
    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("nbtewlcwccueuprg")
    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("qdtxsgpydacfoibx")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

    /**
     * @param value The access key of the Storage Account. Conflicts with `shared_access_signature`.
     */
    @JvmName("mreyftjwnikitbiq")
    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("cwoulgcwyygfcamw")
    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("juntuhsxqaumndlk")
    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("gsakuhrluulxwtfk")
    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("vbeynujsigeqqdee")
    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("lmshdhpykhyssyrp")
    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("dunykkmtiosuyehf")
    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("ohbowhefisukyjhe")
    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("mrwrmkdgcacymmcq")
    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