Class CfnGuardrail.SensitiveInformationPolicyConfigProperty
Contains details about PII entities and regular expressions to configure for the guardrail.
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGuardrail.SensitiveInformationPolicyConfigProperty : CfnGuardrail.ISensitiveInformationPolicyConfigProperty
Syntax (vb)
Public Class CfnGuardrail.SensitiveInformationPolicyConfigProperty Implements CfnGuardrail.ISensitiveInformationPolicyConfigProperty
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 sensitiveInformationPolicyConfigProperty = new SensitiveInformationPolicyConfigProperty {
PiiEntitiesConfig = new [] { new PiiEntityConfigProperty {
Action = "action",
Type = "type",
// the properties below are optional
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} },
RegexesConfig = new [] { new RegexConfigProperty {
Action = "action",
Name = "name",
Pattern = "pattern",
// the properties below are optional
Description = "description",
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} }
};
Synopsis
Constructors
| SensitiveInformationPolicyConfigProperty() | Contains details about PII entities and regular expressions to configure for the guardrail. |
Properties
| PiiEntitiesConfig | A list of PII entities to configure to the guardrail. |
| RegexesConfig | A list of regular expressions to configure to the guardrail. |
Constructors
SensitiveInformationPolicyConfigProperty()
Contains details about PII entities and regular expressions to configure for the guardrail.
public SensitiveInformationPolicyConfigProperty()
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 sensitiveInformationPolicyConfigProperty = new SensitiveInformationPolicyConfigProperty {
PiiEntitiesConfig = new [] { new PiiEntityConfigProperty {
Action = "action",
Type = "type",
// the properties below are optional
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} },
RegexesConfig = new [] { new RegexConfigProperty {
Action = "action",
Name = "name",
Pattern = "pattern",
// the properties below are optional
Description = "description",
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} }
};
Properties
PiiEntitiesConfig
A list of PII entities to configure to the guardrail.
public object? PiiEntitiesConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnGuardrail.IPiiEntityConfigProperty)[]
RegexesConfig
A list of regular expressions to configure to the guardrail.
public object? RegexesConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnGuardrail.IRegexConfigProperty)[]