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

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

@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.ModelPackageGroupArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::SageMaker::ModelPackageGroup
 * @property modelPackageGroupDescription The description for the model group.
 * @property modelPackageGroupName The name of the model group.
 * @property modelPackageGroupPolicy A resouce policy to control access to a model group. For information about resoure policies, see [Identity-based policies and resource-based policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html) in the *AWS Identity and Access Management User Guide.* .
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SageMaker::ModelPackageGroup` for more information about the expected schema for this property.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ModelPackageGroupArgs(
    public val modelPackageGroupDescription: Output? = null,
    public val modelPackageGroupName: Output? = null,
    public val modelPackageGroupPolicy: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.ModelPackageGroupArgs =
        com.pulumi.awsnative.sagemaker.ModelPackageGroupArgs.builder()
            .modelPackageGroupDescription(modelPackageGroupDescription?.applyValue({ args0 -> args0 }))
            .modelPackageGroupName(modelPackageGroupName?.applyValue({ args0 -> args0 }))
            .modelPackageGroupPolicy(modelPackageGroupPolicy?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ModelPackageGroupArgs].
 */
@PulumiTagMarker
public class ModelPackageGroupArgsBuilder internal constructor() {
    private var modelPackageGroupDescription: Output? = null

    private var modelPackageGroupName: Output? = null

    private var modelPackageGroupPolicy: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description for the model group.
     */
    @JvmName("eiwwtrphrdgrhbwl")
    public suspend fun modelPackageGroupDescription(`value`: Output) {
        this.modelPackageGroupDescription = value
    }

    /**
     * @param value The name of the model group.
     */
    @JvmName("wduneowpuefdvcsd")
    public suspend fun modelPackageGroupName(`value`: Output) {
        this.modelPackageGroupName = value
    }

    /**
     * @param value A resouce policy to control access to a model group. For information about resoure policies, see [Identity-based policies and resource-based policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html) in the *AWS Identity and Access Management User Guide.* .
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SageMaker::ModelPackageGroup` for more information about the expected schema for this property.
     */
    @JvmName("vicrsjuoycvquhyk")
    public suspend fun modelPackageGroupPolicy(`value`: Output) {
        this.modelPackageGroupPolicy = value
    }

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

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

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

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

    /**
     * @param value A resouce policy to control access to a model group. For information about resoure policies, see [Identity-based policies and resource-based policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html) in the *AWS Identity and Access Management User Guide.* .
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SageMaker::ModelPackageGroup` for more information about the expected schema for this property.
     */
    @JvmName("ftjoricityjrsdcl")
    public suspend fun modelPackageGroupPolicy(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelPackageGroupPolicy = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("mlmvwskeeuyrkqxp")
    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("nloqlxpqabglsopn")
    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("nijlevjqgrflygme")
    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("wljmuletvqojyavh")
    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("rcymfrqifslmajnw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ModelPackageGroupArgs = ModelPackageGroupArgs(
        modelPackageGroupDescription = modelPackageGroupDescription,
        modelPackageGroupName = modelPackageGroupName,
        modelPackageGroupPolicy = modelPackageGroupPolicy,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy