PolicyPrincipal
- class aws_cdk.aws_bedrockagentcore.PolicyPrincipal(*args: Any, **kwargs)
Bases:
objectThe principal a policy statement applies to.
Example:
from aws_cdk.aws_bedrockagentcore import PolicyPrincipal PolicyPrincipal.any() # principal PolicyPrincipal.entity_type("AgentCore::OAuthUser") # principal is AgentCore::OAuthUser PolicyPrincipal.entity("AgentCore::OAuthUser", "user123") # principal == AgentCore::OAuthUser::"user123" PolicyPrincipal.in_group("AgentCore::OAuthGroup", "admins")
Static Methods
- classmethod any()
Any principal, whoever the caller is.
- Return type:
- classmethod entity(entity_type, entity_id)
One specific principal.
- Parameters:
entity_type (
str) –The entity type, for example ‘AgentCore::OAuthUser’.
entity_id (
str) –The entity identifier.
- Return type:
- classmethod entity_type(entity_type)
Any principal of the given entity type.
- Parameters:
entity_type (
str) –The entity type, for example ‘AgentCore::OAuthUser’.
- Return type:
- classmethod in_group(group_type, group_id)
Any principal that is a member of the given group.
- Parameters:
group_type (
str) –The group entity type, for example ‘AgentCore::OAuthGroup’.
group_id (
str) –The group identifier.
- Return type: