Interface CfnEnforcedGuardrailConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEnforcedGuardrailConfigurationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:31:49.844Z")
@Stability(Stable)
public interface CfnEnforcedGuardrailConfigurationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnEnforcedGuardrailConfiguration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
CfnEnforcedGuardrailConfigurationProps cfnEnforcedGuardrailConfigurationProps = CfnEnforcedGuardrailConfigurationProps.builder()
.guardrailIdentifier("guardrailIdentifier")
.guardrailVersion("guardrailVersion")
// the properties below are optional
.modelEnforcement(ModelEnforcementProperty.builder()
.excludedModels(List.of("excludedModels"))
.includedModels(List.of("includedModels"))
.build())
.selectiveContentGuarding(SelectiveContentGuardingProperty.builder()
.messages("messages")
.system("system")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEnforcedGuardrailConfigurationPropsstatic final classAn implementation forCfnEnforcedGuardrailConfigurationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Identifier for the guardrail, could be the ID or the ARN.Numerical guardrail version (not DRAFT).default ObjectModel-specific information for the enforced guardrail configuration.default ObjectSelective content guarding controls for enforced guardrails.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGuardrailIdentifier
Identifier for the guardrail, could be the ID or the ARN.- See Also:
-
getGuardrailVersion
Numerical guardrail version (not DRAFT).- See Also:
-
getModelEnforcement
Model-specific information for the enforced guardrail configuration.If not present, the configuration is enforced on all models
Returns union: either
IResolvableorCfnEnforcedGuardrailConfiguration.ModelEnforcementProperty- See Also:
-
getSelectiveContentGuarding
Selective content guarding controls for enforced guardrails.Returns union: either
IResolvableorCfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty- See Also:
-
builder
-