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

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

    Modifier and Type
    Method
    Description
    context(String attribute)
    An attribute of the request context, meaning the request environment rather than either entity.
    principal(String attribute)
    An attribute of the principal, meaning the authenticated user or service making the request.
    resource(String attribute)
    An 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, 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

    • PolicyAttribute

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

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

    • context

      @Stability(Stable) @NotNull public static PolicyAttribute context(@NotNull String attribute)
      An attribute of the request context, meaning the request environment rather than either entity.

      For example sourceIp, environment or timestamp.

      Parameters:
      attribute -
      • The attribute name.
      This parameter is required.
    • principal

      @Stability(Stable) @NotNull public static PolicyAttribute principal(@NotNull String attribute)
      An attribute of the principal, meaning the authenticated user or service making the request.

      For example username, department or groups.

      Parameters:
      attribute -
      • The attribute name.
      This parameter is required.
    • resource

      @Stability(Stable) @NotNull public static PolicyAttribute resource(@NotNull String attribute)
      An attribute of the resource being accessed.

      For example owner or classification.

      Parameters:
      attribute -
      • The attribute name.
      This parameter is required.