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

com.pulumi.awsnative.lambda.kotlin.inputs.GetPermissionPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lambda.kotlin.inputs

import com.pulumi.awsnative.lambda.inputs.GetPermissionPlainArgs.builder
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 functionName The name or ARN of the Lambda function, version, or alias.
 *   **Name formats**
 *  +   *Function name* – ``my-function`` (name-only), ``my-function:v1`` (with alias).
 *   +   *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:my-function``.
 *   +   *Partial ARN* – ``123456789012:function:my-function``.
 *  You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
 * @property id
 */
public data class GetPermissionPlainArgs(
    public val functionName: String,
    public val id: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lambda.inputs.GetPermissionPlainArgs =
        com.pulumi.awsnative.lambda.inputs.GetPermissionPlainArgs.builder()
            .functionName(functionName.let({ args0 -> args0 }))
            .id(id.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetPermissionPlainArgs].
 */
@PulumiTagMarker
public class GetPermissionPlainArgsBuilder internal constructor() {
    private var functionName: String? = null

    private var id: String? = null

    /**
     * @param value The name or ARN of the Lambda function, version, or alias.
     *   **Name formats**
     *  +   *Function name* – ``my-function`` (name-only), ``my-function:v1`` (with alias).
     *   +   *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:my-function``.
     *   +   *Partial ARN* – ``123456789012:function:my-function``.
     *  You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
     */
    @JvmName("fxxugsiyvtumxmcf")
    public suspend fun functionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.functionName = mapped
    }

    /**
     * @param value
     */
    @JvmName("lbaowbsgfbjjktgy")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.id = mapped
    }

    internal fun build(): GetPermissionPlainArgs = GetPermissionPlainArgs(
        functionName = functionName ?: throw PulumiNullFieldException("functionName"),
        id = id ?: throw PulumiNullFieldException("id"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy