Interface GatewayPolicyEngineConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GatewayPolicyEngineConfiguration.Builder,,GatewayPolicyEngineConfiguration> SdkBuilder<GatewayPolicyEngineConfiguration.Builder,,GatewayPolicyEngineConfiguration> SdkPojo
- Enclosing class:
GatewayPolicyEngineConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the policy engine.The enforcement mode for the policy engine.mode(GatewayPolicyEngineMode mode) The enforcement mode for the policy engine.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The ARN of the policy engine. The policy engine contains Cedar policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
- Parameters:
arn- The ARN of the policy engine. The policy engine contains Cedar policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The enforcement mode for the policy engine. Valid values include:
-
LOG_ONLY- The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement. -
ENFORCE- The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies inLOG_ONLYmode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
- Parameters:
mode- The enforcement mode for the policy engine. Valid values include:-
LOG_ONLY- The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement. -
ENFORCE- The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies inLOG_ONLYmode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
mode
The enforcement mode for the policy engine. Valid values include:
-
LOG_ONLY- The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement. -
ENFORCE- The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies inLOG_ONLYmode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
- Parameters:
mode- The enforcement mode for the policy engine. Valid values include:-
LOG_ONLY- The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement. -
ENFORCE- The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies inLOG_ONLYmode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-