Skip to main content

customer_gateway_associations

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

Overview

Namecustomer_gateway_associations
TypeResource
Idaws.networkmanager.customer_gateway_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
customer_gateway_arnstringThe Amazon Resource Name (ARN) of the customer gateway. (pattern: <code>[\s\S]*</code>)
device_idstringThe ID of the device. (pattern: <code>[\s\S]*</code>)
global_network_idstringThe ID of the global network. (pattern: <code>[\s\S]*</code>)
link_idstringThe ID of the link. (pattern: <code>[\s\S]*</code>)
statestringThe association state. (PENDING, AVAILABLE, DELETING, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_customer_gateway_associationsselectglobal_network_id, regioncustomerGatewayArns, maxResults, nextTokenGets the association information for customer gateways that are associated with devices and links in your global network.

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
global_network_idstringThe ID of the global network.
regionstringAWS region (default: us-east-1)
customerGatewayArnsarrayOne or more customer gateway Amazon Resource Names (ARNs). The maximum is 10.
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.

SELECT examples

Gets the association information for customer gateways that are associated with devices and links in your global network.

SELECT
customer_gateway_arn,
device_id,
global_network_id,
link_id,
state
FROM aws.networkmanager.customer_gateway_associations
WHERE global_network_id = '{{ global_network_id }}' -- required
AND region = '{{ region }}' -- required
AND customerGatewayArns = '{{ customerGatewayArns }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;