public final class Paginator<T>extends Object
implements Iterable<T>
Lazily walks every page of an AWS list operation (ListSecrets,
ListSecretVersionIds). Iterate with a for-each loop, use stream(), or collect
everything with toList(). Each iteration starts again from the first page; a page is
fetched only when the previous one is consumed.