We recommend new projects start with resources from the AWS provider.
We recommend new projects start with resources from the AWS provider.
Specifies a VPN connection between a virtual private gateway and a VPN customer gateway or a transit gateway and a VPN customer gateway.
To specify a VPN connection between a transit gateway and customer gateway, use the TransitGatewayId and CustomerGatewayId properties.
To specify a VPN connection between a virtual private gateway and customer gateway, use the VpnGatewayId and CustomerGatewayId properties.
For more information, see in the User Guide.
Using getVpnConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpnConnection(args: GetVpnConnectionArgs, opts?: InvokeOptions): Promise<GetVpnConnectionResult>
function getVpnConnectionOutput(args: GetVpnConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpnConnectionResult>def get_vpn_connection(vpn_connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpnConnectionResult
def get_vpn_connection_output(vpn_connection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpnConnectionResult]func LookupVpnConnection(ctx *Context, args *LookupVpnConnectionArgs, opts ...InvokeOption) (*LookupVpnConnectionResult, error)
func LookupVpnConnectionOutput(ctx *Context, args *LookupVpnConnectionOutputArgs, opts ...InvokeOption) LookupVpnConnectionResultOutput> Note: This function is named LookupVpnConnection in the Go SDK.
public static class GetVpnConnection
{
public static Task<GetVpnConnectionResult> InvokeAsync(GetVpnConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetVpnConnectionResult> Invoke(GetVpnConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
public static Output<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ec2:getVpnConnection
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Connection stringId - The ID of the VPN connection.
- vpn
Connection StringId - The ID of the VPN connection.
- vpn
Connection stringId - The ID of the VPN connection.
- vpn_
connection_ strid - The ID of the VPN connection.
- vpn
Connection StringId - The ID of the VPN connection.
getVpnConnection Result
The following output properties are available:
- Customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
-
List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
- Customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
- Tag
- Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- List<Tag>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection StringId - The ID of the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
- customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
- Tag[]
- Any tags assigned to the VPN connection.
- transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection stringId - The ID of the VPN connection.
- vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
- customer_
gateway_ strid - The ID of the customer gateway at your end of the VPN connection.
- Sequence[root_Tag]
- Any tags assigned to the VPN connection.
- transit_
gateway_ strid - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn_
connection_ strid - The ID of the VPN connection.
- vpn_
gateway_ strid - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- List<Property Map>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection StringId - The ID of the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
