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

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

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

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

import com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentDataStorageConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The Amazon S3 location and configuration for storing inference request and response data.
 * @property contentType Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.
 * @property destination The Amazon S3 bucket where the inference request and response data is stored.
 * @property kmsKey The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
 */
public data class InferenceExperimentDataStorageConfigArgs(
    public val contentType: Output? = null,
    public val destination: Output,
    public val kmsKey: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentDataStorageConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentDataStorageConfigArgs.builder()
            .contentType(contentType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .destination(destination.applyValue({ args0 -> args0 }))
            .kmsKey(kmsKey?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InferenceExperimentDataStorageConfigArgs].
 */
@PulumiTagMarker
public class InferenceExperimentDataStorageConfigArgsBuilder internal constructor() {
    private var contentType: Output? = null

    private var destination: Output? = null

    private var kmsKey: Output? = null

    /**
     * @param value Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.
     */
    @JvmName("msihfcpdwxtvtedy")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value The Amazon S3 bucket where the inference request and response data is stored.
     */
    @JvmName("bsjujwieheqdtwto")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
     */
    @JvmName("mwxbiddcuksetwmc")
    public suspend fun kmsKey(`value`: Output) {
        this.kmsKey = value
    }

    /**
     * @param value Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.
     */
    @JvmName("hpstgkqubklcrgmb")
    public suspend fun contentType(`value`: InferenceExperimentCaptureContentTypeHeaderArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param argument Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.
     */
    @JvmName("dfnlapkjjnfdhwju")
    public suspend fun contentType(argument: suspend InferenceExperimentCaptureContentTypeHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = InferenceExperimentCaptureContentTypeHeaderArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.contentType = mapped
    }

    /**
     * @param value The Amazon S3 bucket where the inference request and response data is stored.
     */
    @JvmName("voaetdwiwrmcljws")
    public suspend fun destination(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param value The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
     */
    @JvmName("aaaqmfgseswkggiv")
    public suspend fun kmsKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKey = mapped
    }

    internal fun build(): InferenceExperimentDataStorageConfigArgs =
        InferenceExperimentDataStorageConfigArgs(
            contentType = contentType,
            destination = destination ?: throw PulumiNullFieldException("destination"),
            kmsKey = kmsKey,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy