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
ConstructorsModifierConstructorDescriptionprotectedPolicyPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPolicyPrincipal(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyPrincipalany()Any principal, whoever the caller is.static PolicyPrincipalOne specific principal.static PolicyPrincipalentityType(String entityType) Any principal of the given entity type.static PolicyPrincipalAny 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
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'.
entityId-- The entity identifier.
-
entityType
Any principal of the given entity type.- Parameters:
entityType-- The entity type, for example 'AgentCore::OAuthUser'.
-
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'.
groupId-- The group identifier.
-