# ManagedWordsConfigProperty

The managed word list to configure for the guardrail.

- Source: Generated at build time
- Type last changed: v2.191.0 · 23 Apr 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const managedWordsConfigProperty: bedrock.CfnGuardrail.ManagedWordsConfigProperty = {
  type: 'type',

  // the properties below are optional
  inputAction: 'inputAction',
  inputEnabled: false,
  outputAction: 'outputAction',
  outputEnabled: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

managed_words_config_property = bedrock.CfnGuardrail.ManagedWordsConfigProperty(
    type="type",

    # the properties below are optional
    input_action="inputAction",
    input_enabled=False,
    output_action="outputAction",
    output_enabled=False
)
```

Java:

```java
// 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.*;

ManagedWordsConfigProperty managedWordsConfigProperty = ManagedWordsConfigProperty.builder()
        .type("type")

        // the properties below are optional
        .inputAction("inputAction")
        .inputEnabled(false)
        .outputAction("outputAction")
        .outputEnabled(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 managedWordsConfigProperty = new ManagedWordsConfigProperty {
    Type = "type",

    // the properties below are optional
    InputAction = "inputAction",
    InputEnabled = false,
    OutputAction = "outputAction",
    OutputEnabled = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

managedWordsConfigProperty := &ManagedWordsConfigProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	InputAction: jsii.String("inputAction"),
	InputEnabled: jsii.Boolean(false),
	OutputAction: jsii.String("outputAction"),
	OutputEnabled: jsii.Boolean(false),
}
```

## Properties

- `inputAction`: string — Specifies the action to take when harmful content is detected in the input. Supported values include:.

  - `BLOCK` – Block the content and replace it with blocked messaging.
  - `NONE` – Take no action but return detection information in the trace response.

- `inputEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to enable guardrail evaluation on the input.

  When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.

- `outputAction`: string — Specifies the action to take when harmful content is detected in the output. Supported values include:.

  - `BLOCK` – Block the content and replace it with blocked messaging.
  - `NONE` – Take no action but return detection information in the trace response.

- `outputEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to enable guardrail evaluation on the output.

  When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.

- `type`: string (required) — The managed word type to configure for the guardrail.
