Skip to main content

links

Creates, updates, deletes, gets or lists a links resource.

Overview

Namelinks
TypeResource
Idaws.rtbfabric.links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectDescribes the attributes of a link.
connectivity_typestringThe connectivity type of the link. (DEFAULT, PUBLIC_INGRESS, PUBLIC_EGRESS, EXTERNAL_INBOUND)
created_atstring (date-time)The timestamp of when the link was created.
directionstringThe direction of the link. (RESPONSE, REQUEST)
flow_modulesarrayThe configuration of flow modules.
gateway_idstringThe unique identifier of the gateway. (pattern: <code>rtb-gw-[a-z0-9-]{1,25}</code>)
http_responder_allowedbooleanBoolean to specify if an HTTP responder is allowed.
link_idstringThe unique identifier of the link. (pattern: <code>link-[a-z0-9-]{1,25}</code>)
log_settingsobjectDescribes the settings for a link log.
peer_gateway_idstringThe unique identifier of the peer gateway. (pattern: <code>rtb-gw-[a-z0-9-]{1,25}</code>)
pending_flow_modulesarrayThe configuration of pending flow modules.
statusstringThe status of the link. (PENDING_CREATION, PENDING_REQUEST, REQUESTED, ACCEPTED, ACTIVE, REJECTED, FAILED, PENDING_DELETION, DELETED, PENDING_UPDATE, PENDING_ISOLATION, ISOLATED, PENDING_RESTORATION)
tagsobjectA map of the key-value pairs for the tag or tags assigned to the specified resource.
timeout_in_millisinteger (int64)The timeout value in milliseconds.
updated_atstring (date-time)The timestamp of when the link was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_linkselectgateway_id, link_id, regionRetrieves information about a link between gateways. Returns detailed information about the link configuration, status, and associated gateways.
list_linksselectgateway_id, regionnextToken, maxResultsLists links associated with gateways. Returns a list of all links for the specified gateways, including their status and configuration details.
create_linkinsertgateway_id, region, peerGatewayId, logSettingsCreates a new link between gateways. Establishes a connection that allows gateways to communicate and exchange bid requests and responses.
update_link_module_flowupdategateway_id, link_id, region, clientToken, modulesUpdates a link module flow.
update_linkupdategateway_id, link_id, regionUpdates the configuration of a link between gateways. Allows you to modify settings and parameters for an existing link.
delete_linkdeletegateway_id, link_id, regionDeletes a link between gateways. Permanently removes the connection between gateways. This action cannot be undone.
accept_linkexecgateway_id, link_id, region, logSettingsAccepts a link request between gateways. When a requester gateway requests to link with a responder gateway, the responder can use this operation to accept the link request and establish the connection.
reject_linkexecgateway_id, link_id, regionRejects a link request between gateways. When a requester gateway requests to link with a responder gateway, the responder can use this operation to decline the link request.

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
gateway_idstringThe unique identifier of the gateway.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
nextTokenstringIf nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

SELECT examples

Retrieves information about a link between gateways. Returns detailed information about the link configuration, status, and associated gateways.

SELECT
attributes,
connectivity_type,
created_at,
direction,
flow_modules,
gateway_id,
http_responder_allowed,
link_id,
log_settings,
peer_gateway_id,
pending_flow_modules,
status,
tags,
timeout_in_millis,
updated_at
FROM aws.rtbfabric.links
WHERE gateway_id = '{{ gateway_id }}' -- required
AND link_id = '{{ link_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new link between gateways. Establishes a connection that allows gateways to communicate and exchange bid requests and responses.

INSERT INTO aws.rtbfabric.links (
peerGatewayId,
attributes,
httpResponderAllowed,
tags,
logSettings,
timeoutInMillis,
gateway_id,
region
)
SELECT
'{{ peerGatewayId }}' /* required */,
'{{ attributes }}',
{{ httpResponderAllowed }},
'{{ tags }}',
'{{ logSettings }}' /* required */,
{{ timeoutInMillis }},
'{{ gateway_id }}',
'{{ region }}'
RETURNING
attributes,
connectivity_type,
created_at,
customer_provided_id,
direction,
flow_modules,
gateway_id,
link_id,
log_settings,
peer_gateway_id,
pending_flow_modules,
status,
updated_at
;

UPDATE examples

Updates a link module flow.

UPDATE aws.rtbfabric.links
SET
clientToken = '{{ clientToken }}',
modules = '{{ modules }}'
WHERE
gateway_id = '{{ gateway_id }}' --required
AND link_id = '{{ link_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}' --required
AND modules = '{{ modules }}' --required
RETURNING
gateway_id,
link_id,
status;

DELETE examples

Deletes a link between gateways. Permanently removes the connection between gateways. This action cannot be undone.

DELETE FROM aws.rtbfabric.links
WHERE gateway_id = '{{ gateway_id }}' --required
AND link_id = '{{ link_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Accepts a link request between gateways. When a requester gateway requests to link with a responder gateway, the responder can use this operation to accept the link request and establish the connection.

EXEC aws.rtbfabric.links.accept_link
@gateway_id='{{ gateway_id }}' --required,
@link_id='{{ link_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"attributes": "{{ attributes }}",
"logSettings": "{{ logSettings }}",
"timeoutInMillis": {{ timeoutInMillis }}
}'
;