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

com.pulumi.awsnative.appsync.kotlin.SourceApiAssociationArgs.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.appsync.kotlin

import com.pulumi.awsnative.appsync.SourceApiAssociationArgs.builder
import com.pulumi.awsnative.appsync.kotlin.inputs.SourceApiAssociationConfigArgs
import com.pulumi.awsnative.appsync.kotlin.inputs.SourceApiAssociationConfigArgsBuilder
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

/**
 * Resource Type definition for AWS::AppSync::SourceApiAssociation
 * @property description Description of the SourceApiAssociation.
 * @property mergedApiIdentifier Identifier of the Merged GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
 * @property sourceApiAssociationConfig Customized configuration for SourceApiAssociation.
 * @property sourceApiIdentifier Identifier of the Source GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
 */
public data class SourceApiAssociationArgs(
    public val description: Output? = null,
    public val mergedApiIdentifier: Output? = null,
    public val sourceApiAssociationConfig: Output? = null,
    public val sourceApiIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appsync.SourceApiAssociationArgs =
        com.pulumi.awsnative.appsync.SourceApiAssociationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .mergedApiIdentifier(mergedApiIdentifier?.applyValue({ args0 -> args0 }))
            .sourceApiAssociationConfig(
                sourceApiAssociationConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sourceApiIdentifier(sourceApiIdentifier?.applyValue({ args0 -> args0 })).build()
}

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

    private var mergedApiIdentifier: Output? = null

    private var sourceApiAssociationConfig: Output? = null

    private var sourceApiIdentifier: Output? = null

    /**
     * @param value Description of the SourceApiAssociation.
     */
    @JvmName("bdagjphhcuctpdry")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Identifier of the Merged GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
     */
    @JvmName("qlcrdkcvyfxtmpod")
    public suspend fun mergedApiIdentifier(`value`: Output) {
        this.mergedApiIdentifier = value
    }

    /**
     * @param value Customized configuration for SourceApiAssociation.
     */
    @JvmName("iepxjjpmhxyjekhl")
    public suspend fun sourceApiAssociationConfig(`value`: Output) {
        this.sourceApiAssociationConfig = value
    }

    /**
     * @param value Identifier of the Source GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
     */
    @JvmName("xntsnuoetpaymltv")
    public suspend fun sourceApiIdentifier(`value`: Output) {
        this.sourceApiIdentifier = value
    }

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

    /**
     * @param value Identifier of the Merged GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
     */
    @JvmName("nlvrhmwequqcbilb")
    public suspend fun mergedApiIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mergedApiIdentifier = mapped
    }

    /**
     * @param value Customized configuration for SourceApiAssociation.
     */
    @JvmName("ouunaccjvqjaqono")
    public suspend fun sourceApiAssociationConfig(`value`: SourceApiAssociationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceApiAssociationConfig = mapped
    }

    /**
     * @param argument Customized configuration for SourceApiAssociation.
     */
    @JvmName("atrnumxyukmniaow")
    public suspend fun sourceApiAssociationConfig(argument: suspend SourceApiAssociationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = SourceApiAssociationConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceApiAssociationConfig = mapped
    }

    /**
     * @param value Identifier of the Source GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
     */
    @JvmName("fuaxnhuurijytaaf")
    public suspend fun sourceApiIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceApiIdentifier = mapped
    }

    internal fun build(): SourceApiAssociationArgs = SourceApiAssociationArgs(
        description = description,
        mergedApiIdentifier = mergedApiIdentifier,
        sourceApiAssociationConfig = sourceApiAssociationConfig,
        sourceApiIdentifier = sourceApiIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy