com.pulumi.awsnative.sagemaker.kotlin.ImageArgs.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
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sagemaker.ImageArgs.builder
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::Image
* @property imageDescription The description of the image.
* @property imageDisplayName The display name of the image.
* *Length Constraints* : Minimum length of 1. Maximum length of 128.
* *Pattern* : `^\S(.*\S)?$`
* @property imageName The name of the Image. Must be unique by region in your account.
* *Length Constraints* : Minimum length of 1. Maximum length of 63.
* *Pattern* : `^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$`
* @property imageRoleArn The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
* *Length Constraints* : Minimum length of 20. Maximum length of 2048.
* *Pattern* : `^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$`
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class ImageArgs(
public val imageDescription: Output? = null,
public val imageDisplayName: Output? = null,
public val imageName: Output? = null,
public val imageRoleArn: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.ImageArgs =
com.pulumi.awsnative.sagemaker.ImageArgs.builder()
.imageDescription(imageDescription?.applyValue({ args0 -> args0 }))
.imageDisplayName(imageDisplayName?.applyValue({ args0 -> args0 }))
.imageName(imageName?.applyValue({ args0 -> args0 }))
.imageRoleArn(imageRoleArn?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ImageArgs].
*/
@PulumiTagMarker
public class ImageArgsBuilder internal constructor() {
private var imageDescription: Output? = null
private var imageDisplayName: Output? = null
private var imageName: Output? = null
private var imageRoleArn: Output? = null
private var tags: Output>? = null
/**
* @param value The description of the image.
*/
@JvmName("ktupxtxynygokjpe")
public suspend fun imageDescription(`value`: Output) {
this.imageDescription = value
}
/**
* @param value The display name of the image.
* *Length Constraints* : Minimum length of 1. Maximum length of 128.
* *Pattern* : `^\S(.*\S)?$`
*/
@JvmName("lnpeywysxuxqblyn")
public suspend fun imageDisplayName(`value`: Output) {
this.imageDisplayName = value
}
/**
* @param value The name of the Image. Must be unique by region in your account.
* *Length Constraints* : Minimum length of 1. Maximum length of 63.
* *Pattern* : `^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$`
*/
@JvmName("bshkkpihhrihpbsk")
public suspend fun imageName(`value`: Output) {
this.imageName = value
}
/**
* @param value The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
* *Length Constraints* : Minimum length of 20. Maximum length of 2048.
* *Pattern* : `^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$`
*/
@JvmName("ywsebclvjkwbxicy")
public suspend fun imageRoleArn(`value`: Output) {
this.imageRoleArn = value
}
/**
* @param value An array of key-value pairs to apply to this resource.
*/
@JvmName("omtimuruvsdxpmpd")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("rydvxgcissrmglwb")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An array of key-value pairs to apply to this resource.
*/
@JvmName("kvmlkgryrbvcrscm")
public suspend fun tags(values: List