CloudWatchLogs / Client / exceptions / InvalidSequenceTokenException
InvalidSequenceTokenException¶
- class CloudWatchLogs.Client.exceptions.InvalidSequenceTokenException¶
The sequence token is not valid. You can get the correct sequence token in the
expectedSequenceTokenfield in theInvalidSequenceTokenExceptionmessage.Warning
PutLogEventsactions are now always accepted and never returnInvalidSequenceTokenExceptionregardless of receiving an invalid sequence token.Example
try: ... except client.exceptions.InvalidSequenceTokenException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'expectedSequenceToken': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The sequence token is not valid. You can get the correct sequence token in the
expectedSequenceTokenfield in theInvalidSequenceTokenExceptionmessage.Warning
PutLogEventsactions are now always accepted and never returnInvalidSequenceTokenExceptionregardless of receiving an invalid sequence token.expectedSequenceToken (string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.