Class CfnPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyMixinProps>
- Enclosing interface:
CfnPolicyMixinProps
@Stability(Stable)
public static final class CfnPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyMixinProps>
A builder for
CfnPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPolicyMixinProps.getDefinition()definition(IResolvable definition) Sets the value ofCfnPolicyMixinProps.getDefinition()description(String description) Sets the value ofCfnPolicyMixinProps.getDescription()Sets the value ofCfnPolicyMixinProps.getName()policyEngineId(String policyEngineId) Sets the value ofCfnPolicyMixinProps.getPolicyEngineId()validationMode(String validationMode) Sets the value ofCfnPolicyMixinProps.getValidationMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
Sets the value ofCfnPolicyMixinProps.getDefinition()- Parameters:
definition- The definition structure for policies. Encapsulates different policy formats.- Returns:
this
-
definition
@Stability(Stable) public CfnPolicyMixinProps.Builder definition(CfnPolicyPropsMixin.PolicyDefinitionProperty definition) Sets the value ofCfnPolicyMixinProps.getDefinition()- Parameters:
definition- The definition structure for policies. Encapsulates different policy formats.- Returns:
this
-
description
Sets the value ofCfnPolicyMixinProps.getDescription()- Parameters:
description- A human-readable description of the policy's purpose and functionality.- Returns:
this
-
name
Sets the value ofCfnPolicyMixinProps.getName()- Parameters:
name- The customer-assigned immutable name for the policy. Must be unique within the policy engine.- Returns:
this
-
policyEngineId
Sets the value ofCfnPolicyMixinProps.getPolicyEngineId()- Parameters:
policyEngineId- The identifier of the policy engine which contains this policy.- Returns:
this
-
validationMode
Sets the value ofCfnPolicyMixinProps.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<CfnPolicyMixinProps>- Returns:
- a new instance of
CfnPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-