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

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

Example:

 import software.amazon.awscdk.services.bedrockagentcore.PolicyAction;
 PolicyAction.any(); // action
 PolicyAction.one("AgentCore::Action::GetGateway"); // action == AgentCore::Action::"GetGateway"
 PolicyAction.anyOf(List.of("AgentCore::Action::GetGateway", "AgentCore::Action::ListGateways"));
 
  • 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
    PolicyAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    PolicyAction(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    any()
    Any action.
    anyOf(List<String> actions)
    Any one of the given actions.
    one(String action)
    One specific action.

    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

    • PolicyAction

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

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

    • any

      @Stability(Stable) @NotNull public static PolicyAction any()
      Any action.
    • anyOf

      @Stability(Stable) @NotNull public static PolicyAction anyOf(@NotNull List<String> actions)
      Any one of the given actions.

      Parameters:
      actions -
      • The action names, at least one.
      This parameter is required.
    • one

      @Stability(Stable) @NotNull public static PolicyAction one(@NotNull String action)
      One specific action.

      Parameters:
      action -
      • The action name, for example 'AgentCore::Action::GetGateway'.
      This parameter is required.