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

com.pulumi.awsnative.codeartifact.kotlin.RepositoryArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.codeartifact.kotlin

import com.pulumi.awsnative.codeartifact.RepositoryArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The resource schema to create a CodeArtifact repository.
 * @property description A text description of the repository.
 * @property domainName The name of the domain that contains the repository.
 * @property domainOwner The 12-digit account ID of the AWS account that owns the domain.
 * @property externalConnections A list of external connections associated with the repository.
 * @property permissionsPolicyDocument The access control resource policy on the provided repository.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Repository` for more information about the expected schema for this property.
 * @property repositoryName The name of the repository.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property upstreams A list of upstream repositories associated with the repository.
 */
public data class RepositoryArgs(
    public val description: Output? = null,
    public val domainName: Output? = null,
    public val domainOwner: Output? = null,
    public val externalConnections: Output>? = null,
    public val permissionsPolicyDocument: Output? = null,
    public val repositoryName: Output? = null,
    public val tags: Output>? = null,
    public val upstreams: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codeartifact.RepositoryArgs =
        com.pulumi.awsnative.codeartifact.RepositoryArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .domainOwner(domainOwner?.applyValue({ args0 -> args0 }))
            .externalConnections(externalConnections?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .permissionsPolicyDocument(permissionsPolicyDocument?.applyValue({ args0 -> args0 }))
            .repositoryName(repositoryName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .upstreams(upstreams?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var domainName: Output? = null

    private var domainOwner: Output? = null

    private var externalConnections: Output>? = null

    private var permissionsPolicyDocument: Output? = null

    private var repositoryName: Output? = null

    private var tags: Output>? = null

    private var upstreams: Output>? = null

    /**
     * @param value A text description of the repository.
     */
    @JvmName("nmqhbgufjeferltj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the domain that contains the repository.
     */
    @JvmName("tqquyafqyawdrakh")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The 12-digit account ID of the AWS account that owns the domain.
     */
    @JvmName("rfowexqgmpuvdqev")
    public suspend fun domainOwner(`value`: Output) {
        this.domainOwner = value
    }

    /**
     * @param value A list of external connections associated with the repository.
     */
    @JvmName("haxxtmfokfjblqlw")
    public suspend fun externalConnections(`value`: Output>) {
        this.externalConnections = value
    }

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

    /**
     * @param values A list of external connections associated with the repository.
     */
    @JvmName("cphwojayutmcymrq")
    public suspend fun externalConnections(values: List>) {
        this.externalConnections = Output.all(values)
    }

    /**
     * @param value The access control resource policy on the provided repository.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Repository` for more information about the expected schema for this property.
     */
    @JvmName("yomyibrutwochweo")
    public suspend fun permissionsPolicyDocument(`value`: Output) {
        this.permissionsPolicyDocument = value
    }

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

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("qknewbflinmxxejf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("liausynlvoslorxp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A list of upstream repositories associated with the repository.
     */
    @JvmName("wwljukjfjorgmygg")
    public suspend fun upstreams(`value`: Output>) {
        this.upstreams = value
    }

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

    /**
     * @param values A list of upstream repositories associated with the repository.
     */
    @JvmName("jqmofvaxoriqdiic")
    public suspend fun upstreams(values: List>) {
        this.upstreams = Output.all(values)
    }

    /**
     * @param value A text description of the repository.
     */
    @JvmName("cmthjccxbjkqwkaa")
    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 domain that contains the repository.
     */
    @JvmName("lpvlgpxxxhbqccjs")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The 12-digit account ID of the AWS account that owns the domain.
     */
    @JvmName("cnjkntoymrontssk")
    public suspend fun domainOwner(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainOwner = mapped
    }

    /**
     * @param value A list of external connections associated with the repository.
     */
    @JvmName("ifrhqpcjtkplxsbx")
    public suspend fun externalConnections(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalConnections = mapped
    }

    /**
     * @param values A list of external connections associated with the repository.
     */
    @JvmName("hmfdvfneplvxmqoi")
    public suspend fun externalConnections(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.externalConnections = mapped
    }

    /**
     * @param value The access control resource policy on the provided repository.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Repository` for more information about the expected schema for this property.
     */
    @JvmName("ocgrnjliqtgbgkrr")
    public suspend fun permissionsPolicyDocument(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissionsPolicyDocument = mapped
    }

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

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("pmbhlkgvbxwrxkke")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("gynuqetvuadpqkby")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("qtiladjjdhhwdnxm")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("lqicahtqhdhvjylp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("jaqbnsyipqkejvqe")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A list of upstream repositories associated with the repository.
     */
    @JvmName("ttggerwoehnksjhr")
    public suspend fun upstreams(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upstreams = mapped
    }

    /**
     * @param values A list of upstream repositories associated with the repository.
     */
    @JvmName("gyceanerpacqfixf")
    public suspend fun upstreams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.upstreams = mapped
    }

    internal fun build(): RepositoryArgs = RepositoryArgs(
        description = description,
        domainName = domainName,
        domainOwner = domainOwner,
        externalConnections = externalConnections,
        permissionsPolicyDocument = permissionsPolicyDocument,
        repositoryName = repositoryName,
        tags = tags,
        upstreams = upstreams,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy