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

com.pulumi.awsnative.sagemaker.kotlin.outputs.GetModelCardResult.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.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardProcessingStatus
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardStatus
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 creationTime The date and time the model card was created.
 * @property lastModifiedBy Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
 * @property lastModifiedTime The date and time the model card was last modified.
 * @property modelCardArn The Amazon Resource Name (ARN) of the successfully created model card.
 * @property modelCardProcessingStatus The processing status of model card deletion. The ModelCardProcessingStatus updates throughout the different deletion steps.
 * @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 modelCardVersion A version of the model card.
 * @property tags Key-value pairs used to manage metadata for model cards.
 */
public data class GetModelCardResult(
    public val content: ModelCardContent? = null,
    public val createdBy: ModelCardUserContext? = null,
    public val creationTime: String? = null,
    public val lastModifiedBy: ModelCardUserContext? = null,
    public val lastModifiedTime: String? = null,
    public val modelCardArn: String? = null,
    public val modelCardProcessingStatus: ModelCardProcessingStatus? = null,
    public val modelCardStatus: ModelCardStatus? = null,
    public val modelCardVersion: Int? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.GetModelCardResult): GetModelCardResult = GetModelCardResult(
            content = javaType.content().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelCardContent.Companion.toKotlin(args0)
                })
            }).orElse(null),
            createdBy = javaType.createdBy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelCardUserContext.Companion.toKotlin(args0)
                })
            }).orElse(null),
            creationTime = javaType.creationTime().map({ args0 -> args0 }).orElse(null),
            lastModifiedBy = javaType.lastModifiedBy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelCardUserContext.Companion.toKotlin(args0)
                })
            }).orElse(null),
            lastModifiedTime = javaType.lastModifiedTime().map({ args0 -> args0 }).orElse(null),
            modelCardArn = javaType.modelCardArn().map({ args0 -> args0 }).orElse(null),
            modelCardProcessingStatus = javaType.modelCardProcessingStatus().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardProcessingStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            modelCardStatus = javaType.modelCardStatus().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            modelCardVersion = javaType.modelCardVersion().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy