IsAuthorizedInput
¶
Source code in docs_src/capo_verifiedpermissions/types/is_authorized_input.py
action
instance-attribute
¶
action: NotRequired[ActionIdentifier]
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
context
instance-attribute
¶
context: NotRequired[ContextDefinition]
Specifies additional context that can be used to make more granular authorization decisions.
entities
instance-attribute
¶
entities: NotRequired[EntitiesDefinition]
(Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies. These additional entities and their attributes can be referenced and checked by conditional elements in the policies in the specified policy store.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
policy_store_id
instance-attribute
¶
policy_store_id: PolicyStoreId
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
-
ID:
PSEXAMPLEabcdefg111111 -
Alias name:
policy-store-alias/example-policy-store
To view aliases, use ListPolicyStoreAliases.
principal
instance-attribute
¶
principal: NotRequired[EntityIdentifier]
Specifies the principal for which the authorization decision is to be made.
resource
instance-attribute
¶
resource: NotRequired[EntityIdentifier]
Specifies the resource for which the authorization decision is to be made.