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

com.pulumi.awsnative.s3objectlambda.kotlin.inputs.AccessPointTransformationConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.s3objectlambda.kotlin.inputs

import com.pulumi.awsnative.s3objectlambda.inputs.AccessPointTransformationConfigurationArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Configuration to define what content transformation will be applied on which S3 Action.
 * @property actions A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject` , `HeadObject` , `ListObjects` , and `ListObjectsV2` .
 * @property contentTransformation A container for the content transformation of an Object Lambda Access Point configuration. Can include the FunctionArn and FunctionPayload. For more information, see [AwsLambdaTransformation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_AwsLambdaTransformation.html) in the *Amazon S3 API Reference* .
 */
public data class AccessPointTransformationConfigurationArgs(
    public val actions: Output>,
    public val contentTransformation: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3objectlambda.inputs.AccessPointTransformationConfigurationArgs =
        com.pulumi.awsnative.s3objectlambda.inputs.AccessPointTransformationConfigurationArgs.builder()
            .actions(actions.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .contentTransformation(
                contentTransformation.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var contentTransformation:
        Output? = null

    /**
     * @param value A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject` , `HeadObject` , `ListObjects` , and `ListObjectsV2` .
     */
    @JvmName("tvceamardvyonbqs")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param values A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject` , `HeadObject` , `ListObjects` , and `ListObjectsV2` .
     */
    @JvmName("xbqqiwsesreidgrv")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value A container for the content transformation of an Object Lambda Access Point configuration. Can include the FunctionArn and FunctionPayload. For more information, see [AwsLambdaTransformation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_AwsLambdaTransformation.html) in the *Amazon S3 API Reference* .
     */
    @JvmName("kdiicknchfowscih")
    public suspend fun contentTransformation(`value`: Output) {
        this.contentTransformation = value
    }

    /**
     * @param value A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject` , `HeadObject` , `ListObjects` , and `ListObjectsV2` .
     */
    @JvmName("gsxxmcwabtvyjmgn")
    public suspend fun actions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param values A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject` , `HeadObject` , `ListObjects` , and `ListObjectsV2` .
     */
    @JvmName("jvrjkcahoeyymuto")
    public suspend fun actions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param value A container for the content transformation of an Object Lambda Access Point configuration. Can include the FunctionArn and FunctionPayload. For more information, see [AwsLambdaTransformation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_AwsLambdaTransformation.html) in the *Amazon S3 API Reference* .
     */
    @JvmName("ysjfgksybmmjiepo")
    public suspend fun contentTransformation(`value`: AccessPointTransformationConfigurationContentTransformationPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentTransformation = mapped
    }

    /**
     * @param argument A container for the content transformation of an Object Lambda Access Point configuration. Can include the FunctionArn and FunctionPayload. For more information, see [AwsLambdaTransformation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_AwsLambdaTransformation.html) in the *Amazon S3 API Reference* .
     */
    @JvmName("rkcrdkdrbcdticjq")
    public suspend fun contentTransformation(argument: suspend AccessPointTransformationConfigurationContentTransformationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            AccessPointTransformationConfigurationContentTransformationPropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.contentTransformation = mapped
    }

    internal fun build(): AccessPointTransformationConfigurationArgs =
        AccessPointTransformationConfigurationArgs(
            actions = actions ?: throw PulumiNullFieldException("actions"),
            contentTransformation = contentTransformation ?: throw
                PulumiNullFieldException("contentTransformation"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy