Class CfnEnforcedGuardrailConfigurationPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnEnforcedGuardrailConfigurationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin>
- Enclosing class:
CfnEnforcedGuardrailConfigurationPropsMixin
@Stability(Stable)
public static final class CfnEnforcedGuardrailConfigurationPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin>
A fluent builder for
CfnEnforcedGuardrailConfigurationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) guardrailIdentifier(String guardrailIdentifier) Identifier for the guardrail, could be the ID or the ARN.guardrailVersion(String guardrailVersion) Numerical guardrail version (not DRAFT).modelEnforcement(CfnEnforcedGuardrailConfigurationPropsMixin.ModelEnforcementProperty modelEnforcement) Model-specific information for the enforced guardrail configuration.modelEnforcement(IResolvable modelEnforcement) Model-specific information for the enforced guardrail configuration.selectiveContentGuarding(CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty selectiveContentGuarding) Selective content guarding controls for enforced guardrails.selectiveContentGuarding(IResolvable selectiveContentGuarding) Selective content guarding controls for enforced guardrails.
-
Method Details
-
create
@Stability(Stable) public static CfnEnforcedGuardrailConfigurationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnEnforcedGuardrailConfigurationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnEnforcedGuardrailConfigurationPropsMixin.Builder.
-
guardrailIdentifier
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder guardrailIdentifier(String guardrailIdentifier) Identifier for the guardrail, could be the ID or the ARN.- Parameters:
guardrailIdentifier- Identifier for the guardrail, could be the ID or the ARN. This parameter is required.- Returns:
this- See Also:
-
guardrailVersion
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder guardrailVersion(String guardrailVersion) Numerical guardrail version (not DRAFT).- Parameters:
guardrailVersion- Numerical guardrail version (not DRAFT). This parameter is required.- Returns:
this- See Also:
-
modelEnforcement
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder modelEnforcement(IResolvable modelEnforcement) Model-specific information for the enforced guardrail configuration.If not present, the configuration is enforced on all models
- Parameters:
modelEnforcement- Model-specific information for the enforced guardrail configuration. This parameter is required.- Returns:
this- See Also:
-
modelEnforcement
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder modelEnforcement(CfnEnforcedGuardrailConfigurationPropsMixin.ModelEnforcementProperty modelEnforcement) Model-specific information for the enforced guardrail configuration.If not present, the configuration is enforced on all models
- Parameters:
modelEnforcement- Model-specific information for the enforced guardrail configuration. This parameter is required.- Returns:
this- See Also:
-
selectiveContentGuarding
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder selectiveContentGuarding(IResolvable selectiveContentGuarding) Selective content guarding controls for enforced guardrails.- Parameters:
selectiveContentGuarding- Selective content guarding controls for enforced guardrails. This parameter is required.- Returns:
this- See Also:
-
selectiveContentGuarding
@Stability(Stable) public CfnEnforcedGuardrailConfigurationPropsMixin.Builder selectiveContentGuarding(CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty selectiveContentGuarding) Selective content guarding controls for enforced guardrails.- Parameters:
selectiveContentGuarding- Selective content guarding controls for enforced guardrails. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnforcedGuardrailConfigurationPropsMixin>- Returns:
- a newly built instance of
CfnEnforcedGuardrailConfigurationPropsMixin.
-