---
title: resource
page-cloud: true
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: connect/components/inputs/resource
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: connect/components/inputs/resource.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/develop/pages/connect/components/inputs/resource.adoc
description: Resource is an input type that channels messages from a resource input, identified by its name.
page-context-switcher:
  - name: Input
    to: /cloud-data-platform/develop/connect/components/inputs/resource/
  - name: Output
    to: /cloud-data-platform/develop/connect/components/outputs/resource/
  - name: Processor
    to: /cloud-data-platform/develop/connect/components/processors/resource/
page-self-managed-available: "true"
page-self-managed-available-url: https://docs.redpanda.com/connect/components/inputs/resource/
page-git-created-date: "2024-09-09"
page-git-modified-date: "2026-10-22"
page-generated-sources:
  - include: connect:components:partial$descriptions/inputs/resource.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# resource

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

<!-- Source: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/inputs/resource.md -->

Resource is an input type that channels messages from a resource input, identified by its name.

Resources allow you to tidy up deeply nested configs. For example, the config:

```yaml
input:
  broker:
    inputs:
      - kafka:
          addresses: [ TODO ]
          topics: [ foo ]
          consumer_group: foogroup
      - gcp_pubsub:
          project: bar
          subscription: baz
```

Could also be expressed as:

```yaml
input:
  broker:
    inputs:
      - resource: foo
      - resource: bar

input_resources:
  - label: foo
    kafka:
      addresses: [ TODO ]
      topics: [ foo ]
      consumer_group: foogroup

  - label: bar
    gcp_pubsub:
      project: bar
      subscription: baz
```

Resources also allow you to reference a single input in multiple places, such as multiple streams mode configs, or multiple entries in a broker input. However, when a resource is referenced more than once the messages it produces are distributed across those references, so each message will only be directed to a single reference, not all of them.

You can find out more about resources in [Resources](https://docs.redpanda.com/cloud-data-platform/develop/connect/configuration/resources/).

```yml
input:
  resource: ""
```