Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idaws.interconnect.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe short identifier of the connection object. (pattern: <code>(mcc|lmcc)-[a-z0-9]{8}</code>)
activation_keystringThe Activation Key associated to this connection.
arnstringAn ARN of a Connection object. (pattern: <code>arn:aws[a-z-]*:interconnect:[^:]+:[0-9]{12}:connection/(mcc|lmcc)-[a-z0-9]{8}</code>)
attach_pointobjectThe Attach Point to which the connection should be associated."
bandwidthstringThe specific selected bandwidth of this connection. (pattern: <code>\d+[MG]bps</code>)
billing_tierintegerThe billing tier this connection is currently assigned.
descriptionstringA descriptive name for the connection. (pattern: <code>[-a-zA-Z0-9_ ]+</code>)
environment_idstringThe specific Environment this connection is placed upon.
locationstringThe provider specific location on the remote side of this Connection
owner_accountstringThe account that owns this Connection (pattern: <code>[0-9]{12}</code>)
providerobjectThe provider on the remote side of this Connection.
shared_idstringAn identifier used by both AWS and the remote partner to identify the specific connection. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>)
statestringrequested: The initial state of a connection. The state will remain here until the Connection is accepted on the Partner portal. pending: The connection has been accepted and is being provisioned between AWS and the Partner. available: The connection has been fully provisioned between AWS and the Partner. deleting: The connection is being deleted. deleted: The connection has been deleted. failed: The connection has failed to be created. updating: The connection is being updated. (available, requested, pending, down, deleting, deleted, failed, updating)
tagsobjectThe tags on the Connection
type_stringThe specific product type of this Connection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectionselectregionDescribes the current state of a Connection resource as specified by the identifier.
list_connectionsselectregionLists all connection objects to which the caller has access. Allows for optional filtering by the following properties: state environmentId provider attach point Only Connection objects matching all filters will be returned.
create_connectioninsertregion, bandwidth, attachPoint, environmentIdInitiates the process to create a Connection across the specified Environment. The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments The Attach Point specifies where within the AWS Network your connection will logically connect. After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environment$activationPageUrl for a direct link to the partner portal).
update_connectionupdateregion, identifierModifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth.
delete_connectiondeleteregionDeletes an existing Connection with the supplied identifier. This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist.
accept_connection_proposalexecregion, attachPoint, activationKeyAccepts a connection proposal which was generated at a supported partner's portal. The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified. Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the current state of a Connection resource as specified by the identifier.

SELECT
id,
activation_key,
arn,
attach_point,
bandwidth,
billing_tier,
description,
environment_id,
location,
owner_account,
provider,
shared_id,
state,
tags,
type_
FROM aws.interconnect.connections
WHERE region = '{{ region }}' -- required
;

INSERT examples

Initiates the process to create a Connection across the specified Environment. The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments The Attach Point specifies where within the AWS Network your connection will logically connect. After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environment$activationPageUrl for a direct link to the partner portal).

INSERT INTO aws.interconnect.connections (
description,
bandwidth,
attachPoint,
environmentId,
remoteAccount,
tags,
clientToken,
region
)
SELECT
'{{ description }}',
'{{ bandwidth }}' /* required */,
'{{ attachPoint }}' /* required */,
'{{ environmentId }}' /* required */,
'{{ remoteAccount }}',
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
connection
;

UPDATE examples

Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth.

UPDATE aws.interconnect.connections
SET
identifier = '{{ identifier }}',
description = '{{ description }}',
bandwidth = '{{ bandwidth }}',
clientToken = '{{ clientToken }}'
WHERE
region = '{{ region }}' --required
AND identifier = '{{ identifier }}' --required
RETURNING
connection;

DELETE examples

Deletes an existing Connection with the supplied identifier. This operation will also inform the remote partner of your intention to delete your connection. Note, the partner may still require you to delete to fully clean up resources, but the network connectivity provided by the Connection will cease to exist.

DELETE FROM aws.interconnect.connections
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Accepts a connection proposal which was generated at a supported partner's portal. The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified. Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.

EXEC aws.interconnect.connections.accept_connection_proposal
@region='{{ region }}' --required
@@json=
'{
"attachPoint": "{{ attachPoint }}",
"activationKey": "{{ activationKey }}",
"description": "{{ description }}",
"tags": "{{ tags }}",
"clientToken": "{{ clientToken }}"
}'
;