Skip to content

Commit

Permalink
snapshot config
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn committed May 16, 2022
1 parent c5d901b commit 513ae4c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ data class SMPolicy(
) : ScheduledJobParameter, Writeable {

init {
// TODO validate snapshotConfig
require(snapshotConfig["repository"] != null) { "Must provide a repository." }
// indices, partial, include_global_state, ignore_unavailable, metadata
// TODO validate date_format is of right format
require(snapshotConfig["repository"] != null) { "Must provide the repository in snapshot config." }
// Other fields in snapshotConfig: date_expression, indices, partial, include_global_state, ignore_unavailable, metadata
// TODO SM validate date_format is of right format
}

override fun getName() = policyName
Expand Down

0 comments on commit 513ae4c

Please sign in to comment.