64장. Replace Field Action
Replace field with a different key in the message in transit.
The required parameter renames is a comma-separated list of colon-delimited renaming pairs like for example foo:bar,abc:xyz and it represents the field rename mappings.
The optional parameter enabled represents the fields to include. If specified, only the named fields are included in the resulting message.
The optional parameter disabled represents the fields to exclude. If specified, the listed fields are excluded from the resulting message. This takes precedence over the enabled parameter.
The default value of enabled parameter is all, so all the fields in the payload are included.
The default value of disabled parameter is none, so no fields in the payload are excluded.
64.1. Configuration Options 링크 복사링크가 클립보드에 복사되었습니다!
The following table summarizes the configuration options available for the replace-field-action Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| renames * | Renames | Comma separated list of field with new value to be renamed | string | foo:bar,c1:c2 | |
| disabled | Disabled | Comma separated list of fields to be disabled | string | none | |
| enabled | Enabled | Comma separated list of fields to be enabled | string | all |
* = Fields marked with an asterisk are mandatory.