Skip to main content

vpn_connection_device_sample_configurations

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

Overview

Namevpn_connection_device_sample_configurations
TypeResource
Idaws.ec2.vpn_connection_device_sample_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
vpn_connection_device_sample_configurationstringSample configuration file for the specified customer gateway device.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpn_connection_device_sample_configurationselectVpnConnectionId, VpnConnectionDeviceTypeId, regionInternetKeyExchangeVersion, SampleType, DryRunDownload an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.

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
VpnConnectionDeviceTypeIdstringDevice identifier provided by the GetVpnConnectionDeviceTypes API.
VpnConnectionIdstringThe VpnConnectionId specifies the Site-to-Site VPN connection used for the sample configuration.
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.
InternetKeyExchangeVersionstringThe IKE version to be used in the sample configuration file for your customer gateway device. You can specify one of the following versions: ikev1 or ikev2.
SampleTypestringThe type of sample configuration to generate. Valid values are "compatibility" (includes IKEv1) or "recommended" (throws UnsupportedOperationException for IKEv1).

SELECT examples

Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.

SELECT
vpn_connection_device_sample_configuration
FROM aws.ec2.vpn_connection_device_sample_configurations
WHERE VpnConnectionId = '{{ VpnConnectionId }}' -- required
AND VpnConnectionDeviceTypeId = '{{ VpnConnectionDeviceTypeId }}' -- required
AND region = '{{ region }}' -- required
AND InternetKeyExchangeVersion = '{{ InternetKeyExchangeVersion }}'
AND SampleType = '{{ SampleType }}'
AND DryRun = '{{ DryRun }}'
;