
com.pulumi.awsnative.sagemaker.kotlin.outputs.GetModelPackageResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.ModelPackageModelApprovalStatus
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageSkipModelValidation
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageStatus
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property additionalInferenceSpecifications An array of additional Inference Specification objects.
* @property approvalDescription A description provided when the model approval is set.
* @property certifyForMarketplace Whether the model package is to be certified to be listed on AWS Marketplace. For information about listing model packages on AWS Marketplace, see [List Your Algorithm or Model Package on AWS Marketplace](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-mkt-list.html) .
* @property creationTime The time that the model package was created.
* @property customerMetadataProperties The metadata properties for the model package.
* @property lastModifiedTime The last time the model package was modified.
* @property modelApprovalStatus The approval status of the model. This can be one of the following values.
* - `APPROVED` - The model is approved
* - `REJECTED` - The model is rejected.
* - `PENDING_MANUAL_APPROVAL` - The model is waiting for manual approval.
* @property modelPackageArn The Amazon Resource Name (ARN) of the model package.
* @property modelPackageName The name of the model.
* @property modelPackageStatus The status of the model package. This can be one of the following values.
* - `PENDING` - The model package creation is pending.
* - `IN_PROGRESS` - The model package is in the process of being created.
* - `COMPLETED` - The model package was successfully created.
* - `FAILED` - The model package creation failed.
* - `DELETING` - The model package is in the process of being deleted.
* @property modelPackageStatusDetails Specifies the validation and image scan statuses of the model package.
* @property modelPackageVersion The version number of a versioned model.
* @property skipModelValidation Indicates if you want to skip model validation.
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class GetModelPackageResult(
public val additionalInferenceSpecifications: List? = null,
public val approvalDescription: String? = null,
public val certifyForMarketplace: Boolean? = null,
public val creationTime: String? = null,
public val customerMetadataProperties: ModelPackageCustomerMetadataProperties? = null,
public val lastModifiedTime: String? = null,
public val modelApprovalStatus: ModelPackageModelApprovalStatus? = null,
public val modelPackageArn: String? = null,
public val modelPackageName: String? = null,
public val modelPackageStatus: ModelPackageStatus? = null,
public val modelPackageStatusDetails: ModelPackageStatusDetails? = null,
public val modelPackageVersion: Int? = null,
public val skipModelValidation: ModelPackageSkipModelValidation? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.GetModelPackageResult): GetModelPackageResult = GetModelPackageResult(
additionalInferenceSpecifications = javaType.additionalInferenceSpecifications().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageAdditionalInferenceSpecificationDefinition.Companion.toKotlin(args0)
})
}),
approvalDescription = javaType.approvalDescription().map({ args0 -> args0 }).orElse(null),
certifyForMarketplace = javaType.certifyForMarketplace().map({ args0 -> args0 }).orElse(null),
creationTime = javaType.creationTime().map({ args0 -> args0 }).orElse(null),
customerMetadataProperties = javaType.customerMetadataProperties().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageCustomerMetadataProperties.Companion.toKotlin(args0)
})
}).orElse(null),
lastModifiedTime = javaType.lastModifiedTime().map({ args0 -> args0 }).orElse(null),
modelApprovalStatus = javaType.modelApprovalStatus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageModelApprovalStatus.Companion.toKotlin(args0)
})
}).orElse(null),
modelPackageArn = javaType.modelPackageArn().map({ args0 -> args0 }).orElse(null),
modelPackageName = javaType.modelPackageName().map({ args0 -> args0 }).orElse(null),
modelPackageStatus = javaType.modelPackageStatus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageStatus.Companion.toKotlin(args0)
})
}).orElse(null),
modelPackageStatusDetails = javaType.modelPackageStatusDetails().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageStatusDetails.Companion.toKotlin(args0)
})
}).orElse(null),
modelPackageVersion = javaType.modelPackageVersion().map({ args0 -> args0 }).orElse(null),
skipModelValidation = javaType.skipModelValidation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageSkipModelValidation.Companion.toKotlin(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