Class PolicyPrincipal
The principal a policy statement applies to.
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PolicyPrincipal : DeputyBase
Syntax (vb)
Public Class PolicyPrincipal Inherits DeputyBase
Examples
using Amazon.CDK.AWS.BedrockAgentCore;
PolicyPrincipal.Any(); // principal
PolicyPrincipal.EntityType("AgentCore::OAuthUser"); // principal is AgentCore::OAuthUser
PolicyPrincipal.Entity("AgentCore::OAuthUser", "user123"); // principal == AgentCore::OAuthUser::"user123"
PolicyPrincipal.InGroup("AgentCore::OAuthGroup", "admins");
Synopsis
Methods
| Any() | Any principal, whoever the caller is. |
| Entity(string, string) | One specific principal. |
| EntityType(string) | Any principal of the given entity type. |
| InGroup(string, string) | Any principal that is a member of the given group. |
Methods
Any()
Entity(string, string)
One specific principal.
public static PolicyPrincipal Entity(string entityType, string entityId)
Parameters
- entityType string
- The entity type, for example 'AgentCore::OAuthUser'.
- entityId string
- The entity identifier.
Returns
EntityType(string)
Any principal of the given entity type.
public static PolicyPrincipal EntityType(string entityType)
Parameters
- entityType string
- The entity type, for example 'AgentCore::OAuthUser'.