# TextTransformationProperty

Struct · External

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const textTransformationProperty: wafv2.CfnRuleGroup.TextTransformationProperty = {
  priority: 123,
  type: 'type',
};
```

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_wafv2 as wafv2

text_transformation_property = wafv2.CfnRuleGroup.TextTransformationProperty(
    priority=123,
    type="type"
)
```

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.wafv2.*;

TextTransformationProperty textTransformationProperty = TextTransformationProperty.builder()
        .priority(123)
        .type("type")
        .build();
```

C#:

```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.WAFv2;

var textTransformationProperty = new TextTransformationProperty {
    Priority = 123,
    Type = "type"
};
```

Go:

```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"

textTransformationProperty := &TextTransformationProperty{
	Priority: jsii.Number(123),
	Type: jsii.String("type"),
}
```

## Properties

- `priority`: number (required) — Sets the relative processing order for multiple transformations.

  AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.

- `type`: string (required) — For detailed descriptions of each of the transformation types, see [Text transformations](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-transformation.html) in the *AWS WAF Developer Guide* .
