Skip to content

Lambda  >  Errors  >  PreconditionFailedException

PreconditionFailedException

Error Class

PreconditionFailedException dataclass

Bases: ServiceError

The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.

  • For AddPermission and RemovePermission API operations: Call GetPolicy to retrieve the latest RevisionId for your resource.

  • For all other API operations: Call GetFunction or GetAlias to retrieve the latest RevisionId for your resource.

Attributes

fault class-attribute instance-attribute
fault: Literal['client', 'server'] | None = 'client'
type class-attribute instance-attribute
type: str | None = None

The exception type.