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

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

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sagemaker.ModelCardArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardStatus
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardContentArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardContentArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardSecurityConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardSecurityConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardUserContextArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardUserContextArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::SageMaker::ModelCard.
 * @property content The content of the model card. Content uses the [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) .
 * @property createdBy Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
 * @property lastModifiedBy Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
 * @property modelCardName The unique name of the model card.
 * @property modelCardStatus The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
 * @property securityConfig The security configuration used to protect model card data.
 * @property tags Key-value pairs used to manage metadata for model cards.
 */
public data class ModelCardArgs(
    public val content: Output? = null,
    public val createdBy: Output? = null,
    public val lastModifiedBy: Output? = null,
    public val modelCardName: Output? = null,
    public val modelCardStatus: Output? = null,
    public val securityConfig: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.ModelCardArgs =
        com.pulumi.awsnative.sagemaker.ModelCardArgs.builder()
            .content(content?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .createdBy(createdBy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .lastModifiedBy(lastModifiedBy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .modelCardName(modelCardName?.applyValue({ args0 -> args0 }))
            .modelCardStatus(modelCardStatus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityConfig(securityConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ModelCardArgs].
 */
@PulumiTagMarker
public class ModelCardArgsBuilder internal constructor() {
    private var content: Output? = null

    private var createdBy: Output? = null

    private var lastModifiedBy: Output? = null

    private var modelCardName: Output? = null

    private var modelCardStatus: Output? = null

    private var securityConfig: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The content of the model card. Content uses the [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) .
     */
    @JvmName("kdiernqdqkukpuvx")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("vuxcxdysjnulburn")
    public suspend fun createdBy(`value`: Output) {
        this.createdBy = value
    }

    /**
     * @param value Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("qjevmkbguseikdse")
    public suspend fun lastModifiedBy(`value`: Output) {
        this.lastModifiedBy = value
    }

    /**
     * @param value The unique name of the model card.
     */
    @JvmName("tvehpdrvfhsabbte")
    public suspend fun modelCardName(`value`: Output) {
        this.modelCardName = value
    }

    /**
     * @param value The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
     */
    @JvmName("fcqotmuxktotqodr")
    public suspend fun modelCardStatus(`value`: Output) {
        this.modelCardStatus = value
    }

    /**
     * @param value The security configuration used to protect model card data.
     */
    @JvmName("kxmoobmwvsexwrdk")
    public suspend fun securityConfig(`value`: Output) {
        this.securityConfig = value
    }

    /**
     * @param value Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("rldgomkilpojhrpu")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("dscgwvodwdqtemjo")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("vhfkpxndyvavjbgo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The content of the model card. Content uses the [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) .
     */
    @JvmName("ianlfrlgabcigvuq")
    public suspend fun content(`value`: ModelCardContentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param argument The content of the model card. Content uses the [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) .
     */
    @JvmName("ylhgexsiqsqsdtru")
    public suspend fun content(argument: suspend ModelCardContentArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardContentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.content = mapped
    }

    /**
     * @param value Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("wcchejyutdfwyhig")
    public suspend fun createdBy(`value`: ModelCardUserContextArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdBy = mapped
    }

    /**
     * @param argument Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("udgtrchtxxmumhxy")
    public suspend fun createdBy(argument: suspend ModelCardUserContextArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardUserContextArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.createdBy = mapped
    }

    /**
     * @param value Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("ormtqihydfhvwkph")
    public suspend fun lastModifiedBy(`value`: ModelCardUserContextArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedBy = mapped
    }

    /**
     * @param argument Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
     */
    @JvmName("jyceqbediimtmwkr")
    public suspend fun lastModifiedBy(argument: suspend ModelCardUserContextArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardUserContextArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.lastModifiedBy = mapped
    }

    /**
     * @param value The unique name of the model card.
     */
    @JvmName("efprmjcgmspepvco")
    public suspend fun modelCardName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelCardName = mapped
    }

    /**
     * @param value The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
     */
    @JvmName("ikqmijyqvvfrmpjd")
    public suspend fun modelCardStatus(`value`: ModelCardStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelCardStatus = mapped
    }

    /**
     * @param value The security configuration used to protect model card data.
     */
    @JvmName("boteevtdojehtsam")
    public suspend fun securityConfig(`value`: ModelCardSecurityConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityConfig = mapped
    }

    /**
     * @param argument The security configuration used to protect model card data.
     */
    @JvmName("evwrhdbanoyswhqh")
    public suspend fun securityConfig(argument: suspend ModelCardSecurityConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardSecurityConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.securityConfig = mapped
    }

    /**
     * @param value Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("fgexgjspjmqgfoxi")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("sbgfvpkcotlupequ")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("pbqjgucimtojgrvy")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("mpplpcsaydwxbjas")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs used to manage metadata for model cards.
     */
    @JvmName("qwquatychfrqkvjn")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ModelCardArgs = ModelCardArgs(
        content = content,
        createdBy = createdBy,
        lastModifiedBy = lastModifiedBy,
        modelCardName = modelCardName,
        modelCardStatus = modelCardStatus,
        securityConfig = securityConfig,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy