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

com.pulumi.aws.appsync.kotlin.inputs.DataSourceHttpConfigAuthorizationConfigArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appsync.kotlin.inputs

import com.pulumi.aws.appsync.inputs.DataSourceHttpConfigAuthorizationConfigArgs.builder
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

/**
 *
 * @property authorizationType Authorization type that the HTTP endpoint requires. Default values is `AWS_IAM`.
 * @property awsIamConfig Identity and Access Management (IAM) settings. See `aws_iam_config` Block for details.
 */
public data class DataSourceHttpConfigAuthorizationConfigArgs(
    public val authorizationType: Output? = null,
    public val awsIamConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appsync.inputs.DataSourceHttpConfigAuthorizationConfigArgs =
        com.pulumi.aws.appsync.inputs.DataSourceHttpConfigAuthorizationConfigArgs.builder()
            .authorizationType(authorizationType?.applyValue({ args0 -> args0 }))
            .awsIamConfig(awsIamConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DataSourceHttpConfigAuthorizationConfigArgs].
 */
@PulumiTagMarker
public class DataSourceHttpConfigAuthorizationConfigArgsBuilder internal constructor() {
    private var authorizationType: Output? = null

    private var awsIamConfig: Output? = null

    /**
     * @param value Authorization type that the HTTP endpoint requires. Default values is `AWS_IAM`.
     */
    @JvmName("hdbgibvrebeedghl")
    public suspend fun authorizationType(`value`: Output) {
        this.authorizationType = value
    }

    /**
     * @param value Identity and Access Management (IAM) settings. See `aws_iam_config` Block for details.
     */
    @JvmName("mjwbthvpplsvdqmq")
    public suspend fun awsIamConfig(`value`: Output) {
        this.awsIamConfig = value
    }

    /**
     * @param value Authorization type that the HTTP endpoint requires. Default values is `AWS_IAM`.
     */
    @JvmName("ydmbcdughqqkkalo")
    public suspend fun authorizationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizationType = mapped
    }

    /**
     * @param value Identity and Access Management (IAM) settings. See `aws_iam_config` Block for details.
     */
    @JvmName("kfkrmuxxkqrslack")
    public suspend fun awsIamConfig(`value`: DataSourceHttpConfigAuthorizationConfigAwsIamConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsIamConfig = mapped
    }

    /**
     * @param argument Identity and Access Management (IAM) settings. See `aws_iam_config` Block for details.
     */
    @JvmName("xxuefjlkpuusjnen")
    public suspend fun awsIamConfig(argument: suspend DataSourceHttpConfigAuthorizationConfigAwsIamConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceHttpConfigAuthorizationConfigAwsIamConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.awsIamConfig = mapped
    }

    internal fun build(): DataSourceHttpConfigAuthorizationConfigArgs =
        DataSourceHttpConfigAuthorizationConfigArgs(
            authorizationType = authorizationType,
            awsIamConfig = awsIamConfig,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy