Skip to main content

outbound_connections

Creates, updates, deletes, gets or lists an outbound_connections resource.

Overview

Nameoutbound_connections
TypeResource
Idaws.opensearch.outbound_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connectionsarrayList of outbound connections that match the filter criteria.
next_tokenstringWhen nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_outbound_connectionsselectregionLists all the outbound cross-cluster connections for a local (source) Amazon OpenSearch Service domain. For more information, see Cross-cluster search for Amazon OpenSearch Service.
create_outbound_connectioninsertregion, LocalDomainInfo, RemoteDomainInfo, ConnectionAliasCreates a new cross-cluster search connection from a source Amazon OpenSearch Service domain to a destination domain. For more information, see Cross-cluster search for Amazon OpenSearch Service.
delete_outbound_connectiondeleteconnection_id, regionAllows the source Amazon OpenSearch Service domain owner to delete an existing outbound cross-cluster search connection. For more information, see Cross-cluster search for Amazon OpenSearch Service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connection_idstringThe ID of the outbound connection you want to permanently delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Lists all the outbound cross-cluster connections for a local (source) Amazon OpenSearch Service domain. For more information, see Cross-cluster search for Amazon OpenSearch Service.

SELECT
connections,
next_token
FROM aws.opensearch.outbound_connections
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new cross-cluster search connection from a source Amazon OpenSearch Service domain to a destination domain. For more information, see Cross-cluster search for Amazon OpenSearch Service.

INSERT INTO aws.opensearch.outbound_connections (
LocalDomainInfo,
RemoteDomainInfo,
ConnectionAlias,
ConnectionMode,
ConnectionProperties,
region
)
SELECT
'{{ LocalDomainInfo }}' /* required */,
'{{ RemoteDomainInfo }}' /* required */,
'{{ ConnectionAlias }}' /* required */,
'{{ ConnectionMode }}',
'{{ ConnectionProperties }}',
'{{ region }}'
RETURNING
connection_alias,
connection_id,
connection_mode,
connection_properties,
connection_status,
local_domain_info,
remote_domain_info
;

DELETE examples

Allows the source Amazon OpenSearch Service domain owner to delete an existing outbound cross-cluster search connection. For more information, see Cross-cluster search for Amazon OpenSearch Service.

DELETE FROM aws.opensearch.outbound_connections
WHERE connection_id = '{{ connection_id }}' --required
AND region = '{{ region }}' --required
;