ImageTemplatePropertiesErrorHandlingArgs

data class ImageTemplatePropertiesErrorHandlingArgs(val onCustomizerError: Output<Either<String, OnBuildError>>? = null, val onValidationError: Output<Either<String, OnBuildError>>? = null) : ConvertibleToJava<ImageTemplatePropertiesErrorHandlingArgs>

Error handling options upon a build failure

Constructors

Link copied to clipboard
constructor(onCustomizerError: Output<Either<String, OnBuildError>>? = null, onValidationError: Output<Either<String, OnBuildError>>? = null)

Properties

Link copied to clipboard
val onCustomizerError: Output<Either<String, OnBuildError>>? = null

If there is a customizer error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a customizer error and this field is set to 'abort', the build VM will be preserved.

Link copied to clipboard
val onValidationError: Output<Either<String, OnBuildError>>? = null

If there is a validation error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a validation error and this field is set to 'abort', the build VM will be preserved.

Functions

Link copied to clipboard
open override fun toJava(): ImageTemplatePropertiesErrorHandlingArgs