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

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

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

package com.pulumi.awsnative.ecr.kotlin

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

/**
 * The ``AWS::ECR::RegistryPolicy`` resource creates or updates the permissions policy for a private registry.
 *  A private registry policy is used to specify permissions for another AWS-account and is used when configuring cross-account replication. For more information, see [Registry permissions](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the *Amazon Elastic Container Registry User Guide*.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property policyText The JSON policy text for your registry.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ECR::RegistryPolicy` for more information about the expected schema for this property.
 */
public data class RegistryPolicyArgs(
    public val policyText: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecr.RegistryPolicyArgs =
        com.pulumi.awsnative.ecr.RegistryPolicyArgs.builder()
            .policyText(policyText?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegistryPolicyArgs].
 */
@PulumiTagMarker
public class RegistryPolicyArgsBuilder internal constructor() {
    private var policyText: Output? = null

    /**
     * @param value The JSON policy text for your registry.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ECR::RegistryPolicy` for more information about the expected schema for this property.
     */
    @JvmName("ixmrbpkdwdqoewod")
    public suspend fun policyText(`value`: Output) {
        this.policyText = value
    }

    /**
     * @param value The JSON policy text for your registry.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ECR::RegistryPolicy` for more information about the expected schema for this property.
     */
    @JvmName("jeyjrreutrynroto")
    public suspend fun policyText(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyText = mapped
    }

    internal fun build(): RegistryPolicyArgs = RegistryPolicyArgs(
        policyText = policyText,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy