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

com.pulumi.awsnative.sagemaker.kotlin.MlflowTrackingServer.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.sagemaker.kotlin.enums.MlflowTrackingServerTrackingServerSize
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
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.sagemaker.kotlin.enums.MlflowTrackingServerTrackingServerSize.Companion.toKotlin as mlflowTrackingServerTrackingServerSizeToKotlin

/**
 * Builder for [MlflowTrackingServer].
 */
@PulumiTagMarker
public class MlflowTrackingServerResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: MlflowTrackingServerArgs = MlflowTrackingServerArgs()

    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 MlflowTrackingServerArgsBuilder.() -> Unit) {
        val builder = MlflowTrackingServerArgsBuilder()
        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(): MlflowTrackingServer {
        val builtJavaResource =
            com.pulumi.awsnative.sagemaker.MlflowTrackingServer(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return MlflowTrackingServer(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::SageMaker::MlflowTrackingServer
 */
public class MlflowTrackingServer internal constructor(
    override val javaResource: com.pulumi.awsnative.sagemaker.MlflowTrackingServer,
) : KotlinCustomResource(javaResource, MlflowTrackingServerMapper) {
    /**
     * The Amazon S3 URI for MLFlow Tracking Server artifacts.
     */
    public val artifactStoreUri: Output
        get() = javaResource.artifactStoreUri().applyValue({ args0 -> args0 })

    /**
     * A flag to enable Automatic SageMaker Model Registration.
     */
    public val automaticModelRegistration: Output?
        get() = javaResource.automaticModelRegistration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The MLFlow Version used on the MLFlow Tracking Server.
     */
    public val mlflowVersion: Output?
        get() = javaResource.mlflowVersion().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on behalf of the customer.
     */
    public val roleArn: Output
        get() = javaResource.roleArn().applyValue({ args0 -> args0 })

    /**
     * An array of key-value pairs to apply to this resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })

    /**
     * The Amazon Resource Name (ARN) of the MLFlow Tracking Server.
     */
    public val trackingServerArn: Output
        get() = javaResource.trackingServerArn().applyValue({ args0 -> args0 })

    /**
     * The name of the MLFlow Tracking Server.
     */
    public val trackingServerName: Output
        get() = javaResource.trackingServerName().applyValue({ args0 -> args0 })

    /**
     * The size of the MLFlow Tracking Server.
     */
    public val trackingServerSize: Output?
        get() = javaResource.trackingServerSize().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> mlflowTrackingServerTrackingServerSizeToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time.
     */
    public val weeklyMaintenanceWindowStart: Output?
        get() = javaResource.weeklyMaintenanceWindowStart().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })
}

public object MlflowTrackingServerMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.sagemaker.MlflowTrackingServer::class == javaResource::class

    override fun map(javaResource: Resource): MlflowTrackingServer = MlflowTrackingServer(
        javaResource
            as com.pulumi.awsnative.sagemaker.MlflowTrackingServer,
    )
}

/**
 * @see [MlflowTrackingServer].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [MlflowTrackingServer].
 */
public suspend fun mlflowTrackingServer(
    name: String,
    block: suspend MlflowTrackingServerResourceBuilder.() -> Unit,
): MlflowTrackingServer {
    val builder = MlflowTrackingServerResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [MlflowTrackingServer].
 * @param name The _unique_ name of the resulting resource.
 */
public fun mlflowTrackingServer(name: String): MlflowTrackingServer {
    val builder = MlflowTrackingServerResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy