github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/resource.md (about) 1 --- 2 title: resource 3 type: processor 4 status: stable 5 categories: ["Utility"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/processor/resource.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 19 Resource is a processor type that runs a processor resource identified by its label. 20 21 ```yaml 22 # Config fields, showing default values 23 resource: "" 24 ``` 25 26 This processor allows you to reference the same configured processor resource in multiple places, and can also tidy up large nested configs. For example, the config: 27 28 ```yaml 29 pipeline: 30 processors: 31 - bloblang: | 32 root.message = this 33 root.meta.link_count = this.links.length() 34 root.user.age = this.user.age.number() 35 ``` 36 37 Is equivalent to: 38 39 ``` yaml 40 pipeline: 41 processors: 42 - resource: foo_proc 43 44 processor_resources: 45 - label: foo_proc 46 bloblang: | 47 root.message = this 48 root.meta.link_count = this.links.length() 49 root.user.age = this.user.age.number() 50 ``` 51 52 You can find out more about resources [in this document.](/docs/configuration/resources) 53 54