Class PolicyEngineProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.PolicyEngineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyEngineProps>
- Enclosing interface:
PolicyEngineProps
@Stability(Stable)
public static final class PolicyEngineProps.Builder
extends Object
implements software.amazon.jsii.Builder<PolicyEngineProps>
A builder for
PolicyEngineProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofPolicyEngineProps.getDescription()Sets the value ofPolicyEngineProps.getKmsKey()policyEngineName(String policyEngineName) Sets the value ofPolicyEngineProps.getPolicyEngineName()Sets the value ofPolicyEngineProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofPolicyEngineProps.getDescription()- Parameters:
description- Optional description for the policy engine. Maximum 4,096 characters.- Returns:
this
-
kmsKey
Sets the value ofPolicyEngineProps.getKmsKey()- Parameters:
kmsKey- Custom KMS key for encryption. [disable-awslint:prefer-ref-interface]- Returns:
this
-
policyEngineName
Sets the value ofPolicyEngineProps.getPolicyEngineName()- Parameters:
policyEngineName- The name of the policy engine. Valid characters: a-z, A-Z, 0-9, _ (underscore) Must start with a letter, 1-48 characters Pattern: ^[A-Za-z][A-Za-z0-9_]*$- Returns:
this
-
tags
Sets the value ofPolicyEngineProps.getTags()- Parameters:
tags- Tags for the policy engine. Maximum 50 tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PolicyEngineProps>- Returns:
- a new instance of
PolicyEngineProps - Throws:
NullPointerException- if any required attribute was not provided
-