ImageTemplatePowerShellValidatorArgs

data class ImageTemplatePowerShellValidatorArgs(val inline: Output<List<String>>? = null, val name: Output<String>? = null, val runAsSystem: Output<Boolean>? = null, val runElevated: Output<Boolean>? = null, val scriptUri: Output<String>? = null, val sha256Checksum: Output<String>? = null, val type: Output<String>, val validExitCodes: Output<List<Int>>? = null) : ConvertibleToJava<ImageTemplatePowerShellValidatorArgs>

Runs the specified PowerShell script during the validation phase (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

Constructors

Link copied to clipboard
constructor(inline: Output<List<String>>? = null, name: Output<String>? = null, runAsSystem: Output<Boolean>? = null, runElevated: Output<Boolean>? = null, scriptUri: Output<String>? = null, sha256Checksum: Output<String>? = null, type: Output<String>, validExitCodes: Output<List<Int>>? = null)

Properties

Link copied to clipboard
val inline: Output<List<String>>? = null

Array of PowerShell commands to execute

Link copied to clipboard
val name: Output<String>? = null

Friendly Name to provide context on what this validation step does

Link copied to clipboard
val runAsSystem: Output<Boolean>? = null

If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.

Link copied to clipboard
val runElevated: Output<Boolean>? = null

If specified, the PowerShell script will be run with elevated privileges

Link copied to clipboard
val scriptUri: Output<String>? = null

URI of the PowerShell script to be run for validation. It can be a github link, Azure Storage URI, etc

Link copied to clipboard
val sha256Checksum: Output<String>? = null

SHA256 checksum of the power shell script provided in the scriptUri field above

Link copied to clipboard
val type: Output<String>

The type of validation you want to use on the Image. For example, "Shell" can be shell validation Expected value is 'PowerShell'.

Link copied to clipboard
val validExitCodes: Output<List<Int>>? = null

Valid exit codes for the PowerShell script. Default: 0

Functions

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