CfnEnforcedGuardrailConfigurationMixinProps
- class aws_cdk.cfn_property_mixins.aws_bedrock.CfnEnforcedGuardrailConfigurationMixinProps(*, guardrail_identifier=None, guardrail_version=None, model_enforcement=None, selective_content_guarding=None)
Bases:
objectProperties for CfnEnforcedGuardrailConfigurationPropsMixin.
- Parameters:
guardrail_identifier (
Optional[str]) – Identifier for the guardrail, could be the ID or the ARN.guardrail_version (
Optional[str]) – Numerical guardrail version (not DRAFT).model_enforcement (
Union[IResolvable,ModelEnforcementProperty,Dict[str,Any],None]) – Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all modelsselective_content_guarding (
Union[IResolvable,SelectiveContentGuardingProperty,Dict[str,Any],None]) – Selective content guarding controls for enforced guardrails.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_bedrock as bedrock cfn_enforced_guardrail_configuration_mixin_props = bedrock.CfnEnforcedGuardrailConfigurationMixinProps( guardrail_identifier="guardrailIdentifier", guardrail_version="guardrailVersion", model_enforcement=bedrock.CfnEnforcedGuardrailConfigurationPropsMixin.ModelEnforcementProperty( excluded_models=["excludedModels"], included_models=["includedModels"] ), selective_content_guarding=bedrock.CfnEnforcedGuardrailConfigurationPropsMixin.SelectiveContentGuardingProperty( messages="messages", system="system" ) )
Attributes
- guardrail_identifier
Identifier for the guardrail, could be the ID or the ARN.
- guardrail_version
Numerical guardrail version (not DRAFT).
- model_enforcement
Model-specific information for the enforced guardrail configuration.
If not present, the configuration is enforced on all models
- selective_content_guarding
Selective content guarding controls for enforced guardrails.