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

com.pulumi.awsnative.imagebuilder.kotlin.outputs.LifecyclePolicyAmiExclusionRules.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * The AMI exclusion rules for the policy detail.
 * @property isPublic Use to apply lifecycle policy actions on whether the AMI is public.
 * @property lastLaunched Use to apply lifecycle policy actions on AMIs launched before a certain time.
 * @property regions Use to apply lifecycle policy actions on AMIs distributed to a set of regions.
 * @property sharedAccounts Use to apply lifecycle policy actions on AMIs shared with a set of regions.
 * @property tagMap The AMIs to select by tag.
 */
public data class LifecyclePolicyAmiExclusionRules(
    public val isPublic: Boolean? = null,
    public val lastLaunched: LifecyclePolicyLastLaunched? = null,
    public val regions: List? = null,
    public val sharedAccounts: List? = null,
    public val tagMap: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.imagebuilder.outputs.LifecyclePolicyAmiExclusionRules): LifecyclePolicyAmiExclusionRules = LifecyclePolicyAmiExclusionRules(
            isPublic = javaType.isPublic().map({ args0 -> args0 }).orElse(null),
            lastLaunched = javaType.lastLaunched().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.imagebuilder.kotlin.outputs.LifecyclePolicyLastLaunched.Companion.toKotlin(args0)
                })
            }).orElse(null),
            regions = javaType.regions().map({ args0 -> args0 }),
            sharedAccounts = javaType.sharedAccounts().map({ args0 -> args0 }),
            tagMap = javaType.tagMap().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy