Skip to content

PublicPolicyException

Error Class

PublicPolicyException dataclass

Bases: ServiceError, _SerdeShape

The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

type class-attribute instance-attribute
type: str | None = ...

The exception type.