
com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelBiasJobDefinitionNetworkConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.inputs
import com.pulumi.awsnative.sagemaker.inputs.ModelBiasJobDefinitionNetworkConfigArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.
* @property enableInterContainerTrafficEncryption Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.
* @property enableNetworkIsolation Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
* @property vpcConfig 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.
*/
public data class ModelBiasJobDefinitionNetworkConfigArgs(
public val enableInterContainerTrafficEncryption: Output? = null,
public val enableNetworkIsolation: Output? = null,
public val vpcConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelBiasJobDefinitionNetworkConfigArgs =
com.pulumi.awsnative.sagemaker.inputs.ModelBiasJobDefinitionNetworkConfigArgs.builder()
.enableInterContainerTrafficEncryption(
enableInterContainerTrafficEncryption?.applyValue({ args0 ->
args0
}),
)
.enableNetworkIsolation(enableNetworkIsolation?.applyValue({ args0 -> args0 }))
.vpcConfig(vpcConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ModelBiasJobDefinitionNetworkConfigArgs].
*/
@PulumiTagMarker
public class ModelBiasJobDefinitionNetworkConfigArgsBuilder internal constructor() {
private var enableInterContainerTrafficEncryption: Output? = null
private var enableNetworkIsolation: Output? = null
private var vpcConfig: Output? = null
/**
* @param value Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.
*/
@JvmName("gddbsorseqteeedb")
public suspend fun enableInterContainerTrafficEncryption(`value`: Output) {
this.enableInterContainerTrafficEncryption = value
}
/**
* @param value Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
*/
@JvmName("khhgnqvhaaaswlqa")
public suspend fun enableNetworkIsolation(`value`: Output) {
this.enableNetworkIsolation = value
}
/**
* @param value 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.
*/
@JvmName("wtxenfiuodrjwfym")
public suspend fun vpcConfig(`value`: Output) {
this.vpcConfig = value
}
/**
* @param value Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.
*/
@JvmName("yalnwgmrfcbyobki")
public suspend fun enableInterContainerTrafficEncryption(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableInterContainerTrafficEncryption = mapped
}
/**
* @param value Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
*/
@JvmName("xqpuhmsjqctcucbb")
public suspend fun enableNetworkIsolation(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableNetworkIsolation = mapped
}
/**
* @param value 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.
*/
@JvmName("eojhohrsefbcuvap")
public suspend fun vpcConfig(`value`: ModelBiasJobDefinitionVpcConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vpcConfig = mapped
}
/**
* @param argument 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.
*/
@JvmName("nvumgmttfrfiwsbj")
public suspend fun vpcConfig(argument: suspend ModelBiasJobDefinitionVpcConfigArgsBuilder.() -> Unit) {
val toBeMapped = ModelBiasJobDefinitionVpcConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.vpcConfig = mapped
}
internal fun build(): ModelBiasJobDefinitionNetworkConfigArgs =
ModelBiasJobDefinitionNetworkConfigArgs(
enableInterContainerTrafficEncryption = enableInterContainerTrafficEncryption,
enableNetworkIsolation = enableNetworkIsolation,
vpcConfig = vpcConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy