Class GatewayPolicyEngineConfig.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.GatewayPolicyEngineConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayPolicyEngineConfig>
- Enclosing interface:
GatewayPolicyEngineConfig
@Stability(Stable)
public static final class GatewayPolicyEngineConfig.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayPolicyEngineConfig>
A builder for
GatewayPolicyEngineConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.mode(PolicyEngineMode mode) Sets the value ofGatewayPolicyEngineConfig.getMode()policyEngine(IPolicyEngine policyEngine) Sets the value ofGatewayPolicyEngineConfig.getPolicyEngine()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyEngine
@Stability(Stable) public GatewayPolicyEngineConfig.Builder policyEngine(IPolicyEngine policyEngine) Sets the value ofGatewayPolicyEngineConfig.getPolicyEngine()- Parameters:
policyEngine- The policy engine to associate with this gateway. This parameter is required. [disable-awslint:prefer-ref-interface]- Returns:
this
-
mode
Sets the value ofGatewayPolicyEngineConfig.getMode()- Parameters:
mode- The enforcement mode for the policy engine.ENFORCE: Actively allows or denies requests based on Cedar policy evaluation.LOG_ONLY: Evaluates and logs decisions without enforcing them. Every tool call succeeds regardless of anyforbidpolicy, so this is intended for testing a policy against real traffic and is not recommended for production.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayPolicyEngineConfig>- Returns:
- a new instance of
GatewayPolicyEngineConfig - Throws:
NullPointerException- if any required attribute was not provided
-