---
schema_version: "1"
id: a5ff47b8e2066de7f7e370b32b89d73c00823ac673a795688f457cd9f56247bc
title: EventRelayConfig
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_eventrelayconfig.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventrelayconfig.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ef6070a9b30c74424e4d62ced9f7c0ff9ff7a75d6c4ec5e98a097c393f9994c3
description: Represents the configuration of an event relay, which relays platform events and change data capture events from Salesforce to Amazon EventBridge. This object is available in API version 56.0 and later.
---
# EventRelayConfig

Represents the configuration of an event relay, which relays platform events and change data capture events from Salesforce to Amazon EventBridge. This object is available in API version 56.0 and later.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

- To retrieve or query this object, you must have the View Setup and Configuration permission.
- This object is read-only. To configure an event relay, use [EventRelayConfig](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_tooling.meta/api_tooling/tooling_api_objects_eventrelayconfig.htm) in Tooling API or [EventRelayConfig](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_eventrelayconfig.htm) in Metadata API.

## Fields

| Field | Details |
| --- | --- |
| DestinationResourceName | 
Type

string

Properties

Filter, Group, Sort

Description

The developer name of the named credential, which stores the AWS account information. The destinationResourceName value contains the callout: prefix. For example: callout:MyRelayNamedCredential



 |
| DeveloperName | 

Type

string

Properties

Filter, Group, Sort

Description

Required. The unique name of the object in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s organization. Label is **Record Type Name**. This field is automatically generated, but you can supply your own value if you create the record using the API.



 |
| EventChannel | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The full name of the event channel used in the event relay. For example: MyRelayChannel\_\_chn



 |
| Language | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The language of the EventRelayConfig.

Possible values are:

- da—Danish
- de—German
- en\_US—English
- es—Spanish
- es\_MX—Spanish (Mexico)
- fi—Finnish
- fr—French
- it—Italian
- ja—Japanese
- ko—Korean
- nl\_NL—Dutch
- no—Norwegian
- pt\_BR—Portuguese (Brazil)
- ru—Russian
- sv—Swedish
- th—Thai
- zh\_CN—Chinese (Simplified)
- zh\_TW—Chinese (Traditional)





 |
| MasterLabel | 

Type

string

Properties

Filter, Group, Sort

Description

Label for the EventRelayConfig. In the UI, this field is Event Relay Config.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of the following values:

- In Developer Edition organizations, the namespace prefix is set to the namespace prefix of the organization for all objects that support it. There is an exception if an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition organization of the package developer.
- In organizations that are not Developer Edition organizations, NamespacePrefix is only set for objects that are part of an installed managed package. There is no namespace prefix for all other objects.





 |
| RelayOption | 

Type

textarea

Properties

Nillable

Description

A JSON-encoded string that contains an option for resuming an event relay after the system recovers from an error. This option is used if the event relay can't resume after the last relayed event. The options available are:

- "{"ReplayRecovery":"LATEST"}"—(Default) Start relaying events from new events received in the event bus. Use this option if you aren’t interested in missed events while the relay was down.
- "{"ReplayRecovery":"EARLIEST"}"—Resend all events stored in the event bus and relay new events thereafter. The event bus stores events for up to three days. Use this option if you want to reprocess all stored events and catch up on missed events.





 |
| State | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

The execution state of the event relay. Possible values are:

- RUN—The event relay is running and actively relaying event messages from Salesforce to Amazon EventBridge.
- PAUSE—An administrator paused the event relay. No events are relayed to Amazon EventBridge during this status. All current state information is saved.
- STOP—(Default) The event relay is stopped and no events are relayed to Amazon EventBridge. All current state information is deleted.





 |
| UsageType | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

Description

Reserved for future use.



 |