Skip to content

PolicyStatement

Structure Class

PolicyStatement dataclass

Bases: _SerdeShape

Individual policy statement within a resource-based policy

Attributes

action class-attribute instance-attribute
action: list[str] | None = ...

Actions the statement controls

condition class-attribute instance-attribute
condition: dict[str, dict[str, list[str]]] | None = ...

Condition block for the statement

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

Effect of the policy statement (Allow/Deny)

principal class-attribute instance-attribute
principal: dict[str, str] | None = ...

Principal the statement applies to

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

Resource the statement applies to