
com.pulumi.awsnative.ecr.kotlin.outputs.RepositoryLifecyclePolicy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecr.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* The ``LifecyclePolicy`` property type specifies a lifecycle policy. For information about lifecycle policy syntax, see [Lifecycle policy template](https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html) in the *Amazon ECR User Guide*.
* @property lifecyclePolicyText The JSON repository policy text to apply to the repository.
* @property registryId The AWS account ID associated with the registry that contains the repository. If you do
* not specify a registry, the default registry is assumed.
*/
public data class RepositoryLifecyclePolicy(
public val lifecyclePolicyText: String? = null,
public val registryId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecr.outputs.RepositoryLifecyclePolicy): RepositoryLifecyclePolicy = RepositoryLifecyclePolicy(
lifecyclePolicyText = javaType.lifecyclePolicyText().map({ args0 -> args0 }).orElse(null),
registryId = javaType.registryId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy