com.pulumi.awsnative.codegurureviewer.kotlin.RepositoryAssociationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.codegurureviewer.kotlin
import com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs.builder
import com.pulumi.awsnative.codegurureviewer.kotlin.enums.RepositoryAssociationType
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
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
/**
* This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service.
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* @property bucketName The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`.
* @property connectionArn The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* @property name Name of the repository to be associated.
* @property owner The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository.
* @property tags The tags associated with a repository association.
* @property type The type of repository to be associated.
*/
public data class RepositoryAssociationArgs(
public val bucketName: Output? = null,
public val connectionArn: Output? = null,
public val name: Output? = null,
public val owner: Output? = null,
public val tags: Output>? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs =
com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs.builder()
.bucketName(bucketName?.applyValue({ args0 -> args0 }))
.connectionArn(connectionArn?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.owner(owner?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RepositoryAssociationArgs].
*/
@PulumiTagMarker
public class RepositoryAssociationArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var connectionArn: Output? = null
private var name: Output? = null
private var owner: Output? = null
private var tags: Output>? = null
private var type: Output? = null
/**
* @param value The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`.
*/
@JvmName("ebdnleogcpkdqcof")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
*/
@JvmName("wjjjkwauvunfdixd")
public suspend fun connectionArn(`value`: Output) {
this.connectionArn = value
}
/**
* @param value Name of the repository to be associated.
*/
@JvmName("xvxkstpkmshpqgav")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository.
*/
@JvmName("yqnehrluprrmqrxi")
public suspend fun owner(`value`: Output) {
this.owner = value
}
/**
* @param value The tags associated with a repository association.
*/
@JvmName("oexhgdcqppwffgog")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("itoqnitaipvtmoqn")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values The tags associated with a repository association.
*/
@JvmName("cjiwbskhfwqircyd")
public suspend fun tags(values: List