Class CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty>
- Enclosing interface:
CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty
@Stability(Stable)
public static final class CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.getArn()build()Builds the configured instance.Sets the value ofCfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
@Stability(Stable) public CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.Builder arn(String arn) Sets the value ofCfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.getArn()- 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:
this
-
mode
@Stability(Stable) public CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.Builder mode(String mode) Sets the value ofCfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty.getMode()- Parameters:
mode- The enforcement mode for the policy engine. 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<CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty>- Returns:
- a new instance of
CfnGatewayPropsMixin.GatewayPolicyEngineConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-