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

com.pulumi.awsnative.sagemaker.kotlin.ProjectArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.sagemaker.ProjectArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ServiceCatalogProvisionedProductDetailsPropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ServiceCatalogProvisionedProductDetailsPropertiesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ServiceCatalogProvisioningDetailsPropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ServiceCatalogProvisioningDetailsPropertiesArgsBuilder
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::Project
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property projectDescription The description of the project.
 * @property projectName The name of the project.
 * @property serviceCatalogProvisionedProductDetails Provisioned ServiceCatalog  Details
 * @property serviceCatalogProvisioningDetails Input ServiceCatalog Provisioning Details
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ProjectArgs(
    public val projectDescription: Output? = null,
    public val projectName: Output? = null,
    public val serviceCatalogProvisionedProductDetails: Output? = null,
    public val serviceCatalogProvisioningDetails: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.ProjectArgs =
        com.pulumi.awsnative.sagemaker.ProjectArgs.builder()
            .projectDescription(projectDescription?.applyValue({ args0 -> args0 }))
            .projectName(projectName?.applyValue({ args0 -> args0 }))
            .serviceCatalogProvisionedProductDetails(
                serviceCatalogProvisionedProductDetails?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .serviceCatalogProvisioningDetails(
                serviceCatalogProvisioningDetails?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ProjectArgs].
 */
@PulumiTagMarker
public class ProjectArgsBuilder internal constructor() {
    private var projectDescription: Output? = null

    private var projectName: Output? = null

    private var serviceCatalogProvisionedProductDetails:
        Output? = null

    private var serviceCatalogProvisioningDetails:
        Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description of the project.
     */
    @JvmName("qttijnigyexfqenh")
    public suspend fun projectDescription(`value`: Output) {
        this.projectDescription = value
    }

    /**
     * @param value The name of the project.
     */
    @JvmName("hhubdswifrswtgck")
    public suspend fun projectName(`value`: Output) {
        this.projectName = value
    }

    /**
     * @param value Provisioned ServiceCatalog  Details
     */
    @JvmName("ftkuxevdokywvnwt")
    public suspend fun serviceCatalogProvisionedProductDetails(`value`: Output) {
        this.serviceCatalogProvisionedProductDetails = value
    }

    /**
     * @param value Input ServiceCatalog Provisioning Details
     */
    @JvmName("igacfgelebuwrkxy")
    public suspend fun serviceCatalogProvisioningDetails(`value`: Output) {
        this.serviceCatalogProvisioningDetails = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ffjwuwlbyegvxily")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ckwjqrrryiqnylqe")
    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("sjclobfxclrfnddb")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The name of the project.
     */
    @JvmName("amikhqgtaopnwdvb")
    public suspend fun projectName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectName = mapped
    }

    /**
     * @param value Provisioned ServiceCatalog  Details
     */
    @JvmName("qougauyddjdlnekl")
    public suspend fun serviceCatalogProvisionedProductDetails(`value`: ServiceCatalogProvisionedProductDetailsPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceCatalogProvisionedProductDetails = mapped
    }

    /**
     * @param argument Provisioned ServiceCatalog  Details
     */
    @JvmName("uedlhyxqkdetlnfu")
    public suspend fun serviceCatalogProvisionedProductDetails(argument: suspend ServiceCatalogProvisionedProductDetailsPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCatalogProvisionedProductDetailsPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serviceCatalogProvisionedProductDetails = mapped
    }

    /**
     * @param value Input ServiceCatalog Provisioning Details
     */
    @JvmName("inuhatwatrqewtbg")
    public suspend fun serviceCatalogProvisioningDetails(`value`: ServiceCatalogProvisioningDetailsPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceCatalogProvisioningDetails = mapped
    }

    /**
     * @param argument Input ServiceCatalog Provisioning Details
     */
    @JvmName("jrgqhkvcadeydivn")
    public suspend fun serviceCatalogProvisioningDetails(argument: suspend ServiceCatalogProvisioningDetailsPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCatalogProvisioningDetailsPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serviceCatalogProvisioningDetails = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ojvxvewsnofjbryg")
    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("yxmttcgtdbwsufvi")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("hetjtmlwunbqabcp")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("wibiwsebnxcexhtx")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

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

    internal fun build(): ProjectArgs = ProjectArgs(
        projectDescription = projectDescription,
        projectName = projectName,
        serviceCatalogProvisionedProductDetails = serviceCatalogProvisionedProductDetails,
        serviceCatalogProvisioningDetails = serviceCatalogProvisioningDetails,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy