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

com.pulumi.awsnative.appconfig.kotlin.inputs.ExtensionActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appconfig.kotlin.inputs

import com.pulumi.awsnative.appconfig.inputs.ExtensionActionArgs.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

/**
 * An action for an extension to take at a specific action point.
 * @property description The description of the extension Action.
 * @property name The name of the extension action.
 * @property roleArn The ARN of the role for invoking the extension action.
 * @property uri The URI of the extension action.
 */
public data class ExtensionActionArgs(
    public val description: Output? = null,
    public val name: Output,
    public val roleArn: Output? = null,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appconfig.inputs.ExtensionActionArgs =
        com.pulumi.awsnative.appconfig.inputs.ExtensionActionArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExtensionActionArgs].
 */
@PulumiTagMarker
public class ExtensionActionArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var roleArn: Output? = null

    private var uri: Output? = null

    /**
     * @param value The description of the extension Action.
     */
    @JvmName("emeorxbwojfjtqja")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the extension action.
     */
    @JvmName("hgwheaetgaafwjgi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of the role for invoking the extension action.
     */
    @JvmName("nfqecyfuaiaeesff")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The URI of the extension action.
     */
    @JvmName("ydxbcwasgnbuobev")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value The description of the extension Action.
     */
    @JvmName("npjikxgqbobtptyy")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the extension action.
     */
    @JvmName("vormrpyyldixqnsw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ARN of the role for invoking the extension action.
     */
    @JvmName("khifpqbuehvelwtm")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The URI of the extension action.
     */
    @JvmName("safpiiinucnycgqb")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): ExtensionActionArgs = ExtensionActionArgs(
        description = description,
        name = name ?: throw PulumiNullFieldException("name"),
        roleArn = roleArn,
        uri = uri ?: throw PulumiNullFieldException("uri"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy