Class CfnGateway.GatewayPolicyEngineConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnGateway.GatewayPolicyEngineConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGateway.GatewayPolicyEngineConfigurationProperty>
- Enclosing interface:
CfnGateway.GatewayPolicyEngineConfigurationProperty
@Stability(Stable)
public static final class CfnGateway.GatewayPolicyEngineConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGateway.GatewayPolicyEngineConfigurationProperty>
A builder for
CfnGateway.GatewayPolicyEngineConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGateway.GatewayPolicyEngineConfigurationProperty.getArn()build()Builds the configured instance.Sets the value ofCfnGateway.GatewayPolicyEngineConfigurationProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
@Stability(Stable) public CfnGateway.GatewayPolicyEngineConfigurationProperty.Builder arn(String arn) Sets the value ofCfnGateway.GatewayPolicyEngineConfigurationProperty.getArn()- Parameters:
arn- The ARN of the policy engine. This parameter is required. 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:
this
-
mode
@Stability(Stable) public CfnGateway.GatewayPolicyEngineConfigurationProperty.Builder mode(String mode) Sets the value ofCfnGateway.GatewayPolicyEngineConfigurationProperty.getMode()- Parameters:
mode- The enforcement mode for the policy engine. This parameter is required. 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 in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGateway.GatewayPolicyEngineConfigurationProperty>- Returns:
- a new instance of
CfnGateway.GatewayPolicyEngineConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-