![JAR search and dependency download from the Maven repository](/logo.png)
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy