Module Values.CreateRuleSource

[Custom snapshot and AMI policies only] Specifies when the policy should create snapshots or AMIs. You must specify either CronExpression, or Interval, IntervalUnit, and Times. If you need to specify an ArchiveRule for the schedule, then you must specify a creation frequency of at least 28 days.

Sourcetype nonrec t = {
  1. location : LocationValues.t option;
    (*

    [Custom snapshot policies only] Specifies the destination for snapshots created by the policy. The allowed destinations depend on the location of the targeted resources. If the policy targets resources in a Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources in a Local Zone, you can create snapshots in the same Local Zone or in its parent Region. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost or in its parent Region. Specify one of the following values: To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots in the same Local Zone as the source resource, specify LOCAL_ZONE. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. Default: CLOUD

    *)
  2. interval : Interval.t option;
    (*

    The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.

    *)
  3. intervalUnit : IntervalUnitValues.t option;
    (*

    The interval unit.

    *)
  4. times : TimesList.t option;
    (*

    The time, in UTC, to start the operation. The supported format is hh:mm. The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.

    *)
  5. cronExpression : CronExpression.t option;
    (*

    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see the Cron expressions reference in the Amazon EventBridge User Guide.

    *)
  6. scripts : ScriptsList.t option;
    (*

    [Custom snapshot policies that target instances only] Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances. This is useful for creating application-consistent snapshots, or for performing specific administrative tasks before or after Amazon Data Lifecycle Manager initiates snapshot creation. For more information, see Automating application-consistent snapshots with pre and post scripts.

    *)
}
Sourceval make : ?location:??? -> ?interval:??? -> ?intervalUnit:??? -> ?times:??? -> ?cronExpression:??? -> ?scripts:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Interval.t | `List of [> `String of Time.t | `Structure of (string * [> `Boolean of ExecuteOperationOnScriptFailure.t | `Enum of string | `Integer of ScriptExecutionTimeout.t | `List of [> `Enum of string ] list | `String of ExecutionHandler.t ]) list ] list | `String of CronExpression.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t