Class PolicyAttribute
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.PolicyAttribute
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:40.338Z")
@Stability(Stable)
public class PolicyAttribute
extends software.amazon.jsii.JsiiObject
An attribute of the request that a condition can compare against.
Cedar exposes three sources of attributes. Which one you want depends on where the value comes from: the caller, the thing being accessed, or the request environment.
Example:
import software.amazon.awscdk.services.bedrockagentcore.PolicyAttribute;
PolicyAttribute.principal("department"); // principal.department
PolicyAttribute.resource("confidential"); // resource.confidential
PolicyAttribute.context("sourceIp");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPolicyAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPolicyAttribute(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyAttributeAn attribute of the request context, meaning the request environment rather than either entity.static PolicyAttributeAn attribute of the principal, meaning the authenticated user or service making the request.static PolicyAttributeAn attribute of the resource being accessed.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
-
PolicyAttribute
protected PolicyAttribute(software.amazon.jsii.JsiiObjectRef objRef) -
PolicyAttribute
protected PolicyAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
context
An attribute of the request context, meaning the request environment rather than either entity.For example
sourceIp,environmentortimestamp.- Parameters:
attribute-- The attribute name.
-
principal
An attribute of the principal, meaning the authenticated user or service making the request.For example
username,departmentorgroups.- Parameters:
attribute-- The attribute name.
-
resource
An attribute of the resource being accessed.For example
ownerorclassification.- Parameters:
attribute-- The attribute name.
-