Interface CfnGuardrail.ContentPolicyConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardrail.ContentPolicyConfigProperty.Jsii$Proxy
- Enclosing class:
CfnGuardrail
@Stability(Stable)
public static interface CfnGuardrail.ContentPolicyConfigProperty
extends software.amazon.jsii.JsiiSerializable
Contains details about how to handle harmful content.
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.*;
ContentPolicyConfigProperty contentPolicyConfigProperty = ContentPolicyConfigProperty.builder()
.filtersConfig(List.of(ContentFilterConfigProperty.builder()
.inputStrength("inputStrength")
.outputStrength("outputStrength")
.type("type")
// the properties below are optional
.inputAction("inputAction")
.inputEnabled(false)
.inputModalities(List.of("inputModalities"))
.outputAction("outputAction")
.outputEnabled(false)
.outputModalities(List.of("outputModalities"))
.build()))
// the properties below are optional
.contentFiltersTierConfig(ContentFiltersTierConfigProperty.builder()
.tierName("tierName")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGuardrail.ContentPolicyConfigPropertystatic final classAn implementation forCfnGuardrail.ContentPolicyConfigProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFiltersConfig
Contains the type of the content filter and how strongly it should apply to prompts and model responses.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGuardrail.ContentFilterConfigProperty>- See Also:
-
getContentFiltersTierConfig
The tier that your guardrail uses for content filters.Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.
Returns union: either
IResolvableorCfnGuardrail.ContentFiltersTierConfigProperty- See Also:
-
builder
-