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

com.pulumi.awsnative.sagemaker.kotlin.ImageArgs.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.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>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The description of the image.
     */
    @JvmName("yqrkrsbdojyjgsvl")
    public suspend fun imageDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageDescription = mapped
    }

    /**
     * @param value The display name of the image.
     * *Length Constraints* : Minimum length of 1. Maximum length of 128.
     * *Pattern* : `^\S(.*\S)?$`
     */
    @JvmName("attdndsptyppjptn")
    public suspend fun imageDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageDisplayName = mapped
    }

    /**
     * @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("wttuemqxjglssmqa")
    public suspend fun imageName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageName = mapped
    }

    /**
     * @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("ssxghvfnyluxskap")
    public suspend fun imageRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageRoleArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("gunnjscaoabfmwvs")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("hugygjpmjqcquyue")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("utdyeyfvpmipdkad")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("gmbuxycwnxyqfiur")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("mgmywpxhcsicfows")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ImageArgs = ImageArgs(
        imageDescription = imageDescription,
        imageDisplayName = imageDisplayName,
        imageName = imageName,
        imageRoleArn = imageRoleArn,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy