早些时候被拒绝访问 describeLogStreams 并在添加必要的策略后得到了修复,但现在有响应但 uploadSequenceToken (和 nextToken )为空。
AWSLogs.default().describeLogStreams(req!) { (response, error) in
if ((error) != nil) {
Logging.logError("ERROR: AWS CW describe Log Stream error: \(String(describing: error))")
} else {
self.nextSequenceToken = response?.logStreams?.first?.uploadSequenceToken
// ^^^^^ above value is nil
}
任何想法?