Skip to content

Lambda  >  Errors  >  PublicPolicyException

PublicPolicyException

Error Class

PublicPolicyException dataclass

Bases: ServiceError

The resource-based policy you tried to add to the Lambda function would grant public access to it, and your account's BlockPublicAccess setting prevents public access. For more information about blocking public access to Lambda functions, see Block public access to Lambda resources.

Attributes

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

The exception type.