class AWS::SimpleEmailService::IdentityCollection

def _each_item next_token, limit, options = {}, &block

def _each_item next_token, limit, options = {}, &block
  options[:max_items] = limit if limit
  options[:next_token] = next_token if next_token
  options[:identity_type] = @type if @type
  resp = client.list_identities(options)
  resp.data[:identities].each do |identity|
    yield(self[identity])
  end
  resp.data[:next_token]
end