Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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.ModelPackageArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageModelApprovalStatus
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageSkipModelValidation
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageAdditionalInferenceSpecificationDefinitionArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageAdditionalInferenceSpecificationDefinitionArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageCustomerMetadataPropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageCustomerMetadataPropertiesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageDriftCheckBaselinesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageDriftCheckBaselinesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageInferenceSpecificationArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageInferenceSpecificationArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageMetadataPropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageMetadataPropertiesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageModelCardArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageModelCardArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageModelMetricsArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageModelMetricsArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageSecurityConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageSecurityConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageSourceAlgorithmSpecificationArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageSourceAlgorithmSpecificationArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageStatusDetailsArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageStatusDetailsArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageValidationSpecificationArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageValidationSpecificationArgsBuilder
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::SageMaker::ModelPackage
* @property additionalInferenceSpecifications An array of additional Inference Specification objects.
* @property additionalInferenceSpecificationsToAdd An array of additional Inference Specification objects to be added to the existing array. The total number of additional Inference Specification objects cannot exceed 15. Each additional Inference Specification object specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
* @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 clientToken A unique token that guarantees that the call to this API is idempotent.
* @property customerMetadataProperties The metadata properties for the model package.
* @property domain The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
* @property driftCheckBaselines Represents the drift check baselines that can be used when the model monitor is set using the model package.
* @property inferenceSpecification Defines how to perform inference generation after a training job is run.
* @property lastModifiedTime The last time the model package was modified.
* @property metadataProperties Metadata properties of the tracking entity, trial, or trial component.
* @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 modelCard An Amazon SageMaker Model Card.
* @property modelMetrics Metrics for the model.
* @property modelPackageDescription The description of the model package.
* @property modelPackageGroupName The model group to which the model belongs.
* @property modelPackageName The name of the model.
* @property modelPackageStatusDetails Specifies the validation and image scan statuses of the model package.
* @property modelPackageVersion The version number of a versioned model.
* @property samplePayloadUrl The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
* @property securityConfig
* @property skipModelValidation Indicates if you want to skip model validation.
* @property sourceAlgorithmSpecification A list of algorithms that were used to create a model package.
* @property sourceUri The URI of the source for the model package.
* @property tags An array of key-value pairs to apply to this resource.
* @property task The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
* @property validationSpecification Specifies batch transform jobs that SageMaker runs to validate your model package.
*/
public data class ModelPackageArgs(
public val additionalInferenceSpecifications: Output>? = null,
public val additionalInferenceSpecificationsToAdd: Output>? = null,
public val approvalDescription: Output? = null,
public val certifyForMarketplace: Output? = null,
public val clientToken: Output? = null,
public val customerMetadataProperties: Output? = null,
public val domain: Output? = null,
public val driftCheckBaselines: Output? = null,
public val inferenceSpecification: Output? = null,
public val lastModifiedTime: Output? = null,
public val metadataProperties: Output? = null,
public val modelApprovalStatus: Output? = null,
public val modelCard: Output? = null,
public val modelMetrics: Output? = null,
public val modelPackageDescription: Output? = null,
public val modelPackageGroupName: Output? = null,
public val modelPackageName: Output? = null,
public val modelPackageStatusDetails: Output? = null,
public val modelPackageVersion: Output? = null,
public val samplePayloadUrl: Output? = null,
public val securityConfig: Output? = null,
public val skipModelValidation: Output? = null,
public val sourceAlgorithmSpecification: Output? =
null,
public val sourceUri: Output? = null,
public val tags: Output>? = null,
public val task: Output? = null,
public val validationSpecification: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.ModelPackageArgs =
com.pulumi.awsnative.sagemaker.ModelPackageArgs.builder()
.additionalInferenceSpecifications(
additionalInferenceSpecifications?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.additionalInferenceSpecificationsToAdd(
additionalInferenceSpecificationsToAdd?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.approvalDescription(approvalDescription?.applyValue({ args0 -> args0 }))
.certifyForMarketplace(certifyForMarketplace?.applyValue({ args0 -> args0 }))
.clientToken(clientToken?.applyValue({ args0 -> args0 }))
.customerMetadataProperties(
customerMetadataProperties?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.domain(domain?.applyValue({ args0 -> args0 }))
.driftCheckBaselines(
driftCheckBaselines?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.inferenceSpecification(
inferenceSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.lastModifiedTime(lastModifiedTime?.applyValue({ args0 -> args0 }))
.metadataProperties(
metadataProperties?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.modelApprovalStatus(
modelApprovalStatus?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.modelCard(modelCard?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.modelMetrics(modelMetrics?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.modelPackageDescription(modelPackageDescription?.applyValue({ args0 -> args0 }))
.modelPackageGroupName(modelPackageGroupName?.applyValue({ args0 -> args0 }))
.modelPackageName(modelPackageName?.applyValue({ args0 -> args0 }))
.modelPackageStatusDetails(
modelPackageStatusDetails?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.modelPackageVersion(modelPackageVersion?.applyValue({ args0 -> args0 }))
.samplePayloadUrl(samplePayloadUrl?.applyValue({ args0 -> args0 }))
.securityConfig(securityConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.skipModelValidation(
skipModelValidation?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.sourceAlgorithmSpecification(
sourceAlgorithmSpecification?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.sourceUri(sourceUri?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.task(task?.applyValue({ args0 -> args0 }))
.validationSpecification(
validationSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ModelPackageArgs].
*/
@PulumiTagMarker
public class ModelPackageArgsBuilder internal constructor() {
private var additionalInferenceSpecifications:
Output>? = null
private var additionalInferenceSpecificationsToAdd:
Output>? = null
private var approvalDescription: Output? = null
private var certifyForMarketplace: Output? = null
private var clientToken: Output? = null
private var customerMetadataProperties: Output? = null
private var domain: Output? = null
private var driftCheckBaselines: Output? = null
private var inferenceSpecification: Output? = null
private var lastModifiedTime: Output? = null
private var metadataProperties: Output? = null
private var modelApprovalStatus: Output? = null
private var modelCard: Output? = null
private var modelMetrics: Output? = null
private var modelPackageDescription: Output? = null
private var modelPackageGroupName: Output? = null
private var modelPackageName: Output? = null
private var modelPackageStatusDetails: Output? = null
private var modelPackageVersion: Output? = null
private var samplePayloadUrl: Output? = null
private var securityConfig: Output? = null
private var skipModelValidation: Output? = null
private var sourceAlgorithmSpecification: Output? =
null
private var sourceUri: Output? = null
private var tags: Output>? = null
private var task: Output? = null
private var validationSpecification: Output? = null
/**
* @param value An array of additional Inference Specification objects.
*/
@JvmName("eejkytmhaahboecr")
public suspend fun additionalInferenceSpecifications(`value`: Output>) {
this.additionalInferenceSpecifications = value
}
@JvmName("clxklirsktgxgasb")
public suspend fun additionalInferenceSpecifications(vararg values: Output) {
this.additionalInferenceSpecifications = Output.all(values.asList())
}
/**
* @param values An array of additional Inference Specification objects.
*/
@JvmName("aqlktjmtpjjdxoha")
public suspend fun additionalInferenceSpecifications(values: List