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

com.pulumi.awsnative.ecr.kotlin.PullThroughCacheRuleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecr.kotlin

import com.pulumi.awsnative.ecr.PullThroughCacheRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The AWS::ECR::PullThroughCacheRule resource configures the upstream registry configuration details for an Amazon Elastic Container Registry (Amazon Private ECR) pull-through cache.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property credentialArn The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
 * @property ecrRepositoryPrefix The ECRRepositoryPrefix is a custom alias for upstream registry url.
 * @property upstreamRegistry The name of the upstream registry.
 * @property upstreamRegistryUrl The upstreamRegistryUrl is the endpoint of upstream registry url of the public repository to be cached
 */
public data class PullThroughCacheRuleArgs(
    public val credentialArn: Output? = null,
    public val ecrRepositoryPrefix: Output? = null,
    public val upstreamRegistry: Output? = null,
    public val upstreamRegistryUrl: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecr.PullThroughCacheRuleArgs =
        com.pulumi.awsnative.ecr.PullThroughCacheRuleArgs.builder()
            .credentialArn(credentialArn?.applyValue({ args0 -> args0 }))
            .ecrRepositoryPrefix(ecrRepositoryPrefix?.applyValue({ args0 -> args0 }))
            .upstreamRegistry(upstreamRegistry?.applyValue({ args0 -> args0 }))
            .upstreamRegistryUrl(upstreamRegistryUrl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PullThroughCacheRuleArgs].
 */
@PulumiTagMarker
public class PullThroughCacheRuleArgsBuilder internal constructor() {
    private var credentialArn: Output? = null

    private var ecrRepositoryPrefix: Output? = null

    private var upstreamRegistry: Output? = null

    private var upstreamRegistryUrl: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
     */
    @JvmName("ejycfotyahnsbsiv")
    public suspend fun credentialArn(`value`: Output) {
        this.credentialArn = value
    }

    /**
     * @param value The ECRRepositoryPrefix is a custom alias for upstream registry url.
     */
    @JvmName("thvvunhaqpgwpvok")
    public suspend fun ecrRepositoryPrefix(`value`: Output) {
        this.ecrRepositoryPrefix = value
    }

    /**
     * @param value The name of the upstream registry.
     */
    @JvmName("lafcwasdpaatjjjr")
    public suspend fun upstreamRegistry(`value`: Output) {
        this.upstreamRegistry = value
    }

    /**
     * @param value The upstreamRegistryUrl is the endpoint of upstream registry url of the public repository to be cached
     */
    @JvmName("ywsblfhyvgljyhct")
    public suspend fun upstreamRegistryUrl(`value`: Output) {
        this.upstreamRegistryUrl = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
     */
    @JvmName("vuwojseqeleskfyl")
    public suspend fun credentialArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentialArn = mapped
    }

    /**
     * @param value The ECRRepositoryPrefix is a custom alias for upstream registry url.
     */
    @JvmName("gipilglnjxlijnxo")
    public suspend fun ecrRepositoryPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ecrRepositoryPrefix = mapped
    }

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

    /**
     * @param value The upstreamRegistryUrl is the endpoint of upstream registry url of the public repository to be cached
     */
    @JvmName("sxopbpxjdnnlmokp")
    public suspend fun upstreamRegistryUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upstreamRegistryUrl = mapped
    }

    internal fun build(): PullThroughCacheRuleArgs = PullThroughCacheRuleArgs(
        credentialArn = credentialArn,
        ecrRepositoryPrefix = ecrRepositoryPrefix,
        upstreamRegistry = upstreamRegistry,
        upstreamRegistryUrl = upstreamRegistryUrl,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy