func addAllVpnNames(svc *ec2.Client, result map[string]string) map[string]string {
	resp, err := svc.DescribeVpnConnections(context.TODO(), &ec2.DescribeVpnConnectionsInput{})
	if err != nil {
		panic(err)
	}
	for _, vpn := range resp.VpnConnections {
		result[*vpn.VpnConnectionId] = *vpn.VpnConnectionId
		if name := getNameFromTags(vpn.Tags); name != "" {
			result[*vpn.VpnConnectionId] = name
		}
	}
	return result
}
//addAllVPCNames returns the names of all vpns in a map
addAllVPCNames returns the names of all vpns in a map
// addAllVPCNames returns the names of all vpns in a map
func addAllVpnNames(svc *ec2.Client, result map[string]string) map[string]string {
	resp, err := svc.DescribeVpnConnections(context.TODO(), &ec2.DescribeVpnConnectionsInput{})
	if err != nil {
		panic(err)
	}
	for _, vpn := range resp.VpnConnections {
		result[*vpn.VpnConnectionId] = *vpn.VpnConnectionId
		if name := getNameFromTags(vpn.Tags); name != "" {
			result[*vpn.VpnConnectionId] = name
		}
	}
	return result
}
func addAllVpnNames ( svc * ec2 . Client , result map [ string ] string ) map [ string ] string { resp , err := svc . DescribeVpnConnections ( context . TODO ( ) , & ec2 . DescribeVpnConnectionsInput { } ) if err != nil { panic ( err ) } for _ , vpn := range resp . VpnConnections { result [ * vpn . VpnConnectionId ] = * vpn . VpnConnectionId if name := getNameFromTags ( vpn . Tags ) ; name != " " { result [ * vpn . VpnConnectionId ] = name } } return result }
addAllVPCNames returns the names of all vpns in a map
addAllVPCNames returns the names of all vpns in a map