
com.pulumi.awsnative.autoscaling.kotlin.outputs.GetLifecycleHookResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.autoscaling.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property defaultResult The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
* @property heartbeatTimeout The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from 30 to 7200 seconds. The default value is 3600 seconds (1 hour). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
* @property lifecycleTransition The instance state to which you want to attach the lifecycle hook.
* @property notificationMetadata Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
* @property notificationTargetArn The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
* @property roleArn The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
*/
public data class GetLifecycleHookResult(
public val defaultResult: String? = null,
public val heartbeatTimeout: Int? = null,
public val lifecycleTransition: String? = null,
public val notificationMetadata: String? = null,
public val notificationTargetArn: String? = null,
public val roleArn: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.autoscaling.outputs.GetLifecycleHookResult): GetLifecycleHookResult = GetLifecycleHookResult(
defaultResult = javaType.defaultResult().map({ args0 -> args0 }).orElse(null),
heartbeatTimeout = javaType.heartbeatTimeout().map({ args0 -> args0 }).orElse(null),
lifecycleTransition = javaType.lifecycleTransition().map({ args0 -> args0 }).orElse(null),
notificationMetadata = javaType.notificationMetadata().map({ args0 -> args0 }).orElse(null),
notificationTargetArn = javaType.notificationTargetArn().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy