docs(transform): Add docs for hash transform (#293)

Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com>

Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com>
This commit is contained in:
MisterMX 2023-01-23 19:46:16 +01:00 committed by GitHub
parent 8a67af56c7
commit 0e8d93f756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -749,6 +749,12 @@ Currently only `multiply` is supported.
regexp:
match: 'arn:aws:iam::(\d+):.*'
group: 1 # Optional capture group. Omit to match the entire regexp.
# The output will be the hash of the JSON representation of the 'from' field.
- type: string
string:
type: Convert
convert: ToSha1 # alternatives: 'ToSha256' or 'ToSha512'
```
`convert`. Transforms values of one type to another, for example from a string