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

com.pulumi.aws.sagemaker.kotlin.ModelPackageGroupPolicyArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.sagemaker.kotlin

import com.pulumi.aws.sagemaker.ModelPackageGroupPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a SageMaker Model Package Group Policy resource.
 * ## Example Usage
 * ## Import
 * Using `pulumi import`, import SageMaker Model Package Groups using the `name`. For example:
 * ```sh
 * $ pulumi import aws:sagemaker/modelPackageGroupPolicy:ModelPackageGroupPolicy example example
 * ```
 * @property modelPackageGroupName The name of the model package group.
 * @property resourcePolicy
 */
public data class ModelPackageGroupPolicyArgs(
    public val modelPackageGroupName: Output? = null,
    public val resourcePolicy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sagemaker.ModelPackageGroupPolicyArgs =
        com.pulumi.aws.sagemaker.ModelPackageGroupPolicyArgs.builder()
            .modelPackageGroupName(modelPackageGroupName?.applyValue({ args0 -> args0 }))
            .resourcePolicy(resourcePolicy?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ModelPackageGroupPolicyArgs].
 */
@PulumiTagMarker
public class ModelPackageGroupPolicyArgsBuilder internal constructor() {
    private var modelPackageGroupName: Output? = null

    private var resourcePolicy: Output? = null

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

    /**
     * @param value
     */
    @JvmName("gigaewchmawvxhuk")
    public suspend fun resourcePolicy(`value`: Output) {
        this.resourcePolicy = value
    }

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

    /**
     * @param value
     */
    @JvmName("flliapcumcllianp")
    public suspend fun resourcePolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourcePolicy = mapped
    }

    internal fun build(): ModelPackageGroupPolicyArgs = ModelPackageGroupPolicyArgs(
        modelPackageGroupName = modelPackageGroupName,
        resourcePolicy = resourcePolicy,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy