Script

class Script

[Custom snapshot policies that target instances only] Information about pre and/or post scripts for a snapshot lifecycle policy that targets instances. For more information, see Automating application-consistent snapshots with pre and post scripts.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether Amazon Data Lifecycle Manager should default to crash-consistent snapshots if the pre script fails.

Link copied to clipboard

The SSM document that includes the pre and/or post scripts to run.

Link copied to clipboard

Indicates the service used to execute the pre and/or post scripts.

Link copied to clipboard

Specifies a timeout period, in seconds, after which Amazon Data Lifecycle Manager fails the script run attempt if it has not completed. If a script does not complete within its timeout period, Amazon Data Lifecycle Manager fails the attempt. The timeout period applies to the pre and post scripts individually.

Link copied to clipboard

Specifies the number of times Amazon Data Lifecycle Manager should retry scripts that fail.

Link copied to clipboard

Indicate which scripts Amazon Data Lifecycle Manager should run on target instances. Pre scripts run before Amazon Data Lifecycle Manager initiates snapshot creation. Post scripts run after Amazon Data Lifecycle Manager initiates snapshot creation.

Functions

Link copied to clipboard
inline fun copy(block: Script.Builder.() -> Unit = {}): Script
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String