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

com.pulumi.aws.dlm.kotlin.outputs.LifecyclePolicyPolicyDetailsScheduleShareRule.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.dlm.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property targetAccounts The IDs of the AWS accounts with which to share the snapshots.
 * @property unshareInterval The period after which snapshots that are shared with other AWS accounts are automatically unshared.
 * @property unshareIntervalUnit The unit of time for the automatic unsharing interval. Valid values are `DAYS`, `WEEKS`, `MONTHS`, `YEARS`.
 */
public data class LifecyclePolicyPolicyDetailsScheduleShareRule(
    public val targetAccounts: List,
    public val unshareInterval: Int? = null,
    public val unshareIntervalUnit: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleShareRule): LifecyclePolicyPolicyDetailsScheduleShareRule =
            LifecyclePolicyPolicyDetailsScheduleShareRule(
                targetAccounts = javaType.targetAccounts().map({ args0 -> args0 }),
                unshareInterval = javaType.unshareInterval().map({ args0 -> args0 }).orElse(null),
                unshareIntervalUnit = javaType.unshareIntervalUnit().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy