Class CfnPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyProps>
- Enclosing interface:
CfnPolicyProps
@Stability(Stable)
public static final class CfnPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyProps>
A builder for
CfnPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.definition(IResolvable definition) Sets the value ofCfnPolicyProps.getDefinition()definition(CfnPolicy.PolicyDefinitionProperty definition) Sets the value ofCfnPolicyProps.getDefinition()description(String description) Sets the value ofCfnPolicyProps.getDescription()Sets the value ofCfnPolicyProps.getName()policyEngineId(String policyEngineId) Sets the value ofCfnPolicyProps.getPolicyEngineId()validationMode(String validationMode) Sets the value ofCfnPolicyProps.getValidationMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
Sets the value ofCfnPolicyProps.getDefinition()- Parameters:
definition- The definition structure for policies. This parameter is required. Encapsulates different policy formats.- Returns:
this
-
definition
@Stability(Stable) public CfnPolicyProps.Builder definition(CfnPolicy.PolicyDefinitionProperty definition) Sets the value ofCfnPolicyProps.getDefinition()- Parameters:
definition- The definition structure for policies. This parameter is required. Encapsulates different policy formats.- Returns:
this
-
name
Sets the value ofCfnPolicyProps.getName()- Parameters:
name- The customer-assigned immutable name for the policy. This parameter is required. Must be unique within the policy engine.- Returns:
this
-
policyEngineId
Sets the value ofCfnPolicyProps.getPolicyEngineId()- Parameters:
policyEngineId- The identifier of the policy engine which contains this policy. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPolicyProps.getDescription()- Parameters:
description- A human-readable description of the policy's purpose and functionality.- Returns:
this
-
validationMode
Sets the value ofCfnPolicyProps.getValidationMode()- Parameters:
validationMode- The validation mode for the policy. Determines how Cedar analyzer validation results are handled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyProps>- Returns:
- a new instance of
CfnPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-