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

com.pulumi.awsnative.s3objectlambda.kotlin.AccessPointArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.s3objectlambda.kotlin

import com.pulumi.awsnative.s3objectlambda.AccessPointArgs.builder
import com.pulumi.awsnative.s3objectlambda.kotlin.inputs.AccessPointObjectLambdaConfigurationArgs
import com.pulumi.awsnative.s3objectlambda.kotlin.inputs.AccessPointObjectLambdaConfigurationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The AWS::S3ObjectLambda::AccessPoint resource is an Amazon S3ObjectLambda resource type that you can use to add computation to S3 actions
 * @property name The name you want to assign to this Object lambda Access Point.
 * @property objectLambdaConfiguration The Object lambda Access Point Configuration that configures transformations to be applied on the objects on specified S3 Actions
 */
public data class AccessPointArgs(
    public val name: Output? = null,
    public val objectLambdaConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3objectlambda.AccessPointArgs =
        com.pulumi.awsnative.s3objectlambda.AccessPointArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .objectLambdaConfiguration(
                objectLambdaConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AccessPointArgs].
 */
@PulumiTagMarker
public class AccessPointArgsBuilder internal constructor() {
    private var name: Output? = null

    private var objectLambdaConfiguration: Output? = null

    /**
     * @param value The name you want to assign to this Object lambda Access Point.
     */
    @JvmName("mwvqdwtmihedrskb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The Object lambda Access Point Configuration that configures transformations to be applied on the objects on specified S3 Actions
     */
    @JvmName("wlplrouorrrvlmpd")
    public suspend fun objectLambdaConfiguration(`value`: Output) {
        this.objectLambdaConfiguration = value
    }

    /**
     * @param value The name you want to assign to this Object lambda Access Point.
     */
    @JvmName("mwbwaikemqhyqogy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The Object lambda Access Point Configuration that configures transformations to be applied on the objects on specified S3 Actions
     */
    @JvmName("xlmjettuculxvrwl")
    public suspend fun objectLambdaConfiguration(`value`: AccessPointObjectLambdaConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectLambdaConfiguration = mapped
    }

    /**
     * @param argument The Object lambda Access Point Configuration that configures transformations to be applied on the objects on specified S3 Actions
     */
    @JvmName("ndpojfwwpqoralia")
    public suspend fun objectLambdaConfiguration(argument: suspend AccessPointObjectLambdaConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AccessPointObjectLambdaConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.objectLambdaConfiguration = mapped
    }

    internal fun build(): AccessPointArgs = AccessPointArgs(
        name = name,
        objectLambdaConfiguration = objectLambdaConfiguration,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy