Skip to content

AccessControlEntry

Source code in docs_src/capo_context/types/access_control_entry.py
class AccessControlEntry(TypedDict, closed=True):
    access: "capo_context.types.access_effect.AccessEffect"
    """<p>Specifies whether the principal can see the information.</p> <p>Valid values:</p> <ul> <li> <p> <code>ALLOW</code> - Access is allowed.</p> </li> <li> <p> <code>DENY</code> - Access is denied.</p> </li> </ul>"""
    principal_id: "capo_context.types.principal_id.PrincipalId"
    """<p>The principal's opaque user or group ID, or <code>*</code> for every reader authorized on the resource.</p>"""
    principal_type: NotRequired["capo_context.types.principal_type.PrincipalType"]
    """<p>Specifies whether <code>principalId</code> names a user or a group. Required unless <code>principalId</code> is <code>*</code>, where it is ignored.</p> <p>Valid values:</p> <ul> <li> <p> <code>USER</code> - An end user.</p> </li> <li> <p> <code>GROUP</code> - A group of end users.</p> </li> </ul>"""

access instance-attribute

access: AccessEffect

Specifies whether the principal can see the information.

Valid values:

  • ALLOW - Access is allowed.

  • DENY - Access is denied.

principal_id instance-attribute

principal_id: PrincipalId

The principal's opaque user or group ID, or * for every reader authorized on the resource.

principal_type instance-attribute

principal_type: NotRequired[PrincipalType]

Specifies whether principalId names a user or a group. Required unless principalId is *, where it is ignored.

Valid values:

  • USER - An end user.

  • GROUP - A group of end users.