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

com.pulumi.awsnative.codestarconnections.kotlin.RepositoryLinkArgs.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.codestarconnections.kotlin

import com.pulumi.awsnative.codestarconnections.RepositoryLinkArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Schema for AWS::CodeStarConnections::RepositoryLink resource which is used to aggregate repository metadata relevant to synchronizing source provider content to AWS Resources.
 * @property connectionArn The Amazon Resource Name (ARN) of the CodeStarConnection. The ARN is used as the connection reference when the connection is shared between AWS services.
 * @property encryptionKeyArn The ARN of the KMS key that the customer can optionally specify to use to encrypt RepositoryLink properties. If not specified, a default key will be used.
 * @property ownerId the ID of the entity that owns the repository.
 * @property repositoryName The repository for which the link is being created.
 * @property tags Specifies the tags applied to a RepositoryLink.
 */
public data class RepositoryLinkArgs(
    public val connectionArn: Output? = null,
    public val encryptionKeyArn: Output? = null,
    public val ownerId: Output? = null,
    public val repositoryName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codestarconnections.RepositoryLinkArgs =
        com.pulumi.awsnative.codestarconnections.RepositoryLinkArgs.builder()
            .connectionArn(connectionArn?.applyValue({ args0 -> args0 }))
            .encryptionKeyArn(encryptionKeyArn?.applyValue({ args0 -> args0 }))
            .ownerId(ownerId?.applyValue({ args0 -> args0 }))
            .repositoryName(repositoryName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RepositoryLinkArgs].
 */
@PulumiTagMarker
public class RepositoryLinkArgsBuilder internal constructor() {
    private var connectionArn: Output? = null

    private var encryptionKeyArn: Output? = null

    private var ownerId: Output? = null

    private var repositoryName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the CodeStarConnection. The ARN is used as the connection reference when the connection is shared between AWS services.
     */
    @JvmName("rerjmixyqpqbouin")
    public suspend fun connectionArn(`value`: Output) {
        this.connectionArn = value
    }

    /**
     * @param value The ARN of the KMS key that the customer can optionally specify to use to encrypt RepositoryLink properties. If not specified, a default key will be used.
     */
    @JvmName("npthyslukmxqtcgj")
    public suspend fun encryptionKeyArn(`value`: Output) {
        this.encryptionKeyArn = value
    }

    /**
     * @param value the ID of the entity that owns the repository.
     */
    @JvmName("cfoldpvpuynixwol")
    public suspend fun ownerId(`value`: Output) {
        this.ownerId = value
    }

    /**
     * @param value The repository for which the link is being created.
     */
    @JvmName("mahnvpeebdxcheet")
    public suspend fun repositoryName(`value`: Output) {
        this.repositoryName = value
    }

    /**
     * @param value Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("nnlfpipbcsffsllr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("pteixfkrdsfxwcnu")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("xhimumrpiddxejsc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the CodeStarConnection. The ARN is used as the connection reference when the connection is shared between AWS services.
     */
    @JvmName("klicbkliejspxhsd")
    public suspend fun connectionArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionArn = mapped
    }

    /**
     * @param value The ARN of the KMS key that the customer can optionally specify to use to encrypt RepositoryLink properties. If not specified, a default key will be used.
     */
    @JvmName("jrkustbwtwbtkbun")
    public suspend fun encryptionKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionKeyArn = mapped
    }

    /**
     * @param value the ID of the entity that owns the repository.
     */
    @JvmName("gcxbkpaqramhavux")
    public suspend fun ownerId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ownerId = mapped
    }

    /**
     * @param value The repository for which the link is being created.
     */
    @JvmName("uernsisbsjiffijn")
    public suspend fun repositoryName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repositoryName = mapped
    }

    /**
     * @param value Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("chukkubngsjdafps")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("cashcxaaqmyiowae")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("qywlfyrvyitllhrm")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("pdqxmufgfkdeoxln")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies the tags applied to a RepositoryLink.
     */
    @JvmName("admatdtmnhxicjxy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RepositoryLinkArgs = RepositoryLinkArgs(
        connectionArn = connectionArn,
        encryptionKeyArn = encryptionKeyArn,
        ownerId = ownerId,
        repositoryName = repositoryName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy