
com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs.ApplicationResourceLifecycleConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property serviceRole The ARN of an IAM service role that Elastic Beanstalk has permission to assume. The ServiceRole property is required the first time that you provide a ResourceLifecycleConfig for the application. After you provide it once, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again. You can, however, specify it in subsequent updates to change the Service Role to another value.
* @property versionLifecycleConfig Defines lifecycle settings for application versions.
*/
public data class ApplicationResourceLifecycleConfig(
public val serviceRole: String? = null,
public val versionLifecycleConfig: ApplicationVersionLifecycleConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.elasticbeanstalk.outputs.ApplicationResourceLifecycleConfig): ApplicationResourceLifecycleConfig = ApplicationResourceLifecycleConfig(
serviceRole = javaType.serviceRole().map({ args0 -> args0 }).orElse(null),
versionLifecycleConfig = javaType.versionLifecycleConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs.ApplicationVersionLifecycleConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy