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

com.pulumi.awsnative.ecr.kotlin.outputs.GetRepositoryResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ecr.kotlin.outputs

import com.pulumi.awsnative.ecr.kotlin.enums.RepositoryImageTagMutability
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn Returns the Amazon Resource Name (ARN) for the specified `AWS::ECR::Repository` resource. For example, `arn:aws:ecr: *eu-west-1* : *123456789012* :repository/ *test-repository*` .
 * @property imageScanningConfiguration The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
 * @property imageTagMutability The tag mutability setting for the repository. If this parameter is omitted, the default setting of ``MUTABLE`` will be used which will allow image tags to be overwritten. If ``IMMUTABLE`` is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
 * @property lifecyclePolicy Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see [Lifecycle policy template](https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html).
 * @property repositoryPolicyText The JSON repository policy text to apply to the repository. For more information, see [Amazon ECR repository policies](https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html) in the *Amazon Elastic Container Registry User Guide*.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ECR::Repository` for more information about the expected schema for this property.
 * @property repositoryUri Returns the URI for the specified `AWS::ECR::Repository` resource. For example, `*123456789012* .dkr.ecr. *us-west-2* .amazonaws.com/repository` .
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class GetRepositoryResult(
    public val arn: String? = null,
    public val imageScanningConfiguration: RepositoryImageScanningConfiguration? = null,
    public val imageTagMutability: RepositoryImageTagMutability? = null,
    public val lifecyclePolicy: RepositoryLifecyclePolicy? = null,
    public val repositoryPolicyText: Any? = null,
    public val repositoryUri: String? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ecr.outputs.GetRepositoryResult): GetRepositoryResult = GetRepositoryResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            imageScanningConfiguration = javaType.imageScanningConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ecr.kotlin.outputs.RepositoryImageScanningConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            imageTagMutability = javaType.imageTagMutability().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ecr.kotlin.enums.RepositoryImageTagMutability.Companion.toKotlin(args0)
                })
            }).orElse(null),
            lifecyclePolicy = javaType.lifecyclePolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ecr.kotlin.outputs.RepositoryLifecyclePolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            repositoryPolicyText = javaType.repositoryPolicyText().map({ args0 -> args0 }).orElse(null),
            repositoryUri = javaType.repositoryUri().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy