OutboundNetworkConnection

Represents a private connection between a Salesforce org and a third-party data service. The connection is outbound because the callouts are going out of Salesforce.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

OutboundNetworkConnection components have the suffix .outboundNetworkConnection and are stored in the outboundNetworkConnections folder.

Version 

Introduced in API version 49.0.

Fields 

connectionType 

  • Type: ExternalConnectionType (enumeration of type string)
  • Required: Yes
  • Description: Required. Specifies the cloud provider of the connection.
  • Possible values:
    • AwsPrivateLink
    • DataCloudPrivateConnection — (Reserved for internal use)

description 

  • Type: string
  • Required: No
  • Description: A description of the connection. Maximum of 255 characters.

isActive 

  • Type: boolean
  • Required: Yes
  • Description: Required. Specifies whether the connection is active (true) or not (false).

label 

  • Type: string
  • Required: Yes
  • Description: Required. A user-friendly label for the connection.

outboundNetworkConnProperties 

  • Type: OutboundNetworkConnProperty[]
  • Required: No
  • Description: Name-value pairs that describe the properties of an outbound network connection. Specify a name-value pair for each of the properties.

status 

  • Type: ExternalConnectionStatus (enumeration of type string)
  • Required: Yes
  • Description: Required. Connection status. The connection is initially Unprovisioned and moves through the other statuses automatically after an admin performs a Provision, Sync, or Teardown action.
  • Possible values:
    • Unprovisioned
    • Allocation
    • PendingAcceptance
    • PendingActivation
    • RejectedRemotely
    • DeletedRemotely
    • TeardownInProgress
    • Ready

OutboundNetworkConnProperty Type 

Represents a name-value pair that describes the properties of an outbound network connection.

Fields 

propertyName 

  • Type: OutboundConnPropertyName (enumeration of type string)
  • Required: Yes
  • Description: Required. The name of a property used to establish to an OutboundNetworkConnection. Enumerated values DataCloudPrivateNetwork* are reserved for internal use.
  • Possible values:
    • AwsVpcEndpointId — The unique endpoint ID provided by Salesforce after an outbound AwsPrivateLink is created. The value is read-only when the status is Ready.
    • AwsVpcEndpointServiceName — The name of the customer’s endpoint service running in an AWS VPC that’s used for private connections with Salesforce.
    • Region — The region in which the VPC is hosted.

propertyValue 

  • Type: string
  • Required: Yes
  • Description: Required. The value of OutboundConnPropertyName. For example, the propertyValue of Region can be us-west-2.

Declarative Metadata Sample Definition 

The following sample definition has the suffix .outboundNetworkConnection.

1<?xml version="1.0" encoding="UTF-8"?>
2<OutboundNetworkConnection xmlns="http://soap.sforce.com/2006/04/metadata">
3    <connectionType>AwsPrivateLink</connectionType>
4    <description>Outbound Connection to make a callout to a Service deployed in AWS VPC</description>
5    <isActive>true</isActive>
6    <label>MyOutboundConnection</label>
7    <outboundNetworkConnProperties>
8        <propertyName>Region</propertyName>
9        <propertyValue>us-west-2</propertyValue>
10    </outboundNetworkConnProperties>
11    <outboundNetworkConnProperties>
12        <propertyName>AwsVpcEndpointServiceName</propertyName>
13        <propertyValue>com.amazonaws.vpce.us-west-2.vpce-svc-00d7bd6285c123b4c</propertyValue>
14    </outboundNetworkConnProperties>
15    <status>Unprovisioned</status>
16</OutboundNetworkConnection>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <fullName>sampleOutboundConnection</fullName>
4    <types>
5        <members>MyOutboundConnection</members>
6        <name>OutboundNetworkConnection</name>
7    </types>
8    <version>49.0</version>
9</Package>

Wildcard Support in the Manifest File 

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.