Module Values.ScheduleSource

[Custom snapshot and AMI policies only] Specifies a schedule for a snapshot or AMI lifecycle policy.

Sourcetype nonrec t = {
  1. name : ScheduleName.t option;
    (*

    The name of the schedule.

    *)
  2. copyTags : CopyTags.t option;
    (*

    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.

    *)
  3. tagsToAdd : TagsToAddList.t option;
    (*

    The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.

    *)
  4. variableTags : VariableTagsList.t option;
    (*

    [AMI policies and snapshot policies that target instances only] A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id) or $(timestamp). Variable tags are only valid for EBS Snapshot Management – Instance policies.

    *)
  5. createRule : CreateRule.t option;
    (*

    The creation rule.

    *)
  6. retainRule : RetainRule.t option;
    (*

    The retention rule for snapshots or AMIs created by the policy.

    *)
  7. fastRestoreRule : FastRestoreRule.t option;
    (*

    [Custom snapshot policies only] The rule for enabling fast snapshot restore.

    *)
  8. crossRegionCopyRules : CrossRegionCopyRules.t option;
    (*

    Specifies a rule for copying snapshots or AMIs across Regions. You can't specify cross-Region copy rules for policies that create snapshots on an Outpost or in a Local Zone. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.

    *)
  9. shareRules : ShareRules.t option;
    (*

    [Custom snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.

    *)
  10. deprecateRule : DeprecateRule.t option;
    (*

    [Custom AMI policies only] The AMI deprecation rule for the schedule.

    *)
  11. archiveRule : ArchiveRule.t option;
    (*

    [Custom snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify. For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.

    *)
}
Sourceval make : ?name:??? -> ?copyTags:??? -> ?tagsToAdd:??? -> ?variableTags:??? -> ?createRule:??? -> ?retainRule:??? -> ?fastRestoreRule:??? -> ?crossRegionCopyRules:??? -> ?shareRules:??? -> ?deprecateRule:??? -> ?archiveRule:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of CopyTags.t | `List of [> `Structure of (string * [> `Boolean of Encrypted.t | `Enum of string | `Integer of Interval.t | `List of [> `String of AwsAccountId.t ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Integer of Interval.t ]) list ]) list ] list | `String of ScheduleName.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 | `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of Count.t ]) list ]) list ]) list ]) 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