
com.pulumi.awsnative.codeartifact.kotlin.outputs.PackageGroupRestrictions.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.codeartifact.kotlin.outputs
import kotlin.Suppress
/**
*
* @property externalUpstream The external upstream restriction determines if new package versions can be ingested or retained from external connections.
* @property internalUpstream The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
* @property publish The publish restriction determines if new package versions can be published.
*/
public data class PackageGroupRestrictions(
public val externalUpstream: PackageGroupRestrictionType? = null,
public val internalUpstream: PackageGroupRestrictionType? = null,
public val publish: PackageGroupRestrictionType? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.codeartifact.outputs.PackageGroupRestrictions): PackageGroupRestrictions = PackageGroupRestrictions(
externalUpstream = javaType.externalUpstream().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codeartifact.kotlin.outputs.PackageGroupRestrictionType.Companion.toKotlin(args0)
})
}).orElse(null),
internalUpstream = javaType.internalUpstream().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codeartifact.kotlin.outputs.PackageGroupRestrictionType.Companion.toKotlin(args0)
})
}).orElse(null),
publish = javaType.publish().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codeartifact.kotlin.outputs.PackageGroupRestrictionType.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy