Class PolicyPrincipal

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.PolicyPrincipal
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-10T17:51:40.361Z") @Stability(Stable) public class PolicyPrincipal extends software.amazon.jsii.JsiiObject
The principal a policy statement applies to.

Example:

 import software.amazon.awscdk.services.bedrockagentcore.PolicyPrincipal;
 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");
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PolicyPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    PolicyPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    any()
    Any principal, whoever the caller is.
    entity(String entityType, String entityId)
    One specific principal.
    entityType(String entityType)
    Any principal of the given entity type.
    inGroup(String groupType, String groupId)
    Any principal that is a member of the given group.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • PolicyPrincipal

      protected PolicyPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
    • PolicyPrincipal

      protected PolicyPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • any

      @Stability(Stable) @NotNull public static PolicyPrincipal any()
      Any principal, whoever the caller is.
    • entity

      @Stability(Stable) @NotNull public static PolicyPrincipal entity(@NotNull String entityType, @NotNull String entityId)
      One specific principal.

      Parameters:
      entityType -
      • The entity type, for example 'AgentCore::OAuthUser'.
      This parameter is required.
      entityId -
      • The entity identifier.
      This parameter is required.
    • entityType

      @Stability(Stable) @NotNull public static PolicyPrincipal entityType(@NotNull String entityType)
      Any principal of the given entity type.

      Parameters:
      entityType -
      • The entity type, for example 'AgentCore::OAuthUser'.
      This parameter is required.
    • inGroup

      @Stability(Stable) @NotNull public static PolicyPrincipal inGroup(@NotNull String groupType, @NotNull String groupId)
      Any principal that is a member of the given group.

      Parameters:
      groupType -
      • The group entity type, for example 'AgentCore::OAuthGroup'.
      This parameter is required.
      groupId -
      • The group identifier.
      This parameter is required.