Class AddPolicyOptions.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.AddPolicyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddPolicyOptions>
- Enclosing interface:
AddPolicyOptions
@Stability(Stable)
public static final class AddPolicyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AddPolicyOptions>
A builder for
AddPolicyOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofAddPolicyOptions.getDescription()policyName(String policyName) Sets the value ofAddPolicyOptions.getPolicyName()statement(PolicyStatement statement) Sets the value ofAddPolicyOptions.getStatement()validationMode(PolicyValidationMode validationMode) Sets the value ofAddPolicyOptions.getValidationMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statement
Sets the value ofAddPolicyOptions.getStatement()- Parameters:
statement- The Cedar policy statement for this policy. This parameter is required. Build a type-safe statement with thePolicyStatementfactories, or usePolicyStatement.fromCedar('...')for raw Cedar. Raw Cedar is treated as trusted input: the module does not escape, quote, or validate it.- Returns:
this
-
description
Sets the value ofAddPolicyOptions.getDescription()- Parameters:
description- Optional description for the policy (max 4,096 characters).- Returns:
this
-
policyName
Sets the value ofAddPolicyOptions.getPolicyName()- Parameters:
policyName- The name of the policy. Valid characters: a-z, A-Z, 0-9, _ (underscore) Must start with a letter, 1-48 characters- Returns:
this
-
validationMode
@Stability(Stable) public AddPolicyOptions.Builder validationMode(PolicyValidationMode validationMode) Sets the value ofAddPolicyOptions.getValidationMode()- Parameters:
validationMode- Validation mode for the policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AddPolicyOptions>- Returns:
- a new instance of
AddPolicyOptions - Throws:
NullPointerException- if any required attribute was not provided
-