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

com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionVpcConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.sagemaker.kotlin.inputs

import com.pulumi.awsnative.sagemaker.inputs.ModelQualityJobDefinitionVpcConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.
 * @property securityGroupIds The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.
 * @property subnets The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.
 */
public data class ModelQualityJobDefinitionVpcConfigArgs(
    public val securityGroupIds: Output>,
    public val subnets: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelQualityJobDefinitionVpcConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelQualityJobDefinitionVpcConfigArgs.builder()
            .securityGroupIds(securityGroupIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnets(subnets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ModelQualityJobDefinitionVpcConfigArgs].
 */
@PulumiTagMarker
public class ModelQualityJobDefinitionVpcConfigArgsBuilder internal constructor() {
    private var securityGroupIds: Output>? = null

    private var subnets: Output>? = null

    /**
     * @param value The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.
     */
    @JvmName("dhkbwaihddhubjpd")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

    @JvmName("tlnbghoqsdtoklua")
    public suspend fun securityGroupIds(vararg values: Output) {
        this.securityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.
     */
    @JvmName("rwhywiaavcvshaso")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.
     */
    @JvmName("yrffxkrbkxespeti")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

    @JvmName("upapevvkrfkamxbx")
    public suspend fun subnets(vararg values: Output) {
        this.subnets = Output.all(values.asList())
    }

    /**
     * @param values The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.
     */
    @JvmName("afipffnyxdsstkum")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.
     */
    @JvmName("gqrjtfpeyogheriq")
    public suspend fun securityGroupIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.
     */
    @JvmName("weuqcqudbbxogrks")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.
     */
    @JvmName("ncavjueyciklpbye")
    public suspend fun subnets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param values The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.
     */
    @JvmName("qgqpnefbclkseocp")
    public suspend fun subnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    internal fun build(): ModelQualityJobDefinitionVpcConfigArgs =
        ModelQualityJobDefinitionVpcConfigArgs(
            securityGroupIds = securityGroupIds ?: throw PulumiNullFieldException("securityGroupIds"),
            subnets = subnets ?: throw PulumiNullFieldException("subnets"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy