Class CfnEnforcedGuardrailConfigurationProps
Properties for defining a CfnEnforcedGuardrailConfiguration.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEnforcedGuardrailConfigurationProps : ICfnEnforcedGuardrailConfigurationProps
Syntax (vb)
Public Class CfnEnforcedGuardrailConfigurationProps Implements ICfnEnforcedGuardrailConfigurationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var cfnEnforcedGuardrailConfigurationProps = new CfnEnforcedGuardrailConfigurationProps {
GuardrailIdentifier = "guardrailIdentifier",
GuardrailVersion = "guardrailVersion",
// the properties below are optional
ModelEnforcement = new ModelEnforcementProperty {
ExcludedModels = new [] { "excludedModels" },
IncludedModels = new [] { "includedModels" }
},
SelectiveContentGuarding = new SelectiveContentGuardingProperty {
Messages = "messages",
System = "system"
}
};
Synopsis
Constructors
| CfnEnforcedGuardrailConfigurationProps() | Properties for defining a |
Properties
| GuardrailIdentifier | Identifier for the guardrail, could be the ID or the ARN. |
| GuardrailVersion | Numerical guardrail version (not DRAFT). |
| ModelEnforcement | Model-specific information for the enforced guardrail configuration. |
| SelectiveContentGuarding | Selective content guarding controls for enforced guardrails. |
Constructors
CfnEnforcedGuardrailConfigurationProps()
Properties for defining a CfnEnforcedGuardrailConfiguration.
public CfnEnforcedGuardrailConfigurationProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var cfnEnforcedGuardrailConfigurationProps = new CfnEnforcedGuardrailConfigurationProps {
GuardrailIdentifier = "guardrailIdentifier",
GuardrailVersion = "guardrailVersion",
// the properties below are optional
ModelEnforcement = new ModelEnforcementProperty {
ExcludedModels = new [] { "excludedModels" },
IncludedModels = new [] { "includedModels" }
},
SelectiveContentGuarding = new SelectiveContentGuardingProperty {
Messages = "messages",
System = "system"
}
};
Properties
GuardrailIdentifier
Identifier for the guardrail, could be the ID or the ARN.
public string GuardrailIdentifier { get; set; }
Property Value
Remarks
GuardrailVersion
Numerical guardrail version (not DRAFT).
public string GuardrailVersion { get; set; }
Property Value
Remarks
ModelEnforcement
Model-specific information for the enforced guardrail configuration.
public object? ModelEnforcement { get; set; }
Property Value
Remarks
If not present, the configuration is enforced on all models
Type union: either IResolvable or CfnEnforcedGuardrailConfiguration.IModelEnforcementProperty
SelectiveContentGuarding
Selective content guarding controls for enforced guardrails.
public object? SelectiveContentGuarding { get; set; }