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

com.pulumi.aws.lambda.kotlin.inputs.EventSourceMappingSourceAccessConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.lambda.kotlin.inputs

import com.pulumi.aws.lambda.inputs.EventSourceMappingSourceAccessConfigurationArgs.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.jvm.JvmName

/**
 *
 * @property type The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
 * @property uri The URI for this configuration.  For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute.  For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
 */
public data class EventSourceMappingSourceAccessConfigurationArgs(
    public val type: Output,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lambda.inputs.EventSourceMappingSourceAccessConfigurationArgs =
        com.pulumi.aws.lambda.inputs.EventSourceMappingSourceAccessConfigurationArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventSourceMappingSourceAccessConfigurationArgs].
 */
@PulumiTagMarker
public class EventSourceMappingSourceAccessConfigurationArgsBuilder internal constructor() {
    private var type: Output? = null

    private var uri: Output? = null

    /**
     * @param value The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
     */
    @JvmName("cuolvlyfmssuohfo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The URI for this configuration.  For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute.  For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
     */
    @JvmName("hojiladpvyqoponk")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
     */
    @JvmName("wnumujscmfybltjr")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The URI for this configuration.  For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute.  For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
     */
    @JvmName("qwimdoliaeqmrmuf")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): EventSourceMappingSourceAccessConfigurationArgs =
        EventSourceMappingSourceAccessConfigurationArgs(
            type = type ?: throw PulumiNullFieldException("type"),
            uri = uri ?: throw PulumiNullFieldException("uri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy