Skip to main content

vpn_concentrators

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

Overview

Namevpn_concentrators
TypeResource
Idaws.ec2.vpn_concentrators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
statestringThe current state of the VPN concentrator.
tagsstringAny tags assigned to the VPN concentrator.
transit_gateway_attachment_idstringThe ID of the transit gateway attachment for the VPN concentrator.
transit_gateway_idstringThe ID of the transit gateway associated with the VPN concentrator.
typestringThe type of VPN concentrator.
vpn_concentrator_idstringThe ID of the VPN concentrator.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpn_concentratorsselectregionVpnConcentratorId, Filter, MaxResults, NextToken, DryRunDescribes one or more of your VPN concentrators.
create_vpn_concentratorinsertregionType, TransitGatewayId, TagSpecification, DryRunCreates a VPN concentrator that aggregates multiple VPN connections to a transit gateway.
delete_vpn_concentratordeleteVpnConcentratorId, regionDryRunDeletes the specified VPN concentrator.

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
VpnConcentratorIdstringThe ID of the VPN concentrator to delete.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters to limit the results.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
TagSpecificationarrayThe tags to apply to the VPN concentrator during creation.
TransitGatewayIdstringThe ID of the transit gateway to attach the VPN concentrator to.
TypestringThe type of VPN concentrator to create.
VpnConcentratorIdarrayOne or more VPN concentrator IDs.

SELECT examples

Describes one or more of your VPN concentrators.

SELECT
state,
tags,
transit_gateway_attachment_id,
transit_gateway_id,
type,
vpn_concentrator_id
FROM aws.ec2.vpn_concentrators
WHERE region = '{{ region }}' -- required
AND VpnConcentratorId = '{{ VpnConcentratorId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway.

INSERT INTO aws.ec2.vpn_concentrators (
region,
Type,
TransitGatewayId,
TagSpecification,
DryRun
)
SELECT
'{{ region }}',
'{{ Type }}',
'{{ TransitGatewayId }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
state,
tags,
transit_gateway_attachment_id,
transit_gateway_id,
type,
vpn_concentrator_id
;

DELETE examples

Deletes the specified VPN concentrator.

DELETE FROM aws.ec2.vpn_concentrators
WHERE VpnConcentratorId = '{{ VpnConcentratorId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;